Changeset 3619
- Timestamp:
- 03/31/04 13:52:24 (21 years ago)
- Location:
- trunk/MagicSoft
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3617 r3619 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 22 2004/03/31: Abelardo Moralejo 23 24 * mmc/MMcConfigRunHeader.[h,cc] 25 - updated to current version (3) in camera program. Added member 26 fLightCollectionFactorOuter so that we can store the data on 27 the simulatedlight collection efficiency (light guides + 28 plexiglas +...) as a function of incidence angle for outer and 29 inner pixels independently. 20 30 21 31 2004/03/30: Markus Gaug -
trunk/MagicSoft/include-Classes/MMcFormat/MMcConfigRunHeader.cc
r2705 r3619 62 62 // 63 63 MMcConfigRunHeader::MMcConfigRunHeader(const char *name, const char *title) 64 : fNumMirrors(0), fNumPMTs(0), fIncidentTheta(181), fLight GuidesFactor(181)64 : fNumMirrors(0), fNumPMTs(0), fIncidentTheta(181), fLightCollectionFactor(181), fLightCollectionFactorOuter(181) 65 65 { 66 66 fName = name ? name : "MMcConfigRunHeader"; … … 98 98 // -------------------------------------------------------------------------- 99 99 // 100 // DESCRIPTION MISSING Please contact Oscar 101 // 102 void MMcConfigRunHeader::SetLightGuides(const TArrayF &theta, const TArrayF &factor) 100 // Set the values corresponding to the light collection efficiency due to 101 // light guides, plexiglas, double crossing, collection of 1st dynode. These 102 // are fed to the camera program via de Data/LightCollection.dat file (see 103 // camera manual) 104 // 105 void MMcConfigRunHeader::SetLightCollection(const TArrayF &theta, const TArrayF &factor, const TArrayF &factor_outer) 103 106 { 104 107 if (fIncidentTheta.GetSize() !=theta.GetSize() || 105 fLightGuidesFactor.GetSize()!=factor.GetSize()) 108 fLightCollectionFactor.GetSize()!=factor.GetSize() || 109 fLightCollectionFactorOuter.GetSize()!=factor_outer.GetSize()) 106 110 { 107 *fLog<< err << dbginf << "fIncidentTheta or fLightGuidesFactor "; 111 *fLog<< err << dbginf << "fIncidentTheta or fLightCollectionFactor"; 112 *fLog << "or fLightCollectionFactorOuter" << endl; 108 113 *fLog << "do not have size of setting arrays" << endl; 109 114 return; … … 111 116 112 117 fIncidentTheta = theta; 113 fLightGuidesFactor = factor; 118 fLightCollectionFactor = factor; 119 fLightCollectionFactorOuter = factor_outer; 114 120 } -
trunk/MagicSoft/include-Classes/MMcFormat/MMcConfigRunHeader.h
r3442 r3619 26 26 // Magic Def Parameters 27 27 Float_t fFocalDist; // [cm] Focal distance 28 Float_t fPointSpread; // [cm] Point spread function, sigma in x and y on the camera 28 Float_t fPointSpread; // [cm] Point spread function, sigma in x and y on the camera as simualted in the Reflector 29 Float_t fPointSpreadX; // [cm] Point spread function, sigma in x on the camera adding gaussian in the Camera 30 Float_t fPointSpreadY; // [cm] Point spread function, sigma in y on the camera adding gaussian in the Camera 29 31 Float_t fBlackSpot; // [cm] Radius of black spot in the mirror center 30 32 Float_t fCameraWidth; // [cm] Radius on the camera plain 31 33 // inside which the phe are kept. 34 35 Float_t fMissPointingX; // [deg] Misspointing in deg added in he Camera 36 Float_t fMissPointingY; // [deg] simulation at rho (rotation FoV) = 0. 32 37 33 38 // QE Information … … 35 40 TClonesArray *fPMTs; 36 41 37 // Light Guides Information42 // Light Collection Information (guides , plexiglas, 1st dynode) 38 43 TArrayF fIncidentTheta; // [deg] 39 TArrayF fLightGuidesFactor;// [] 44 TArrayF fLightCollectionFactor;// [] 45 TArrayF fLightCollectionFactorOuter;// [] 40 46 41 47 public: … … 45 51 void SetMagicDef(Float_t radius, Float_t focal, Float_t point, 46 52 Float_t spot, Float_t camwidth); 47 void SetLightGuides(const TArrayF &theta, const TArrayF &factor); 53 void SetLightCollection(const TArrayF &theta, const TArrayF &factor, 54 const TArrayF &factor_outer); 48 55 49 56 UInt_t GetNumMirror() const { return fNumMirrors; } … … 55 62 Float_t GetPointSpread() const { return fPointSpread; } 56 63 void SetPointSpread(Float_t x) { fPointSpread = x; } 64 65 Float_t GetPointSpreadX() const { return fPointSpreadX; } 66 void SetPointSpreadX(Float_t x) { fPointSpreadX = x; } 67 Float_t GetPointSpreadY() const { return fPointSpreadY; } 68 void SetPointSpreadY(Float_t x) { fPointSpreadY = x; } 69 70 Float_t GetMissPointingX() const {return fMissPointingX;} 71 void SetMissPointingX(Float_t x) {fMissPointingX=x;} 72 73 Float_t GetMissPointingY() const {return fMissPointingY;} 74 void SetMissPointingY(Float_t x) {fMissPointingY=x;} 57 75 58 76 void AddMirror(Int_t id) … … 69 87 MGeomMirror &GetMirror(int i) const { return *(MGeomMirror*)(fMirrors->UncheckedAt(i)); } 70 88 71 TClonesArray *GetMirrors() { return fMirrors; }72 73 89 MGeomPMT &GetPMT(int i) { return *(MGeomPMT*)(fPMTs->UncheckedAt(i)); } 74 90 MGeomPMT &GetPMT(int i) const { return *(MGeomPMT*)(fPMTs->UncheckedAt(i)); } 75 91 76 ClassDef(MMcConfigRunHeader, 2) // class for monte carlo configuration information92 ClassDef(MMcConfigRunHeader, 3) // class for monte carlo configuration information 77 93 }; 78 94
Note:
See TracChangeset
for help on using the changeset viewer.