FairRoot/PandaRoot
PndEmcDigiCalibrator.h
Go to the documentation of this file.
1 //--------------------------------------------------------------------------
2 // Description:
3 // Class PndEmcDigiCalibrator
4 // Do an energy and position corrections for EMC cluster
5 // PndEmcDigiCalibrator is a factory which call specific method depending on the input parameter "method"
6 // method=1 - PndEmcClusterHistCalibrator is called, which perform correction from the interpolation on 2-dimensional histogram on (Energy, theta)
7 // method=2 - PndEmcClusterSimpleCalibrator is called, where energy correction is parametrised as a function of (Energy, theta)
8 // PndEmcAbsClusterCalibrator - abstract interface class
9 //
10 // Author List:
11 // D.Melnychuk
12 // PndEmcClusterHistCalibrator class is based on code PndEmcMakeCorr.cxx
13 // (A. Biegun, M. Babai)
14 // PndEmcClusterSimpleCalibrator class is based on EmcPhotonSimpleCalib class in Babar framework (Jan Zhong)
15 //------------------------------------------------------------------------
16 //#pragma once
17 #ifndef PNDEMCDIGICALIBRATOR_H
18 #define PNDEMCDIGICALIBRATOR_H
19 
20 #include "TObject.h"
21 #include "TVectorD.h"
22 #include <TFile.h>
23 #include <TString.h>
24 #include <cstdlib>
25 
26 class PndEmcDigi;
27 class PndEmcBump;
28 
30 {
31 
32  public:
33 
34  // Constructors
36  // Destructor
37  virtual ~PndEmcDigiCalibrator();
38 
39  Double_t CalibrationEvtTimeByDigi(PndEmcDigi* theDigi, bool PrintOut=kFALSE) const;
40  Double_t CalibrationEvtTimeByBump(PndEmcBump* theBump, bool PrintOut=kFALSE) const;
41 
44  private:
45 
46  Int_t GetIdxByEnergy(Double_t energy) const;
47  Int_t GetIdxByEnergyForBump(Double_t energy) const;
48 
51 
52  static Double_t fTimeWindowOfDigi[5][17];
54 
55  TVectorD CoeffMod3;
56  TVectorD CoeffMod5;
57  TVectorD CoeffModo;
58 
59  TVectorD CoeffMod3A;
60  TVectorD CoeffMod5A;
61  TVectorD CoeffModoA;
62 
63  TVectorD CoeffMod3B;
64  TVectorD CoeffMod5B;
65  TVectorD CoeffModoB;
66 };
67 #endif // PndEmcDigiCalibrator_HH
represents the reconstructed hit of one emc crystal
Definition: PndEmcDigi.h:40
Double_t CalibrationEvtTimeByDigi(PndEmcDigi *theDigi, bool PrintOut=kFALSE) const
static Double_t fTimeWindowOfShower[5][20]
Double_t GetTimeResolutionOfShower(PndEmcBump *theBump) const
static Double_t fTimeWindowOfDigi[5][17]
Double_t
Int_t GetIdxByEnergy(Double_t energy) const
Double_t CalibrationEvtTimeByBump(PndEmcBump *theBump, bool PrintOut=kFALSE) const
PndEmcDigiCalibrator & operator=(const PndEmcDigiCalibrator &)
Double_t GetTimeResolutionOfDigi(PndEmcDigi *theDigi) const
represents a reconstructed (splitted) emc cluster
Definition: PndEmcBump.h:34
Int_t GetIdxByEnergyForBump(Double_t energy) const
Double_t energy
Definition: plot_dirc.C:15