Changeset 5340
- Timestamp:
- 11/04/04 21:52:46 (20 years ago)
- Location:
- trunk/MagicSoft
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5339 r5340 25 25 - Added member fMirrorFraction to keep the active fraction of the 26 26 mirror dish set in the camera simulation. Added Getter & Setter. 27 Added some comments. Update class version to 4. 28 29 * mmc/MMcRunHeader.[hxx,cxx] 30 - Removed member fTelesTheta, fTelesPhi. They make no sense since 31 telescope orientation can change from event to event in MC too. 32 Added getter and setter for fShowerThetaMin and fShowerThetaMax. 33 34 * mmontecarlo/MMcCollectionAreaCalc.[h,cc] 35 - Changed consistency check on MMcRunHeader.fTelesTheta to check 36 on fShowerThetaMin and fShowerThetaMax 37 38 * mfileio/MReadMarsFile.cc 39 - Removed obsolete check of old MC files, which needed the removed 40 data member MMcRunHeader.fTelesTheta. 27 41 28 42 2004/11/04: Nepomuk Otte -
trunk/MagicSoft/Mars/mfileio/MReadMarsFile.cc
r5160 r5340 208 208 if (mcheader) 209 209 { 210 if (mcheader->GetReflVersion()<=40 && mcheader->GetTelesTheta()>15)211 {212 *fLog << warn << "Warning - You may use Monte Carlo data produced with a version" << endl;213 *fLog << "of the reflector program < 0.4 and a zenith angle > 15," << endl;214 *fLog << "in this case you may get less photons than you would expect." << endl;215 }216 210 if (mcheader->GetCamVersion()==50) 217 211 { -
trunk/MagicSoft/Mars/mmontecarlo/MMcCollectionAreaCalc.cc
r5073 r5340 67 67 fAllEvtsTriggered = kFALSE; 68 68 fTotalNumSimulatedShowers = 0; 69 fTheta = -1.; 69 fThetaMin = -1.; 70 fThetaMax = -1.; 70 71 71 72 } … … 100 101 101 102 102 if (fTheta>=0 && fTheta!=runheader->GetTelesTheta()) 103 { 104 *fLog << warn << "Warning - Read files have different TelesTheta ("; 105 *fLog << fTheta << ", " << runheader->GetTelesTheta() << ")..." << endl; 106 } 107 fTheta = runheader->GetTelesTheta(); 103 if ( (fThetaMin >= 0 && fThetaMin != runheader->GetShowerThetaMin()) || 104 (fThetaMax >= 0 && fThetaMax != runheader->GetShowerThetaMax()) ) 105 { 106 *fLog << warn << "Warning - Read files have different Theta ranges ("; 107 *fLog << "(" << fThetaMin << ", " << fThetaMax << ") vs (" << 108 runheader->GetShowerThetaMin() << ", " << 109 runheader->GetShowerThetaMax() << ")..." << endl; 110 } 111 fThetaMin = runheader->GetShowerThetaMin(); 112 fThetaMax = runheader->GetShowerThetaMax(); 108 113 109 114 -
trunk/MagicSoft/Mars/mmontecarlo/MMcCollectionAreaCalc.h
r2250 r5340 26 26 UInt_t fCorsikaVersion; 27 27 Bool_t fAllEvtsTriggered; 28 Float_t fTheta; 28 Float_t fThetaMin; 29 Float_t fThetaMax; 29 30 30 31 Bool_t ReInit(MParList *plist); -
trunk/MagicSoft/include-Classes/MMcFormat/MMcRunHeader.cxx
r3894 r5340 60 60 // is the azimuth of the momentum vector of particles, and is measured 61 61 // from the north direction, anticlockwise (i.e, west is phi=90 degrees). 62 // When it refers to the telescope orientation, it is the azimuth of a63 // vector along the telescope axis, going from the camera to the mirror.64 // So, fTelesTheta=90, fTelesPhi = 0 means the telescope is pointing65 // horizontally towards South. For an explanation, see also TDAS 02-11.66 62 // 67 63 //////////////////////////////////////////////////////////////////////////// … … 113 109 114 110 fNumPheFromDNSB = 0.0; 115 fTelesTheta = 0.0;116 fTelesPhi = 0.0;117 111 fShowerThetaMax = 0.0; 118 112 fShowerThetaMin = 0.0; … … 171 165 const Int_t sfDeS, 172 166 const Float_t numdnsb, 173 const Float_t telestheta,174 const Float_t telesphi,175 167 const Float_t shthetamax, 176 168 const Float_t shthetamin, … … 213 205 214 206 fNumPheFromDNSB = numdnsb; 215 fTelesTheta = telestheta;216 fTelesPhi = telesphi;217 207 fShowerThetaMax = shthetamax; 218 208 fShowerThetaMin = shthetamin; -
trunk/MagicSoft/include-Classes/MMcFormat/MMcRunHeader.hxx
r3894 r5340 6 6 // // 7 7 // Version 5: removed members fSourceOffsetTheta, fSourceOffsetPhi // 8 // (were no longer used) // 9 // // 10 // Version 6: removed members fTelesTheta, fTelesPhi // 8 11 // (were no longer used) // 9 12 // // … … 48 51 49 52 Float_t fNumPheFromDNSB; // Number of phe/ns from diffuse NSB 50 51 // Telescope axis position (zenith and azimutal angle)52 Float_t fTelesTheta; // >180 (200) means that telescope is always pointing the shower.53 // Otherwise it is Theta where Telescope is pointing.54 Float_t fTelesPhi; // See class description. > 360 (400) means that telescope is always pointing the shower.55 // Otherwise it is Phi where Telescope is pointing.56 53 57 54 // Angular range used in the Corsika showers generation (degrees) … … 120 117 const Int_t sfDeS, 121 118 const Float_t numdnsb, 122 const Float_t telestheta,123 const Float_t telesphi,124 119 const Float_t shthetamax, 125 120 const Float_t shthetamin, … … 142 137 143 138 Float_t GetNumPheFromDNSB() const { return fNumPheFromDNSB; } 144 Float_t GetTelesTheta() const { return fTelesTheta; }145 139 UShort_t GetCamVersion() const { return fCamVersion; } 146 140 UShort_t GetReflVersion() const { return fReflVersion; } … … 148 142 UInt_t GetCorsikaVersion() const { return fCorsikaVersion; } 149 143 Bool_t GetAllEvtsTriggered() const { return fAllEvtsTriggered ? kTRUE : kFALSE; } 144 145 Float_t GetShowerThetaMin() const { return fShowerThetaMin; } 146 Float_t GetShowerThetaMax() const { return fShowerThetaMax; } 147 150 148 Float_t GetImpactMax() const {return fImpactMax;} 151 149 152 ClassDef(MMcRunHeader, 5) // storage container for general run info150 ClassDef(MMcRunHeader, 6) // storage container for general run info 153 151 }; 154 152 #endif
Note:
See TracChangeset
for help on using the changeset viewer.