Changeset 7147 for trunk/MagicSoft/Mars/mhflux/MHThetaSq.cc
- Timestamp:
- 06/13/05 09:41:57 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MHThetaSq.cc
r7125 r7147 34 34 // For more detailes see MHAlpha. 35 35 // 36 // Version 2: 37 // --------- 38 // + UInt_t fNumBinsSignal; 39 // + UInt_t fNumBinsTotal; 40 // 36 41 ////////////////////////////////////////////////////////////////////////////// 37 42 #include "MHThetaSq.h" … … 57 62 // 58 63 MHThetaSq::MHThetaSq(const char *name, const char *title) 59 : MHAlpha(name, title), fThetaSq(0) 64 : MHAlpha(name, title), fThetaSq(0), fNumBinsSignal(3), fNumBinsTotal(45) 60 65 { 61 66 // … … 120 125 // Calculate bining which fits alpha-cut 121 126 const Double_t intmax = fit->GetSignalIntegralMax(); 122 const UInt_t nbins = 75;123 const UInt_t nsig = 5;127 const UInt_t nbins = fNumBinsTotal; 128 const UInt_t nsig = fNumBinsSignal; 124 129 125 130 MBinning binsa(nbins, 0, nbins*intmax/nsig); … … 201 206 // fMap[4] = fMatrix->AddColumn("MTime.GetAxisTime"); 202 207 } 208 209 Int_t MHThetaSq::ReadEnv(const TEnv &env, TString prefix, Bool_t print) 210 { 211 Int_t rc = MHAlpha::ReadEnv(env, prefix, print); 212 if (rc==kERROR) 213 return kERROR; 214 215 if (IsEnvDefined(env, prefix, "NumBinsSignal", print)) 216 { 217 SetNumBinsSignal(GetEnvValue(env, prefix, "NumBinsSignal", (Int_t)fNumBinsSignal)); 218 rc = kTRUE; 219 } 220 if (IsEnvDefined(env, prefix, "NumBinsTotal", print)) 221 { 222 SetNumBinsTotal(GetEnvValue(env, prefix, "NumBinsTotal", (Int_t)fNumBinsTotal)); 223 rc = kTRUE; 224 } 225 return rc; 226 }
Note:
See TracChangeset
for help on using the changeset viewer.