ATLAS Offline Software
Loading...
Searching...
No Matches
LArDigits2Ntuple.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 LARDIGITS2NTUPLE_H
6#define LARDIGITS2NTUPLE_H
7
14
15
17{
18 public:
19 LArDigits2Ntuple(const std::string & name, ISvcLocator * pSvcLocator);
21
22 // Standard algorithm methods
23 virtual StatusCode initialize();
24 virtual StatusCode execute();
25
26 protected:
27
29 long m_event;
30
31 Gaudi::Property< unsigned int > m_Nsamples{this, "NSamples", 32, "number of samples to store"};
32 Gaudi::Property< std::vector<unsigned int> > m_FTlist{this, "FTlist", {}, "which FT to dump"};
33 Gaudi::Property< std::vector<unsigned int> > m_Slotlist{this, "Slotlist", {}, "which Slot to dump"};
34 Gaudi::Property< std::vector<unsigned int> > m_Sidelist{this, "Sidelist", {}, "which side to dump"};
35 Gaudi::Property< std::vector<unsigned int> > m_BElist{this, "BElist", {}, "which B or E to dump"};
36 Gaudi::Property< bool > m_fillEMB{this, "FillEMB", true, "if to fill EMB"};
37 Gaudi::Property< bool > m_fillEndcap{this, "FillEndcap", true, "if to fill Eendcap"};
38 Gaudi::Property< bool > m_fillBCID{this, "FillBCID", false, "if to fill BCID"};
39 Gaudi::Property< bool > m_fillLB{this, "FillLB", false, "if to fill LB in Evnt tree"};
40
41 NTuple::Item<long> m_ntNsamples;
42 NTuple::Item<short> m_gain;
43 NTuple::Item<short> m_bcid;
44 NTuple::Item<unsigned long> m_ELVL1Id;
45 NTuple::Item<unsigned long long> m_IEvent;
46 NTuple::Array<short> m_samples;
47 // variables for accCalibDigit case
48 NTuple::Array<float> m_mean;
49 NTuple::Array<float> m_RMS;
50 NTuple::Item<unsigned int> m_dac;
51 NTuple::Item<unsigned int> m_delay;
52 NTuple::Item<unsigned int> m_pulsed;
53
54 //
55 //Event based ntuple pointer
56 NTuple::Tuple* m_evt_nt = nullptr;
57
58 NTuple::Item<unsigned long long> m_IEventEvt;
59 NTuple::Item<short> m_LB;
60
61 SG::ReadHandleKey<LArDigitContainer> m_contKey{this, "ContainerKey", "", "key for LArDigitContainer"};
62 SG::ReadHandleKey<LArAccumulatedCalibDigitContainer> m_accCalibContKey{this, "AccCalibContainerKey", "", "key for LArAccumulatedCalibDigitDigitContainer"};
63 SG::ReadHandleKey<LArAccumulatedDigitContainer> m_accContKey{this, "AccContainerKey", "", "key for LArAccumulatedDigitDigitContainer"};
64 SG::ReadHandleKey<LArFebHeaderContainer> m_LArFebHeaderContainerKey { this, "LArFebHeaderKey", "LArFebHeader" };
65};
66
67#endif
Property holding a SG store/key/clid from which a ReadHandle is made.
LArCond2NtupleBase(const std::string &name, ISvcLocator *pSvcLocator)
NTuple::Array< short > m_samples
Gaudi::Property< bool > m_fillLB
Gaudi::Property< bool > m_fillBCID
NTuple::Item< unsigned int > m_delay
SG::ReadHandleKey< LArDigitContainer > m_contKey
NTuple::Array< float > m_RMS
NTuple::Item< short > m_LB
Gaudi::Property< std::vector< unsigned int > > m_BElist
LArDigits2Ntuple(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< std::vector< unsigned int > > m_Slotlist
NTuple::Array< float > m_mean
Gaudi::Property< std::vector< unsigned int > > m_Sidelist
Gaudi::Property< std::vector< unsigned int > > m_FTlist
SG::ReadHandleKey< LArFebHeaderContainer > m_LArFebHeaderContainerKey
Gaudi::Property< unsigned int > m_Nsamples
NTuple::Item< long > m_ntNsamples
Gaudi::Property< bool > m_fillEMB
NTuple::Item< short > m_bcid
virtual StatusCode execute()
NTuple::Item< unsigned long long > m_IEvent
SG::ReadHandleKey< LArAccumulatedDigitContainer > m_accContKey
NTuple::Item< unsigned long > m_ELVL1Id
virtual StatusCode initialize()
NTuple::Item< unsigned int > m_pulsed
Gaudi::Property< bool > m_fillEndcap
NTuple::Tuple * m_evt_nt
SG::ReadHandleKey< LArAccumulatedCalibDigitContainer > m_accCalibContKey
NTuple::Item< short > m_gain
NTuple::Item< unsigned long long > m_IEventEvt
NTuple::Item< unsigned int > m_dac
Property holding a SG store/key/clid from which a ReadHandle is made.