Changeset 7147 for trunk/MagicSoft/Mars/mhflux
- Timestamp:
- 06/13/05 09:41:57 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mhflux
- Files:
-
- 2 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 } -
trunk/MagicSoft/Mars/mhflux/MHThetaSq.h
r7125 r7147 13 13 MParameterD *fThetaSq; //! 14 14 15 UInt_t fNumBinsSignal; 16 UInt_t fNumBinsTotal; 17 15 18 Bool_t GetParameter(const MParList &pl); 16 19 Double_t GetVal() const; … … 23 26 void InitMapping(MHMatrix *mat, Int_t type=0); 24 27 28 // MParContainer 29 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE); 30 25 31 public: 26 32 MHThetaSq(const char *name=NULL, const char *title=NULL); 27 33 28 ClassDef(MHThetaSq, 1) // Theta-Plot which is fitted online 34 void SetNumBinsSignal(UInt_t n) { fNumBinsSignal=TMath::Max(n, 1U); } 35 void SetNumBinsTotal(UInt_t n) { fNumBinsTotal =TMath::Max(n, 1U); } 36 37 ClassDef(MHThetaSq, 2) // Theta-Plot which is fitted online 29 38 }; 30 39
Note:
See TracChangeset
for help on using the changeset viewer.