Changeset 3387
- Timestamp:
- 03/03/04 10:14:48 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc
r2984 r3387 1973 1973 { 1974 1974 line.PaintLineNDC(0, -0.00, 1, -0.00); 1975 ps.SetTextAlign(23); // cent bottom 1976 ps.TextNDC(0.5, -0.005, txt); 1975 ps.SetTextAlign(11); // left top 1976 ps.TextNDC(0, -0.005, txt); 1977 ps.SetTextAlign(31); // right top 1978 ps.TextNDC(1, -0.005, "(c) 2000-2004, Thomas Bretz"); 1977 1979 } 1978 1980 -
trunk/MagicSoft/Mars/mgeom/MGeomCam.cc
r3383 r3387 66 66 : fNumPixels(0), fCamDist(0), fConvMm2Deg(0) 67 67 { 68 fName = "MGeomCam"; 69 fTitle = "Storage container for a camera geometry"; 68 70 } 69 71 … … 77 79 { 78 80 fName = name ? name : "MGeomCam"; 79 fTitle = title ? title : "Storage container for 81 fTitle = title ? title : "Storage container for a camera geometry"; 80 82 81 83 // -
trunk/MagicSoft/Mars/mgeom/MGeomMirror.cc
r2521 r3387 128 128 fReflectivity = ref; 129 129 } 130 131 TVector3 MGeomMirror::GetReflection(const TVector3 &star, Double_t dist) 132 { 133 if (fReflector==TRotation()) 134 { 135 fReflector = TRotation(); // unit matrix 136 fReflector.Rotate(TMath::Pi(), GetMirrorNorm()); 137 } 138 139 // Reflect star on the mirror (done by a rotation 140 // around the normal vector of the mirror center 141 TVector3 light(star); 142 light *= fReflector; 143 144 if (dist<0) 145 return light; 146 147 // calculate distance to the camera 148 const TVector3 &pos = GetMirrorCenter(); 149 const Double_t d = (dist - pos.Z()) / light.Z(); 150 151 return light*d + pos; 152 } -
trunk/MagicSoft/Mars/mgeom/MGeomMirror.h
r2568 r3387 10 10 #endif 11 11 12 #ifndef ROOT_T Vector313 #include <T Vector3.h>12 #ifndef ROOT_TRotation 13 #include <TRotation.h> 14 14 #endif 15 15 … … 17 17 { 18 18 private: 19 Int_t fMirrorId; // the Mirror Id19 Int_t fMirrorId; // the Mirror Id 20 20 21 Float_t fFocalDist; // [cm] focal distance of that mirror22 Float_t fSX; // [cm] curvilinear coordinate of mirror's center in X23 Float_t fSY; // [cm] curvilinear coordinate of mirror's center in Y24 Float_t fX; // [cm] x coordinate of the center of the mirror25 Float_t fY; // [cm] y coordinate of the center of the mirror26 Float_t fZ; // [cm] z coordinate of the center of the mirror27 Float_t fThetaN; // polar theta angle of the direction where the mirror points to28 Float_t fPhiN; // polar phi angle of the direction where the mirror points to29 Float_t fXN; // xn coordinate of the normal vector in the center30 Float_t fYN; // yn coordinate of the normal vector in the center31 Float_t fZN; // zn coordinate of the normal vector in the center32 // Note: fXN^2*fYN^2*fZN^2 = 133 Float_t fDeviationX; // [cm] deviation in x of the spot of a single mirror on the camera plane34 Float_t fDeviationY; // [cm] deviation in y of the spot of a single mirror on the camera plane21 Float_t fFocalDist; // [cm] focal distance of that mirror 22 Float_t fSX; // [cm] curvilinear coordinate of mirror's center in X 23 Float_t fSY; // [cm] curvilinear coordinate of mirror's center in Y 24 Float_t fX; // [cm] x coordinate of the center of the mirror 25 Float_t fY; // [cm] y coordinate of the center of the mirror 26 Float_t fZ; // [cm] z coordinate of the center of the mirror 27 Float_t fThetaN; // polar theta angle of the direction where the mirror points to 28 Float_t fPhiN; // polar phi angle of the direction where the mirror points to 29 Float_t fXN; // xn coordinate of the normal vector in the center 30 Float_t fYN; // yn coordinate of the normal vector in the center 31 Float_t fZN; // zn coordinate of the normal vector in the center 32 // Note: fXN^2*fYN^2*fZN^2 = 1 33 Float_t fDeviationX; // [cm] deviation in x of the spot of a single mirror on the camera plane 34 Float_t fDeviationY; // [cm] deviation in y of the spot of a single mirror on the camera plane 35 35 36 TArrayF fWavelength; // List of wavelength 37 TArrayF fReflectivity;// Mirror reflectivity 36 TArrayF fWavelength; // List of wavelength 37 TArrayF fReflectivity; // Mirror reflectivity 38 39 TRotation fReflector; //! Store this for acceleration 38 40 39 41 public: … … 55 57 TVector3 GetMirrorNorm() const { return TVector3(fXN, fYN, fZN); } 56 58 59 TVector3 GetReflection(const TVector3 &star, Double_t dist=-1); 60 57 61 ClassDef(MGeomMirror, 2) // geometry class describing one mirror 58 62 }; -
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r3360 r3387 465 465 if (fRuns->GetNumRuns() != fRuns->GetNumEntries()) 466 466 { 467 *fLog << err << "Number of files found doesn't m etch number of runs... abort." << endl;467 *fLog << err << "Number of files found doesn't match number of runs... abort." << endl; 468 468 return kFALSE; 469 469 } -
trunk/MagicSoft/Mars/mjobs/MJExtractSignal.cc
r3254 r3387 289 289 if (fRuns->GetNumRuns() != fRuns->GetNumEntries()) 290 290 { 291 *fLog << err << "Number of files found doesn't m etch number of runs... abort." << endl;291 *fLog << err << "Number of files found doesn't match number of runs... abort." << endl; 292 292 return kFALSE; 293 293 } … … 418 418 if (fRuns->GetNumRuns() != fRuns->GetNumEntries()) 419 419 { 420 *fLog << err << "Number of files found doesn't m etch number of runs... abort." << endl;420 *fLog << err << "Number of files found doesn't match number of runs... abort." << endl; 421 421 return kFALSE; 422 422 } … … 500 500 if (fRuns->GetNumRuns() != fRuns->GetNumEntries()) 501 501 { 502 *fLog << err << "Number of files found doesn't m etch number of runs... abort." << endl;502 *fLog << err << "Number of files found doesn't match number of runs... abort." << endl; 503 503 return kFALSE; 504 504 } -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r3359 r3387 314 314 if (fRuns->GetNumRuns() != fRuns->GetNumEntries()) 315 315 { 316 *fLog << err << "Number of files found doesn't m etch number of runs... abort." << endl;316 *fLog << err << "Number of files found doesn't match number of runs... abort." << endl; 317 317 return kFALSE; 318 318 } -
trunk/MagicSoft/Mars/mraw/MRawFileWrite.cc
r3374 r3387 179 179 // 180 180 TTree *rh = new TTree("RunHeaders", "Run headers of all runs in this file"); 181 rh->Branch("MRawRunHeader ", "MRawRunHeader", &fRawRunHeader, 32000);181 rh->Branch("MRawRunHeader.", "MRawRunHeader", &fRawRunHeader, 32000); 182 182 rh->Fill(); 183 183 //rh->Write();
Note:
See TracChangeset
for help on using the changeset viewer.