ATLAS Offline Software
LArAverages2Ntuple.h
Go to the documentation of this file.
1 //Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 
8 /*
9  * @author S. Laplace
10  * 14. 12. 2005
11  * Modifications:
12  * P. Strizenec 9.3.2023 migration to rel. 23
13 */
14 
15 #ifndef LARAVERAGES2NTUPLE_H
16 #define LARAVERAGES2NTUPLE_H
17 
22 
24 {
25  public:
26  LArAverages2Ntuple(const std::string & name, ISvcLocator * pSvcLocator);
28 
29  //standard algorithm methods
30  virtual StatusCode initialize() override final;
31  virtual StatusCode execute() override final;
32 
33  private:
35 
36  SG::ReadHandleKey<LArAccumulatedCalibDigitContainer> m_contKey{this, "ContainerKey","","LArAccumulatedCalibDigit key"};
37  Gaudi::Property< unsigned int > m_Nsamples{this, "NSamples", 32,"Number of samples to store"};
38  Gaudi::Property< bool > m_keepPulsed{this, "KeepOnlyPulsed", true};
39  Gaudi::Property< std::vector<unsigned int> > m_keepFT{this,"KeepFT", {}, "list of FT to keep"};
40 
41  std::string m_ntName;
42 
43  unsigned long long m_event;
44  bool m_pass;
45 
46  NTuple::Item<unsigned long long> m_IEvent;
47  NTuple::Item<unsigned long long> m_EventNum;
48  NTuple::Item<long> m_Nsteps;
49  NTuple::Item<long> m_DAC;
50  NTuple::Item<long> m_Ntrigger;
51  NTuple::Item<long> m_delay;
52  NTuple::Item<long> m_ntNsamples;
53  NTuple::Item<long> m_isPulsed;
54 
55  NTuple::Item<unsigned long> m_StepIndex;
56 
57  NTuple::Array<unsigned int> m_Sum;
58  NTuple::Array<unsigned int> m_SumSq;
59  NTuple::Array<float> m_Mean;
60  NTuple::Array<float> m_RMS;
61 
62 };
63 
64 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
LArAverages2Ntuple::initialize
virtual StatusCode initialize() override final
Definition: LArAverages2Ntuple.cxx:14
LArAverages2Ntuple::m_StepIndex
NTuple::Item< unsigned long > m_StepIndex
Definition: LArAverages2Ntuple.h:55
LArCond2NtupleBase.h
LArAverages2Ntuple::m_SumSq
NTuple::Array< unsigned int > m_SumSq
Definition: LArAverages2Ntuple.h:58
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
LArAverages2Ntuple::m_contKey
SG::ReadHandleKey< LArAccumulatedCalibDigitContainer > m_contKey
Definition: LArAverages2Ntuple.h:36
LArAverages2Ntuple::m_ntName
std::string m_ntName
Definition: LArAverages2Ntuple.h:41
LArAverages2Ntuple::m_keepPulsed
Gaudi::Property< bool > m_keepPulsed
Definition: LArAverages2Ntuple.h:38
LArAverages2Ntuple::m_EventNum
NTuple::Item< unsigned long long > m_EventNum
Definition: LArAverages2Ntuple.h:47
LArAverages2Ntuple::m_event
unsigned long long m_event
Definition: LArAverages2Ntuple.h:43
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
LArAverages2Ntuple
Definition: LArAverages2Ntuple.h:24
LArAverages2Ntuple::m_onlineHelper
const LArOnlineID_Base * m_onlineHelper
Definition: LArAverages2Ntuple.h:34
LArCond2NtupleBase
Definition: LArCond2NtupleBase.h:32
LArAverages2Ntuple::~LArAverages2Ntuple
~LArAverages2Ntuple()
Definition: LArAverages2Ntuple.h:27
LArAverages2Ntuple::m_pass
bool m_pass
Definition: LArAverages2Ntuple.h:44
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArAverages2Ntuple::m_Mean
NTuple::Array< float > m_Mean
Definition: LArAverages2Ntuple.h:59
LArAverages2Ntuple::m_IEvent
NTuple::Item< unsigned long long > m_IEvent
Definition: LArAverages2Ntuple.h:46
LArAccumulatedCalibDigitContainer.h
LArAverages2Ntuple::m_delay
NTuple::Item< long > m_delay
Definition: LArAverages2Ntuple.h:51
LArAverages2Ntuple::m_Sum
NTuple::Array< unsigned int > m_Sum
Definition: LArAverages2Ntuple.h:57
LArAverages2Ntuple::LArAverages2Ntuple
LArAverages2Ntuple(const std::string &name, ISvcLocator *pSvcLocator)
Definition: LArAverages2Ntuple.cxx:10
LArOnlineID_Base
Helper for the Liquid Argon Calorimeter cell identifiers.
Definition: LArOnlineID_Base.h:105
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
LArAverages2Ntuple::m_DAC
NTuple::Item< long > m_DAC
Definition: LArAverages2Ntuple.h:49
LArAverages2Ntuple::m_Nsamples
Gaudi::Property< unsigned int > m_Nsamples
Definition: LArAverages2Ntuple.h:37
LArAverages2Ntuple::execute
virtual StatusCode execute() override final
Definition: LArAverages2Ntuple.cxx:69
LArAverages2Ntuple::m_isPulsed
NTuple::Item< long > m_isPulsed
Definition: LArAverages2Ntuple.h:53
LArAverages2Ntuple::m_Ntrigger
NTuple::Item< long > m_Ntrigger
Definition: LArAverages2Ntuple.h:50
LArAverages2Ntuple::m_ntNsamples
NTuple::Item< long > m_ntNsamples
Definition: LArAverages2Ntuple.h:52
LArAverages2Ntuple::m_keepFT
Gaudi::Property< std::vector< unsigned int > > m_keepFT
Definition: LArAverages2Ntuple.h:39
LArAccumulatedCalibDigitContainer
Container class for LArAccumulatedCalibDigit.
Definition: LArAccumulatedCalibDigitContainer.h:25
LArAverages2Ntuple::m_Nsteps
NTuple::Item< long > m_Nsteps
Definition: LArAverages2Ntuple.h:48
LArAverages2Ntuple::m_RMS
NTuple::Array< float > m_RMS
Definition: LArAverages2Ntuple.h:60
LArOnlineID.h