- Timestamp:
- 06/03/19 09:30:20 (5 years ago)
- Location:
- trunk/Mars/msim
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/msim/MHPhotonEvent.cc
r10167 r19534 69 69 // + replaced TH2D by TH2F 70 70 // 71 // Class Version 4: 72 // ---------------- 73 // + added fMaxImpact 74 // 71 75 ///////////////////////////////////////////////////////////////////////////// 72 76 #include "MHPhotonEvent.h" … … 140 144 // 141 145 MHPhotonEvent::MHPhotonEvent(Double_t max, const char *name, const char *title) 142 : fHistT("", "", 1, 0, 1, 1, 0, 1), fType(-1), fPermanentReset(kFALSE) 146 : fHistT("", "", 1, 0, 1, 1, 0, 1), fType(-1), fPermanentReset(kFALSE), fMaxImpact(25000) 143 147 { 144 148 // pre-initialization of the profile is necessary to get fZmin and fZmax set … … 159 163 // 160 164 MHPhotonEvent::MHPhotonEvent(Int_t type, const char *name, const char *title) 161 : fHistT("", "", 1, 0, 1, 1, 0, 1), fType(type), fPermanentReset(kFALSE) 165 : fHistT("", "", 1, 0, 1, 1, 0, 1), fType(type), fPermanentReset(kFALSE), fMaxImpact(25000) 162 166 { 163 167 // pre-initialization of the profile is necessary to get fZmin and fZmax set … … 195 199 { 196 200 Double_t xmax = -1; 197 Int_t num = 100; 201 Int_t num = 100; // N=100: see ReInit 198 202 199 203 const Int_t f = fPermanentReset ? 2 : 1; … … 207 211 // case0: Take a value defined by the user 208 212 case 1: 209 xmax = 25000;213 xmax = fMaxImpact; 210 214 break; 211 215 case 2: … … 296 300 } 297 301 302 if (fType==1) 303 { 304 // N=100: see SetupFill 305 MBinning *bins = (MBinning*)pList->FindObject("BinningImpact", "MBinning"); 306 if (bins) 307 SetBinningXY(100, bins->GetEdgeHi()*100); 308 } 309 298 310 /* 299 311 // What is the size of the light pool onm the ground? … … 454 466 fPermanentReset = GetEnvValue(env, prefix, "PermanentReset", fPermanentReset); 455 467 } 468 if (IsEnvDefined(env, prefix, "MaxImpact", print)) 469 { 470 rc = kTRUE; 471 fMaxImpact = GetEnvValue(env, prefix, "MaxImpact", fMaxImpact); 472 } 456 473 457 474 return rc; -
trunk/Mars/msim/MHPhotonEvent.h
r19251 r19534 29 29 Int_t fType; 30 30 Bool_t fPermanentReset; 31 Float_t fMaxImpact; 31 32 32 33 // MHPhotonEvent … … 65 66 const TProfile2D &GetHistT() const { return fHistT; } 66 67 67 ClassDef(MHPhotonEvent, 3) // Histogram to display the information of MPhotonEvents68 ClassDef(MHPhotonEvent, 4) // Histogram to display the information of MPhotonEvents 68 69 }; 69 70
Note:
See TracChangeset
for help on using the changeset viewer.