Changeset 13387 for trunk/Mars
- Timestamp:
- 04/19/12 09:53:17 (13 years ago)
- Location:
- trunk/Mars/mhist
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mhist/MHCamEvent.cc
r13002 r13387 54 54 // ---------------- 55 55 // + fNameSub 56 // + fIsRatio 56 57 // 57 58 ///////////////////////////////////////////////////////////////////////////// … … 96 97 MHCamEvent::MHCamEvent(const char *name, const char *title) 97 98 : fSum(NULL), fErr(NULL), fEvt(NULL), fSub(0), fType(0), fErrorSpread(kTRUE), fErrorRelative(kFALSE), 98 fThreshold(0), fUseThreshold(0) 99 fThreshold(0), fUseThreshold(0), fIsRatio(false) 99 100 { 100 101 Init(name, title); … … 109 110 MHCamEvent::MHCamEvent(Int_t type, const char *name, const char *title) 110 111 : fSum(NULL), fErr(NULL), fEvt(NULL), fSub(0), fType(type), fErrorSpread(kTRUE), fErrorRelative(kFALSE), 111 fThreshold(0), fUseThreshold(0) 112 fThreshold(0), fUseThreshold(0), fIsRatio(false) 112 113 { 113 114 Init(name, title); … … 226 227 case kNoBound: 227 228 if (fSub) 228 fSum->AddCamDifference(*evt, *fSub, fType); 229 { 230 if (fIsRatio) 231 fSum->AddCamRatio(*evt, *fSub, fType, w); 232 else 233 fSum->AddCamDifference(*evt, *fSub, fType, w); 234 } 229 235 else 230 236 fSum->AddCamContent(*evt, fType, w); -
trunk/Mars/mhist/MHCamEvent.h
r13002 r13387 32 32 Char_t fUseThreshold; // Use a threshold? Which direction has it? 33 33 34 Bool_t fIsRatio; // If NameSub is set: Use Ratio or difference 35 34 36 Int_t fNumReInit; //! 35 37 … … 51 53 52 54 void SetNameEvt(const TString name) { fNameEvt = name; } 53 void SetNameSub(const TString name ) { fNameSub = name;}55 void SetNameSub(const TString name, Bool_t ratio=kFALSE) { fNameSub = name; fIsRatio = ratio; } 54 56 void SetNameGeom(const TString name) { fNameGeom = name; } 55 57 void SetType(Int_t type) { fType = type; }
Note:
See TracChangeset
for help on using the changeset viewer.