ATLAS Offline Software
SuperCellVsCaloCellTestAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef LARROD_SUPERCELLVSCALOCELLTESTALG_H
6 #define LARROD_SUPERCELLVSCALOCELLTESTALG_H 1
7 
8 //Author: Will Buttinger <will@cern.ch>
9 //Purpose: Quick comparison of supercell to sum-of-calocell quantities
10 
12 
13 
18 
19 #include "GaudiKernel/ToolHandle.h"
20 
21 #include "TString.h"
22 
23 class TProfile;
24 class TTree;
25 class TH1F;
26 class TH2F;
27 
29  public:
30  SuperCellVsCaloCellTestAlg( const std::string& name, ISvcLocator* pSvcLocator );
32 
33  virtual StatusCode initialize();
34  virtual StatusCode execute();
35  virtual StatusCode finalize();
36 
37 
38 
39  private:
40  SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this,"SCCablingKey","LArOnOffIdMapSC","SG Key of LArOnOffIdMapping object"};
41  ToolHandle<ICaloSuperCellIDTool> m_sc2ccMappingTool;
43 
45 
46 /*
47  static const int nBinsE=11;
48  static const int nBinsEta=34;
49  static constexpr double eBins[nBinsE+1] {0.00001,0.2,0.4,0.6,0.8,1,2,3,4,5,10,50};
50  static constexpr double etaBins[nBinsEta+1] {0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2.0,2.1,2.2,2.3,2.4,2.5,2.7,2.9,3.1,3.2,3.5,3.8,4.1,4.5,4.9};
51 */
52 
53  std::vector<TProfile*> m_etReso;
54  std::vector<TProfile*> m_etResoTruth;
55 
56  std::vector<TH1F*> m_Reso_et;
57  std::vector<TH2F*> m_Reso_et_vs_eta;
58  std::vector<TH2F*> m_Reso_et_vs_et;
59  std::vector<TH2F*> m_Linear_SCet_vs_et;
60 
61  std::map<TString,std::vector<float> > m_graphsX, m_graphsY;
62 
63 
67  float m_treeEta=0;
68  float m_treeSCET=0;
69  float m_treeTruthET=0;
70  std::vector<short int>* m_treeDigits;
71  TTree* m_tree;
72 
73 
74 };
75 
76 #endif //> !LARROD_SUPERCELLVSCALOCELLTESTALG_H
SuperCellVsCaloCellTestAlg::m_scKey
std::string m_scKey
Definition: SuperCellVsCaloCellTestAlg.h:44
SuperCellVsCaloCellTestAlg::m_etReso
std::vector< TProfile * > m_etReso
Definition: SuperCellVsCaloCellTestAlg.h:53
SuperCellVsCaloCellTestAlg::m_treeSCET
float m_treeSCET
Definition: SuperCellVsCaloCellTestAlg.h:68
SuperCellVsCaloCellTestAlg::m_ccKey
std::string m_ccKey
Definition: SuperCellVsCaloCellTestAlg.h:44
SuperCellVsCaloCellTestAlg::m_Linear_SCet_vs_et
std::vector< TH2F * > m_Linear_SCet_vs_et
Definition: SuperCellVsCaloCellTestAlg.h:59
SuperCellVsCaloCellTestAlg::m_graphsX
std::map< TString, std::vector< float > > m_graphsX
Definition: SuperCellVsCaloCellTestAlg.h:61
SuperCellVsCaloCellTestAlg::finalize
virtual StatusCode finalize()
Definition: SuperCellVsCaloCellTestAlg.cxx:90
SuperCellVsCaloCellTestAlg
Definition: SuperCellVsCaloCellTestAlg.h:28
SuperCellVsCaloCellTestAlg::m_eventNumber
int m_eventNumber
Definition: SuperCellVsCaloCellTestAlg.h:64
SuperCellVsCaloCellTestAlg::SuperCellVsCaloCellTestAlg
SuperCellVsCaloCellTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SuperCellVsCaloCellTestAlg.cxx:25
SuperCellVsCaloCellTestAlg::m_digitKey
std::string m_digitKey
Definition: SuperCellVsCaloCellTestAlg.h:44
SuperCellVsCaloCellTestAlg::initialize
virtual StatusCode initialize()
Definition: SuperCellVsCaloCellTestAlg.cxx:46
python.TrigEgammaMonitorHelper.TH2F
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:45
SuperCellVsCaloCellTestAlg::m_tree
TTree * m_tree
Definition: SuperCellVsCaloCellTestAlg.h:71
SuperCellVsCaloCellTestAlg::m_stream
std::string m_stream
Definition: SuperCellVsCaloCellTestAlg.h:44
ICaloSuperCellIDTool.h
CaloCell_ID.h
SuperCellVsCaloCellTestAlg::m_Reso_et_vs_eta
std::vector< TH2F * > m_Reso_et_vs_eta
Definition: SuperCellVsCaloCellTestAlg.h:57
AthAlgorithm.h
SuperCellVsCaloCellTestAlg::m_graphsY
std::map< TString, std::vector< float > > m_graphsY
Definition: SuperCellVsCaloCellTestAlg.h:61
LArOnOffIdMapping.h
SuperCellVsCaloCellTestAlg::m_etResoTruth
std::vector< TProfile * > m_etResoTruth
Definition: SuperCellVsCaloCellTestAlg.h:54
python.TrigEgammaMonitorHelper.TProfile
def TProfile(*args, **kwargs)
Definition: TrigEgammaMonitorHelper.py:81
SuperCellVsCaloCellTestAlg::m_treeDigits
std::vector< short int > * m_treeDigits
Definition: SuperCellVsCaloCellTestAlg.h:70
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SuperCellVsCaloCellTestAlg::m_treeSampling
int m_treeSampling
Definition: SuperCellVsCaloCellTestAlg.h:66
SuperCellVsCaloCellTestAlg::m_Reso_et
std::vector< TH1F * > m_Reso_et
Definition: SuperCellVsCaloCellTestAlg.h:56
CaloCell_ID
Helper class for offline cell identifiers.
Definition: CaloCell_ID.h:34
SuperCellVsCaloCellTestAlg::m_treeChannel
int m_treeChannel
Definition: SuperCellVsCaloCellTestAlg.h:65
SuperCellVsCaloCellTestAlg::m_sc2ccMappingTool
ToolHandle< ICaloSuperCellIDTool > m_sc2ccMappingTool
Definition: SuperCellVsCaloCellTestAlg.h:41
AthAlgorithm
Definition: AthAlgorithm.h:47
SuperCellVsCaloCellTestAlg::m_treeTruthET
float m_treeTruthET
Definition: SuperCellVsCaloCellTestAlg.h:69
ReadCondHandleKey.h
SuperCellVsCaloCellTestAlg::m_treeEta
float m_treeEta
Definition: SuperCellVsCaloCellTestAlg.h:67
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SuperCellVsCaloCellTestAlg::execute
virtual StatusCode execute()
Definition: SuperCellVsCaloCellTestAlg.cxx:119
SG::ReadCondHandleKey< LArOnOffIdMapping >
SuperCellVsCaloCellTestAlg::m_tscKey
std::string m_tscKey
Definition: SuperCellVsCaloCellTestAlg.h:44
python.TrigEgammaMonitorHelper.TH1F
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:24
SuperCellVsCaloCellTestAlg::m_ccIdHelper
const CaloCell_ID * m_ccIdHelper
Definition: SuperCellVsCaloCellTestAlg.h:42
SuperCellVsCaloCellTestAlg::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: SuperCellVsCaloCellTestAlg.h:40
SuperCellVsCaloCellTestAlg::~SuperCellVsCaloCellTestAlg
virtual ~SuperCellVsCaloCellTestAlg()
SuperCellVsCaloCellTestAlg::m_Reso_et_vs_et
std::vector< TH2F * > m_Reso_et_vs_et
Definition: SuperCellVsCaloCellTestAlg.h:58