FairRoot/PandaRoot
PndEmcMakeCorr.h
Go to the documentation of this file.
1 //--------------------------------------------------------------------------
2 // File and Version Information:
3 // $Id:$
4 //
5 // Description:
6 // Class EmcCalibration
7 // Do an energy and theta corrections
8 // (at the moment for photons, 4.02.2010)
9 //
10 // Author List:
11 // A. Biegun
12 // M. Babai
13 //------------------------------------------------------------------------
14 //#pragma once
15 #ifndef PNDEMCMAKECORR_H
16 #define PNDEMCMAKECORR_H
17 
18 #include <PndPersistencyTask.h>
19 #include "TObject.h"
20 #include "TClonesArray.h"
21 #include "TVector3.h"
22 #include <TH2.h>
23 #include <TFile.h>
24 #include <TString.h>
25 
26 
27 class TClonesArray;
28 class TObjectArray;
29 class PndEmcDigiPar;
30 class PndEmcRecoPar;
31 
32 class PndEmcCluster;
33 class PndEmcDigi;
34 
35 
37 {
38 
39  public:
40 
41  // Constructors
42  PndEmcMakeCorr(Int_t verbose=0, TString transportModel="TGeant3",TString clusterType="EmcBump");
43 
44  // Destructor
45  virtual ~PndEmcMakeCorr();
46 
48  virtual InitStatus Init();
49 
50  // Methods
51  TFile *f, *f0, *f1, *f2, *f3;
52 
53  Int_t FindTheBin(TH2* lookup_table, Float_t value_x, Float_t value_y, Int_t &bin_x, Int_t &bin_y);
54 
55  Double_t GetValueInZ(TH2 *lookup_table, Float_t value_x, Float_t value_y, Bool_t use_interpolation = kFALSE);
56 
58  virtual void Exec(Option_t* opt);
59 
60  // Modifiers
62 
63  protected:
64  Int_t fClusterIndex; // Index of cluster the bump is made in TClonesArray
65 
66  private:
68  TClonesArray* fClusterArray;
69 
71  TClonesArray* fClusterArrayCorr;
72 
77  virtual void SetParContainers();
78 
79  Int_t fVerbose;
81 
82  // Data members
83  //
84  // Target EMC
87  TH2F* hEn[4];
88  TH2F* hTh[4];
89 
90  // Shashlyk
93  TH2F* hEn5[4];
94  TH2F* hTh5[4];
95 
98 
101 
103  PndEmcMakeCorr& operator= (const PndEmcMakeCorr&) {return *this;};
104 
105 ClassDef(PndEmcMakeCorr,1)
106 };
107 #endif // PNDEMCMAKECORR_HH
TH2F * hEn5[4]
virtual InitStatus Init()
represents the reconstructed hit of one emc crystal
Definition: PndEmcDigi.h:40
Double_t val[nBoxes][nFEBox]
Definition: createCalib.C:11
PndEmcMakeCorr(Int_t verbose=0, TString transportModel="TGeant3", TString clusterType="EmcBump")
#define verbose
Bool_t fStoreClustersCorr
TString fPartName[4]
TString nameTh5[4]
PndEmcRecoPar * fRecoPar
TClonesArray * fClusterArrayCorr
TString corrFileName[4]
Double_t GetValueInZ(TH2 *lookup_table, Float_t value_x, Float_t value_y, Bool_t use_interpolation=kFALSE)
Double_t
PndEmcMakeCorr & operator=(const PndEmcMakeCorr &)
parameter set of Emc digitisation
Definition: PndEmcDigiPar.h:12
a cluster (group of neighboring crystals) of hit emc crystals
Definition: PndEmcCluster.h:29
TString nameEn5[4]
TString fClusterType
TString nameEn[4]
virtual void SetParContainers()
virtual ~PndEmcMakeCorr()
PndEmcDigiPar * fDigiPar
Int_t FindTheBin(TH2 *lookup_table, Float_t value_x, Float_t value_y, Int_t &bin_x, Int_t &bin_y)
TString nameTh[4]
void SetStorageOfData(Bool_t val)
Parameter set for Emc Reco.
Definition: PndEmcRecoPar.h:12
virtual void Exec(Option_t *opt)
TClonesArray * fClusterArray
TH2F * hTh5[4]