Changeset 1806 for trunk/MagicSoft
- Timestamp:
- 03/03/03 10:59:22 (22 years ago)
- Location:
- trunk/MagicSoft/Cosy
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/main/MBending.cc
r1805 r1806 178 178 p += CRY; 179 179 180 const AltAz NRX(fNrx* kDeg2Rad*sin(p.Alt()), -fNrx*kDeg2Rad);181 const AltAz NRY(fNry* kDeg2Rad*cos(p.Alt()), -fNry*kDeg2Rad*tan(p.Alt()));180 const AltAz NRX(fNrx*sin(p.Alt()), -fNrx); 181 const AltAz NRY(fNry*cos(p.Alt()), -fNry*tan(p.Alt())); 182 182 p += NRX; 183 183 p += NRY; … … 186 186 p += MAGIC; 187 187 188 const AltAz AW( fAw*sin(p.Az()), -fAw* kDeg2Rad*cos(p.Az())*tan(p.Alt()));188 const AltAz AW( fAw*sin(p.Az()), -fAw*cos(p.Az())*tan(p.Alt())); 189 189 const AltAz AN(-fAn*cos(p.Az()), -fAn*sin(p.Az())*tan(p.Alt())); 190 190 p += AW; 191 191 p += AN; 192 192 193 //zd1 += 11.22; 194 //zd1 += 1.15*sin((az0+0.05)*3.1415/180); 193 // const AltAz MAGIC(-fMagic1*sin(p.Az()-fMagic2), 0); 194 // p += MAGIC; 195 195 196 196 197 const AltAz CA(0, -fCa/cos(p.Alt())); … … 212 213 AltAz p = aa; 213 214 214 const AltAz I(fIe /**kDeg2Rad*/, fIa/**kDeg2Rad*/);215 const AltAz I(fIe, fIa); 215 216 p -= I; 216 217 217 const AltAz NPAE(0, -fNpae* kDeg2Rad*tan(p.Alt()));218 const AltAz NPAE(0, -fNpae*tan(p.Alt())); 218 219 p -= NPAE; 219 220 220 const AltAz CA(0, -fCa *kDeg2Rad/cos(p.Alt()));221 const AltAz CA(0, -fCa/cos(p.Alt())); 221 222 p -= CA; 222 223 223 const AltAz AN(-fAn* kDeg2Rad*cos(p.Az()), -fAn*kDeg2Rad*sin(p.Az())*tan(p.Alt()));224 const AltAz AW( fAw* kDeg2Rad*sin(p.Az()), 0/*-fAw*kDeg2Rad*cos(p.Az())*tan(p.Alt())*/);224 const AltAz AN(-fAn*cos(p.Az()), -fAn*sin(p.Az())*tan(p.Alt())); 225 const AltAz AW( fAw*sin(p.Az()), -fAw*cos(p.Az())*tan(p.Alt())); 225 226 p -= AN; 226 227 p -= AW; 227 228 228 const AltAz NRY(fNry*kDeg2Rad*cos(p.Alt()), -fNry*kDeg2Rad*tan(p.Alt())); 229 const AltAz NRX(fNrx*kDeg2Rad*sin(p.Alt()), -fNrx*kDeg2Rad); 229 const AltAz MAGIC(-fMagic1*sin(p.Az()-fMagic2), 0); 230 p -= MAGIC; 231 232 const AltAz NRY(fNry*cos(p.Alt()), -fNry*tan(p.Alt())); 233 const AltAz NRX(fNrx*sin(p.Alt()), -fNrx); 230 234 p -= NRY; 231 235 p -= NRX; 232 236 233 const AltAz CRY(-fCry* kDeg2Rad*cos(p.Az()-p.Alt()), -fCry*kDeg2Rad*sin(p.Az()-p.Alt())/cos(p.Alt()));234 const AltAz CRX(-fCrx* kDeg2Rad*sin(p.Az()-p.Alt()), fCrx*kDeg2Rad*cos(p.Az()-p.Alt())/cos(p.Alt()));237 const AltAz CRY(-fCry*cos(p.Az()-p.Alt()), -fCry*sin(p.Az()-p.Alt())/cos(p.Alt())); 238 const AltAz CRX(-fCrx*sin(p.Az()-p.Alt()), fCrx*cos(p.Az()-p.Alt())/cos(p.Alt())); 235 239 p -= CRY; 236 240 p -= CRX; 237 241 238 const AltAz CEC(-fEcec* kDeg2Rad*cos(p.Alt()), -fAcec*kDeg2Rad*cos(p.Az()));239 const AltAz CES(-fEces* kDeg2Rad*sin(p.Alt()), -fAces*kDeg2Rad*sin(p.Az()));242 const AltAz CEC(-fEcec*cos(p.Alt()), -fAcec*cos(p.Az())); 243 const AltAz CES(-fEces*sin(p.Alt()), -fAces*sin(p.Az())); 240 244 p -= CEC; 241 245 p -= CES; -
trunk/MagicSoft/Cosy/tpoint/tpointfit.C
r1805 r1806 348 348 Int_t ierflg = 0; 349 349 350 //minuit.FixParameter(2); // NPAE351 //minuit.FixParameter(3); // CA352 //minuit.FixParameter(4); // AN353 //minuit.FixParameter(5); // AW354 minuit.FixParameter(6); // NRX355 minuit.FixParameter(7); // NRY350 // minuit.FixParameter(2); // NPAE 351 // minuit.FixParameter(3); // CA 352 // minuit.FixParameter(4); // AN 353 // minuit.FixParameter(5); // AW 354 // minuit.FixParameter(6); // NRX 355 // minuit.FixParameter(7); // NRY 356 356 minuit.FixParameter(8); // CRX 357 357 minuit.FixParameter(9); // CRY 358 //minuit.FixParameter(10); // ECES359 //minuit.FixParameter(11); // ACES360 minuit.FixParameter(12); // ECEC361 minuit.FixParameter(13); // ACEC362 // minuit.FixParameter(14); // MAGIC1358 // minuit.FixParameter(10); // ECES 359 // minuit.FixParameter(11); // ACES 360 // minuit.FixParameter(12); // ECEC 361 // minuit.FixParameter(13); // ACEC 362 // minuit.FixParameter(14); // MAGIC1 363 363 minuit.FixParameter(15); // MAGIC2 364 364
Note:
See TracChangeset
for help on using the changeset viewer.