ATLAS Offline Software
CaloHadDMCoeffData.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef CALOLOCALHADCALIB_CALOHADDMCOEFFDATA_H
6 #define CALOLOCALHADCALIB_CALOHADDMCOEFFDATA_H
7 
17 #include <vector>
18 
19 #include <TROOT.h>
20 #include <TChain.h>
21 #include <TBranch.h>
22 #include <TFile.h>
23 #include <TObject.h>
24 
26 
27 class TTree;
28 class TBranch;
29 
31  public :
32 
33  TTree *fChain;
34  Int_t fCurrent;
35 
36  // Declaration of leaf types
37  Int_t m_ncls;
38  Int_t m_mc_pdg;
39  Double_t m_mc_ener;
40  Double_t m_mc_eta;
41  Double_t m_mc_phi;
42  std::vector<double> *m_cls_ener;
43  std::vector<double> *m_cls_ener_unw;
44  std::vector<double> *m_cls_lambda;
45  std::vector<double> *m_cls_eta;
46  std::vector<double> *m_cls_phi;
47  std::vector<std::vector<double> > *m_cls_smpener;
48  std::vector<std::vector<double> > *m_cls_smpener_unw;
49  Int_t m_narea;
50  std::vector<std::vector<double> > *m_cls_eprep;
51  std::vector<std::vector<double> > *m_cls_dmener;
53  std::vector<double> *m_cls_engcalib;
54  std::vector<int > *m_cls_recostat;
55  std::vector<double> *m_cls_pi0prob;
56  std::vector<double> *m_cls_isol;
57  std::vector<double> *m_cls_oocener;
58  std::vector<double> *m_cls_calib_emfrac;
59  std::vector<double> *m_cls_engcalibpres;
60 
61  // List of branches
62  TBranch *b_ncls;
63  TBranch *b_mc_pdg;
64  TBranch *b_mc_ener;
65  TBranch *b_mc_eta;
66  TBranch *b_mc_phi;
67  TBranch *b_cls_ener;
68  TBranch *b_cls_ener_unw;
69  TBranch *b_cls_lambda;
70  TBranch *b_cls_eta;
71  TBranch *b_cls_phi;
72  TBranch *b_cls_smpener_unw;
73  TBranch *b_m_narea;
74  TBranch *b_cls_eprep;
75  TBranch *b_cls_dmener;
76  TBranch *b_engClusSumCalib;
77  TBranch *b_cls_engcalib;
78  TBranch *b_cls_recostat;
79  TBranch *b_cls_pi0prob;
80  TBranch *b_cls_isol;
81  TBranch *b_cls_oocener;
82  TBranch *b_cls_calib_emfrac;
83  TBranch *b_cls_engcalibpres;
84 
87  enum keys_cluster {kCLASSIFY_USE_PDG, kCLASSIFY_USE_PARTICLEID, kCLASSIFY};
88 
89  CaloHadDMCoeffData(TTree *tree);
90  virtual ~CaloHadDMCoeffData();
91  virtual Int_t GetEntry(Long64_t entry);
92  virtual Int_t GetEntries();
93  virtual void Init(TTree *tree);
94 
95  int PackClusterVars(int iClus, std::vector<float> &vars);
96  TTree *MakeTree(const char *treename);
97  void clear();
98  void SetClassificationType(int type) {m_classify_type = type;}
99  void SetMaxEventsPerFile(int nev) {m_MaxEventsPerFile = nev;}
100 };
101 
102 #endif
103 
CaloHadDMCoeffData::m_mc_ener
Double_t m_mc_ener
Definition: CaloHadDMCoeffData.h:39
CaloHadDMCoeffData::b_cls_smpener_unw
TBranch * b_cls_smpener_unw
Definition: CaloHadDMCoeffData.h:72
CaloHadDMCoeffData::SetMaxEventsPerFile
void SetMaxEventsPerFile(int nev)
Definition: CaloHadDMCoeffData.h:99
CaloHadDMCoeffData::m_cls_dmener
std::vector< std::vector< double > > * m_cls_dmener
Definition: CaloHadDMCoeffData.h:51
ATLAS_NOT_THREAD_SAFE
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
Definition: checker_macros.h:212
CaloHadDMCoeffData::keys_cluster
keys_cluster
Definition: CaloHadDMCoeffData.h:87
CaloHadDMCoeffData::m_cls_lambda
std::vector< double > * m_cls_lambda
Definition: CaloHadDMCoeffData.h:44
CaloHadDMCoeffData::b_m_narea
TBranch * b_m_narea
Definition: CaloHadDMCoeffData.h:73
CaloHadDMCoeffData::b_cls_engcalibpres
TBranch * b_cls_engcalibpres
Definition: CaloHadDMCoeffData.h:83
tree
TChain * tree
Definition: tile_monitor.h:30
CaloHadDMCoeffData::b_cls_ener
TBranch * b_cls_ener
Definition: CaloHadDMCoeffData.h:67
CaloHadDMCoeffData::m_mc_pdg
Int_t m_mc_pdg
Definition: CaloHadDMCoeffData.h:38
CaloHadDMCoeffData::b_cls_calib_emfrac
TBranch * b_cls_calib_emfrac
Definition: CaloHadDMCoeffData.h:82
GetEntries
TGraphErrors * GetEntries(TH2F *histo)
Definition: TRTCalib_makeplots.cxx:4019
CaloHadDMCoeffData::m_narea
Int_t m_narea
Definition: CaloHadDMCoeffData.h:49
CaloHadDMCoeffData::m_classify_type
int m_classify_type
Definition: CaloHadDMCoeffData.h:86
CaloHadDMCoeffData::m_cls_phi
std::vector< double > * m_cls_phi
Definition: CaloHadDMCoeffData.h:46
CaloHadDMCoeffData::m_cls_eta
std::vector< double > * m_cls_eta
Definition: CaloHadDMCoeffData.h:45
CaloHadDMCoeffData::b_cls_pi0prob
TBranch * b_cls_pi0prob
Definition: CaloHadDMCoeffData.h:79
CaloHadDMCoeffData::m_cls_ener
std::vector< double > * m_cls_ener
Definition: CaloHadDMCoeffData.h:42
CaloHadDMCoeffData::b_cls_eta
TBranch * b_cls_eta
Definition: CaloHadDMCoeffData.h:70
CaloHadDMCoeffData::b_cls_eprep
TBranch * b_cls_eprep
Definition: CaloHadDMCoeffData.h:74
CaloHadDMCoeffData::b_cls_oocener
TBranch * b_cls_oocener
Definition: CaloHadDMCoeffData.h:81
CaloHadDMCoeffData::m_mc_eta
Double_t m_mc_eta
Definition: CaloHadDMCoeffData.h:40
CaloHadDMCoeffData::m_cls_isol
std::vector< double > * m_cls_isol
Definition: CaloHadDMCoeffData.h:56
CaloHadDMCoeffData::b_cls_engcalib
TBranch * b_cls_engcalib
Definition: CaloHadDMCoeffData.h:77
CaloHadDMCoeffData::b_mc_eta
TBranch * b_mc_eta
Definition: CaloHadDMCoeffData.h:65
CaloHadDMCoeffData::b_cls_recostat
TBranch * b_cls_recostat
Definition: CaloHadDMCoeffData.h:78
CaloHadDMCoeffData::b_mc_ener
TBranch * b_mc_ener
Definition: CaloHadDMCoeffData.h:64
CaloHadDMCoeffData::m_cls_smpener
std::vector< std::vector< double > > * m_cls_smpener
Definition: CaloHadDMCoeffData.h:47
CaloHadDMCoeffData::b_cls_lambda
TBranch * b_cls_lambda
Definition: CaloHadDMCoeffData.h:69
CaloHadDMCoeffData::m_mc_phi
Double_t m_mc_phi
Definition: CaloHadDMCoeffData.h:41
CaloHadDMCoeffData::m_cls_ener_unw
std::vector< double > * m_cls_ener_unw
Definition: CaloHadDMCoeffData.h:43
CaloHadDMCoeffData::m_cls_recostat
std::vector< int > * m_cls_recostat
Definition: CaloHadDMCoeffData.h:54
CaloHadDMCoeffData::m_cls_smpener_unw
std::vector< std::vector< double > > * m_cls_smpener_unw
Definition: CaloHadDMCoeffData.h:48
CaloHadDMCoeffData
Data to read from special DeadMaterialTree.
Definition: CaloHadDMCoeffData.h:30
CaloHadDMCoeffData::m_cls_engcalibpres
std::vector< double > * m_cls_engcalibpres
Definition: CaloHadDMCoeffData.h:59
CaloHadDMCoeffData::b_cls_dmener
TBranch * b_cls_dmener
Definition: CaloHadDMCoeffData.h:75
GetAllXsec.entry
list entry
Definition: GetAllXsec.py:132
CaloHadDMCoeffData::m_cls_calib_emfrac
std::vector< double > * m_cls_calib_emfrac
Definition: CaloHadDMCoeffData.h:58
CaloHadDMCoeffData::m_cls_engcalib
std::vector< double > * m_cls_engcalib
Definition: CaloHadDMCoeffData.h:53
CaloHadDMCoeffData::m_MaxEventsPerFile
int m_MaxEventsPerFile
Definition: CaloHadDMCoeffData.h:85
CaloHadDMCoeffData::SetClassificationType
void SetClassificationType(int type)
Definition: CaloHadDMCoeffData.h:98
CaloHadDMCoeffData::b_ncls
TBranch * b_ncls
Definition: CaloHadDMCoeffData.h:62
CaloHadDMCoeffData::b_engClusSumCalib
TBranch * b_engClusSumCalib
Definition: CaloHadDMCoeffData.h:76
CaloHadDMCoeffData::b_cls_isol
TBranch * b_cls_isol
Definition: CaloHadDMCoeffData.h:80
VKalVrtAthena::varHolder_detail::clear
void clear(T &var)
Definition: NtupleVars.h:48
LArCellNtuple.nev
int nev
Definition: LArCellNtuple.py:135
CaloHadDMCoeffData::b_mc_pdg
TBranch * b_mc_pdg
Definition: CaloHadDMCoeffData.h:63
CaloHadDMCoeffData::b_cls_ener_unw
TBranch * b_cls_ener_unw
Definition: CaloHadDMCoeffData.h:68
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
CaloHadDMCoeffData::m_cls_eprep
std::vector< std::vector< double > > * m_cls_eprep
Definition: CaloHadDMCoeffData.h:50
CaloHadDMCoeffData::m_cls_oocener
std::vector< double > * m_cls_oocener
Definition: CaloHadDMCoeffData.h:57
CaloHadDMCoeffData::b_cls_phi
TBranch * b_cls_phi
Definition: CaloHadDMCoeffData.h:71
CaloHadDMCoeffData::m_cls_pi0prob
std::vector< double > * m_cls_pi0prob
Definition: CaloHadDMCoeffData.h:55
CaloHadDMCoeffData::m_engClusSumCalib
Double_t m_engClusSumCalib
Definition: CaloHadDMCoeffData.h:52
checker_macros.h
Define macros for attributes used to control the static checker.
CaloHadDMCoeffData::fChain
TTree * fChain
Definition: CaloHadDMCoeffData.h:33
CaloHadDMCoeffData::b_mc_phi
TBranch * b_mc_phi
Definition: CaloHadDMCoeffData.h:66
CaloHadDMCoeffData::fCurrent
Int_t fCurrent
pointer to the analyzed TTree or TChain
Definition: CaloHadDMCoeffData.h:34
CaloHadDMCoeffData::m_ncls
Int_t m_ncls
current Tree number in a TChain
Definition: CaloHadDMCoeffData.h:37
xAOD::Init
StatusCode Init(const char *appname)
Function initialising ROOT/PyROOT for using the ATLAS EDM.
Definition: Init.cxx:31