Changeset 7880 for trunk/MagicSoft/include-Classes/MMcFormat
- Timestamp:
- 08/16/06 21:19:42 (18 years ago)
- Location:
- trunk/MagicSoft/include-Classes/MMcFormat
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/include-Classes/MMcFormat/MMcConfigRunHeader.cc
r3619 r7880 29 29 // Root storage container for the MONTE CARLO CONFIGURATION information 30 30 // 31 // It saves in a root file all the infromation about values in the configuration 32 // files used in the Monte Carlo production: MagicDef (definition of the teslescope), 33 // Reflectivity.dat (mirror reflectivities), qe.dat (PMT QEs), axisdev.dat (mirrors 34 // deviations) and lightguides.dat (Effect of the Light Guides). 31 // It saves in a root file all the infromation about values in the 32 // configuration files used in the Monte Carlo production: MagicDef 33 // (definition of the teslescope), Reflectivity.dat (mirror reflectivities), 34 // qe.dat (PMT QEs), axisdev.dat (mirrors deviations) and lightguides.dat 35 // (Effect of the Light Guides). 35 36 // 36 37 // 37 // Version 2:38 // ----------- 38 // Class Version 2: 39 // ---------------- 39 40 // removed obsolete variables which are no longer used by reflector, 40 41 // nor present in the magic.def file: fFocalStdev, fPointStdev, fDevAdjust 41 42 // 43 // Class Version 3: 44 // ---------------- 45 // Added member fLightCollectionFactorOuter so that we can store 46 // the data on the simulatedlight collection efficiency (light 47 // guides + plexiglas +...) as a function of incidence angle for 48 // outer and inner pixels independently. 49 // 50 // Class Version 4: 51 // ---------------- 52 // Added member fMirrorFraction, the "active" fraction of the 53 // mirror dish, to account for reflectivity losses, missing 54 // mirrors, etc. 55 // 56 // Class Version 5: 57 // ---------------- 58 // Added member fPmtTimeJitter, the time jitter of the PMTs (sigma 59 // of gaussian) for each photoelectron. 60 // 61 // Class Version 6: 62 // ---------------- 63 // Added fParaboloidFocal 64 // 65 ///////////////////////////////////////////////////////////////////////////////// 66 42 67 // 43 68 //////////////////////////////////////////////////////////////////////////// … … 67 92 fTitle = title ? title : "Mc Configuration Information"; 68 93 69 fRadiusMirror=-1; 70 fFocalDist =-1; 71 fPointSpread =-1; 72 fBlackSpot =-1; 73 fCameraWidth =-1; 94 fRadiusMirror = -1; 95 fFocalDist = -1; 96 fPointSpread = -1; 97 fBlackSpot = -1; 98 fCameraWidth = -1; 99 fParaboloidFocal = -1; 74 100 75 101 fMirrors = new TClonesArray("MGeomMirror", 0); … … 93 119 fBlackSpot=spot; 94 120 fCameraWidth=camwidth; 95 96 121 } 97 122 -
trunk/MagicSoft/include-Classes/MMcFormat/MMcConfigRunHeader.h
r5599 r7880 16 16 class MGeomPMT; 17 17 18 //////////////////////////////////////////////////////////////////////////////////19 //20 // class MMcConfigRunHeader21 //22 // Authors: O. Blanch, A. Moralejo23 //24 // Container to keep some data on the used MC simulation parameters25 //26 // Version 3: Added member fLightCollectionFactorOuter so that we can store27 // the data on the simulatedlight collection efficiency (light28 // guides + plexiglas +...) as a function of incidence angle for29 // outer and inner pixels independently.30 //31 // Version 4: Added member fMirrorFraction, the "active" fraction of the32 // mirror dish, to account for reflectivity losses, missing33 // mirrors, etc.34 //35 // Version 5: Added member fPmtTimeJitter, the time jitter of the PMTs36 // (sigma of gaussian) for each photoelectron.37 //38 /////////////////////////////////////////////////////////////////////////////////39 40 18 class MMcConfigRunHeader : public MParContainer 41 19 { … … 51 29 // Magic Def Parameters 52 30 Float_t fFocalDist; // [cm] Focal distance 31 Float_t fParaboloidFocal; // [cm] True focal of the paraboloid on which the mirror centers are placed 53 32 Float_t fPointSpread; // [cm] Point spread function, sigma in x and y on the camera as simualted in the Reflector 54 Float_t fPointSpreadX; 55 Float_t fPointSpreadY; 33 Float_t fPointSpreadX; // [cm] Point spread function, sigma in x on the camera adding gaussian in the Camera 34 Float_t fPointSpreadY; // [cm] Point spread function, sigma in y on the camera adding gaussian in the Camera 56 35 Float_t fBlackSpot; // [cm] Radius of black spot in the mirror center 57 36 Float_t fCameraWidth; // [cm] Radius on the camera plain … … 79 58 80 59 void SetMagicDef(Float_t radius, Float_t focal, Float_t point, 81 60 Float_t spot, Float_t camwidth); 82 61 void SetLightCollection(const TArrayF &theta, const TArrayF &factor, 83 62 const TArrayF &factor_outer); … … 133 112 Float_t GetPmtTimeJitter() const { return fPmtTimeJitter; } 134 113 135 ClassDef(MMcConfigRunHeader, 5) // class for monte carlo configuration information114 ClassDef(MMcConfigRunHeader, 6) // class for monte carlo configuration information 136 115 }; 137 116 -
trunk/MagicSoft/include-Classes/MMcFormat/MMcEvt.cxx
r7094 r7880 49 49 // - moved ParticleId_t to base class MMcEvtBasic 50 50 // 51 // Version 6: 52 // - added fEventReuse 53 // 51 54 ///////////////////////////////////////////////////////////////////////////// 52 55 #include "MMcEvt.hxx" … … 58 61 59 62 using namespace std; 60 61 63 62 64 // -------------------------------------------------------------------------- … … 89 91 UInt_t uiPat, UInt_t uiPre, UInt_t uiPco, 90 92 UInt_t uiPelS, UInt_t uiPelC, Float_t elec, 91 Float_t muon, Float_t other, Float_t fadc_jitter) 93 Float_t muon, Float_t other, Float_t fadc_jitter, 94 Int_t reuse) 92 95 { 93 96 fName = "MMcEvt"; … … 98 101 fTLast, fL_Nmax, fL_t0, fL_tmax, fL_a, fL_b, fL_c, fL_chi2, 99 102 uiPin, uiPat, uiPre, uiPco, uiPelS, uiPelC, elec, muon, other, 100 fadc_jitter );103 fadc_jitter, reuse); 101 104 } 102 105 … … 128 131 fMuonCphFraction=0; 129 132 fOtherCphFraction=0; 133 134 fEventReuse = 0; 130 135 } 131 136 … … 147 152 UInt_t uiPat, UInt_t uiPre, UInt_t uiPco, 148 153 UInt_t uiPelS, UInt_t uiPelC, Float_t elec, 149 Float_t muon, Float_t other, Float_t fadc_jitter) 154 Float_t muon, Float_t other, Float_t fadc_jitter, 155 Int_t reuse) 150 156 { 151 157 // … … 193 199 194 200 fFadcTimeJitter = fadc_jitter; 201 202 fEventReuse = reuse; 195 203 } 196 204 -
trunk/MagicSoft/include-Classes/MMcFormat/MMcEvt.hxx
r7094 r7880 55 55 56 56 Float_t fFadcTimeJitter; 57 58 Int_t fEventReuse; // Number running from 0 to N-1, being N the number 59 // of times a Corsika event has been reused, by 60 // orienting the telescope in different ways or by 61 // setting it at a different location on the ground. 57 62 58 63 public: … … 63 68 Float_t, Float_t, Float_t, Float_t, Float_t, Float_t, 64 69 UInt_t, UInt_t, UInt_t, UInt_t, UInt_t, UInt_t, 65 Float_t, Float_t, Float_t, Float_t ) ;70 Float_t, Float_t, Float_t, Float_t, Int_t ireuse=0) ; 66 71 67 72 // Getter … … 107 112 Float_t, Float_t, Float_t, Float_t, Float_t, Float_t, 108 113 UInt_t, UInt_t, UInt_t, UInt_t, UInt_t, UInt_t, 109 Float_t, Float_t, Float_t, Float_t );114 Float_t, Float_t, Float_t, Float_t, Int_t ireuse=0); 110 115 111 116 // TObject … … 113 118 void Clear(Option_t *opt=NULL); 114 119 115 ClassDef(MMcEvt, 5) //Stores Montecarlo Information of one event (eg. the energy)120 ClassDef(MMcEvt, 6) //Stores Montecarlo Information of one event (eg. the energy) 116 121 }; 117 122 -
trunk/MagicSoft/include-Classes/MMcFormat/MMcEvtBasic.h
r7094 r7880 26 26 }; 27 27 28 pr ivate:28 protected: 29 29 ParticleId_t fPartId; // Type of particle 30 30 Float_t fEnergy; // [GeV] Energy … … 36 36 Float_t fTelescopeTheta; // [rad] 37 37 38 38 public: 39 39 MMcEvtBasic(); 40 40 MMcEvtBasic(ParticleId_t, Float_t, Float_t, Float_t, Float_t); -
trunk/MagicSoft/include-Classes/MMcFormat/MMcFadcHeader.hxx
r7634 r7880 1 #ifndef __MMcFadcHeader__2 #define __MMcFadcHeader__1 #ifndef MARS_MMcFadcHeader 2 #define MARS_MMcFadcHeader 3 3 4 4 #ifndef MARS_MParContainer … … 10 10 11 11 #include "MFadcDefine.h" 12 13 //14 // Version 5:15 // Added member fGainFluctuations16 //17 // Version 6:18 // Added member fNoiseGainFluctuations19 //20 // Version 7:21 // Derived class from MCamEvent22 //23 12 24 13 class MMcFadcHeader : public MParContainer, public MCamEvent { -
trunk/MagicSoft/include-Classes/MMcFormat/MMcRunHeader.cxx
r5340 r7880 53 53 // Third version: 54 54 // 55 // Byte_t fOpticLinksNoise; Flag to state if the optic noise is simualted or not 55 // Byte_t fOpticLinksNoise; Flag to state if the optic noise is simualted 56 // or not 56 57 // 57 58 // … … 61 62 // from the north direction, anticlockwise (i.e, west is phi=90 degrees). 62 63 // 64 // 65 // Class Version 5: 66 // ---------------- 67 // removed members fSourceOffsetTheta, fSourceOffsetPhi (were no longer used) // 68 // 69 // Class Version 6: 70 // ---------------- 71 // removed members fTelesTheta, fTelesPhi (were no longer used) // 72 // 73 // Class Version 7: 74 // ---------------- 75 // + Float_t fRandomPointingConeSemiAngle; 76 // 63 77 //////////////////////////////////////////////////////////////////////////// 64 65 78 #include "MMcRunHeader.hxx" 66 79 … … 128 141 fOpticLinksNoise= 0; 129 142 130 } 131 132 // -------------------------------------------------------------------------- 133 // 134 // Destructor. 135 // 136 MMcRunHeader::~MMcRunHeader() 137 { 138 143 fRandomPointingConeSemiAngle=0; 139 144 } 140 145 … … 178 183 const UInt_t refl, 179 184 const UInt_t cam, 180 const Byte_t opticnoise) 185 const Byte_t opticnoise, 186 const Float_t conesmiangle) 181 187 { 182 188 fMcRunNumber =runnumber; … … 225 231 fCamVersion = cam; 226 232 fOpticLinksNoise= opticnoise; 233 234 fRandomPointingConeSemiAngle=conesmiangle; 227 235 } 228 236 -
trunk/MagicSoft/include-Classes/MMcFormat/MMcRunHeader.hxx
r7745 r7880 1 1 #ifndef MARS_MMcRunHeader 2 2 #define MARS_MMcRunHeader 3 ///////////////////////////////////////////////////////////////////////4 // //5 // MMcRunHeader //6 // //7 // Version 5: removed members fSourceOffsetTheta, fSourceOffsetPhi //8 // (were no longer used) //9 // //10 // Version 6: removed members fTelesTheta, fTelesPhi //11 // (were no longer used) //12 // //13 ///////////////////////////////////////////////////////////////////////14 3 15 4 #ifndef MARS_MParContainer … … 65 54 UShort_t fCamVersion; 66 55 67 / * ---- Run Header Informations ---- */56 // ---- Run Header Informations ---- 68 57 Float_t fMcRunNumber; // Run Number 69 58 UInt_t fProductionSite; // code to know where the run was generated … … 91 80 Byte_t fOpticLinksNoise; // Noise from Optic Links simualted or not. 92 81 82 // Semiaperture of the cone around the direction of the primary within which the 83 // orientation of the telescope axis is scattered (deg). This is used in reflector 84 // simulation to re-use each Corsika event more than once. 85 Float_t fRandomPointingConeSemiAngle; 86 87 93 88 public: 94 89 MMcRunHeader(const char *name=NULL, const char *title=NULL); 95 ~MMcRunHeader();96 90 97 91 void Fill(const Float_t runnumber, … … 127 121 const UInt_t num0bslev, 128 122 const Float_t heightlev[10], 129 const UInt_t corsika, 123 const UInt_t corsika, 130 124 const UInt_t refl, 131 125 const UInt_t cam, 132 const Byte_t opticnoise 126 const Byte_t opticnoise, 127 const Float_t conesmiangle=0 133 128 ); 134 129 … … 151 146 Float_t GetImpactMax() const {return fImpactMax;} 152 147 153 ClassDef(MMcRunHeader, 6) // storage container for general run info148 ClassDef(MMcRunHeader, 7) // storage container for general run info 154 149 }; 150 155 151 #endif 156 157 -
trunk/MagicSoft/include-Classes/MMcFormat/MMcTrig.hxx
r7772 r7880 1 #ifndef __MMcTrig__2 #define __MMcTrig__1 #ifndef MARS_MMcTrig 2 #define MARS_MMcTrig 3 3 4 4 #ifndef MARS_MParContainer 5 5 #include "MParContainer.h" 6 6 #endif 7 7 #ifndef MARS_MTriggerDefine 8 8 #include "MTriggerDefine.h" 9 #endif 10 #ifndef MARS_Mdefine 9 11 #include "Mdefine.h" 12 #endif 10 13 11 14 class MMcTrig : public MParContainer { -
trunk/MagicSoft/include-Classes/MMcFormat/MMcTrigHeader.cxx
r2173 r7880 23 23 // the amplitude of the single phe response 24 24 // for the trigger 25 // 26 // Version 4 27 // Added data members fGainFluctuations and fNoiseGainFluctuations 28 // 25 29 // 26 30 ///////////////////////// … … 54 58 } 55 59 56 MMcTrigHeader::~MMcTrigHeader() {57 //58 // default destructor59 //60 }61 62 63 60 void MMcTrigHeader::Print(Option_t *opt) const { 64 61 // -
trunk/MagicSoft/include-Classes/MMcFormat/MMcTrigHeader.hxx
r7772 r7880 1 #ifndef __MMcTrigHeader__2 #define __MMcTrigHeader__1 #ifndef MARS_MMcTrigHeader 2 #define MARS_MMcTrigHeader 3 3 4 4 #ifndef MARS_MParContainer 5 5 #include "MParContainer.h" 6 6 #endif 7 7 #ifndef MARS_MTriggerDefine 8 8 #include "MTriggerDefine.h" 9 #endif 10 #ifndef MARS_Mdefine 9 11 #include "Mdefine.h" 10 11 // 12 // Version 4 13 // Added data members fGainFluctuations and fNoiseGainFluctuations 14 // 12 #endif 15 13 16 14 class MMcTrigHeader : public MParContainer{ … … 48 46 public: 49 47 MMcTrigHeader() ; 50 51 ~MMcTrigHeader();52 48 53 49 void Print(Option_t *opt=NULL) const; -
trunk/MagicSoft/include-Classes/MMcFormat/MTriggerDefine.h
r7188 r7880 1 #ifndef MARS_MTriggerDefine 2 #define MARS_MTriggerDefine 1 3 // 2 4 // … … 110 112 // 2 means trigger_multi closed neighbours 111 113 // 114 #endif -
trunk/MagicSoft/include-Classes/MMcFormat/Mdefine.h
r7772 r7880 1 #ifndef MARS_Mdefine 2 #define MARS_Mdefine 1 3 // 2 4 // Mdefine.h … … 37 39 #define MAX_PH_EL 500 //upper limit for colortable 38 40 41 #endif
Note:
See TracChangeset
for help on using the changeset viewer.