HYDRA_development_version
|
#include <hmdcslope.h>
Public Member Functions | |
HMdcSlope () | |
HMdcSlope (const Text_t *name, const Text_t *title) | |
~HMdcSlope () | |
Bool_t | init () |
Bool_t | finalize () |
Int_t | execute () |
Int_t | calcBinNr (Double_t, Double_t, Double_t, Int_t) |
void | setOutputRoot (Char_t *) |
void | setOutputNtuple (Char_t *) |
void | selectCalibrationAlgorithm (Int_t) |
void | selectHistFitMethod (Int_t) |
void | setBinError (Int_t) |
void | setCreateNtupleActive (Bool_t) |
void | setDebugActive (Int_t) |
void | setGraphFitActive (Bool_t) |
void | setHistFitActive (Bool_t) |
void | setLinRegActive (Bool_t) |
void | setMbSelector (Int_t) |
void | setnTimeValues (Int_t) |
void | setTrendCalculationActive (Bool_t) |
void | setSelectorActive (Bool_t) |
void | setTdcSelector (Int_t) |
![]() | |
HReconstructor (void) | |
~HReconstructor (void) | |
HReconstructor (const Text_t *name, const Text_t *title) | |
HTask * | next (Int_t &errCode) |
HTask * | getTask (const Char_t *name) |
Bool_t | connectTask (HTask *task, Int_t n=0) |
TObjArray | getTable () |
void | getConnections () |
HTask * | getComposite () |
void | setActive (Bool_t state) |
Bool_t | IsFolder (void) const |
void | Browse (TBrowser *b) |
void | isTimed (Bool_t flag=kTRUE) |
void | resetTimer (void) |
void | printTimer (void) |
![]() | |
HTask (void) | |
HTask (const Text_t name[], const Text_t title[]) | |
virtual | ~HTask (void) |
virtual Bool_t | reinit (void) |
virtual HTask * | getOwner () |
virtual void | setOwner (HTask *atask) |
virtual Bool_t | setConnections () |
void | setManual () |
Protected Types | |
enum | calibrationMethod { HMDC_SLOPE_LIN_REG_6 = 1, HMDC_SLOPE_HIST_FIT_5 = 2, HMDC_SLOPE_GRAPH_FIT_5 = 3, HMDC_SLOPE_LIN_REG_5 = 4 } |
Protected Member Functions | |
void | calc (Int_t, Int_t, Int_t, Int_t, Int_t, Int_t, Float_t, Float_t *, Float_t *) |
void | calc5 (Int_t, Int_t, Int_t, Int_t, Int_t, Int_t, Float_t, Float_t *, Float_t *) |
void | calcCHI (Int_t, Int_t, Int_t, Int_t, Int_t, Int_t, Float_t, Float_t *, Float_t *) |
void | calcGraph (Int_t, Int_t, Int_t, Int_t, Int_t, Int_t, Float_t, Float_t *, Float_t *) |
void | calcSlope (Int_t, Int_t, Int_t, Int_t, Int_t, Int_t, Float_t, Float_t *, Float_t *, Float_t *, Int_t, Int_t) |
void | fitHistogramm (Float_t *, Float_t *, Int_t, Int_t, Int_t, Int_t, Int_t) |
void | fitHistogrammMeanCondition (Float_t *, Float_t *, Int_t, Int_t, Int_t, Int_t) |
void | fitHistogrammMaxCondition (Float_t *, Float_t *, Int_t, Int_t, Int_t, Int_t) |
Protected Attributes | |
HCategory * | rawCat |
HCategory * | slopeCat |
pointer to the raw data More... | |
HIterator * | iter |
pointer to the calibration's slope More... | |
HMdcCalParRaw * | calparraw |
iterator on raw data More... | |
Char_t * | fNameRoot |
calibration parameters on raw level More... | |
Char_t * | fNameNtuple |
file name of root output file More... | |
MyFloatField * | avgSlope |
file name of ntuple output file More... | |
MyFloatField * | avgSlopeErr |
MyIntField * | nEvt |
Int_t | slopeTrend [6][4][16][96][5000] |
Bool_t | trendCalculationActive |
Int_t | calibrationAlgorithm |
Int_t | nTimeValues |
Int_t | debugActive |
Int_t | fitHistMethod |
0x00: off, 0x01: general, 0x02: init, 0x04: finalize, 0x08: execute, 0x10: calc, 0x20: fitHistogramm More... | |
Bool_t | linRegActive |
Bool_t | histFitActive |
Bool_t | graphFitActive |
Int_t | binError |
Bool_t | selectorActive |
Int_t | mbSelector |
Int_t | tdcSelector |
Bool_t | createNtupleActive |
TFile * | ntupleOutputFile |
TNtuple * | ntuple |
TFile * | file |
TH1F * | hSlope |
TH1F * | hTime |
![]() | |
TList * | fHistograms |
Bool_t | fActive |
TObjArray | fOutputs |
TStopwatch | fTimer |
![]() | |
HTask * | owner |
Bool_t | manual |
Bool_t | isInitialised |
Bool_t | isConnected |
Bool_t | fIsTimed |
Definition at line 30 of file hmdcslope.h.
|
protected |
Enumerator | |
---|---|
HMDC_SLOPE_LIN_REG_6 | |
HMDC_SLOPE_HIST_FIT_5 | |
HMDC_SLOPE_GRAPH_FIT_5 | |
HMDC_SLOPE_LIN_REG_5 |
Definition at line 74 of file hmdcslope.h.
HMdcSlope::HMdcSlope | ( | ) |
HMdcSlope::HMdcSlope | ( | const Text_t * | name, |
const Text_t * | title | ||
) |
Definition at line 92 of file hmdcslope.cc.
References avgSlope, avgSlopeErr, calibrationAlgorithm, createNtupleActive, debugActive, file, fNameNtuple, fNameRoot, graphFitActive, histFitActive, iter, linRegActive, nEvt, nTimeValues, rawCat, selectorActive, slopeCat, slopeTrend, and trendCalculationActive.
HMdcSlope::~HMdcSlope | ( | ) |
Definition at line 126 of file hmdcslope.cc.
References avgSlope, avgSlopeErr, fNameRoot, iter, and nEvt.
|
protected |
Definition at line 595 of file hmdcslope.cc.
Referenced by calcSlope().
|
protected |
Int_t HMdcSlope::calcBinNr | ( | Double_t | value, |
Double_t | min, | ||
Double_t | max, | ||
Int_t | nbins | ||
) |
Definition at line 1040 of file hmdcslope.cc.
Referenced by execute().
|
protected |
Definition at line 943 of file hmdcslope.cc.
References binError, and debugActive.
Referenced by calcSlope().
|
protected |
Definition at line 991 of file hmdcslope.cc.
References binError, and debugActive.
Referenced by calcSlope().
|
protected |
Definition at line 539 of file hmdcslope.cc.
References calc(), calc5(), calcCHI(), and calcGraph().
Referenced by execute().
|
virtual |
Implements HReconstructor.
Definition at line 1050 of file hmdcslope.cc.
References calcBinNr(), calcSlope(), calibrationAlgorithm, createNtupleActive, debugActive, file, HMdcRaw::getAddress(), Hades::getCurrentEvent(), HEventHeader::getEventSeqNumber(), HEvent::getHeader(), HMdcRaw::getTime(), HEventHeader::getTime(), gHades, graphFitActive, histFitActive, HMDC_SLOPE_NALGORITHM, hSlope, hTime, iter, linRegActive, mbSelector, nTimeValues, ntuple, ntupleOutputFile, raw, selectorActive, HMdcSlopes::setAddress(), HMdcSlopes::setError(), HMdcSlopes::setMethode(), HMdcSlopes::setSlope(), slopeCat, slopeTrend, tdcSelector, and trendCalculationActive.
|
virtual |
Implements HTask.
Definition at line 429 of file hmdcslope.cc.
References avgSlope, avgSlopeErr, createNtupleActive, file, fitHistMethod, fitHistogramm(), HSpectrometer::getDetector(), HDetector::getModule(), Hades::getSetup(), gHades, hSlope, hTime, n, ntuple, ntupleOutputFile, trendCalculationActive, and Write().
|
protected |
Definition at line 254 of file hmdcslope.cc.
References fitHistogrammMaxCondition(), and fitHistogrammMeanCondition().
Referenced by finalize().
|
protected |
Definition at line 284 of file hmdcslope.cc.
References debugActive, file, fNameRoot, and slopeTrend.
Referenced by fitHistogramm().
|
protected |
Definition at line 324 of file hmdcslope.cc.
References debugActive, file, fNameRoot, and slopeTrend.
Referenced by fitHistogramm().
|
virtual |
Implements HTask.
Definition at line 363 of file hmdcslope.cc.
References HEvent::addCategory(), HDetector::buildCategory(), calparraw, catMdc, catMdcRaw, catMdcSlope, createNtupleActive, debugActive, HReconstructor::fActive, file, fitHistMethod, fNameNtuple, fNameRoot, HEvent::getCategory(), HRuntimeDb::getContainer(), Hades::getCurrentEvent(), HSpectrometer::getDetector(), Hades::getRuntimeDb(), Hades::getSetup(), gHades, hSlope, hTime, iter, ntuple, ntupleOutputFile, rawCat, slopeCat, and trendCalculationActive.
void HMdcSlope::selectCalibrationAlgorithm | ( | Int_t | i | ) |
Definition at line 155 of file hmdcslope.cc.
References calibrationAlgorithm, and HMDC_SLOPE_NALGORITHM.
void HMdcSlope::selectHistFitMethod | ( | Int_t | i | ) |
Definition at line 165 of file hmdcslope.cc.
References calibrationAlgorithm, fitHistMethod, and HMDC_SLOPE_NFITHISTOGRAMMMETHODS.
void HMdcSlope::setBinError | ( | Int_t | i | ) |
Definition at line 200 of file hmdcslope.cc.
References binError.
void HMdcSlope::setCreateNtupleActive | ( | Bool_t | b | ) |
Definition at line 215 of file hmdcslope.cc.
References createNtupleActive.
void HMdcSlope::setDebugActive | ( | Int_t | i | ) |
Definition at line 244 of file hmdcslope.cc.
References debugActive.
void HMdcSlope::setGraphFitActive | ( | Bool_t | b | ) |
Definition at line 239 of file hmdcslope.cc.
References graphFitActive.
void HMdcSlope::setHistFitActive | ( | Bool_t | b | ) |
Definition at line 234 of file hmdcslope.cc.
References histFitActive.
void HMdcSlope::setLinRegActive | ( | Bool_t | b | ) |
Definition at line 229 of file hmdcslope.cc.
References linRegActive.
void HMdcSlope::setMbSelector | ( | Int_t | i | ) |
Definition at line 145 of file hmdcslope.cc.
References mbSelector.
void HMdcSlope::setnTimeValues | ( | Int_t | i | ) |
Definition at line 175 of file hmdcslope.cc.
References nTimeValues.
void HMdcSlope::setOutputNtuple | ( | Char_t * | c | ) |
Definition at line 221 of file hmdcslope.cc.
References fNameNtuple.
void HMdcSlope::setOutputRoot | ( | Char_t * | c | ) |
Definition at line 137 of file hmdcslope.cc.
References fNameRoot.
void HMdcSlope::setSelectorActive | ( | Bool_t | b | ) |
Definition at line 210 of file hmdcslope.cc.
References selectorActive.
void HMdcSlope::setTdcSelector | ( | Int_t | i | ) |
Definition at line 190 of file hmdcslope.cc.
References tdcSelector.
void HMdcSlope::setTrendCalculationActive | ( | Bool_t | b | ) |
Definition at line 184 of file hmdcslope.cc.
References trendCalculationActive.
|
protected |
file name of ntuple output file
Definition at line 41 of file hmdcslope.h.
Referenced by finalize(), HMdcSlope(), and ~HMdcSlope().
|
protected |
Definition at line 42 of file hmdcslope.h.
Referenced by finalize(), HMdcSlope(), and ~HMdcSlope().
|
protected |
Definition at line 59 of file hmdcslope.h.
Referenced by calcCHI(), calcGraph(), and setBinError().
|
protected |
Definition at line 51 of file hmdcslope.h.
Referenced by execute(), HMdcSlope(), selectCalibrationAlgorithm(), and selectHistFitMethod().
|
protected |
|
protected |
Definition at line 65 of file hmdcslope.h.
Referenced by execute(), finalize(), HMdcSlope(), init(), and setCreateNtupleActive().
|
protected |
Definition at line 53 of file hmdcslope.h.
Referenced by calc5(), calcCHI(), calcGraph(), execute(), fitHistogrammMaxCondition(), fitHistogrammMeanCondition(), HMdcSlope(), init(), and setDebugActive().
|
protected |
Definition at line 69 of file hmdcslope.h.
Referenced by execute(), finalize(), fitHistogrammMaxCondition(), fitHistogrammMeanCondition(), HMdcSlope(), and init().
|
protected |
0x00: off, 0x01: general, 0x02: init, 0x04: finalize, 0x08: execute, 0x10: calc, 0x20: fitHistogramm
Definition at line 54 of file hmdcslope.h.
Referenced by finalize(), init(), and selectHistFitMethod().
|
protected |
file name of root output file
Definition at line 39 of file hmdcslope.h.
Referenced by HMdcSlope(), init(), and setOutputNtuple().
|
protected |
calibration parameters on raw level
Definition at line 38 of file hmdcslope.h.
Referenced by fitHistogrammMaxCondition(), fitHistogrammMeanCondition(), HMdcSlope(), init(), setOutputRoot(), and ~HMdcSlope().
|
protected |
Definition at line 58 of file hmdcslope.h.
Referenced by execute(), HMdcSlope(), and setGraphFitActive().
|
protected |
Definition at line 57 of file hmdcslope.h.
Referenced by execute(), HMdcSlope(), and setHistFitActive().
|
protected |
Definition at line 71 of file hmdcslope.h.
Referenced by execute(), finalize(), and init().
|
protected |
Definition at line 72 of file hmdcslope.h.
Referenced by execute(), finalize(), and init().
|
protected |
pointer to the calibration's slope
Definition at line 35 of file hmdcslope.h.
Referenced by execute(), HMdcSlope(), init(), and ~HMdcSlope().
|
protected |
Definition at line 56 of file hmdcslope.h.
Referenced by execute(), HMdcSlope(), and setLinRegActive().
|
protected |
Definition at line 62 of file hmdcslope.h.
Referenced by execute(), and setMbSelector().
|
protected |
Definition at line 43 of file hmdcslope.h.
Referenced by HMdcSlope(), and ~HMdcSlope().
|
protected |
Definition at line 52 of file hmdcslope.h.
Referenced by execute(), HMdcSlope(), and setnTimeValues().
|
protected |
Definition at line 67 of file hmdcslope.h.
Referenced by execute(), finalize(), and init().
|
protected |
Definition at line 66 of file hmdcslope.h.
Referenced by execute(), finalize(), and init().
|
protected |
Definition at line 33 of file hmdcslope.h.
Referenced by HMdcSlope(), and init().
|
protected |
Definition at line 61 of file hmdcslope.h.
Referenced by execute(), HMdcSlope(), and setSelectorActive().
|
protected |
pointer to the raw data
Definition at line 34 of file hmdcslope.h.
Referenced by execute(), HMdcSlope(), and init().
|
protected |
Definition at line 48 of file hmdcslope.h.
Referenced by execute(), fitHistogrammMaxCondition(), fitHistogrammMeanCondition(), and HMdcSlope().
|
protected |
Definition at line 63 of file hmdcslope.h.
Referenced by execute(), and setTdcSelector().
|
protected |
Definition at line 50 of file hmdcslope.h.
Referenced by execute(), finalize(), HMdcSlope(), init(), and setTrendCalculationActive().