ATLAS Offline Software
Loading...
Searching...
No Matches
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
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
32class CaloCell_ID;
33class LArOnlineID;
34class Identifier;
35class HWIdentifier;
37
38class 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
71
72 // tree variables
73 int m_bec;
75 float m_eta;
76 float m_phi;
78 int m_gap;
80 float m_hv;
81 float m_current;
82
85 int m_FT;
86 int m_slot;
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
Definition of CaloDetDescrManager.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Helper class for offline cell identifiers.
Definition CaloCell_ID.h:34
This class provides the client interface for accessing the detector description information common to...
This class is a collection of AttributeLists where each one is associated with a channel number.
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)
ServiceHandle< ITHistSvc > m_thistSvc
TTree * m_tree
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
std::map< int, std::vector< HWIdentifier > > m_hvonlId_map
SG::ReadCondHandleKeyArray< CondAttrListCollection > m_DCSFolderKeys
virtual StatusCode execute() override
standard Athena-Algorithm method
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
const CaloCell_ID * m_caloId
const LArOnlineID * m_onlId
SG::ReadCondHandleKey< LArHVIdMapping > m_hvCablingKey
HandleKeyArray< ReadCondHandle< T >, CondHandleDefault::Key< ReadCondHandleKey< T > >, Gaudi::DataHandle::Reader > ReadCondHandleKeyArray
void initialize()