Changeset 9153 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 11/11/08 11:49:49 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mhist
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHCamEvent.cc
r8964 r9153 169 169 // Fill the histograms with data from a MCamEvent-Container. 170 170 // 171 Bool_t MHCamEvent::Fill(const MParContainer *par, const Stat_t w)171 Int_t MHCamEvent::Fill(const MParContainer *par, const Stat_t w) 172 172 { 173 173 const MCamEvent *evt = par ? dynamic_cast<const MCamEvent*>(par) : fEvt; … … 175 175 { 176 176 *fLog << err << dbginf << "Got no MCamEvent as argument of Fill()..." << endl; 177 return k FALSE;177 return kERROR; 178 178 } 179 179 if (fUseThreshold) -
trunk/MagicSoft/Mars/mhist/MHCamEvent.h
r8291 r9153 32 32 33 33 Bool_t SetupFill(const MParList *pList); 34 Bool_tFill(const MParContainer *par, const Stat_t w=1);34 Int_t Fill(const MParContainer *par, const Stat_t w=1); 35 35 36 36 public: -
trunk/MagicSoft/Mars/mhist/MHCamEventRot.cc
r8907 r9153 176 176 // Fill the histogram. For details see the code or the class description 177 177 // 178 Bool_t MHCamEventRot::Fill(const MParContainer *par, const Stat_t w)178 Int_t MHCamEventRot::Fill(const MParContainer *par, const Stat_t w) 179 179 { 180 180 const MCamEvent *evt = dynamic_cast<const MCamEvent*>(par); … … 182 182 { 183 183 *fLog << err << "MHCamEventRot::Fill: No container specified!" << endl; 184 return k FALSE;184 return kERROR; 185 185 } 186 186 -
trunk/MagicSoft/Mars/mhist/MHCamEventRot.h
r6977 r9153 49 49 50 50 Bool_t SetupFill(const MParList *pList); 51 Bool_tFill(const MParContainer *par, const Stat_t w=1);51 Int_t Fill(const MParContainer *par, const Stat_t w=1); 52 52 53 53 TH1 *GetHistByName(const TString name) const { return const_cast<TH2D*>(&fHist); } -
trunk/MagicSoft/Mars/mhist/MHEvent.cc
r9141 r9153 191 191 } 192 192 193 Bool_t MHEvent::Fill(const MParContainer *par, const Stat_t weight)193 Int_t MHEvent::Fill(const MParContainer *par, const Stat_t weight) 194 194 { 195 195 if (fHist->IsFreezed()) … … 197 197 198 198 if (!par) 199 return kFALSE; 199 { 200 *fLog << err << "ERROR - par==NULL... abort." << endl; 201 return kERROR; 202 } 200 203 201 204 const MCamEvent *event = dynamic_cast<const MCamEvent*>(par); … … 203 206 { 204 207 *fLog << err << par->GetDescriptor() << " doesn't inherit from MCamEvent... abort." << endl; 205 return k FALSE;208 return kERROR; 206 209 } 207 210 -
trunk/MagicSoft/Mars/mhist/MHEvent.h
r7297 r9153 52 52 53 53 Bool_t SetupFill(const MParList *plist); 54 Bool_tFill(const MParContainer *par, const Stat_t weight=1);54 Int_t Fill(const MParContainer *par, const Stat_t weight=1); 55 55 56 56 public: -
trunk/MagicSoft/Mars/mhist/MHHadronness.cc
r8907 r9153 200 200 // are skipped at the moment. 201 201 // 202 Bool_t MHHadronness::Fill(const MParContainer *par, const Stat_t w)202 Int_t MHHadronness::Fill(const MParContainer *par, const Stat_t w) 203 203 { 204 204 // Preliminary Workaround: FIXME! … … 206 206 { 207 207 *fLog << err << "MHHadronness::Fill: No MHadronness container specified!" << endl; 208 return k FALSE;208 return kERROR; 209 209 } 210 210 … … 214 214 215 215 if (!TMath::Finite(h)) 216 return k CONTINUE;216 return kTRUE; // Use kCONTINUE with extreme care! 217 217 218 218 const Int_t particleid = fMatrix ? (Int_t)(*fMatrix)[fMap] : fMcEvt->GetPartId(); -
trunk/MagicSoft/Mars/mhist/MHHadronness.h
r6890 r9153 49 49 50 50 Bool_t SetupFill(const MParList *plist); 51 Bool_tFill(const MParContainer *par, const Stat_t w=1);51 Int_t Fill(const MParContainer *par, const Stat_t w=1); 52 52 Bool_t Finalize(); 53 53 -
trunk/MagicSoft/Mars/mhist/MHRate.cc
r8104 r9153 145 145 // MMuonSearchPar container. 146 146 // 147 Bool_t MHRate::Fill(const MParContainer *par, const Stat_t w)147 Int_t MHRate::Fill(const MParContainer *par, const Stat_t w) 148 148 { 149 149 const MTime *t = dynamic_cast<const MTime*>(par); -
trunk/MagicSoft/Mars/mhist/MHRate.h
r7198 r9153 46 46 47 47 Bool_t SetupFill(const MParList *plist); 48 Bool_tFill(const MParContainer *par, const Stat_t w=1);48 Int_t Fill(const MParContainer *par, const Stat_t w=1); 49 49 50 50 void Draw(Option_t *opt=""); -
trunk/MagicSoft/Mars/mhist/MHStarMap.cc
r3666 r9153 189 189 // Be careful: Only call this with an object of type MHillas 190 190 // 191 Bool_t MHStarMap::Fill(const MParContainer *par, const Stat_t w)191 Int_t MHStarMap::Fill(const MParContainer *par, const Stat_t w) 192 192 { 193 193 const MHillas &h = *(MHillas*)par; -
trunk/MagicSoft/Mars/mhist/MHStarMap.h
r6977 r9153 33 33 34 34 Bool_t SetupFill(const MParList *pList); 35 Bool_tFill(const MParContainer *par, const Stat_t w=1);35 Int_t Fill(const MParContainer *par, const Stat_t w=1); 36 36 37 37 Bool_t ReInit(MParList *pList); -
trunk/MagicSoft/Mars/mhist/MHTriggerLvl0.cc
r6977 r9153 121 121 // Fill the histograms with data from a MCamEvent-Container. 122 122 // 123 Bool_t MHTriggerLvl0::Fill(const MParContainer *par, const Stat_t w)123 Int_t MHTriggerLvl0::Fill(const MParContainer *par, const Stat_t w) 124 124 { 125 125 const MCamEvent *evt = par ? dynamic_cast<const MCamEvent*>(par) : fEvt; … … 127 127 { 128 128 *fLog << err << dbginf << "Got no MCamEvent as argument of Fill()..." << endl; 129 return k FALSE;129 return kERROR; 130 130 } 131 131 -
trunk/MagicSoft/Mars/mhist/MHTriggerLvl0.h
r6977 r9153 21 21 22 22 Bool_t SetupFill(const MParList *pList); 23 Bool_tFill(const MParContainer *par, const Stat_t w=1);23 Int_t Fill(const MParContainer *par, const Stat_t w=1); 24 24 Bool_t Finalize(); 25 25 -
trunk/MagicSoft/Mars/mhist/MHWeather.cc
r8940 r9153 161 161 // MMuonSearchPar container. 162 162 // 163 Bool_t MHWeather::Fill(const MParContainer *par, const Stat_t w)163 Int_t MHWeather::Fill(const MParContainer *par, const Stat_t w) 164 164 { 165 165 const MTime *t = dynamic_cast<const MTime*>(par); -
trunk/MagicSoft/Mars/mhist/MHWeather.h
r8934 r9153 41 41 42 42 Bool_t SetupFill(const MParList *plist); 43 Bool_tFill(const MParContainer *par, const Stat_t w=1);43 Int_t Fill(const MParContainer *par, const Stat_t w=1); 44 44 45 45 // If this is needed be aware that it would be called twice in star
Note:
See TracChangeset
for help on using the changeset viewer.