ATLAS Offline Software
TileCalibHitCntNtup.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 TILESIMUTILS_TILECALIBHITCNTNTUP_H
6 #define TILESIMUTILS_TILECALIBHITCNTNTUP_H
7 
8 /********************************************************************
9  *
10  * NAME: TileCalibHitCntNtup
11  * PACKAGE: offline/TileCalorimeter/TileSimUtils
12  *
13  * AUTHOR : A. Solodkov Sanya.Solodkov@cern.ch
14  * S. Karpov Sergey.Karpov@cern.ch
15  * CREATED: Jan 15, 2013
16  *
17  * PURPOSE: To create Ntuple file from Tile CaloCalibrationHitContainer-s
18  *
19  * Input: CaloCalibHitCnt (Calibration hit containers)
20  * Output: NTuple
21  * Parameters: stream name, ntuple name, max tree size
22  *
23  ********************************************************************/
24 
25 // Atlas includes
27 #include "GaudiKernel/ServiceHandle.h"
28 #include "GaudiKernel/ITHistSvc.h"
29 
30 // Calo includes
34 
35 #include <string>
36 #include <vector>
37 
38 #include <inttypes.h>
39 
40 class CaloCell_ID;
41 class CaloDM_ID;
42 
48 
49 public:
50  TileCalibHitCntNtup(const std::string& type, const std::string& name, const IInterface* parent);
51 
52  virtual ~TileCalibHitCntNtup();
53 
54  virtual StatusCode initialize();
55  virtual StatusCode StoreCNT( const CaloCalibrationHitContainer* ActiveHitCnt,
56  const CaloCalibrationHitContainer* InactiveHitCnt,
57  const CaloCalibrationHitContainer* dmHitCnt );
58  virtual StatusCode finalize();
59 
60  static const InterfaceID& interfaceID( ) ;
61 
62 private:
63 
64  // handle to THistSvc
66 
67  // NTuple parameters
68  std::string m_streamName;
69  std::string m_ntupleID;
70  int64_t m_treeSize;
71 
72  // The ntuple
73  TTree* m_ntuplePtr;
74 
75  // ntuple variables
78  long m_dm_nchan;
79 
80  float m_act_totE;
81  float m_act_visE;
82  float m_inact_totE;
83  float m_inact_visE;
84  float m_DM_totE;
85  float m_DM_visE;
86 
87  float m_barr_totE;
88  float m_barr_Em;
89  float m_barr_NonEm;
92 
98 
99  float m_ext_totE;
100  float m_ext_Em;
101  float m_ext_NonEm;
104 
110 
111  float m_itc_totE;
112  float m_itc_Em;
113  float m_itc_NonEm;
116 
122 
124  float m_gscin_Em;
128 
134 
135  std::vector<float>* m_Total;
136  std::vector<float>* m_Em;
137  std::vector<float>* m_NonEm;
138  std::vector<float>* m_Invisible;
139  std::vector<float>* m_Escaped;
140  std::vector<long>* m_subCalo;
141  std::vector<long>* m_section;
142  std::vector<long>* m_side;
143  std::vector<long>* m_module;
144  std::vector<long>* m_tower;
145  std::vector<long>* m_sample;
146 
147  std::vector<float>* m_inact_Total;
148  std::vector<float>* m_inact_Em;
149  std::vector<float>* m_inact_NonEm;
150  std::vector<float>* m_inact_Invisible;
151  std::vector<float>* m_inact_Escaped;
152  std::vector<long>* m_inact_subCalo;
153  std::vector<long>* m_inact_section;
154  std::vector<long>* m_inact_side;
155  std::vector<long>* m_inact_module;
156  std::vector<long>* m_inact_tower;
157  std::vector<long>* m_inact_sample;
158 
159  std::vector<float>* m_dm_ene;
160  std::vector<float>* m_dm_vis;
161  std::vector<long>* m_dm_subDet;
162  std::vector<long>* m_dm_type;
163  std::vector<long>* m_dm_sampling;
164  std::vector<long>* m_dm_region;
165  std::vector<long>* m_dm_eta;
166  std::vector<long>* m_dm_phi;
167 
168  std::string m_ActiveHitContainer;
170  std::string m_dmHitContainer;
171 
174 
176 
177 };
178 
179 #endif
TileCalibHitCntNtup::m_inact_totE
float m_inact_totE
Definition: TileCalibHitCntNtup.h:82
TileCalibHitCntNtup::m_act_totE
float m_act_totE
Definition: TileCalibHitCntNtup.h:80
CaloCalibrationHitContainer
Definition: CaloCalibrationHitContainer.h:25
TileCalibHitCntNtup::m_gscin_NonEm
float m_gscin_NonEm
Definition: TileCalibHitCntNtup.h:125
TileCalibHitCntNtup::m_section
std::vector< long > * m_section
Definition: TileCalibHitCntNtup.h:141
TileCalibHitCntNtup::m_itc_Escaped
float m_itc_Escaped
Definition: TileCalibHitCntNtup.h:115
TileCalibHitCntNtup::m_inact_barr_Em
float m_inact_barr_Em
Definition: TileCalibHitCntNtup.h:94
TileCalibHitCntNtup::initialize
virtual StatusCode initialize()
intialize method
Definition: TileCalibHitCntNtup.cxx:141
TileCalibHitCntNtup::m_inact_gscin_totE
float m_inact_gscin_totE
Definition: TileCalibHitCntNtup.h:129
TileCalibHitCntNtup::m_inact_gscin_NonEm
float m_inact_gscin_NonEm
Definition: TileCalibHitCntNtup.h:131
TileCalibHitCntNtup::m_Invisible
std::vector< float > * m_Invisible
Definition: TileCalibHitCntNtup.h:138
TileCalibHitCntNtup::m_inact_ext_Escaped
float m_inact_ext_Escaped
Definition: TileCalibHitCntNtup.h:109
TileCalibHitCntNtup::m_inact_barr_NonEm
float m_inact_barr_NonEm
Definition: TileCalibHitCntNtup.h:95
TileCalibHitCntNtup::m_inact_gscin_Em
float m_inact_gscin_Em
Definition: TileCalibHitCntNtup.h:130
TileCalibHitCntNtup::m_gscin_Invisible
float m_gscin_Invisible
Definition: TileCalibHitCntNtup.h:126
TileCalibHitCntNtup::m_subCalo
std::vector< long > * m_subCalo
Definition: TileCalibHitCntNtup.h:140
TileCalibHitCntNtup::m_tower
std::vector< long > * m_tower
Definition: TileCalibHitCntNtup.h:144
TileCalibHitCntNtup::m_ext_NonEm
float m_ext_NonEm
Definition: TileCalibHitCntNtup.h:101
TileCalibHitCntNtup::m_inact_itc_Invisible
float m_inact_itc_Invisible
Definition: TileCalibHitCntNtup.h:120
TileCalibHitCntNtup::m_treeSize
int64_t m_treeSize
Definition: TileCalibHitCntNtup.h:70
TileCalibHitCntNtup::m_caloCell_ID
const CaloCell_ID * m_caloCell_ID
Definition: TileCalibHitCntNtup.h:172
TileCalibHitCntNtup::m_side
std::vector< long > * m_side
Definition: TileCalibHitCntNtup.h:142
TileCalibHitCntNtup::m_inact_section
std::vector< long > * m_inact_section
Definition: TileCalibHitCntNtup.h:153
TileCalibHitCntNtup::m_ntuplePtr
TTree * m_ntuplePtr
Definition: TileCalibHitCntNtup.h:73
TileCalibHitCntNtup::m_itc_totE
float m_itc_totE
Definition: TileCalibHitCntNtup.h:111
TileCalibHitCntNtup::m_inact_ext_totE
float m_inact_ext_totE
Definition: TileCalibHitCntNtup.h:105
TileCalibHitCntNtup::m_module
std::vector< long > * m_module
Definition: TileCalibHitCntNtup.h:143
TileCalibHitCntNtup::m_gscin_Em
float m_gscin_Em
Definition: TileCalibHitCntNtup.h:124
TileCalibHitCntNtup::m_act_visE
float m_act_visE
Definition: TileCalibHitCntNtup.h:81
TileCalibHitCntNtup::m_inact_Escaped
std::vector< float > * m_inact_Escaped
Definition: TileCalibHitCntNtup.h:151
TileCalibHitCntNtup::m_ext_Escaped
float m_ext_Escaped
Definition: TileCalibHitCntNtup.h:103
TileCalibHitCntNtup::m_thistSvc
ServiceHandle< ITHistSvc > m_thistSvc
Definition: TileCalibHitCntNtup.h:65
TileCalibHitCntNtup::m_Escaped
std::vector< float > * m_Escaped
Definition: TileCalibHitCntNtup.h:139
CaloCalibrationHitContainer.h
TileCalibHitCntNtup::m_streamName
std::string m_streamName
Definition: TileCalibHitCntNtup.h:68
CaloCell_ID.h
TileCalibHitCntNtup::~TileCalibHitCntNtup
virtual ~TileCalibHitCntNtup()
Destructor.
Definition: TileCalibHitCntNtup.cxx:135
TileCalibHitCntNtup::m_caloDM_ID
const CaloDM_ID * m_caloDM_ID
Definition: TileCalibHitCntNtup.h:173
TileCalibHitCntNtup::m_inact_side
std::vector< long > * m_inact_side
Definition: TileCalibHitCntNtup.h:154
TileCalibHitCntNtup::m_inact_itc_Em
float m_inact_itc_Em
Definition: TileCalibHitCntNtup.h:118
TileCalibHitCntNtup::m_itc_NonEm
float m_itc_NonEm
Definition: TileCalibHitCntNtup.h:113
TileCalibHitCntNtup::m_inact_NonEm
std::vector< float > * m_inact_NonEm
Definition: TileCalibHitCntNtup.h:149
TileCalibHitCntNtup::m_barr_Em
float m_barr_Em
Definition: TileCalibHitCntNtup.h:88
TileCalibHitCntNtup::m_inact_subCalo
std::vector< long > * m_inact_subCalo
Definition: TileCalibHitCntNtup.h:152
TileCalibHitCntNtup::interfaceID
static const InterfaceID & interfaceID()
AlgTool InterfaceID.
Definition: TileCalibHitCntNtup.cxx:18
TileCalibHitCntNtup::m_inact_itc_totE
float m_inact_itc_totE
Definition: TileCalibHitCntNtup.h:117
TileCalibHitCntNtup::m_ntupleID
std::string m_ntupleID
Definition: TileCalibHitCntNtup.h:69
TileCalibHitCntNtup::m_inact_gscin_Escaped
float m_inact_gscin_Escaped
Definition: TileCalibHitCntNtup.h:133
TileCalibHitCntNtup::m_inact_barr_Escaped
float m_inact_barr_Escaped
Definition: TileCalibHitCntNtup.h:97
TileCalibHitCntNtup::m_dm_subDet
std::vector< long > * m_dm_subDet
Definition: TileCalibHitCntNtup.h:161
TileCalibHitCntNtup::m_barr_Invisible
float m_barr_Invisible
Definition: TileCalibHitCntNtup.h:90
TileCalibHitCntNtup::m_inact_barr_totE
float m_inact_barr_totE
Definition: TileCalibHitCntNtup.h:93
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TileCalibHitCntNtup::finalize
virtual StatusCode finalize()
finalize method
Definition: TileCalibHitCntNtup.cxx:506
AthAlgTool.h
TileCalibHitCntNtup::m_dm_ene
std::vector< float > * m_dm_ene
Definition: TileCalibHitCntNtup.h:159
TileCalibHitCntNtup::m_inact_Invisible
std::vector< float > * m_inact_Invisible
Definition: TileCalibHitCntNtup.h:150
TileCalibHitCntNtup::TileCalibHitCntNtup
TileCalibHitCntNtup(const std::string &type, const std::string &name, const IInterface *parent)
Constructor.
Definition: TileCalibHitCntNtup.cxx:25
test_pyathena.parent
parent
Definition: test_pyathena.py:15
TileCalibHitCntNtup::m_gscin_totE
float m_gscin_totE
Definition: TileCalibHitCntNtup.h:123
CaloCell_ID
Helper class for offline cell identifiers.
Definition: CaloCell_ID.h:34
TileCalibHitCntNtup::m_dm_phi
std::vector< long > * m_dm_phi
Definition: TileCalibHitCntNtup.h:166
TileCalibHitCntNtup::m_inact_barr_Invisible
float m_inact_barr_Invisible
Definition: TileCalibHitCntNtup.h:96
TileCalibHitCntNtup::m_inact_tower
std::vector< long > * m_inact_tower
Definition: TileCalibHitCntNtup.h:156
TileCalibHitCntNtup::m_ext_Em
float m_ext_Em
Definition: TileCalibHitCntNtup.h:100
CaloDM_ID.h
TileCalibHitCntNtup::m_inact_visE
float m_inact_visE
Definition: TileCalibHitCntNtup.h:83
TileCalibHitCntNtup::m_dmHitContainer
std::string m_dmHitContainer
Definition: TileCalibHitCntNtup.h:170
TileCalibHitCntNtup::m_inact_sample
std::vector< long > * m_inact_sample
Definition: TileCalibHitCntNtup.h:157
TileCalibHitCntNtup::m_ext_totE
float m_ext_totE
Definition: TileCalibHitCntNtup.h:99
TileCalibHitCntNtup::m_itc_Invisible
float m_itc_Invisible
Definition: TileCalibHitCntNtup.h:114
TileCalibHitCntNtup::m_InactiveHitContainer
std::string m_InactiveHitContainer
Definition: TileCalibHitCntNtup.h:169
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TileCalibHitCntNtup::m_dm_type
std::vector< long > * m_dm_type
Definition: TileCalibHitCntNtup.h:162
TileCalibHitCntNtup::StoreCNT
virtual StatusCode StoreCNT(const CaloCalibrationHitContainer *ActiveHitCnt, const CaloCalibrationHitContainer *InactiveHitCnt, const CaloCalibrationHitContainer *dmHitCnt)
Executer.
Definition: TileCalibHitCntNtup.cxx:257
TileCalibHitCntNtup::m_inact_Em
std::vector< float > * m_inact_Em
Definition: TileCalibHitCntNtup.h:148
TileCalibHitCntNtup::m_act_nchan
long m_act_nchan
Definition: TileCalibHitCntNtup.h:76
TileCalibHitCntNtup::m_ext_Invisible
float m_ext_Invisible
Definition: TileCalibHitCntNtup.h:102
TileCalibHitCntNtup::m_sample
std::vector< long > * m_sample
Definition: TileCalibHitCntNtup.h:145
TileCalibHitCntNtup::m_inact_Total
std::vector< float > * m_inact_Total
Definition: TileCalibHitCntNtup.h:147
TileCalibHitCntNtup::m_inact_ext_Invisible
float m_inact_ext_Invisible
Definition: TileCalibHitCntNtup.h:108
TileCalibHitCntNtup::m_barr_NonEm
float m_barr_NonEm
Definition: TileCalibHitCntNtup.h:89
TileCalibHitCntNtup::m_ActiveHitContainer
std::string m_ActiveHitContainer
Definition: TileCalibHitCntNtup.h:168
TileCalibHitCntNtup::m_inact_module
std::vector< long > * m_inact_module
Definition: TileCalibHitCntNtup.h:155
TileCalibHitCntNtup::m_dm_sampling
std::vector< long > * m_dm_sampling
Definition: TileCalibHitCntNtup.h:163
TileCalibHitCntNtup::m_dm_vis
std::vector< float > * m_dm_vis
Definition: TileCalibHitCntNtup.h:160
TileCalibHitCntNtup::m_inact_ext_Em
float m_inact_ext_Em
Definition: TileCalibHitCntNtup.h:106
CaloDM_ID
Helper class for Calo Dead Material offline identifiers.
Definition: CaloDM_ID.h:102
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TileCalibHitCntNtup::m_itc_Em
float m_itc_Em
Definition: TileCalibHitCntNtup.h:112
TileCalibHitCntNtup::m_barr_totE
float m_barr_totE
Definition: TileCalibHitCntNtup.h:87
TileCalibHitCntNtup::m_inact_itc_Escaped
float m_inact_itc_Escaped
Definition: TileCalibHitCntNtup.h:121
TileCalibHitCntNtup::m_dm_region
std::vector< long > * m_dm_region
Definition: TileCalibHitCntNtup.h:164
TileCalibHitCntNtup::m_DM_totE
float m_DM_totE
Definition: TileCalibHitCntNtup.h:84
TileCalibHitCntNtup::m_inact_nchan
long m_inact_nchan
Definition: TileCalibHitCntNtup.h:77
TileCalibHitCntNtup::m_Total
std::vector< float > * m_Total
Definition: TileCalibHitCntNtup.h:135
TileCalibHitCntNtup::m_inact_gscin_Invisible
float m_inact_gscin_Invisible
Definition: TileCalibHitCntNtup.h:132
TileCalibHitCntNtup::m_Em
std::vector< float > * m_Em
Definition: TileCalibHitCntNtup.h:136
TileCalibHitCntNtup::m_DM_visE
float m_DM_visE
Definition: TileCalibHitCntNtup.h:85
TileCalibHitCntNtup::m_max_chan
int m_max_chan
Definition: TileCalibHitCntNtup.h:175
TileCalibHitCntNtup::m_inact_itc_NonEm
float m_inact_itc_NonEm
Definition: TileCalibHitCntNtup.h:119
TileCalibHitCntNtup::m_NonEm
std::vector< float > * m_NonEm
Definition: TileCalibHitCntNtup.h:137
AthAlgTool
Definition: AthAlgTool.h:26
TileCalibHitCntNtup::m_dm_eta
std::vector< long > * m_dm_eta
Definition: TileCalibHitCntNtup.h:165
TileCalibHitCntNtup::m_dm_nchan
long m_dm_nchan
Definition: TileCalibHitCntNtup.h:78
TileCalibHitCntNtup::m_inact_ext_NonEm
float m_inact_ext_NonEm
Definition: TileCalibHitCntNtup.h:107
TileCalibHitCntNtup::m_barr_Escaped
float m_barr_Escaped
Definition: TileCalibHitCntNtup.h:91
TileCalibHitCntNtup
This class creates ntuple with calibration hits container info.
Definition: TileCalibHitCntNtup.h:47
TileCalibHitCntNtup::m_gscin_Escaped
float m_gscin_Escaped
Definition: TileCalibHitCntNtup.h:127
ServiceHandle< ITHistSvc >