Changeset 6977 for trunk/MagicSoft/Mars/mimage
- Timestamp:
- 04/25/05 15:30:46 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mimage
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MHHillas.cc
r6961 r6977 386 386 } 387 387 388 TH1 *MHHillas::GetHistByName(const TString name) 388 TH1 *MHHillas::GetHistByName(const TString name) const 389 389 { 390 390 if (name.Contains("Width", TString::kIgnoreCase)) -
trunk/MagicSoft/Mars/mimage/MHHillas.h
r4700 r6977 43 43 Bool_t Fill(const MParContainer *par, const Stat_t w=1); 44 44 45 TH1 *GetHistByName(const TString name); 45 TH1 *GetHistByName(const TString name) const; 46 TObject *FindObject(const TObject *obj) const { return 0; } 47 TObject *FindObject(const char *name) const 48 { 49 return (TObject*)GetHistByName(name); 50 } 46 51 47 52 TH1F *GetHistLength() { return fLength; } -
trunk/MagicSoft/Mars/mimage/MHHillasExt.cc
r6961 r6977 294 294 } 295 295 296 TH1 *MHHillasExt::GetHistByName(const TString name) 296 TH1 *MHHillasExt::GetHistByName(const TString name) const 297 297 { 298 298 if (name.Contains("Asym", TString::kIgnoreCase)) 299 return &fHAsym;300 if (name.Contains("M3L ong", TString::kIgnoreCase))301 return &fHM3Long;302 if (name.Contains("M3T rans", TString::kIgnoreCase))303 return &fHM3Trans;299 return const_cast<TH1F*>(&fHAsym); 300 if (name.Contains("M3L", TString::kIgnoreCase)) 301 return const_cast<TH1F*>(&fHM3Long); 302 if (name.Contains("M3T", TString::kIgnoreCase)) 303 return const_cast<TH1F*>(&fHM3Trans); 304 304 if (name.Contains("MaxDist", TString::kIgnoreCase)) 305 return &fHMaxDist;305 return const_cast<TH1F*>(&fHMaxDist); 306 306 307 307 return NULL; -
trunk/MagicSoft/Mars/mimage/MHHillasExt.h
r3682 r6977 37 37 Bool_t Fill(const MParContainer *par, const Stat_t w=1); 38 38 39 TH1 *GetHistByName(const TString name); 39 TH1 *GetHistByName(const TString name) const; 40 TObject *FindObject(const TObject *obj) const { return 0; } 41 TObject *FindObject(const char *name) const 42 { 43 return (TObject*)GetHistByName(name); 44 } 40 45 41 46 void Draw(Option_t *opt=NULL); -
trunk/MagicSoft/Mars/mimage/MHHillasSrc.cc
r6961 r6977 293 293 } 294 294 295 TH1 *MHHillasSrc::GetHistByName(const TString name) 295 TH1 *MHHillasSrc::GetHistByName(const TString name) const 296 296 { 297 297 if (name.Contains("Alpha", TString::kIgnoreCase)) -
trunk/MagicSoft/Mars/mimage/MHHillasSrc.h
r4817 r6977 32 32 Bool_t Fill(const MParContainer *par, const Stat_t w=1); 33 33 34 TH1 *GetHistByName(const TString name); 34 TH1 *GetHistByName(const TString name) const; 35 TObject *FindObject(const TObject *obj) const { return 0; } 36 TObject *FindObject(const char *name) const 37 { 38 return (TObject*)GetHistByName(name); 39 } 35 40 36 41 TH1F *GetHistAlpha() { return fAlpha; } -
trunk/MagicSoft/Mars/mimage/MHImagePar.cc
r6961 r6977 297 297 } 298 298 299 TH1 *MHImagePar::GetHistByName(const TString name) 299 TH1 *MHImagePar::GetHistByName(const TString name) const 300 300 { 301 301 if (name.Contains("SatHi", TString::kIgnoreCase)) 302 return &fHistSatHi;302 return const_cast<TH1F*>(&fHistSatHi); 303 303 if (name.Contains("SatLo", TString::kIgnoreCase)) 304 return &fHistSatLo;304 return const_cast<TH1F*>(&fHistSatLo); 305 305 if (name.Contains("Islands", TString::kIgnoreCase)) 306 return &fHistIslands;306 return const_cast<TH1F*>(&fHistIslands); 307 307 308 308 return NULL; -
trunk/MagicSoft/Mars/mimage/MHImagePar.h
r6489 r6977 33 33 Bool_t Fill(const MParContainer *par, const Stat_t w=1); 34 34 35 TH1 *GetHistByName(const TString name); 35 TH1 *GetHistByName(const TString name) const; 36 TObject *FindObject(const TObject *obj) const { return 0; } 37 TObject *FindObject(const char *name) const 38 { 39 return (TObject*)GetHistByName(name); 40 } 36 41 37 42 TH1F &GetHistSatHi() { return fHistSatHi; } -
trunk/MagicSoft/Mars/mimage/MHNewImagePar.cc
r6961 r6977 367 367 } 368 368 369 TH1 *MHNewImagePar::GetHistByName(const TString name) 369 TH1 *MHNewImagePar::GetHistByName(const TString name) const 370 370 { 371 371 if (name.Contains("Leakage1", TString::kIgnoreCase)) 372 return &fHistLeakage1;372 return const_cast<TH1F*>(&fHistLeakage1); 373 373 if (name.Contains("Leakage2", TString::kIgnoreCase)) 374 return &fHistLeakage2; 374 return const_cast<TH1F*>(&fHistLeakage2); 375 if (name.Contains("Conc1", TString::kIgnoreCase)) // must be first! 376 return const_cast<TH1F*>(&fHistConc1); 375 377 if (name.Contains("Conc", TString::kIgnoreCase)) 376 return &fHistConc; 377 if (name.Contains("Conc1", TString::kIgnoreCase)) 378 return &fHistConc1; 378 return const_cast<TH1F*>(&fHistConc); 379 379 if (name.Contains("UsedPix", TString::kIgnoreCase)) 380 return &fHistUsedPix;380 return const_cast<TH1F*>(&fHistUsedPix); 381 381 if (name.Contains("CorePix", TString::kIgnoreCase)) 382 return &fHistCorePix;382 return const_cast<TH1F*>(&fHistCorePix); 383 383 if (name.Contains("UsedArea", TString::kIgnoreCase)) 384 return &fHistUsedArea;384 return const_cast<TH1F*>(&fHistUsedArea); 385 385 if (name.Contains("CoreArea", TString::kIgnoreCase)) 386 return &fHistCoreArea;386 return const_cast<TH1F*>(&fHistCoreArea); 387 387 388 388 return NULL; -
trunk/MagicSoft/Mars/mimage/MHNewImagePar.h
r6869 r6977 35 35 Bool_t Fill(const MParContainer *par, const Stat_t w=1); 36 36 37 TH1 *GetHistByName(const TString name); 37 TH1 *GetHistByName(const TString name) const; 38 TObject *FindObject(const TObject *obj) const { return 0; } 39 TObject *FindObject(const char *name) const 40 { 41 return (TObject*)GetHistByName(name); 42 } 38 43 39 44 TH1F &GetHistLeakage1() { return fHistLeakage1; }
Note:
See TracChangeset
for help on using the changeset viewer.