HYDRA_development_version
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
HMdcSlope Class Reference

#include <hmdcslope.h>

Inheritance diagram for HMdcSlope:
Collaboration diagram for HMdcSlope:

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)
 
- Public Member Functions inherited from HReconstructor
 HReconstructor (void)
 
 ~HReconstructor (void)
 
 HReconstructor (const Text_t *name, const Text_t *title)
 
HTasknext (Int_t &errCode)
 
HTaskgetTask (const Char_t *name)
 
Bool_t connectTask (HTask *task, Int_t n=0)
 
TObjArray getTable ()
 
void getConnections ()
 
HTaskgetComposite ()
 
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)
 
- Public Member Functions inherited from HTask
 HTask (void)
 
 HTask (const Text_t name[], const Text_t title[])
 
virtual ~HTask (void)
 
virtual Bool_t reinit (void)
 
virtual HTaskgetOwner ()
 
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...
 
HMdcCalParRawcalparraw
 iterator on raw data More...
 
Char_t * fNameRoot
 calibration parameters on raw level More...
 
Char_t * fNameNtuple
 file name of root output file More...
 
MyFloatFieldavgSlope
 file name of ntuple output file More...
 
MyFloatFieldavgSlopeErr
 
MyIntFieldnEvt
 
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
 
- Protected Attributes inherited from HReconstructor
TList * fHistograms
 
Bool_t fActive
 
TObjArray fOutputs
 
TStopwatch fTimer
 
- Protected Attributes inherited from HTask
HTaskowner
 
Bool_t manual
 
Bool_t isInitialised
 
Bool_t isConnected
 
Bool_t fIsTimed
 

Detailed Description

Definition at line 30 of file hmdcslope.h.

Member Enumeration Documentation

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.

Constructor & Destructor Documentation

HMdcSlope::HMdcSlope ( )
HMdcSlope::HMdcSlope ( const Text_t *  name,
const Text_t *  title 
)
HMdcSlope::~HMdcSlope ( )

Definition at line 126 of file hmdcslope.cc.

References avgSlope, avgSlopeErr, fNameRoot, iter, and nEvt.

Member Function Documentation

void HMdcSlope::calc ( Int_t  t0,
Int_t  t1,
Int_t  t2,
Int_t  t3,
Int_t  t4,
Int_t  t5,
Float_t  delta,
Float_t *  myslope,
Float_t *  myerror 
)
protected

Definition at line 595 of file hmdcslope.cc.

Referenced by calcSlope().

void HMdcSlope::calc5 ( Int_t  t0,
Int_t  t1,
Int_t  t2,
Int_t  t3,
Int_t  t4,
Int_t  t5,
Float_t  delta,
Float_t *  myslope,
Float_t *  myerror 
)
protected

Definition at line 779 of file hmdcslope.cc.

References debugActive.

Referenced by calcSlope().

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().

void HMdcSlope::calcCHI ( Int_t  t0,
Int_t  t1,
Int_t  t2,
Int_t  t3,
Int_t  t4,
Int_t  t5,
Float_t  delta,
Float_t *  myslope,
Float_t *  myerror 
)
protected

Definition at line 943 of file hmdcslope.cc.

References binError, and debugActive.

Referenced by calcSlope().

void HMdcSlope::calcGraph ( Int_t  t0,
Int_t  t1,
Int_t  t2,
Int_t  t3,
Int_t  t4,
Int_t  t5,
Float_t  delta,
Float_t *  myslope,
Float_t *  myerror 
)
protected

Definition at line 991 of file hmdcslope.cc.

References binError, and debugActive.

Referenced by calcSlope().

void HMdcSlope::calcSlope ( Int_t  t0,
Int_t  t1,
Int_t  t2,
Int_t  t3,
Int_t  t4,
Int_t  t5,
Float_t  delta,
Float_t *  myslope,
Float_t *  myerror,
Float_t *  chiSquare,
Int_t  nvals,
Int_t  myAlgorithm 
)
protected

Definition at line 539 of file hmdcslope.cc.

References calc(), calc5(), calcCHI(), and calcGraph().

Referenced by execute().

void HMdcSlope::fitHistogramm ( Float_t *  slope,
Float_t *  sigma,
Int_t  sector,
Int_t  module,
Int_t  motherboard,
Int_t  tdc,
Int_t  method 
)
protected

Definition at line 254 of file hmdcslope.cc.

References fitHistogrammMaxCondition(), and fitHistogrammMeanCondition().

Referenced by finalize().

void HMdcSlope::fitHistogrammMaxCondition ( Float_t *  slope,
Float_t *  sigma,
Int_t  sector,
Int_t  module,
Int_t  motherboard,
Int_t  tdc 
)
protected

Definition at line 284 of file hmdcslope.cc.

References debugActive, file, fNameRoot, and slopeTrend.

Referenced by fitHistogramm().

