ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArROD
src
tests
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
11
#include "
AthenaBaseComps/AthAlgorithm.h
"
12
13
14
#include "
CaloDetDescr/ICaloSuperCellIDTool.h
"
15
#include "
CaloIdentifier/CaloCell_ID.h
"
16
#include "
LArCabling/LArOnOffIdMapping.h
"
17
#include "
StoreGate/ReadCondHandleKey.h
"
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
28
class
SuperCellVsCaloCellTestAlg
:
public
::AthAlgorithm
{
29
public
:
30
SuperCellVsCaloCellTestAlg
(
const
std::string& name, ISvcLocator* pSvcLocator );
31
virtual
~SuperCellVsCaloCellTestAlg
();
32
33
virtual
StatusCode
initialize
();
34
virtual
StatusCode
execute
(
const
EventContext& ctx);
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
;
42
const
CaloCell_ID
*
m_ccIdHelper
;
43
44
std::string
m_scKey
,
m_ccKey
,
m_tscKey
,
m_digitKey
,
m_stream
;
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
64
int
m_eventNumber
=0;
65
int
m_treeChannel
=0;
66
int
m_treeSampling
=0;
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
AthAlgorithm.h
CaloCell_ID.h
ICaloSuperCellIDTool.h
LArOnOffIdMapping.h
ReadCondHandleKey.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
CaloCell_ID
Helper class for offline cell identifiers.
Definition
CaloCell_ID.h:34
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SuperCellVsCaloCellTestAlg::initialize
virtual StatusCode initialize()
Definition
SuperCellVsCaloCellTestAlg.cxx:47
SuperCellVsCaloCellTestAlg::~SuperCellVsCaloCellTestAlg
virtual ~SuperCellVsCaloCellTestAlg()
SuperCellVsCaloCellTestAlg::m_sc2ccMappingTool
ToolHandle< ICaloSuperCellIDTool > m_sc2ccMappingTool
Definition
SuperCellVsCaloCellTestAlg.h:41
SuperCellVsCaloCellTestAlg::m_treeDigits
std::vector< short int > * m_treeDigits
Definition
SuperCellVsCaloCellTestAlg.h:70
SuperCellVsCaloCellTestAlg::m_etResoTruth
std::vector< TProfile * > m_etResoTruth
Definition
SuperCellVsCaloCellTestAlg.h:54
SuperCellVsCaloCellTestAlg::m_Linear_SCet_vs_et
std::vector< TH2F * > m_Linear_SCet_vs_et
Definition
SuperCellVsCaloCellTestAlg.h:59
SuperCellVsCaloCellTestAlg::SuperCellVsCaloCellTestAlg
SuperCellVsCaloCellTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
SuperCellVsCaloCellTestAlg.cxx:26
SuperCellVsCaloCellTestAlg::m_treeTruthET
float m_treeTruthET
Definition
SuperCellVsCaloCellTestAlg.h:69
SuperCellVsCaloCellTestAlg::execute
virtual StatusCode execute(const EventContext &ctx)
Execute method.
Definition
SuperCellVsCaloCellTestAlg.cxx:120
SuperCellVsCaloCellTestAlg::m_Reso_et_vs_et
std::vector< TH2F * > m_Reso_et_vs_et
Definition
SuperCellVsCaloCellTestAlg.h:58
SuperCellVsCaloCellTestAlg::finalize
virtual StatusCode finalize()
Definition
SuperCellVsCaloCellTestAlg.cxx:91
SuperCellVsCaloCellTestAlg::m_stream
std::string m_stream
Definition
SuperCellVsCaloCellTestAlg.h:44
SuperCellVsCaloCellTestAlg::m_Reso_et_vs_eta
std::vector< TH2F * > m_Reso_et_vs_eta
Definition
SuperCellVsCaloCellTestAlg.h:57
SuperCellVsCaloCellTestAlg::m_digitKey
std::string m_digitKey
Definition
SuperCellVsCaloCellTestAlg.h:44
SuperCellVsCaloCellTestAlg::m_eventNumber
int m_eventNumber
Definition
SuperCellVsCaloCellTestAlg.h:64
SuperCellVsCaloCellTestAlg::m_scKey
std::string m_scKey
Definition
SuperCellVsCaloCellTestAlg.h:44
SuperCellVsCaloCellTestAlg::m_treeSCET
float m_treeSCET
Definition
SuperCellVsCaloCellTestAlg.h:68
SuperCellVsCaloCellTestAlg::m_tscKey
std::string m_tscKey
Definition
SuperCellVsCaloCellTestAlg.h:44
SuperCellVsCaloCellTestAlg::m_treeSampling
int m_treeSampling
Definition
SuperCellVsCaloCellTestAlg.h:66
SuperCellVsCaloCellTestAlg::m_graphsX
std::map< TString, std::vector< float > > m_graphsX
Definition
SuperCellVsCaloCellTestAlg.h:61
SuperCellVsCaloCellTestAlg::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition
SuperCellVsCaloCellTestAlg.h:40
SuperCellVsCaloCellTestAlg::m_Reso_et
std::vector< TH1F * > m_Reso_et
Definition
SuperCellVsCaloCellTestAlg.h:56
SuperCellVsCaloCellTestAlg::m_tree
TTree * m_tree
Definition
SuperCellVsCaloCellTestAlg.h:71
SuperCellVsCaloCellTestAlg::m_ccKey
std::string m_ccKey
Definition
SuperCellVsCaloCellTestAlg.h:44
SuperCellVsCaloCellTestAlg::m_ccIdHelper
const CaloCell_ID * m_ccIdHelper
Definition
SuperCellVsCaloCellTestAlg.h:42
SuperCellVsCaloCellTestAlg::m_etReso
std::vector< TProfile * > m_etReso
Definition
SuperCellVsCaloCellTestAlg.h:53
SuperCellVsCaloCellTestAlg::m_graphsY
std::map< TString, std::vector< float > > m_graphsY
Definition
SuperCellVsCaloCellTestAlg.h:61
SuperCellVsCaloCellTestAlg::m_treeEta
float m_treeEta
Definition
SuperCellVsCaloCellTestAlg.h:67
SuperCellVsCaloCellTestAlg::m_treeChannel
int m_treeChannel
Definition
SuperCellVsCaloCellTestAlg.h:65
python.TrigEgammaMonitorHelper.TH1F
TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Definition
TrigEgammaMonitorHelper.py:24
Generated on
for ATLAS Offline Software by
1.17.0