ATLAS Offline Software
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 
28  int m_ipass;
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< bool > m_fillEMB{this, "FillEMB", true, "if to fill EMB"};
35  Gaudi::Property< bool > m_fillEndcap{this, "FillEndcap", true, "if to fill Eendcap"};
36  Gaudi::Property< bool > m_fillBCID{this, "FillBCID", false, "if to fill BCID"};
37  Gaudi::Property< bool > m_fillLB{this, "FillLB", false, "if to fill LB in Evnt tree"};
38 
39  NTuple::Item<long> m_ntNsamples;
40  NTuple::Item<short> m_gain;
41  NTuple::Item<short> m_bcid;
42  NTuple::Item<unsigned long> m_ELVL1Id;
43  NTuple::Item<unsigned long long> m_IEvent;
44  NTuple::Array<short> m_samples;
45  // variables for accCalibDigit case
46  NTuple::Array<float> m_mean;
47  NTuple::Array<float> m_RMS;
48  NTuple::Item<unsigned int> m_dac;
49  NTuple::Item<unsigned int> m_delay;
50  NTuple::Item<unsigned int> m_pulsed;
51 
52  //
53  //Event based ntuple pointer
54  NTuple::Tuple* m_evt_nt = nullptr;
55 
56  NTuple::Item<unsigned long long> m_IEventEvt;
57  NTuple::Item<short> m_LB;
58 
59  SG::ReadHandleKey<LArDigitContainer> m_contKey{this, "ContainerKey", "FREE", "key for LArDigitContainer"};
60  SG::ReadHandleKey<LArAccumulatedCalibDigitContainer> m_accCalibContKey{this, "AccCalibContainerKey", "HIGH", "key for LArAccumulatedCalibDigitDigitContainer"};
61  SG::ReadHandleKey<LArAccumulatedDigitContainer> m_accContKey{this, "AccContainerKey", "HIGH", "key for LArAccumulatedDigitDigitContainer"};
62  SG::ReadHandleKey<LArFebHeaderContainer> m_LArFebHeaderContainerKey { this, "LArFebHeaderKey", "LArFebHeader" };
63 };
64 
65 #endif
LArDigits2Ntuple::m_evt_nt
NTuple::Tuple * m_evt_nt
Definition: LArDigits2Ntuple.h:54
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
LArDigits2Ntuple::m_LArFebHeaderContainerKey
SG::ReadHandleKey< LArFebHeaderContainer > m_LArFebHeaderContainerKey
Definition: LArDigits2Ntuple.h:62
LArDigits2Ntuple::m_dac
NTuple::Item< unsigned int > m_dac
Definition: LArDigits2Ntuple.h:48
LArCond2NtupleBase.h
LArDigits2Ntuple::m_IEventEvt
NTuple::Item< unsigned long long > m_IEventEvt
Definition: LArDigits2Ntuple.h:56
LArDigits2Ntuple::LArDigits2Ntuple
LArDigits2Ntuple(const std::string &name, ISvcLocator *pSvcLocator)
Definition: LArDigits2Ntuple.cxx:10
LArDigits2Ntuple::m_Nsamples
Gaudi::Property< unsigned int > m_Nsamples
Definition: LArDigits2Ntuple.h:31
LArDigits2Ntuple::m_fillBCID
Gaudi::Property< bool > m_fillBCID
Definition: LArDigits2Ntuple.h:36
LArAccumulatedDigitContainer.h
LArDigits2Ntuple::m_fillEMB
Gaudi::Property< bool > m_fillEMB
Definition: LArDigits2Ntuple.h:34
LArDigits2Ntuple::m_fillLB
Gaudi::Property< bool > m_fillLB
Definition: LArDigits2Ntuple.h:37
LArDigits2Ntuple::m_fillEndcap
Gaudi::Property< bool > m_fillEndcap
Definition: LArDigits2Ntuple.h:35
LArDigits2Ntuple::m_IEvent
NTuple::Item< unsigned long long > m_IEvent
Definition: LArDigits2Ntuple.h:43
SG::ReadHandleKey< LArDigitContainer >
LArDigits2Ntuple::m_ntNsamples
NTuple::Item< long > m_ntNsamples
Definition: LArDigits2Ntuple.h:39
LArDigits2Ntuple::m_ELVL1Id
NTuple::Item< unsigned long > m_ELVL1Id
Definition: LArDigits2Ntuple.h:42
LArCond2NtupleBase
Definition: LArCond2NtupleBase.h:32
LArDigits2Ntuple::m_event
long m_event
Definition: LArDigits2Ntuple.h:29
LArDigits2Ntuple::m_FTlist
Gaudi::Property< std::vector< unsigned int > > m_FTlist
Definition: LArDigits2Ntuple.h:32
LArDigits2Ntuple::m_bcid
NTuple::Item< short > m_bcid
Definition: LArDigits2Ntuple.h:41
LArDigits2Ntuple::m_RMS
NTuple::Array< float > m_RMS
Definition: LArDigits2Ntuple.h:47
LArDigits2Ntuple::execute
virtual StatusCode execute()
Definition: LArDigits2Ntuple.cxx:145
LArDigits2Ntuple::m_pulsed
NTuple::Item< unsigned int > m_pulsed
Definition: LArDigits2Ntuple.h:50
LArDigits2Ntuple::m_gain
NTuple::Item< short > m_gain
Definition: LArDigits2Ntuple.h:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArAccumulatedCalibDigitContainer.h
LArDigits2Ntuple::m_accContKey
SG::ReadHandleKey< LArAccumulatedDigitContainer > m_accContKey
Definition: LArDigits2Ntuple.h:61
LArDigits2Ntuple::m_ipass
int m_ipass
Definition: LArDigits2Ntuple.h:28
LArDigits2Ntuple::m_Slotlist
Gaudi::Property< std::vector< unsigned int > > m_Slotlist
Definition: LArDigits2Ntuple.h:33
LArFebHeaderContainer.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
LArDigits2Ntuple
Definition: LArDigits2Ntuple.h:17
LArDigits2Ntuple::m_contKey
SG::ReadHandleKey< LArDigitContainer > m_contKey
Definition: LArDigits2Ntuple.h:59
LArDigitContainer.h
LArDigits2Ntuple::initialize
virtual StatusCode initialize()
Definition: LArDigits2Ntuple.cxx:23
LArDigits2Ntuple::m_delay
NTuple::Item< unsigned int > m_delay
Definition: LArDigits2Ntuple.h:49
LArDigits2Ntuple::m_mean
NTuple::Array< float > m_mean
Definition: LArDigits2Ntuple.h:46
LArDigits2Ntuple::m_samples
NTuple::Array< short > m_samples
Definition: LArDigits2Ntuple.h:44
LArDigits2Ntuple::m_accCalibContKey
SG::ReadHandleKey< LArAccumulatedCalibDigitContainer > m_accCalibContKey
Definition: LArDigits2Ntuple.h:60
LArDigits2Ntuple::m_LB
NTuple::Item< short > m_LB
Definition: LArDigits2Ntuple.h:57
LArDigits2Ntuple::~LArDigits2Ntuple
~LArDigits2Ntuple()