ATLAS Offline Software
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 
16 #include "StoreGate/StoreGateSvc.h"
17 #include "GaudiKernel/ITHistSvc.h"
22 #include "LArHV/EMBHVManager.h"
23 #include "LArHV/EMECHVManager.h"
26 #include "LArHV/HECHVManager.h"
27 #include "LArHV/FCALHVManager.h"
29 
30 #include "TTree.h"
31 
32 class CaloCell_ID;
33 class LArOnlineID;
34 class Identifier;
35 class HWIdentifier;
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() override;
50 
51  private:
52 
53  SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this, "OnOffMap", "LArOnOffIdMap", "SG key for mapping object"};
55  {this, "LArHVIdMapping", "LArHVIdMap", "SG key for HV ID mapping"};
57  { this, "DCSFolderNames", {"/LAR/DCS/HV/BARREl/I16", "/LAR/DCS/HV/BARREL/I8"}, "DCS folders with HV values"};
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;
75  float m_eta;
76  float m_phi;
78  int m_gap;
79  int m_hvline;
80  float m_hv;
81  float m_current;
82 
84  int m_posneg;
85  int m_FT;
86  int m_slot;
87  int m_channel;
88 
89  // ID helper
92  std::map<int, std::vector<HWIdentifier> >m_hvonlId_map;
93 
94  std::vector<int> GetHVLines (const EMBHVManager::EMBHVData& hvdata_EMB,
96  const EMECHVManager::EMECHVData& hvdata_EMEC_OUT,
97  const EMECHVManager::EMECHVData& hvdata_EMEC_IN,
99  const HECHVManager::HECHVData& hvdata_HEC,
100  const FCALHVManager::FCALHVData& hvdata_FCAL,
101  const Identifier& id,
102  const CaloDetDescrManager* calodetdescrmgr) ;
103 };
104 #endif
LArHV2Ntuple::m_electrode
int m_electrode
Definition: LArHV2Ntuple.h:77
LArHV2Ntuple::m_hvCablingKey
SG::ReadCondHandleKey< LArHVIdMapping > m_hvCablingKey
Definition: LArHV2Ntuple.h:55
LArHV2Ntuple::m_caloId
const CaloCell_ID * m_caloId
Definition: LArHV2Ntuple.h:90
LArHV2Ntuple::m_slot
int m_slot
Definition: LArHV2Ntuple.h:86
LArHV2Ntuple::m_hvline
int m_hvline
Definition: LArHV2Ntuple.h:79
LArHV2Ntuple::m_phi
float m_phi
Definition: LArHV2Ntuple.h:76
EMBPresamplerHVManager.h
LArHV2Ntuple::m_thistSvc
ServiceHandle< ITHistSvc > m_thistSvc
Definition: LArHV2Ntuple.h:67
EMECHVManager.h
LArHV2Ntuple::m_DCSFolderKeys
SG::ReadCondHandleKeyArray< CondAttrListCollection > m_DCSFolderKeys
Definition: LArHV2Ntuple.h:57
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
EMECPresamplerHVManager.h
LArHV2Ntuple::m_bec
int m_bec
Definition: LArHV2Ntuple.h:73
HWIdentifier
Definition: HWIdentifier.h:13
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
LArHV2Ntuple::m_FT
int m_FT
Definition: LArHV2Ntuple.h:85
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
LArHV2Ntuple::LArHV2Ntuple
LArHV2Ntuple(const std::string &name, ISvcLocator *pSvcLocator)
Standard Athena-Algorithm Constructor.
Definition: LArHV2Ntuple.cxx:32
HECHVManager.h
AthAlgorithm.h
LArHV2Ntuple
Definition: LArHV2Ntuple.py:1
LArHV2Ntuple::m_current
float m_current
Definition: LArHV2Ntuple.h:81
LArHV2Ntuple::m_eta
float m_eta
Definition: LArHV2Ntuple.h:75
HECHVManager::HECHVData
Definition: HECHVManager.h:39
LArOnOffIdMapping.h
EMBPresamplerHVManager::EMBPresamplerHVData
Definition: EMBPresamplerHVManager.h:40
LArHV2Ntuple::m_gap
int m_gap
Definition: LArHV2Ntuple.h:78
EMECHVManager::EMECHVData
Definition: EMECHVManager.h:41
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArHVIdMapping.h
LArHV2Ntuple::initialize
virtual StatusCode initialize() override
standard Athena-Algorithm method
Definition: LArHV2Ntuple.cxx:58
LArHV2Ntuple::m_channel
int m_channel
Definition: LArHV2Ntuple.h:87
EMECPresamplerHVManager::EMECPresamplerHVData
Definition: EMECPresamplerHVManager.h:39
LArHV2Ntuple::m_barrelec
int m_barrelec
Definition: LArHV2Ntuple.h:83
CaloCell_ID
Helper class for offline cell identifiers.
Definition: CaloCell_ID.h:34
CondHandleKeyArray.h
AthAlgorithm
Definition: AthAlgorithm.h:47
ReadCondHandleKey.h
LArHV2Ntuple::m_posneg
int m_posneg
Definition: LArHV2Ntuple.h:84
EMBHVManager::EMBHVData
Definition: EMBHVManager.h:39
LArHV2Ntuple::execute
virtual StatusCode execute() override
standard Athena-Algorithm method
Definition: LArHV2Ntuple.cxx:93
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
LArOnlineID
Definition: LArOnlineID.h:20
SG::ReadCondHandleKey< LArOnOffIdMapping >
LArHV2Ntuple::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: LArHV2Ntuple.h:53
LArHV2Ntuple::m_hv
float m_hv
Definition: LArHV2Ntuple.h:80
CaloDetDescrManager
This class provides the client interface for accessing the detector description information common to...
Definition: CaloDetDescrManager.h:473
FCALHVManager.h
LArHV2Ntuple::m_onlId
const LArOnlineID * m_onlId
Definition: LArHV2Ntuple.h:91
LArHV2Ntuple::~LArHV2Ntuple
virtual ~LArHV2Ntuple()
Default Destructor.
Definition: LArHV2Ntuple.cxx:53
LArHV2Ntuple::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition: LArHV2Ntuple.h:58
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:459
LArHV2Ntuple::m_addcells
bool m_addcells
Definition: LArHV2Ntuple.h:70
StoreGateSvc.h
FCALHVManager::FCALHVData
Definition: FCALHVManager.h:38
EMBHVManager.h
LArHV2Ntuple::m_hvonlId_map
std::map< int, std::vector< HWIdentifier > > m_hvonlId_map
Definition: LArHV2Ntuple.h:92
LArHV2Ntuple::m_isPresampler
int m_isPresampler
Definition: LArHV2Ntuple.h:74
ServiceHandle< ITHistSvc >
LArHV2Ntuple::m_tree
TTree * m_tree
Definition: LArHV2Ntuple.h:68
Identifier
Definition: IdentifierFieldParser.cxx:14