StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEmcOfflineCalibrationElectronAnalysis.h
1 /*
2  * StEmcOfflineCalibrationElectronAnalysis.h
3  * J. Kevin Adkins, University of Kentucky
4  * June 24, 2014
5  */
6 
7 #ifndef STAR_ST_EMC_OFFLINE_CALIBRATION_ELECTRON_ANALYSIS
8 #define STAR_ST_EMC_OFFLINE_CALIBRATION_ELECTRON_ANALYSIS
9 
10 #ifndef StMaker_H
11 #include "StMaker.h"
12 #endif
13 
14 #include <map>
15 #include <set>
16 
17 // ROOT classes
18 class TH1D;
19 class TH2F;
20 class TF1;
21 class TFile;
22 class TChain;
23 class TString;
24 
25 // User defined classes
31 
32 // StRoot classes
33 class StEmcGeom;
34 class StEmcADCtoEMaker;
35 class StBemcTables;
36 class StEmcDecoder;
37 
39  private:
44  StEmcOfflineCalibrationTrigger *mBHT0, *mBHT1, *mBHT2;
45 
46  TFile *mFile, *mGeantFile;
47  TChain *mCalibChain;
48  TString mOutfileName, mipGainFilename, mGeantFilename;
49 
50  StEmcGeom *mEmcGeom;
51  StEmcADCtoEMaker *mEmcAdcToE;
52  StBemcTables *mBemcTables;
53  StEmcDecoder *mEmcDecoder;
54 
55  protected:
56  Double_t pi;
57  Int_t nTowers, nRings, nCrates, nSlices;
58  Int_t nGoodElectrons;
59  map <Int_t,Int_t> towersAboveTh0, towersAboveTh1, towersAboveTh2;
60  set <Int_t> includedTowers;
61  set <Int_t> excludedTowers;
62  Double_t mipGains[4800];
63  Double_t mipError[4800];
64  Double_t mipStatus[4800];
65  Int_t softId;
66  Double_t clusterEnergy;
67  Int_t towerCrate, towerSequence, ringIndex, sliceEtaIndex;
68  Float_t towerEta, towerPhi, towerTheta;
69  Double_t trackEta, trackPhi, towerTrackDr, trackEnergy, trackP;
70  Double_t geantScale;
71  Float_t maxClusterEt;
72  Int_t maxClusterId;
73 
74  TF1 *mGeantFits[20];
75  TH1D *ringHisto[40], *ringHisto_Unbiased[40], *ringHisto_HT[40];
76  TH1D *cratesliceHisto[30][20];
77 
78  public:
79  StEmcOfflineCalibrationElectronAnalysis(const char *name, const char* outfile, const char* mipFilename, const char* geantFilename, TChain *calibChain );
81  virtual Int_t Init();
82  virtual Int_t Make();
83  virtual Int_t Finish();
84 
85  // User defined functions
86  Bool_t triggerFire(StEmcOfflineCalibrationTrigger*);
87  Bool_t trackPointsToHT(const map<Int_t, Int_t>&, Int_t);
89  virtual const char *GetCVS() const {
90  static const char cvs[]="Tag $Name: $ $Id: StEmcOfflineCalibrationElectronAnalysis.h,v 1.3 2015/07/28 14:49:07 jeromel Exp $ built " __DATE__ " " __TIME__ ;
91  return cvs;
92  }
93 
94  ClassDef(StEmcOfflineCalibrationElectronAnalysis,0) //StAF chain virtual base class for Makers
95 };
96 
97 #endif //STAR_ST_EMC_OFFLINE_CALIBRATION_ELECTRON_ANALYSIS
virtual const char * GetCVS() const
Displayed on session exit, leave it as-is please ...