Changeset 1789 for trunk/MagicSoft/Mars
- Timestamp:
- 02/24/03 12:26:32 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r1787 r1789 6 6 - Fixed mistake when analysing camera files containing all events 7 7 (including non-triggers): fShowers was always zero. 8 - Added reading of MMcTrigHeaders in ReInit 8 9 9 10 * macros/trigrate.C 10 11 - Added some explanations. Style improvements in function GetNSBEvents. 12 13 * mhist/MHMcRate.[h,cc] 14 - Added GetTriggerRate() and GetTriggerRateError() 15 - Added members fMultiplicity and fMeanThreshold, with their 16 corresponding Set and Get functions 17 - Added info on discriminator threshold and L1 trigger multiplicity 18 on the printout. 19 20 * mmc/MMcTrigHeader.hxx 21 - Added GetMultiplicity() and GetMeanThreshold() 11 22 12 23 2003/02/22: Wolfgang Wittek -
trunk/MagicSoft/Mars/mhist/MHMcRate.cc
r1783 r1789 61 61 fTriggerRate= -1.0; // Trigger rate in Hz 62 62 fTriggerRateError= -1.0; // Estimated error for the trigger rate in Hz 63 64 fMultiplicity = -1; 65 fMeanThreshold = -1.; 66 63 67 } 64 68 … … 233 237 { 234 238 *fLog << all << "Incident rate " << fShowerRate << " Hz " << endl; 239 *fLog << "Multiplicity: " << fMultiplicity << ", Discr. threshold: " << fMeanThreshold << endl; 235 240 *fLog << "Trigger Rate " << fTriggerRate << " +- " << fTriggerRateError << " Hz" << endl; 236 241 } -
trunk/MagicSoft/Mars/mhist/MHMcRate.h
r1783 r1789 38 38 Float_t fTriggerRateError; // Estimated error for the trigger rate in Hz 39 39 40 Float_t fMeanThreshold; // Mean discriminator threshold (mV) of trigger 41 // pixels. 42 43 Short_t fMultiplicity; // L1 trigger multiplicity. 44 45 40 46 void Init(const char *name, const char *title); 41 47 … … 65 71 void SetEnergyMin(Float_t Energy) {fEnergyMin=Energy;} 66 72 73 void SetMultiplicity(Short_t nMul) {fMultiplicity = nMul;} 74 void SetMeanThreshold(Float_t thresh) {fMeanThreshold = thresh;} 75 67 76 void UpdateBoundaries(Float_t energy, Float_t theta, Float_t phi, Float_t impact); 77 78 Float_t GetTriggerRate() {return fTriggerRate;} 79 Float_t GetTriggerRateError() {return fTriggerRateError;} 80 81 Short_t GetMultiplicity() {return fMultiplicity;} 82 Float_t GetMeanThreshold() {return fMeanThreshold;} 68 83 69 84 void CalcRate(Float_t trig, Float_t anal, Float_t simu); … … 78 93 79 94 #endif 95 96 97 -
trunk/MagicSoft/Mars/mmontecarlo/MMcTriggerRateCalc.cc
r1786 r1789 39 39 #include "MMcTrig.hxx" 40 40 #include "MMcRunHeader.hxx" 41 #include "MMcTrigHeader.hxx" 41 42 #include "MMcCorsikaRunHeader.h" 42 43 … … 122 123 "(5 degrees) for the original showers" << endl; 123 124 125 124 126 for (UInt_t i=0; i<fNum; i++) 125 127 { … … 136 138 GetRate(i)->SetEnergyMin(fMcCorRunHeader->GetELowLim()/1000.); 137 139 GetRate(i)->SetEnergyMax(fMcCorRunHeader->GetEUppLim()/1000.); 140 141 TString th("MMcTrigHeader;"); 142 th += i+1; 143 144 MMcTrigHeader* trighead = (MMcTrigHeader*) pList->FindObject(th); 145 GetRate(i)->SetMeanThreshold(trighead->GetMeanThreshold()); 146 GetRate(i)->SetMultiplicity(trighead->GetMultiplicity()); 138 147 139 148 }
Note:
See TracChangeset
for help on using the changeset viewer.