ATLAS Offline Software
Loading...
Searching...
No Matches
LArSC2NtupleEB.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#ifndef LARSC2NTUPLEEB_H
6#define LARSC2NTUPLEEB_H
7
15
16
17
19{
20 public:
21 LArSC2NtupleEB(const std::string & name, ISvcLocator * pSvcLocator);
22
23 // Standard algorithm methods
24 virtual StatusCode initialize() override;
25 virtual StatusCode execute() override;
26
27 protected:
28
29 Gaudi::Property< unsigned int > m_scNet{this, "scNet", 5, "number of energies from raw"};
30 Gaudi::Property< unsigned int > m_recoNet{this, "recoNet", 5, "number of energies from reco"};
31 Gaudi::Property< bool > m_fillBCID{this, "FillBCID", false, "if to fill BCID"};
32
33 Gaudi::Property< float > m_eCut{this, "EnergyCut", 0., "when to fll"};
34
35 NTuple::Item<unsigned long long> m_IEvent;
36 NTuple::Item<short> m_bcid;
37
38 NTuple::Matrix<float> m_energyVec_ET;
39 NTuple::Matrix<float> m_bcidVec_ET;
40 NTuple::Matrix<bool> m_saturVec_ET;
41 NTuple::Matrix<bool> m_passVec_ET;
42
43 NTuple::Matrix<float> m_energyVec_Reco;
44 NTuple::Matrix<float> m_tauVec_Reco;
45 NTuple::Matrix<float> m_bcidVec_Reco;
46 NTuple::Matrix<bool> m_passVec_Reco;
47 NTuple::Matrix<bool> m_saturVec_Reco;
48
49 NTuple::Matrix<float> m_ROD_energy;
50 NTuple::Matrix<float> m_ROD_time;
51 NTuple::Matrix<float> m_ROD_id;
52
53 SG::ReadHandleKey<LArRawSCContainer> m_sccontKey{this, "EnergyContainerKey", "", "key for LArRawSCContainer from bytestream"};
54 SG::ReadHandleKey<LArRawSCContainer> m_reccontKey{this, "RecoContainerKey", "", "key for LArRawSCContainer reconstructed from digits"};
55 SG::ReadHandleKey<LArRawChannelContainer> m_rawcontKey{this, "RawChanContainerKey", "", "key for LArRawChannelsContainer"};
56
57 SG::ReadHandleKey<xAOD::EventInfo> m_evtInfoKey { this, "EventInfoKey", "EventInfo", "SG for EventInfo Key" };
58
59 SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKeyAdditional{this,"CablingKeyAdditional","LArOnOffIdMap","SG Key of LArOnOffIdMapping object for standard cells"};
60
61 ToolHandle<ICaloSuperCellIDTool> m_scidtool{this, "CaloSuperCellIDTool", "CaloSuperCellIDTool", "Offline / SuperCell ID mapping tool"};
62
63 typedef std::map<HWIdentifier, const LArRawChannel*> rawChanMap_t;
64 void fillRODEnergy(HWIdentifier SCId, unsigned cell, rawChanMap_t &rawChanMap,
65 const LArOnOffIdMapping* cabling, const LArOnOffIdMapping* cablingROD);
66
67 typedef std::map<HWIdentifier, const LArRawSC*> rawSCMap_t;
68};
69
70#endif
Property holding a SG store/key/clid from which a ReadHandle is made.
LArCond2NtupleBaseEB(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadHandleKey< LArRawSCContainer > m_reccontKey
NTuple::Matrix< float > m_ROD_energy
virtual StatusCode execute() override
SG::ReadHandleKey< LArRawChannelContainer > m_rawcontKey
SG::ReadHandleKey< LArRawSCContainer > m_sccontKey
NTuple::Matrix< float > m_ROD_time
Gaudi::Property< bool > m_fillBCID
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKeyAdditional
void fillRODEnergy(HWIdentifier SCId, unsigned cell, rawChanMap_t &rawChanMap, const LArOnOffIdMapping *cabling, const LArOnOffIdMapping *cablingROD)
NTuple::Matrix< float > m_tauVec_Reco
NTuple::Matrix< float > m_energyVec_ET
NTuple::Item< unsigned long long > m_IEvent
NTuple::Matrix< bool > m_passVec_ET
NTuple::Matrix< bool > m_passVec_Reco
NTuple::Matrix< float > m_bcidVec_Reco
virtual StatusCode initialize() override
NTuple::Item< short > m_bcid
Gaudi::Property< unsigned int > m_recoNet
NTuple::Matrix< bool > m_saturVec_Reco
std::map< HWIdentifier, const LArRawChannel * > rawChanMap_t
Gaudi::Property< unsigned int > m_scNet
SG::ReadHandleKey< xAOD::EventInfo > m_evtInfoKey
ToolHandle< ICaloSuperCellIDTool > m_scidtool
Gaudi::Property< float > m_eCut
NTuple::Matrix< bool > m_saturVec_ET
std::map< HWIdentifier, const LArRawSC * > rawSCMap_t
NTuple::Matrix< float > m_energyVec_Reco
NTuple::Matrix< float > m_bcidVec_ET
NTuple::Matrix< float > m_ROD_id
LArSC2NtupleEB(const std::string &name, ISvcLocator *pSvcLocator)
Property holding a SG store/key/clid from which a ReadHandle is made.