Changeset 2779
- Timestamp:
- 01/13/04 09:33:30 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2778 r2779 1 Please do not write behind the end of line tag so that it is possible2 to send a Changelog file to a line printer directly. Thanks.3 4 5 -*-*- END OF LINE -*-*-6 7 1 Please do not write behind the end of line tag so that it is possible 8 2 to send a Changelog file to a line printer directly. Thanks. … … 13 7 2004/01/13: Wolfgang Wittek 14 8 15 * macros/ONOFFAnalysis.C 16 ONAnalysis.C 9 * macros/ONOFFAnalysis.C, macros/ONAnalysis.C: 17 10 - change macro to handle also MC events with finite sigmabar 18 11 19 * manalysis/MPadOn.[h,cc] 12 * manalysis/MPadOn.[h,cc]: 20 13 - deleted, is replaced by MPad 21 14 22 * manalysis/MPadOnOFF.[h,cc] 15 * manalysis/MPadOnOFF.[h,cc]: 23 16 - deleted, is replaced by MPad 24 17 25 * manalysis/MPad.[h,cc] 18 * manalysis/MPad.[h,cc]: 26 19 - new class, replacing MPadON and MPadONOFF 27 20 - handle also MC events with finite sigmabar 28 21 29 * manalysis/Makefile 30 AnalysisLinkDef.h 22 * manalysis/Makefile, manalysis/AnalysisLinkDef.h: 31 23 - replace MPadON and MPadONOFF by MPad 32 33 34 35 2003/12/23: Wolfgang Wittek36 24 37 25 … … 47 35 * Changelog: 48 36 - removed entries of 2003 37 38 * mfilter/MFGeomag.cc: 39 - simplified open/close of input files 40 41 * manalysis/MEventRate.[h,cc], manalysis/MEventRateCalc.cc: 42 - added some comments 43 - added new member function GetError 49 44 50 45 … … 168 163 - added new fType in te enumeration to handle the arrival time 169 164 histos 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 -
trunk/MagicSoft/Mars/manalysis/MEventRate.cc
r2590 r2779 27 27 // MEventRate 28 28 // 29 // Storage Container for the event rate 29 // Storage Container for the event rate. 30 // 31 // rate = Number of events / time in which the events were recorded 32 // r = N / t 33 // s = t / N = 1 / r mean time interval between consecutive events 34 // 35 // for an exponential distribution of the time differences d between 36 // consecutive events: 37 // 38 // s = <d> 39 // sigma(d) = <d> = s 40 // delta(s) = sigma(d) /sqrt(N) = s / sqrt(N) 41 // delta(s) / s = 1 / sqrt(N) 42 // 43 // delta(r) / r = delta(s) / s = 1 / sqrt(N) 30 44 // 31 45 ///////////////////////////////////////////////////////////////////////////// -
trunk/MagicSoft/Mars/manalysis/MEventRate.h
r2626 r2779 17 17 void SetRate(Double_t r, UInt_t n) { fRate = r; fNumEvents = n; } 18 18 Double_t GetRate() const { return fRate; } 19 Double_t GetError() const { return TMath::Sqrt(1./fNumEvents); } 19 20 UInt_t GetNumEvents() const { return fNumEvents; } 20 21 -
trunk/MagicSoft/Mars/manalysis/MEventRateCalc.cc
r2744 r2779 30 30 // 31 31 // The algorithm is explained in Process() 32 // 33 // 34 // rate = Number of events / time in which the events were recorded 35 // r = N / t 36 // s = t / N = 1 / r mean time interval between consecutive events 37 // 38 // for an exponential distribution of the time differences d between 39 // consecutive events: 40 // 41 // s = <d> 42 // sigma(d) = <d> = s 43 // delta(s) = sigma(d) /sqrt(N) = s / sqrt(N) 44 // delta(s) / s = 1 / sqrt(N) 45 // 46 // delta(r) / r = delta(s) / s = 1 / sqrt(N) 47 // 32 48 // 33 49 // Input Containers: -
trunk/MagicSoft/Mars/mfilter/MFGeomag.cc
r2689 r2779 86 86 Float_t thet [2*1152]; 87 87 88 ifstream geomagp;89 90 88 TString filename = gSystem->Getenv("MARSSYS"); 91 89 filename += "/mfilter/gcplus.txt"; 92 90 93 geomagp.open(filename); 91 ifstream geomagp(filename); 92 94 93 if (!geomagp) { 95 94 *fLog << err <<" ERROR gcplus.txt file not found by Geomag"<<endl; … … 105 104 *fLog << Form ("FRigMin=%8f fRigMax=%8f fProb=%8f", 106 105 fRigMin[0], fRigMax[0], fProb[0]) << endl; 107 geomagp.close();108 geomagp.clear();109 110 ifstream geomagm;111 106 112 107 filename = gSystem->Getenv("MARSSYS"); 113 108 filename += "/mfilter/gcminus.txt"; 114 109 115 geomagm.open(filename);110 ifstream geomagm(filename); 116 111 if (!geomagm) { 117 112 *fLog << err <<" ERROR gcminus.txt file not found by Geomag"<<endl; … … 126 121 *fLog << Form ("fRigMin=%8f fRigMax=%8f fProb=%8f", 127 122 fRigMin[1152], fRigMax[1152], fProb[1152]) << endl; 128 geomagm.close(); 129 geomagm.clear(); 123 130 124 // 131 125 if (fMcEvt) … … 133 127 134 128 fMcEvt = (MMcEvt*)pList->FindObject("MMcEvt"); 135 if (fMcEvt) 136 return kTRUE; 137 138 *fLog << err << dbginf << " [MMcEvt] not found... aborting." << endl; 139 return kFALSE; 129 if (!fMcEvt) 130 { 131 *fLog << err << dbginf << " [MMcEvt] not found... aborting." << endl; 132 return kFALSE; 133 } 134 135 return kTRUE; 140 136 } 141 137 // --------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.