Changeset 1699 for trunk/MagicSoft/Cosy/main/MBending.cc
- Timestamp:
- 01/08/03 17:21:33 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/main/MBending.cc
r1393 r1699 7 7 8 8 ClassImp(MBending); 9 10 void MBending::Reset() 11 { 12 fIa = 0; 13 fIe = 0; 14 fCa = 0; 15 fAn = 0; 16 fAw = 0; 17 fNrx = 0; 18 fNry = 0; 19 fCrx = 0; 20 fCry = 0; 21 fNpae = 0; 22 fEces = 0; 23 fAces = 0; 24 fEcec = 0; 25 fAcec = 0; 26 } 9 27 10 28 void MBending::Load(const char *name) … … 141 159 p += NPAE; 142 160 143 const AltAz I(fIe *kDeg2Rad, fIa*kDeg2Rad);161 const AltAz I(fIe/**kDeg2Rad*/, fIa/**kDeg2Rad*/); 144 162 p += I; 163 164 return p; 165 } 166 167 AltAz MBending::CorrectBack(const AltAz &aa) const 168 { 169 // Correct [rad] 170 // zdaz [rad] 171 AltAz p = aa; 172 173 const AltAz CES(-fEces*kDeg2Rad*sin(p.Alt()), -fAces*kDeg2Rad*sin(p.Az())); 174 const AltAz CEC(-fEcec*kDeg2Rad*cos(p.Alt()), -fAcec*kDeg2Rad*cos(p.Az())); 175 p -= CES; 176 p -= CEC; 177 178 const AltAz CRX(-fCrx*kDeg2Rad*sin(p.Az()-p.Alt()), fCrx*kDeg2Rad*cos(p.Az()-p.Alt())/cos(p.Alt())); 179 const AltAz CRY(-fCry*kDeg2Rad*cos(p.Az()-p.Alt()), -fCry*kDeg2Rad*sin(p.Az()-p.Alt())/cos(p.Alt())); 180 p -= CRX; 181 p -= CRY; 182 183 const AltAz NRX(fNrx*kDeg2Rad*sin(p.Alt()), -fNrx*kDeg2Rad); 184 const AltAz NRY(fNry*kDeg2Rad*cos(p.Alt()), -fNry*kDeg2Rad*tan(p.Alt())); 185 p -= NRX; 186 p -= NRY; 187 188 const AltAz AW( fAw*kDeg2Rad*sin(p.Az()), -fAw*kDeg2Rad*cos(p.Az())*tan(p.Alt())); 189 const AltAz AN(-fAn*kDeg2Rad*cos(p.Az()), -fAn*kDeg2Rad*sin(p.Az())*tan(p.Alt())); 190 p -= AW; 191 p -= AN; 192 193 const AltAz CA(0, -fCa*kDeg2Rad/cos(p.Alt())); 194 p -= CA; 195 196 const AltAz NPAE(0, -fNpae*kDeg2Rad*tan(p.Alt())); 197 p -= NPAE; 198 199 const AltAz I(fIe/**kDeg2Rad*/, fIa/**kDeg2Rad*/); 200 p -= I; 145 201 146 202 return p; … … 156 212 } 157 213 214 ZdAz MBending::CorrectBack(const ZdAz &zdaz) const 215 { 216 // Correct [rad] 217 // zdaz [rad] 218 AltAz p(TMath::Pi()/2-zdaz.Zd(), zdaz.Az()); 219 AltAz c = CorrectBack(p); 220 return ZdAz(TMath::Pi()/2-c.Alt(), c.Az()); 221 } 222 158 223 void MBending::SetParameters(const Double_t *par, Int_t n=14) 159 224 {
Note:
See TracChangeset
for help on using the changeset viewer.