void HMdcSlope::fitHistogrammMeanCondition ( Float_t *  slope,
Float_t *  sigma,
Int_t  sector,
Int_t  module,
Int_t  motherboard,
Int_t  tdc 
)
protected

Definition at line 324 of file hmdcslope.cc.

References debugActive, file, fNameRoot, and slopeTrend.

Referenced by fitHistogramm().

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)
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.

Member Data Documentation

MyFloatField* HMdcSlope::avgSlope
protected

file name of ntuple output file

Definition at line 41 of file hmdcslope.h.

Referenced by finalize(), HMdcSlope(), and ~HMdcSlope().

MyFloatField* HMdcSlope::avgSlopeErr
protected

Definition at line 42 of file hmdcslope.h.

Referenced by finalize(), HMdcSlope(), and ~HMdcSlope().

Int_t HMdcSlope::binError
protected

Definition at line 59 of file hmdcslope.h.

Referenced by calcCHI(), calcGraph(), and setBinError().

Int_t HMdcSlope::calibrationAlgorithm
protected

Definition at line 51 of file hmdcslope.h.

Referenced by execute(), HMdcSlope(), selectCalibrationAlgorithm(), and selectHistFitMethod().

HMdcCalParRaw* HMdcSlope::calparraw
protected

iterator on raw data

Definition at line 36 of file hmdcslope.h.

Referenced by init().

Bool_t HMdcSlope::createNtupleActive
protected

Definition at line 65 of file hmdcslope.h.

Referenced by execute(), finalize(), HMdcSlope(), init(), and setCreateNtupleActive().

Int_t HMdcSlope::debugActive
protected
TFile* HMdcSlope::file
protected
Int_t HMdcSlope::fitHistMethod
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().

Char_t* HMdcSlope::fNameNtuple
protected

file name of root output file

Definition at line 39 of file hmdcslope.h.

Referenced by HMdcSlope(), init(), and setOutputNtuple().

Char_t* HMdcSlope::fNameRoot
protected

calibration parameters on raw level

Definition at line 38 of file hmdcslope.h.

Referenced by fitHistogrammMaxCondition(), fitHistogrammMeanCondition(), HMdcSlope(), init(), setOutputRoot(), and ~HMdcSlope().

Bool_t HMdcSlope::graphFitActive
protected

Definition at line 58 of file hmdcslope.h.

Referenced by execute(), HMdcSlope(), and setGraphFitActive().

Bool_t HMdcSlope::histFitActive
protected

Definition at line 57 of file hmdcslope.h.

Referenced by execute(), HMdcSlope(), and setHistFitActive().

TH1F* HMdcSlope::hSlope
protected

Definition at line 71 of file hmdcslope.h.

Referenced by execute(), finalize(), and init().

TH1F* HMdcSlope::hTime
protected

Definition at line 72 of file hmdcslope.h.

Referenced by execute(), finalize(), and init().

HIterator* HMdcSlope::iter
protected

pointer to the calibration's slope

Definition at line 35 of file hmdcslope.h.

Referenced by execute(), HMdcSlope(), init(), and ~HMdcSlope().

Bool_t HMdcSlope::linRegActive
protected

Definition at line 56 of file hmdcslope.h.

Referenced by execute(), HMdcSlope(), and setLinRegActive().

Int_t HMdcSlope::mbSelector
protected

Definition at line 62 of file hmdcslope.h.

Referenced by execute(), and setMbSelector().

MyIntField* HMdcSlope::nEvt
protected

Definition at line 43 of file hmdcslope.h.

Referenced by HMdcSlope(), and ~HMdcSlope().

Int_t HMdcSlope::nTimeValues
protected

Definition at line 52 of file hmdcslope.h.

Referenced by execute(), HMdcSlope(), and setnTimeValues().

TNtuple* HMdcSlope::ntuple
protected

Definition at line 67 of file hmdcslope.h.

Referenced by execute(), finalize(), and init().

TFile* HMdcSlope::ntupleOutputFile
protected

Definition at line 66 of file hmdcslope.h.

Referenced by execute(), finalize(), and init().

HCategory* HMdcSlope::rawCat
protected

Definition at line 33 of file hmdcslope.h.

Referenced by HMdcSlope(), and init().

Bool_t HMdcSlope::selectorActive
protected

Definition at line 61 of file hmdcslope.h.

Referenced by execute(), HMdcSlope(), and setSelectorActive().

HCategory* HMdcSlope::slopeCat
protected

pointer to the raw data

Definition at line 34 of file hmdcslope.h.

Referenced by execute(), HMdcSlope(), and init().

Int_t HMdcSlope::slopeTrend[6][4][16][96][5000]
protected
Int_t HMdcSlope::tdcSelector
protected

Definition at line 63 of file hmdcslope.h.

Referenced by execute(), and setTdcSelector().

Bool_t HMdcSlope::trendCalculationActive
protected

Definition at line 50 of file hmdcslope.h.

Referenced by execute(), finalize(), HMdcSlope(), init(), and setTrendCalculationActive().


The documentation for this class was generated from the following files: