Changeset 1992 for trunk/MagicSoft/Mars
- Timestamp:
- 04/23/03 16:45:19 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 69 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r1989 r1992 6 6 - updated dox 7 7 8 * NEWS: 9 - updated 10 11 * mfileio/MWriteRootFile.[hcc]: 12 - fixed the missing function of UPDATE files 13 14 * mhist/MFillH.[h,cc]: 15 - implemented fWeight 16 17 * mhist/MH.[h,cc], mhist/MHAlphaEnergyTheta.[h,cc], 18 mhist/MHAlphaEnergyTime.[h,cc], mhist/MHArray.[h,cc], 19 mhist/MHBlindPixels.[h,cc], mhist/MHCompProb.[h,cc], 20 mhist/MHEffOnTime.[h,cc], mhist/MHEffOnTimeTheta.[h,cc], 21 mhist/MHEffOnTimeTime.[h,cc], mhist/MHEnergyTheta.[h,cc], 22 mhist/MHFadcCam.[h,cc], mhist/MHFlux.[h,cc], 23 mhist/MHGamma.[h,cc], mhist/MHHadronness.[h,cc], 24 mhist/MHMatrix.[h,cc], mhist/MHRanForest.[h,cc], 25 mhist/MHRanForestGini.[h,cc], mhist/MHSigmaPixel.[h,cc], 26 mhist/MHSigmaTheta.[h,cc], mhist/MHSigmabarTheta.[h,cc], 27 mhist/MHStarMap.[h,cc], mhist/MHThetabarTheta.[h,cc], 28 mhist/MHThetabarTime.[h,cc], mhist/MHTimeDiffTheta.[h,cc], 29 mhist/MHTimeDiffTime.[h,cc], mhistmc/MHMcCT1CollectionArea.[h,cc], 30 mhistmc/MHMcEnergyImpact.[h,cc], mhistmc/MHMcEnergyMigration.[h,cc] 31 mhistmc/MHMcTriggerLvl2.[h,cc], mimage/MHHillas.[h,cc], 32 mimage/MHHillasExt.[h,cc], mimage/MHHillasSrc.[h,cc], 33 mimage/MHNewImagePar.[h,cc]: 34 - added second (weight) argument to Fill 35 - in some headers: removed obvious virtual 36 - removed some dummy Fill function (not necessary anymore) 37 8 38 9 39 -
trunk/MagicSoft/Mars/NEWS
r1925 r1992 45 45 46 46 - made compatible with the latest PRO version of root (3.04/02) 47 48 - added a new status display which can show the present status 49 of histograms while an eventloop is running (MStatusDisplay, 50 an example can be found at status.C) 51 52 - reorganized directories: 53 classes describing the image --> mimage 54 classes containing Monte Carlo Histograms --> mhistmc 55 56 - added (event-)weights to fill histograms 47 57 48 58 -
trunk/MagicSoft/Mars/mhist/MFillH.cc
r1966 r1992 82 82 #include "MHArray.h" 83 83 84 #include "MWeight.h" 85 84 86 #include "MParList.h" 85 87 #include "MStatusDisplay.h" … … 102 104 fIndex = NULL; 103 105 fCanvas = NULL; 106 107 fWeight = NULL; 108 fWeightName = ""; 104 109 } 105 110 … … 350 355 return kFALSE; 351 356 } 357 } 358 359 // 360 // If the user defined the use of a weight: search for it. 361 // 362 if (!fWeight && !fWeightName.IsNull()) 363 { 364 fWeight = (MWeight*)pList->FindObject(fWeightName, "MWeight"); 365 *fLog << err << fWeightName << " [MWeight] not found... aborting." << endl; 366 return kFALSE; 352 367 } 353 368 … … 442 457 */ 443 458 444 return fH->Fill(fParContainer );459 return fH->Fill(fParContainer, fWeight?fWeight->GetWeight():1); 445 460 } 446 461 -
trunk/MagicSoft/Mars/mhist/MFillH.h
r1965 r1992 9 9 class MMap; 10 10 class MData; 11 class MWeight; 11 12 class MParList; 12 13 … … 21 22 MH* fH; 22 23 TString fHName; 24 25 MWeight *fWeight; 26 TString fWeightName; 23 27 24 28 MData *fIndex; // MData object describing the 'key' to an automatic index for an MHArray … … 42 46 MFillH(MH *hist, const char *par=NULL, const char *name=NULL, const char *title=NULL); 43 47 MFillH(MH *hist, MParContainer *par, const char *name=NULL, const char *title=NULL); 44 45 48 ~MFillH(); 46 49 47 50 void SetRuleForIdx(const TString rule); 48 51 void SetRuleForIdx(MData *rule); 52 53 void SetWeight(MWeight *w) { fWeight = w; } 54 void SetWeight(const char *name) { fWeightName = name; } 49 55 50 56 Bool_t PreProcess(MParList *pList); -
trunk/MagicSoft/Mars/mhist/MH.cc
r1967 r1992 97 97 // to your class definition. 98 98 // 99 Bool_t MH::Fill(const MParContainer *par )99 Bool_t MH::Fill(const MParContainer *par, Double_t w) 100 100 { 101 101 *fLog << warn << GetDescriptor() << ": Fill not overloaded! Can't be used!" << endl; -
trunk/MagicSoft/Mars/mhist/MH.h
r1971 r1992 22 22 23 23 virtual Bool_t SetupFill(const MParList *pList) { return kTRUE; } 24 virtual Bool_t Fill(const MParContainer *par );24 virtual Bool_t Fill(const MParContainer *par, Double_t weight=1); 25 25 virtual Bool_t Finalize() { return kTRUE; } 26 26 -
trunk/MagicSoft/Mars/mhist/MHAlphaEnergyTheta.cc
r1668 r1992 110 110 // Fill the histogram 111 111 // 112 Bool_t MHAlphaEnergyTheta::Fill(const MParContainer *par )112 Bool_t MHAlphaEnergyTheta::Fill(const MParContainer *par, Double_t w) 113 113 { 114 114 MHillasSrc &hil = *(MHillasSrc*)par; -
trunk/MagicSoft/Mars/mhist/MHAlphaEnergyTheta.h
r1668 r1992 33 33 MHAlphaEnergyTheta(const char *name=NULL, const char *title=NULL); 34 34 35 virtualBool_t SetupFill(const MParList *pList);36 virtual Bool_t Fill(const MParContainer *par);35 Bool_t SetupFill(const MParList *pList); 36 Bool_t Fill(const MParContainer *par, Double_t w=1); 37 37 38 38 const TH3D *GetHist() { return &fHist; } -
trunk/MagicSoft/Mars/mhist/MHAlphaEnergyTime.cc
r1415 r1992 112 112 // Fill the histogram 113 113 // 114 Bool_t MHAlphaEnergyTime::Fill(const MParContainer *par )114 Bool_t MHAlphaEnergyTime::Fill(const MParContainer *par, Double_t w) 115 115 { 116 116 MHillasSrc &hil = *(MHillasSrc*)par; -
trunk/MagicSoft/Mars/mhist/MHAlphaEnergyTime.h
r1668 r1992 32 32 MHAlphaEnergyTime(const char *name=NULL, const char *title=NULL); 33 33 34 virtualBool_t SetupFill(const MParList *pList);35 virtual Bool_t Fill(const MParContainer *par);34 Bool_t SetupFill(const MParList *pList); 35 Bool_t Fill(const MParContainer *par, Double_t w=1); 36 36 37 37 const TH3D *GetHist() { return &fHist; } -
trunk/MagicSoft/Mars/mhist/MHArray.cc
r1895 r1992 463 463 // successfull filled. 464 464 // 465 Bool_t MHArray::Fill(const MParContainer *par )465 Bool_t MHArray::Fill(const MParContainer *par, Double_t w) 466 466 { 467 467 const Int_t n = fArray->GetSize(); -
trunk/MagicSoft/Mars/mhist/MHArray.h
r1883 r1992 41 41 void Set(const MH *hist); 42 42 43 virtualBool_t SetupFill(const MParList *pList);44 virtual Bool_t Fill(const MParContainer *par);45 virtualBool_t Finalize();43 Bool_t SetupFill(const MParList *pList); 44 Bool_t Fill(const MParContainer *par, Double_t w=1); 45 Bool_t Finalize(); 46 46 47 47 Bool_t AddHistogram(); -
trunk/MagicSoft/Mars/mhist/MHBlindPixels.cc
r1967 r1992 74 74 } 75 75 76 Bool_t MHBlindPixels::Fill(const MParContainer *par )76 Bool_t MHBlindPixels::Fill(const MParContainer *par, Double_t w) 77 77 { 78 78 if (!par) -
trunk/MagicSoft/Mars/mhist/MHBlindPixels.h
r1967 r1992 23 23 24 24 void Draw(Option_t* option = ""); 25 Bool_t Fill(const MParContainer *par );25 Bool_t Fill(const MParContainer *par, Double_t w=1); 26 26 27 27 ClassDef(MHBlindPixels, 1) // Histogram of blind pixels -
trunk/MagicSoft/Mars/mhist/MHCompProb.cc
r1336 r1992 159 159 // 160 160 // 161 Bool_t MHCompProb::Fill(const MParContainer *par )161 Bool_t MHCompProb::Fill(const MParContainer *par, Double_t w) 162 162 { 163 163 const MMcEvt &mcevt = *(MMcEvt*)par; -
trunk/MagicSoft/Mars/mhist/MHCompProb.h
r1336 r1992 29 29 30 30 Bool_t SetupFill(const MParList *plist); 31 Bool_t Fill(const MParContainer *par );31 Bool_t Fill(const MParContainer *par, Double_t w=1); 32 32 Bool_t Finalize(); 33 33 -
trunk/MagicSoft/Mars/mhist/MHEffOnTime.cc
r1669 r1992 361 361 // ------------------------------------------------------------------------- 362 362 // 363 // Dummy Fill364 //365 Bool_t MHEffOnTime::Fill(const MParContainer *par)366 {367 return kTRUE;368 }369 370 // -------------------------------------------------------------------------371 //372 363 // Draw a copy of the histogram 373 364 // -
trunk/MagicSoft/Mars/mhist/MHEffOnTime.h
r1668 r1992 32 32 MHEffOnTime(const char *varname=NULL, const char *unit=NULL); 33 33 34 virtual Bool_t SetupFill(const MParList *pList); 35 virtual Bool_t Fill(const MParContainer *par); 34 Bool_t SetupFill(const MParList *pList); 36 35 37 36 const TH1D *GetHist() { return &fHEffOn; } -
trunk/MagicSoft/Mars/mhist/MHEffOnTimeTheta.cc
r1330 r1992 257 257 // ------------------------------------------------------------------------- 258 258 // 259 // Dummy Fill260 // without it get the error message :261 // Error: MHEffOnTimeTime() no default constructor FILE:macros/wowflux.C LINE:359262 // *** Interpreter error recovered ***263 //264 Bool_t MHEffOnTimeTheta::Fill(const MParContainer *par)265 {266 return kTRUE;267 }268 // -------------------------------------------------------------------------269 //270 259 // Draw a copy of the histogram 271 260 // -
trunk/MagicSoft/Mars/mhist/MHEffOnTimeTheta.h
r1668 r1992 24 24 MHEffOnTimeTheta(const char *name=NULL, const char *title=NULL); 25 25 26 virtual Bool_t SetupFill(const MParList *pList); 27 virtual Bool_t Fill(const MParContainer *par); 26 Bool_t SetupFill(const MParList *pList); 28 27 29 28 const TH1D *GetHist() { return &fHEffOn; } -
trunk/MagicSoft/Mars/mhist/MHEffOnTimeTime.cc
r1330 r1992 264 264 // ------------------------------------------------------------------------- 265 265 // 266 // Dummy Fill267 // without it get error message :268 // Error: MHEffOnTimeTime() no default constructor FILE:macros/wowflux.C LINE:359269 //*** Interpreter error recovered ***270 Bool_t MHEffOnTimeTime::Fill(const MParContainer *par)271 {272 return kTRUE;273 }274 275 // -------------------------------------------------------------------------276 //277 266 // Draw a copy of the histogram 278 267 // -
trunk/MagicSoft/Mars/mhist/MHEffOnTimeTime.h
r1668 r1992 24 24 MHEffOnTimeTime(const char *name=NULL, const char *title=NULL); 25 25 26 virtual Bool_t SetupFill(const MParList *pList); 27 virtual Bool_t Fill(const MParContainer *par); 26 Bool_t SetupFill(const MParList *pList); 28 27 29 28 const TH1D *GetHist() { return &fHEffOn; } -
trunk/MagicSoft/Mars/mhist/MHEnergyTheta.cc
r1330 r1992 99 99 // Fill data into the histogram which contains all showers 100 100 // 101 Bool_t MHEnergyTheta::Fill(const MParContainer *par )101 Bool_t MHEnergyTheta::Fill(const MParContainer *par, Double_t w) 102 102 { 103 103 const MMcEvt &mcevt = *(MMcEvt*)par; -
trunk/MagicSoft/Mars/mhist/MHEnergyTheta.h
r1663 r1992 22 22 ~MHEnergyTheta(); 23 23 24 Bool_t Fill(const MParContainer *cont );24 Bool_t Fill(const MParContainer *cont, Double_t w=1); 25 25 26 26 void Draw(Option_t *option=""); -
trunk/MagicSoft/Mars/mhist/MHFadcCam.cc
r1916 r1992 91 91 92 92 // -------------------------------------------------------------------------- 93 Bool_t MHFadcCam::Fill(const MParContainer *par )93 Bool_t MHFadcCam::Fill(const MParContainer *par, Double_t w) 94 94 { 95 95 return Fill((MRawEvtData*)par); … … 138 138 GetHistLo(i)->Reset(); 139 139 } 140 -
trunk/MagicSoft/Mars/mhist/MHFadcCam.h
r1916 r1992 45 45 const TH1F *GetHistLo(UInt_t i) const { return (*this)[i].GetHistLo(); } 46 46 47 Bool_t Fill(const MParContainer *par );47 Bool_t Fill(const MParContainer *par, Double_t w=1); 48 48 Bool_t Fill(const MRawEvtData *par); 49 49 -
trunk/MagicSoft/Mars/mhist/MHFlux.cc
r1668 r1992 185 185 // ------------------------------------------------------------------------- 186 186 // 187 // Dummy Fill (has to be included because in base class MH Fill is set to 0188 // (abstract member function));189 // without the dummy Fill one gets the error message :190 //191 // Error: Can't call MHFlux::MHFlux(evttime,"time","[s]") in current scope192 // FILE:macros/flux.C LINE:465193 // Possible candidates are...194 // filename line:size busy function type and name (in MHFlux)195 // filename line:size busy function type and name (in MH)196 // filename line:size busy function type and name (in MParContainer)197 // filename line:size busy function type and name (in TObject)198 //199 Bool_t MHFlux::Fill(const MParContainer *par)200 {201 return kTRUE;202 }203 204 205 // -------------------------------------------------------------------------206 //207 187 // Unfold the distribution in E-est 208 188 // -
trunk/MagicSoft/Mars/mhist/MHFlux.h
r1668 r1992 50 50 MHFlux(const MHGamma &h2d, const TString varname, const TString unit); 51 51 52 Bool_t Fill(const MParContainer *par);53 54 52 void Unfold(); 55 53 void CalcFlux(const TH1D *teff, const TProfile *thetabar, -
trunk/MagicSoft/Mars/mhist/MHGamma.cc
r1669 r1992 60 60 } 61 61 62 // --------------------------------------------------------------------------63 //64 // Dummy Fill65 //66 Bool_t MHGamma::Fill(const MParContainer *par)67 {68 return kTRUE;69 }70 71 62 TH3D *MHGamma::Subtract(const MHAlphaEnergyTheta &h1, const MHAlphaEnergyTheta &h2) 72 63 { -
trunk/MagicSoft/Mars/mhist/MHGamma.h
r1668 r1992 23 23 MHGamma(const TString &name="", const TString &title=""); 24 24 25 Bool_t Fill(const MParContainer *par);26 27 25 TH3D *Subtract(const TH3D *h1, const TH3D *h2); 28 26 -
trunk/MagicSoft/Mars/mhist/MHHadronness.cc
r1968 r1992 183 183 // are skipped at the moment. 184 184 // 185 Bool_t MHHadronness::Fill(const MParContainer *par )185 Bool_t MHHadronness::Fill(const MParContainer *par, Double_t w) 186 186 { 187 187 // Preliminary Workaround: FIXME! -
trunk/MagicSoft/Mars/mhist/MHHadronness.h
r1968 r1992 45 45 46 46 Bool_t SetupFill(const MParList *plist); 47 Bool_t Fill(const MParContainer *par );47 Bool_t Fill(const MParContainer *par, Double_t w=1); 48 48 Bool_t Finalize(); 49 49 -
trunk/MagicSoft/Mars/mhist/MHMatrix.cc
r1967 r1992 227 227 // Add the values correspoding to the columns to the new row 228 228 // 229 Bool_t MHMatrix::Fill(const MParContainer *par )229 Bool_t MHMatrix::Fill(const MParContainer *par, Double_t w) 230 230 { 231 231 AddRow(); -
trunk/MagicSoft/Mars/mhist/MHMatrix.h
r1948 r1992 48 48 Bool_t SetupFill(const MParList *pList); 49 49 50 Bool_t Fill(const MParContainer *par );50 Bool_t Fill(const MParContainer *par, Double_t w=1); 51 51 Bool_t Finalize(); 52 52 -
trunk/MagicSoft/Mars/mhist/MHRanForest.cc
r1966 r1992 108 108 // 109 109 // 110 Bool_t MHRanForest::Fill(const MParContainer *par )110 Bool_t MHRanForest::Fill(const MParContainer *par, Double_t w) 111 111 { 112 112 fNumEvent++; -
trunk/MagicSoft/Mars/mhist/MHRanForest.h
r1966 r1992 33 33 34 34 Bool_t SetupFill(const MParList *plist); 35 Bool_t Fill(const MParContainer *par );35 Bool_t Fill(const MParContainer *par, Double_t w=1); 36 36 Bool_t Finalize(); 37 37 -
trunk/MagicSoft/Mars/mhist/MHRanForestGini.cc
r1966 r1992 101 101 // 102 102 // 103 Bool_t MHRanForestGini::Fill(const MParContainer *par )103 Bool_t MHRanForestGini::Fill(const MParContainer *par, Double_t w) 104 104 { 105 105 for (Int_t i=0;i<fRanForest->GetNumDim();i++) -
trunk/MagicSoft/Mars/mhist/MHRanForestGini.h
r1966 r1992 31 31 32 32 Bool_t SetupFill(const MParList *plist); 33 Bool_t Fill(const MParContainer *par );33 Bool_t Fill(const MParContainer *par, Double_t w=1); 34 34 Bool_t Finalize(); 35 35 -
trunk/MagicSoft/Mars/mhist/MHSigmaPixel.cc
r1966 r1992 107 107 // Fill the histogram 108 108 // 109 Bool_t MHSigmaPixel::Fill(const MParContainer *par )109 Bool_t MHSigmaPixel::Fill(const MParContainer *par, Double_t w) 110 110 { 111 111 const MPedestalCam &ped = *(MPedestalCam*)par; -
trunk/MagicSoft/Mars/mhist/MHSigmaPixel.h
r1966 r1992 26 26 MHSigmaPixel(const char *name=NULL, const char *title=NULL); 27 27 28 virtualBool_t SetupFill(const MParList *pList);29 virtual Bool_t Fill(const MParContainer *par);28 Bool_t SetupFill(const MParList *pList); 29 Bool_t Fill(const MParContainer *par, Double_t w=1); 30 30 31 31 const TH2D *GetHist() { return &fHist; } -
trunk/MagicSoft/Mars/mhist/MHSigmaTheta.cc
r1967 r1992 177 177 // Fill the histograms 178 178 // 179 Bool_t MHSigmaTheta::Fill(const MParContainer *par )179 Bool_t MHSigmaTheta::Fill(const MParContainer *par, Double_t w) 180 180 { 181 181 Double_t theta = fMcEvt->GetTelescopeTheta()*kRad2Deg; -
trunk/MagicSoft/Mars/mhist/MHSigmaTheta.h
r1961 r1992 44 44 45 45 Bool_t SetupFill(const MParList *plist); 46 Bool_t Fill(const MParContainer *par );46 Bool_t Fill(const MParContainer *par, Double_t w=1); 47 47 48 48 const TH2D *GetSigmaTheta() { return &fSigmaTheta; } -
trunk/MagicSoft/Mars/mhist/MHSigmabarTheta.cc
r1966 r1992 111 111 // Fill the histogram 112 112 // 113 Bool_t MHSigmabarTheta::Fill(const MParContainer *par )113 Bool_t MHSigmabarTheta::Fill(const MParContainer *par, Double_t w) 114 114 { 115 115 fHist.Fill(fMcEvt->GetTheta()*kRad2Deg, fSigmabar->GetSigmabar()); -
trunk/MagicSoft/Mars/mhist/MHSigmabarTheta.h
r1966 r1992 27 27 MHSigmabarTheta(const char *name=NULL, const char *title=NULL); 28 28 29 virtualBool_t SetupFill(const MParList *pList);30 virtual Bool_t Fill(const MParContainer *par);29 Bool_t SetupFill(const MParList *pList); 30 Bool_t Fill(const MParContainer *par, Double_t w=1); 31 31 32 32 const TH2D *GetHist() { return &fHist; } -
trunk/MagicSoft/Mars/mhist/MHStarMap.cc
r1965 r1992 146 146 // Be careful: Only call this with an object of type MHillas 147 147 // 148 Bool_t MHStarMap::Fill(const MParContainer *par )148 Bool_t MHStarMap::Fill(const MParContainer *par, Double_t w) 149 149 { 150 150 const MHillas &h = *(MHillas*)par; -
trunk/MagicSoft/Mars/mhist/MHStarMap.h
r1965 r1992 33 33 34 34 Bool_t SetupFill(const MParList *pList); 35 Bool_t Fill(const MParContainer *par );35 Bool_t Fill(const MParContainer *par, Double_t w=1); 36 36 37 37 TH1 *GetHistByName(const TString name) { return fStarMap; } -
trunk/MagicSoft/Mars/mhist/MHThetabarTheta.cc
r1966 r1992 110 110 // Fill the histogram 111 111 // 112 Bool_t MHThetabarTheta::Fill(const MParContainer *par )112 Bool_t MHThetabarTheta::Fill(const MParContainer *par, Double_t w) 113 113 { 114 114 const Double_t theta = fMcEvt->GetTelescopeTheta()*kRad2Deg; -
trunk/MagicSoft/Mars/mhist/MHThetabarTheta.h
r1966 r1992 25 25 MHThetabarTheta(const char *name=NULL, const char *title=NULL); 26 26 27 virtualBool_t SetupFill(const MParList *pList);28 virtual Bool_t Fill(const MParContainer *par);27 Bool_t SetupFill(const MParList *pList); 28 Bool_t Fill(const MParContainer *par, Double_t w=1); 29 29 30 30 const TProfile *GetHist() { return &fHist; } -
trunk/MagicSoft/Mars/mhist/MHThetabarTime.h
r1966 r1992 28 28 MHThetabarTime(const char *name=NULL, const char *title=NULL); 29 29 30 virtualBool_t SetupFill(const MParList *pList);31 virtual Bool_t Fill(const MParContainer *par);30 Bool_t SetupFill(const MParList *pList); 31 Bool_t Fill(const MParContainer *par, Double_t w=1); 32 32 33 33 const TProfile *GetHist() { return &fHist; } -
trunk/MagicSoft/Mars/mhist/MHTimeDiffTheta.cc
r1966 r1992 143 143 // Fill the histogram 144 144 // 145 Bool_t MHTimeDiffTheta::Fill(const MParContainer *par )145 Bool_t MHTimeDiffTheta::Fill(const MParContainer *par, Double_t w) 146 146 { 147 147 const Double_t time = 200e-9*fTime->GetTimeLo() + fTime->GetTimeHi(); -
trunk/MagicSoft/Mars/mhist/MHTimeDiffTheta.h
r1966 r1992 26 26 MHTimeDiffTheta(const char *name=NULL, const char *title=NULL); 27 27 28 virtualBool_t SetupFill(const MParList *pList);29 virtual Bool_t Fill(const MParContainer *par);28 Bool_t SetupFill(const MParList *pList); 29 Bool_t Fill(const MParContainer *par, Double_t w=1); 30 30 31 31 const TH2D *GetHist() { return &fHist; } -
trunk/MagicSoft/Mars/mhist/MHTimeDiffTime.cc
r1966 r1992 136 136 // Fill the histogram 137 137 // 138 Bool_t MHTimeDiffTime::Fill(const MParContainer *par )138 Bool_t MHTimeDiffTime::Fill(const MParContainer *par, Double_t w) 139 139 { 140 140 const Double_t time = 200e-9*fTime->GetTimeLo() + fTime->GetTimeHi(); -
trunk/MagicSoft/Mars/mhist/MHTimeDiffTime.h
r1966 r1992 25 25 26 26 virtual Bool_t SetupFill(const MParList *pList); 27 virtual Bool_t Fill(const MParContainer *par );27 virtual Bool_t Fill(const MParContainer *par, Double_t w=1); 28 28 29 29 const TH2D *GetHist() { return &fHist; } -
trunk/MagicSoft/Mars/mhistmc/MHMcCT1CollectionArea.cc
r1989 r1992 137 137 // Fill data into the histogram which contains the selected showers 138 138 // 139 Bool_t MHMcCT1CollectionArea::Fill(const MParContainer *par )139 Bool_t MHMcCT1CollectionArea::Fill(const MParContainer *par, Double_t w) 140 140 { 141 141 MMcEvt &mcevt = *(MMcEvt*)par; -
trunk/MagicSoft/Mars/mhistmc/MHMcCT1CollectionArea.h
r1986 r1992 19 19 ~MHMcCT1CollectionArea(); 20 20 21 virtualBool_t SetupFill(const MParList *pList);22 virtual Bool_t Fill(const MParContainer *par);21 Bool_t SetupFill(const MParList *pList); 22 Bool_t Fill(const MParContainer *par, Double_t w=1); 23 23 24 24 void DrawAll(Option_t *option=""); -
trunk/MagicSoft/Mars/mhistmc/MHMcEnergyImpact.cc
r1974 r1992 119 119 // Fill the histogram with the log10 of the energy for triggered events. 120 120 // 121 Bool_t MHMcEnergyImpact::Fill(const MParContainer *cont )121 Bool_t MHMcEnergyImpact::Fill(const MParContainer *cont, Double_t w) 122 122 { 123 123 const MMcEvt &mcevt = *(MMcEvt*)cont; -
trunk/MagicSoft/Mars/mhistmc/MHMcEnergyImpact.h
r1974 r1992 24 24 25 25 Bool_t SetupFill(const MParList *pList); 26 Bool_t Fill(const MParContainer *pcont=NULL );26 Bool_t Fill(const MParContainer *pcont=NULL, Double_t w=1); 27 27 28 28 const TH2D *GetHist() { return &fHist; } -
trunk/MagicSoft/Mars/mhistmc/MHMcEnergyMigration.cc
r1974 r1992 215 215 // Fill the histogram 216 216 // 217 Bool_t MHMcEnergyMigration::Fill(const MParContainer *par )217 Bool_t MHMcEnergyMigration::Fill(const MParContainer *par, Double_t w) 218 218 { 219 219 // MHillasSrc &hil = *(MHillasSrc*)par; -
trunk/MagicSoft/Mars/mhistmc/MHMcEnergyMigration.h
r1981 r1992 29 29 MHMcEnergyMigration(const char *name=NULL, const char *title=NULL); 30 30 31 virtualBool_t SetupFill(const MParList *pList);32 virtual Bool_t Fill(const MParContainer *par);31 Bool_t SetupFill(const MParList *pList); 32 Bool_t Fill(const MParContainer *par, Double_t w=1); 33 33 34 34 const TH3D *GetHist() { return &fHist; } -
trunk/MagicSoft/Mars/mhistmc/MHMcTriggerLvl2.cc
r1974 r1992 141 141 // Be careful: Only call this with an object of type MMcTriggerLvl2 142 142 // 143 Bool_t MHMcTriggerLvl2::Fill(const MParContainer *par )143 Bool_t MHMcTriggerLvl2::Fill(const MParContainer *par, Double_t w) 144 144 { 145 145 const MMcTriggerLvl2 &h = *(MMcTriggerLvl2 *)par; -
trunk/MagicSoft/Mars/mhistmc/MHMcTriggerLvl2.h
r1974 r1992 34 34 ~MHMcTriggerLvl2(); 35 35 36 Bool_t Fill(const MParContainer *par );36 Bool_t Fill(const MParContainer *par, Double_t w=1); 37 37 38 38 TH1 *GetHistByName(const TString name); -
trunk/MagicSoft/Mars/mimage/MHHillas.cc
r1967 r1992 255 255 // Be careful: Only call this with an object of type MHillas 256 256 // 257 Bool_t MHHillas::Fill(const MParContainer *par )257 Bool_t MHHillas::Fill(const MParContainer *par, Double_t w) 258 258 { 259 259 const MHillas &h = *(MHillas*)par; -
trunk/MagicSoft/Mars/mimage/MHHillas.h
r1965 r1992 41 41 42 42 Bool_t SetupFill(const MParList *pList); 43 Bool_t Fill(const MParContainer *par );43 Bool_t Fill(const MParContainer *par, Double_t w=1); 44 44 45 45 TH1 *GetHistByName(const TString name); -
trunk/MagicSoft/Mars/mimage/MHHillasExt.cc
r1965 r1992 165 165 // Be careful: Only call this with an object of type MHillas 166 166 // 167 Bool_t MHHillasExt::Fill(const MParContainer *par )167 Bool_t MHHillasExt::Fill(const MParContainer *par, Double_t w) 168 168 { 169 169 const MHillasSrc *src = (MHillasSrc*)par; -
trunk/MagicSoft/Mars/mimage/MHHillasExt.h
r1965 r1992 36 36 37 37 Bool_t SetupFill(const MParList *pList); 38 Bool_t Fill(const MParContainer *par );38 Bool_t Fill(const MParContainer *par, Double_t w=1); 39 39 40 40 TH1 *GetHistByName(const TString name); -
trunk/MagicSoft/Mars/mimage/MHHillasSrc.cc
r1965 r1992 134 134 // Be careful: Only call this with an object of type MHillas 135 135 // 136 Bool_t MHHillasSrc::Fill(const MParContainer *par )136 Bool_t MHHillasSrc::Fill(const MParContainer *par, Double_t w) 137 137 { 138 138 const MHillasSrc &h = *(MHillasSrc*)par; -
trunk/MagicSoft/Mars/mimage/MHHillasSrc.h
r1940 r1992 28 28 29 29 Bool_t SetupFill(const MParList *pList); 30 Bool_t Fill(const MParContainer *par );30 Bool_t Fill(const MParContainer *par, Double_t w=1); 31 31 32 32 TH1 *GetHistByName(const TString name); -
trunk/MagicSoft/Mars/mimage/MHNewImagePar.cc
r1966 r1992 85 85 // Fill the histograms with data from a MNewImagePar container. 86 86 // 87 Bool_t MHNewImagePar::Fill(const MParContainer *par )87 Bool_t MHNewImagePar::Fill(const MParContainer *par, Double_t w) 88 88 { 89 89 const MNewImagePar &h = *(MNewImagePar*)par; -
trunk/MagicSoft/Mars/mimage/MHNewImagePar.h
r1966 r1992 19 19 ~MHNewImagePar(); 20 20 21 Bool_t Fill(const MParContainer *par );21 Bool_t Fill(const MParContainer *par, Double_t w=1); 22 22 23 23 TH1 *GetHistByName(const TString name);
Note:
See TracChangeset
for help on using the changeset viewer.