ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArCondUtils
src
LArHV2Ntuple.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// TheLArHV2Ntuple.h
6
//
7
8
#ifndef LARCONDUTILS_LARHV2NTUPLE_H
9
#define LARCONDUTILS_LARHV2NTUPLE_H
10
11
#include <string>
12
13
// Gaudi includes
14
15
#include "
AthenaBaseComps/AthAlgorithm.h
"
16
#include "
StoreGate/StoreGateSvc.h
"
17
#include "GaudiKernel/ITHistSvc.h"
18
#include "
StoreGate/ReadCondHandleKey.h
"
19
#include "
StoreGate/CondHandleKeyArray.h
"
20
#include "
LArCabling/LArOnOffIdMapping.h
"
21
#include "
LArRecConditions/LArHVIdMapping.h
"
22
#include "
LArHV/EMBHVManager.h
"
23
#include "
LArHV/EMECHVManager.h
"
24
#include "
LArHV/EMBPresamplerHVManager.h
"
25
#include "
LArHV/EMECPresamplerHVManager.h
"
26
#include "
LArHV/HECHVManager.h
"
27
#include "
LArHV/FCALHVManager.h
"
28
#include "
CaloDetDescr/CaloDetDescrManager.h
"
29
30
#include "TTree.h"
31
32
class
CaloCell_ID
;
33
class
LArOnlineID
;
34
class
Identifier
;
35
class
HWIdentifier
;
36
class
CondAttrListCollection
;
37
38
class
LArHV2Ntuple
:
public
AthAlgorithm
{
39
public
:
40
//Gaudi style constructor and execution methods
42
LArHV2Ntuple
(
const
std::string& name, ISvcLocator* pSvcLocator);
44
virtual
~LArHV2Ntuple
();
45
47
virtual
StatusCode
initialize
()
override
;
49
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
50
51
private
:
52
53
SG::ReadCondHandleKey<LArOnOffIdMapping>
m_cablingKey
{
this
,
"OnOffMap"
,
"LArOnOffIdMap"
,
"SG key for mapping object"
};
54
SG::ReadCondHandleKey<LArHVIdMapping>
m_hvCablingKey
55
{
this
,
"LArHVIdMapping"
,
"LArHVIdMap"
,
"SG key for HV ID mapping"
};
56
SG::ReadCondHandleKeyArray<CondAttrListCollection>
m_DCSFolderKeys
57
{
this
,
"DCSFolderNames"
, {
"/LAR/DCS/HV/BARREl/I16"
,
"/LAR/DCS/HV/BARREL/I8"
},
"DCS folders with HV values"
};
58
SG::ReadCondHandleKey<CaloDetDescrManager>
m_caloMgrKey
{ this
59
,
"CaloDetDescrManager"
60
,
"CaloDetDescrManager"
61
,
"SG Key for CaloDetDescrManager in the Condition Store"
};
62
63
64
//---------------------------------------------------
65
// Member variables
66
//---------------------------------------------------
67
ServiceHandle<ITHistSvc>
m_thistSvc
{
this
,
"THistSvc"
,
"THistSvc"
};
68
TTree*
m_tree
;
69
70
bool
m_addcells
;
71
72
// tree variables
73
int
m_bec
;
74
int
m_isPresampler
;
75
float
m_eta
;
76
float
m_phi
;
77
int
m_electrode
;
78
int
m_gap
;
79
int
m_hvline
;
80
float
m_hv
;
81
float
m_current
;
82
83
int
m_barrelec
;
84
int
m_posneg
;
85
int
m_FT
;
86
int
m_slot
;
87
int
m_channel
;
88
89
// ID helper
90
const
CaloCell_ID
*
m_caloId
;
91
const
LArOnlineID
*
m_onlId
;
92
std::map<int, std::vector<HWIdentifier> >
m_hvonlId_map
;
93
94
std::vector<int>
GetHVLines
(
const
EMBHVManager::EMBHVData
& hvdata_EMB,
95
const
EMBPresamplerHVManager::EMBPresamplerHVData
& hvdata_EMBPS,
96
const
EMECHVManager::EMECHVData
& hvdata_EMEC_OUT,
97
const
EMECHVManager::EMECHVData
& hvdata_EMEC_IN,
98
const
EMECPresamplerHVManager::EMECPresamplerHVData
& hvdata_EMECPS,
99
const
HECHVManager::HECHVData
& hvdata_HEC,
100
const
FCALHVManager::FCALHVData
& hvdata_FCAL,
101
const
Identifier
&
id
,
102
const
CaloDetDescrManager
* calodetdescrmgr) ;
103
};
104
#endif
AthAlgorithm.h
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
CondHandleKeyArray.h
EMBHVManager.h
EMBPresamplerHVManager.h
EMECHVManager.h
EMECPresamplerHVManager.h
FCALHVManager.h
HECHVManager.h
LArHVIdMapping.h
LArOnOffIdMapping.h
ReadCondHandleKey.h
StoreGateSvc.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
CaloDetDescrManager
This class provides the client interface for accessing the detector description information common to...
Definition
CaloDetDescrManager.h:469
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number.
Definition
CondAttrListCollection.h:51
EMBHVManager::EMBHVData
Definition
EMBHVManager.h:39
EMBPresamplerHVManager::EMBPresamplerHVData
Definition
EMBPresamplerHVManager.h:40
EMECHVManager::EMECHVData
Definition
EMECHVManager.h:41
EMECPresamplerHVManager::EMECPresamplerHVData
Definition
EMECPresamplerHVManager.h:39
FCALHVManager::FCALHVData
Definition
FCALHVManager.h:38
HECHVManager::HECHVData
Definition
HECHVManager.h:39
HWIdentifier
Definition
HWIdentifier.h:13
LArHV2Ntuple::m_slot
int m_slot
Definition
LArHV2Ntuple.h:86
LArHV2Ntuple::GetHVLines
std::vector< int > GetHVLines(const EMBHVManager::EMBHVData &hvdata_EMB, const EMBPresamplerHVManager::EMBPresamplerHVData &hvdata_EMBPS, const EMECHVManager::EMECHVData &hvdata_EMEC_OUT, const EMECHVManager::EMECHVData &hvdata_EMEC_IN, const EMECPresamplerHVManager::EMECPresamplerHVData &hvdata_EMECPS, const HECHVManager::HECHVData &hvdata_HEC, const FCALHVManager::FCALHVData &hvdata_FCAL, const Identifier &id, const CaloDetDescrManager *calodetdescrmgr)
Definition
LArHV2Ntuple.cxx:457
LArHV2Ntuple::m_posneg
int m_posneg
Definition
LArHV2Ntuple.h:84
LArHV2Ntuple::m_isPresampler
int m_isPresampler
Definition
LArHV2Ntuple.h:74
LArHV2Ntuple::m_thistSvc
ServiceHandle< ITHistSvc > m_thistSvc
Definition
LArHV2Ntuple.h:67
LArHV2Ntuple::m_tree
TTree * m_tree
Definition
LArHV2Ntuple.h:68
LArHV2Ntuple::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition
LArHV2Ntuple.h:58
LArHV2Ntuple::m_eta
float m_eta
Definition
LArHV2Ntuple.h:75
LArHV2Ntuple::m_hv
float m_hv
Definition
LArHV2Ntuple.h:80
LArHV2Ntuple::m_current
float m_current
Definition
LArHV2Ntuple.h:81
LArHV2Ntuple::m_channel
int m_channel
Definition
LArHV2Ntuple.h:87
LArHV2Ntuple::m_hvonlId_map
std::map< int, std::vector< HWIdentifier > > m_hvonlId_map
Definition
LArHV2Ntuple.h:92
LArHV2Ntuple::m_DCSFolderKeys
SG::ReadCondHandleKeyArray< CondAttrListCollection > m_DCSFolderKeys
Definition
LArHV2Ntuple.h:57
LArHV2Ntuple::execute
virtual StatusCode execute(const EventContext &ctx) override
standard Athena-Algorithm method
Definition
LArHV2Ntuple.cxx:92
LArHV2Ntuple::m_FT
int m_FT
Definition
LArHV2Ntuple.h:85
LArHV2Ntuple::m_addcells
bool m_addcells
Definition
LArHV2Ntuple.h:70
LArHV2Ntuple::m_electrode
int m_electrode
Definition
LArHV2Ntuple.h:77
LArHV2Ntuple::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition
LArHV2Ntuple.h:53
LArHV2Ntuple::m_phi
float m_phi
Definition
LArHV2Ntuple.h:76
LArHV2Ntuple::m_caloId
const CaloCell_ID * m_caloId
Definition
LArHV2Ntuple.h:90
LArHV2Ntuple::m_barrelec
int m_barrelec
Definition
LArHV2Ntuple.h:83
LArHV2Ntuple::m_onlId
const LArOnlineID * m_onlId
Definition
LArHV2Ntuple.h:91
LArHV2Ntuple::m_hvCablingKey
SG::ReadCondHandleKey< LArHVIdMapping > m_hvCablingKey
Definition
LArHV2Ntuple.h:55
LArHV2Ntuple::m_hvline
int m_hvline
Definition
LArHV2Ntuple.h:79
LArHV2Ntuple::m_gap
int m_gap
Definition
LArHV2Ntuple.h:78
LArHV2Ntuple::m_bec
int m_bec
Definition
LArHV2Ntuple.h:73
LArOnlineID
Definition
LArOnlineID.h:21
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
ServiceHandle
Definition
ClusterMakerTool.h:36
Identifier
Definition
IdentifierFieldParser.cxx:14
LArHV2Ntuple
Definition
LArHV2Ntuple.py:1
SG::ReadCondHandleKeyArray
HandleKeyArray< ReadCondHandle< T >, CondHandleDefault::Key< ReadCondHandleKey< T > >, Gaudi::DataHandle::Reader > ReadCondHandleKeyArray
Definition
CondHandleKeyArray.h:30
initialize
void initialize()
Definition
run_EoverP.cxx:894
Generated on
for ATLAS Offline Software by
1.17.0