Changeset 12922 for trunk/Mars


Ignore:
Timestamp:
02/22/12 19:04:04 (13 years ago)
Author:
tbretz
Message:
Added a possibility to histogram the deviation from a median or mean value event per event.
Location:
trunk/Mars/mhist
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mhist/MHCamEvent.cc

    r11569 r12922  
    225225        break;
    226226
     227    case kMeanShift:
     228        fSum->AddMeanShift(*evt, fType);
     229        break;
     230
     231    case kMedianShift:
     232        fSum->AddMedianShift(*evt, fType);
     233        break;
     234
    227235    default:
    228236        *fLog << err << "ERROR - MHCamEvent::Fill: Unknown type." << endl;
  • trunk/Mars/mhist/MHCamEvent.h

    r9312 r12922  
    4242
    4343public:
    44     enum { kIsLowerBound=1, kIsUpperBound=-1, kNoBound=0, kCollectMin=-2, kCollectMax=2 };
     44    enum { kIsLowerBound=1, kIsUpperBound=-1, kNoBound=0, kCollectMin=-2, kCollectMax=2, kMedianShift=3, kMeanShift=4 };
    4545
    4646    MHCamEvent(const char *name=NULL, const char *title=NULL);
     
    6666    void SetCollectMin() { fUseThreshold=kCollectMin; }
    6767    void SetCollectMax() { fUseThreshold=kCollectMax; }
     68    void SetMedianShift() { fUseThreshold=kMedianShift; }
     69    void SetMeanShift() { fUseThreshold=kMeanShift; }
    6870    void SetErrorSpread(Bool_t b=kTRUE) { fErrorSpread = b; }
    6971    void SetErrorRelative(Bool_t b=kTRUE) { fErrorRelative = b; }
Note: See TracChangeset for help on using the changeset viewer.