ATLAS Offline Software
Loading...
Searching...
No Matches
ZDC::ZdcLEDAnalysisTool Class Reference

#include <ZdcLEDAnalysisTool.h>

Inheritance diagram for ZDC::ZdcLEDAnalysisTool:

Public Member Functions

 ZdcLEDAnalysisTool (const std::string &name)
virtual ~ZdcLEDAnalysisTool () override
StatusCode initialize () override
 Dummy implementation of the initialisation function.
StatusCode recoZdcModules (const xAOD::ZdcModuleContainer &moduleContainer, const xAOD::ZdcModuleContainer &moduleSumContainer) override
StatusCode reprocessZdc () override
ZDCMsg::MessageFunctionPtr MakeMessageFunction ()
virtual void print () const
 Print the state of the tool.
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const
Additional helper functions, not directly mimicking Athena
template<class T>
const T * getProperty (const std::string &name) const
 Get one of the tool's properties.
const std::string & msg_level_name () const __attribute__((deprecated))
 A deprecated function for getting the message level's name.
const std::string & getName (const void *ptr) const
 Get the name of an object that is / should be in the event store.
SG::sgkey_t getKey (const void *ptr) const
 Get the (hashed) key of an object that is in the event store.

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

void initialize_ppPbPb2023 ()
void initialize_ppALFA2023 ()
void initialize_zdcStandalone ()
ZDCLEDModuleResults processZDCModule (const xAOD::ZdcModule &module)
ZDCLEDModuleResults processRPDModule (const xAOD::ZdcModule &module)
ZDCLEDModuleResults processModuleData (int iside, int imod, const std::vector< unsigned short > &data, unsigned int startSample, unsigned int endSample, float gainScale)
double getAmplitudeCorrection (int iside, int imod, bool highGain, float fitAmp)
void setFADCCorrections (unsigned int runNumber)
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

bool m_init {false}
std::string m_name
Gaudi::Property< std::string > m_configuration {this, "Configuration", "ppPbPb2023", "Which config files to use"}
bool m_writeAux {false}
Gaudi::Property< std::string > m_auxSuffix {this, "AuxSuffix", "", "Append this tag onto end of AuxData"}
Gaudi::Property< bool > m_doRPD {this, "doRPD", true, "Process RPD Data?"}
Gaudi::Property< bool > m_doZDC {this, "doZDC", true, "Process ZDC Data?"}
std::vector< unsigned int > m_LEDCalreqIdx
std::vector< unsigned int > m_LEDBCID
const std::vector< std::string > m_LEDNames = {"Blue1", "Green", "Blue2"}
const std::vector< std::string > m_calreqNames = {"CalReq1", "CalReq2", "CalReq3"}
unsigned int m_HGADCOverflow {4095}
unsigned int m_numSamples {24}
unsigned int m_preSample {0}
float m_deltaTSample {3.125}
unsigned int m_sampleAnaStartZDC {0}
unsigned int m_sampleAnaEndZDC {23}
unsigned int m_sampleAnaStartRPD {0}
unsigned int m_sampleAnaEndRPD {23}
float m_ZdcLowGainScale {10}
Gaudi::Property< std::string > m_zdcModuleContainerName {this, "ZdcModuleContainerName", "ZdcModules", "Location of ZDC processed data"}
const xAOD::ZdcModuleContainerm_zdcModules {nullptr}
Gaudi::Property< std::string > m_zdcSumContainerName {this, "ZdcSumContainerName", "ZdcSums", "Location of ZDC processed sums"}
const xAOD::ZdcModuleContainerm_zdcSums {nullptr}
SG::ReadHandleKey< xAOD::EventInfom_eventInfoKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_eventTypeKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_robBCIDKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_DAQModeKey
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcLEDType {this, "ZdcLEDType", "", "ZDC LED Type (0-Blue1, 1-Green, 2-Blue2}"}
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcLEDPresampleADC {this, "ZdcLEDPresampleADC", "", "ZDC LED presample"}
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcLEDADCSum {this, "ZdcLEDADCSum", "", "ZDC LED pulse FADC sum"}
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcLEDMaxADC {this, "ZdcLEDMaxADC", "", "ZDC LED pulse max FADC value"}
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcLEDMaxSample {this, "ZdcLEDMaxSample", "", "ZDC LED max FADC sample"}
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcLEDAvgTime {this, "ZdcLEDAvgTime", "", "ZDC LED average time"}
bool m_doFADCCorr {}
unsigned int m_runNumber {}
int m_forceCalibRun {}
std::array< std::array< std::unique_ptr< const TH1 >, 4 >, 2 > m_FADCCorrHG
std::array< std::array< std::unique_ptr< const TH1 >, 4 >, 2 > m_FADCCorrLG
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Definition at line 59 of file ZdcLEDAnalysisTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ ZdcLEDAnalysisTool()

ZDC::ZdcLEDAnalysisTool::ZdcLEDAnalysisTool ( const std::string & name)

Definition at line 22 of file ZdcLEDAnalysisTool.cxx.

22 :
23 asg::AsgTool(name),
24 m_name(name)
25{
26
27
28#ifndef XAOD_STANDALONE
29 declareInterface<IZdcAnalysisTool>(this);
30#endif
31 declareProperty("ForceCalibRun", m_forceCalibRun = -1);
32 declareProperty("DoFADCCorr", m_doFADCCorr = false);
33}
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ ~ZdcLEDAnalysisTool()

ZDC::ZdcLEDAnalysisTool::~ZdcLEDAnalysisTool ( )
overridevirtual

Definition at line 35 of file ZdcLEDAnalysisTool.cxx.

36{
37 ATH_MSG_DEBUG("Deleting ZdcLEDAnalysisTool named " << m_name);
38}
#define ATH_MSG_DEBUG(x)

Member Function Documentation

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ getAmplitudeCorrection()

double ZDC::ZdcLEDAnalysisTool::getAmplitudeCorrection ( int iside,
int imod,
bool highGain,
float fitAmp )
private

Definition at line 426 of file ZdcLEDAnalysisTool.cxx.

427{
428 double amplCorrFactor = 1;
429
430 double fadcCorr = highGain ? m_FADCCorrHG[iside][imod]->Interpolate(fitAmp) : m_FADCCorrLG[iside][imod]->Interpolate(fitAmp);
431 amplCorrFactor *= fadcCorr;
432
433 return amplCorrFactor;
434}
std::array< std::array< std::unique_ptr< const TH1 >, 4 >, 2 > m_FADCCorrLG
std::array< std::array< std::unique_ptr< const TH1 >, 4 >, 2 > m_FADCCorrHG

◆ getKey()

SG::sgkey_t asg::AsgTool::getKey ( const void * ptr) const
inherited

Get the (hashed) key of an object that is in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::TEvent both provide ways for getting the SG::sgkey_t key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getName
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The hashed key of the object in the store. If not found, an invalid (zero) key.

Definition at line 119 of file AsgTool.cxx.

119 {
120
121#ifdef XAOD_STANDALONE
122 // In case we use @c xAOD::TEvent, we have a direct function call
123 // for this.
124 return evtStore()->event()->getKey( ptr );
125#else
126 const SG::DataProxy* proxy = evtStore()->proxy( ptr );
127 return ( proxy == nullptr ? 0 : proxy->sgkey() );
128#endif // XAOD_STANDALONE
129 }
ServiceHandle< StoreGateSvc > & evtStore()

◆ getName()

const std::string & asg::AsgTool::getName ( const void * ptr) const
inherited

Get the name of an object that is / should be in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::TEvent both provide ways for getting the std::string name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getKey
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The string name of the object in the store. If not found, an empty string.

Definition at line 106 of file AsgTool.cxx.

106 {
107
108#ifdef XAOD_STANDALONE
109 // In case we use @c xAOD::TEvent, we have a direct function call
110 // for this.
111 return evtStore()->event()->getName( ptr );
112#else
113 const SG::DataProxy* proxy = evtStore()->proxy( ptr );
114 static const std::string dummy = "";
115 return ( proxy == nullptr ? dummy : proxy->name() );
116#endif // XAOD_STANDALONE
117 }

◆ getProperty()

template<class T>
const T * asg::AsgTool::getProperty ( const std::string & name) const
inherited

Get one of the tool's properties.

◆ initialize()

StatusCode ZDC::ZdcLEDAnalysisTool::initialize ( void )
overridevirtual

Dummy implementation of the initialisation function.

It's here to allow the dual-use tools to skip defining an initialisation function. Since many are doing so...

Reimplemented from asg::AsgTool.

Definition at line 40 of file ZdcLEDAnalysisTool.cxx.

41{
42 // Use configuration to direct initialization.
43 //
44 if (m_configuration == "ppPbPb2023") {
46 }
47 else if (m_configuration == "ppALFA2023") {
49 }
50 else if (m_configuration == "zdcStandalone") {
52 }
53 else {
54 ATH_MSG_ERROR("Unknown configuration: " << m_configuration);
55 return StatusCode::FAILURE;
56 }
57
58 // Check for valid configuration
59 //
61 ATH_MSG_ERROR("Invalid initialization of tool for configuration " << m_configuration);
62 return StatusCode::FAILURE;
63 }
64
65 ATH_MSG_INFO("doZDC: " << (m_doZDC ? "true" : "false"));
66 ATH_MSG_INFO("doRPD: " << (m_doRPD ? "true" : "false"));
67 ATH_MSG_INFO("Configuration: " << m_configuration);
68 ATH_MSG_DEBUG("AuxSuffix: " << m_auxSuffix);
69 ATH_MSG_DEBUG("NumSamples: " << m_numSamples);
70 ATH_MSG_DEBUG("Presample: " << m_preSample);
71 ATH_MSG_DEBUG("DeltaTSample: " << m_deltaTSample);
72
73 if (m_writeAux && m_auxSuffix != "") {
74 ATH_MSG_DEBUG("suffix string = " << m_auxSuffix);
75 }
76
77 std::ostringstream BCIDList;
78 BCIDList << "LED BCIDs:";
79
80 for (unsigned int idxLED = 0; idxLED < ZdcEventInfo::NumLEDs; idxLED++) {
81 BCIDList << m_LEDNames[idxLED] << " - BCID " << m_LEDBCID[idxLED];
82 if (idxLED < ZdcEventInfo::NumLEDs - 1) BCIDList << ", ";
83 }
84
85 ATH_MSG_DEBUG(BCIDList.str());
86
87
88 // If an aux suffix is provided, prepend it with "_" so we don't have to do so at each use
89 //
90 if (m_auxSuffix != "") m_auxSuffix = "_" + m_auxSuffix;
91
92 // initialize eventInfo access
93 //
94 ATH_CHECK( m_eventInfoKey.initialize());
95
96 // initialize keys for reading ZDC event-level aux decor information
97 //
99 ATH_CHECK(m_eventTypeKey.initialize());
100
101 m_DAQModeKey = m_zdcSumContainerName + ".DAQMode";
102 ATH_CHECK(m_DAQModeKey.initialize());
103
104 m_robBCIDKey = m_zdcSumContainerName + ".rodBCID";
105 ATH_CHECK(m_robBCIDKey.initialize());
106
107 // Initialize writeDecor handles
108 //
110 ATH_CHECK( m_ZdcLEDPresampleADC.initialize());
111
113 ATH_CHECK( m_ZdcLEDADCSum.initialize());
114
116 ATH_CHECK( m_ZdcLEDMaxADC.initialize());
117
119 ATH_CHECK( m_ZdcLEDMaxSample.initialize());
120
122 ATH_CHECK( m_ZdcLEDAvgTime.initialize());
123
124 // The LED type gets writting to the module 0 sum container
125 //
127 ATH_CHECK( m_ZdcLEDType.initialize());
128
129 // prepare FADC correction per sample
130
131 m_init = true;
132 return StatusCode::SUCCESS;
133}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
#define ATH_MSG_INFO(x)
Gaudi::Property< std::string > m_auxSuffix
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcLEDADCSum
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcLEDMaxADC
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcLEDAvgTime
Gaudi::Property< bool > m_doZDC
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Gaudi::Property< bool > m_doRPD
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcLEDMaxSample
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcLEDType
const std::vector< std::string > m_LEDNames
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_eventTypeKey
Gaudi::Property< std::string > m_zdcSumContainerName
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_DAQModeKey
std::vector< unsigned int > m_LEDCalreqIdx
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_robBCIDKey
Gaudi::Property< std::string > m_zdcModuleContainerName
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcLEDPresampleADC
Gaudi::Property< std::string > m_configuration
std::vector< unsigned int > m_LEDBCID

◆ initialize_ppALFA2023()

void ZDC::ZdcLEDAnalysisTool::initialize_ppALFA2023 ( )
private

Definition at line 157 of file ZdcLEDAnalysisTool.cxx.

158{
159 // Use the defaults for now except for sampleAnaStart values and the BCIDs
162
163 m_LEDBCID = {3479, 3482, 3485};
164 m_LEDCalreqIdx = {0 ,1 ,2};
165}

◆ initialize_ppPbPb2023()

void ZDC::ZdcLEDAnalysisTool::initialize_ppPbPb2023 ( )
private

Definition at line 146 of file ZdcLEDAnalysisTool.cxx.

147{
148 // Use the defaults for now except for sampleAnaStart values and the BCIDs
149 //
152
153 m_LEDBCID = {3476, 3479, 3482};
154 m_LEDCalreqIdx = {0, 1, 2};
155}

◆ initialize_zdcStandalone()

void ZDC::ZdcLEDAnalysisTool::initialize_zdcStandalone ( )
private

Definition at line 135 of file ZdcLEDAnalysisTool.cxx.

136{
137 // Use the defaults for now except for sampleAnaStart values and the BCIDs
138 //
141
142 m_LEDBCID = {1152, 1154, 1156};
143 m_LEDCalreqIdx = {2, 1, 0};
144}

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ MakeMessageFunction()

ZDCMsg::MessageFunctionPtr ZDC::ZdcLEDAnalysisTool::MakeMessageFunction ( )
inline

Definition at line 74 of file ZdcLEDAnalysisTool.h.

75 {
76 std::function<bool(int, std::string)> msgFunction = [this](int messageZdcLevel, const std::string& message)-> bool
77 {
78 MSG::Level messageAthenaLevel = static_cast<MSG::Level>(messageZdcLevel);
79 bool passesStreamOutputLevel = messageAthenaLevel >= this->msg().level();
80 if (passesStreamOutputLevel) {
81 this->msg(messageAthenaLevel) << message << endmsg;
82 }
83 return passesStreamOutputLevel;
84 };
85
87 }
#define endmsg
std::function< bool(int, std::string)> MessageFunction
Definition ZDCMsg.h:12
std::shared_ptr< MessageFunction > MessageFunctionPtr
Definition ZDCMsg.h:14
setBGCode setTAP setLVL2ErrorBits bool
MsgStream & msg
Definition testRead.cxx:32

◆ msg()

MsgStream & AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msg_level_name()

const std::string & asg::AsgTool::msg_level_name ( ) const
inherited

A deprecated function for getting the message level's name.

Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:

MSG::name( msg().level() )

This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.

Returns
The string name of the current minimum message level that's printed

Definition at line 101 of file AsgTool.cxx.

101 {
102
103 return MSG::name( msg().level() );
104 }
MsgStream & msg() const
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
Definition MsgLevel.cxx:19

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ print()

◆ processModuleData()

ZDCLEDModuleResults ZDC::ZdcLEDAnalysisTool::processModuleData ( int iside,
int imod,
const std::vector< unsigned short > & data,
unsigned int startSample,
unsigned int endSample,
float gainScale )
private

Definition at line 380 of file ZdcLEDAnalysisTool.cxx.

382{
383
384 int ADCSum = 0;
385 int maxADCsub = -999;
386 unsigned int maxSample = 0;
387 float avgTime = 0.f;
388 bool highgain = (gainScale<1.1); // HG is 1 and LG is 10
389
390 if (startSample > m_numSamples || endSample > m_numSamples) {
391 ATH_MSG_ERROR("Start or end sample number greater than number of samples");
392 return ZDCLEDModuleResults();
393 }
394
395 int preFADC = data[m_preSample];
396
397 for (unsigned int sample = startSample; sample <= endSample; sample++) {
398
399 int FADCsub = data[sample] - preFADC;
400 if (m_doFADCCorr && (iside!=-1) ) // iside==-1 dummy to indicate RPD and ensure no FADC correction
401 {
402 float corr = getAmplitudeCorrection(iside,imod,highgain,FADCsub);
403 FADCsub *= corr;
404 }
405
406 float time = (sample + 0.5f)*m_deltaTSample;
407 ADCSum += FADCsub;
408 if (FADCsub > maxADCsub) {
409 maxADCsub = FADCsub;
410 maxSample = sample;
411 }
412
413 avgTime += time*FADCsub;
414 }
415 if (ADCSum!=0){
416 avgTime /= ADCSum;
417 } else {
418 avgTime = 0.f; //used as default in the ZDCLEDModuleResults c'tor
419 }
420
421 return ZDCLEDModuleResults(preFADC, ADCSum*gainScale, maxADCsub*gainScale, maxSample, avgTime);
422}
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
double getAmplitudeCorrection(int iside, int imod, bool highGain, float fitAmp)
time(flags, cells_name, *args, **kw)

◆ processRPDModule()

ZDCLEDModuleResults ZDC::ZdcLEDAnalysisTool::processRPDModule ( const xAOD::ZdcModule & module)
private

Definition at line 373 of file ZdcLEDAnalysisTool.cxx.

374{
375 ATH_MSG_DEBUG("Processing RPD side, channel = " << module.zdcSide() << ", " << module.zdcChannel());
376 static const SG::ConstAccessor<std::vector<uint16_t> > g0dataAcc ("g0data");
377 return processModuleData(-1,-1,g0dataAcc (module), m_sampleAnaStartRPD, m_sampleAnaEndRPD, 1);
378}
ZDCLEDModuleResults processModuleData(int iside, int imod, const std::vector< unsigned short > &data, unsigned int startSample, unsigned int endSample, float gainScale)

◆ processZDCModule()

ZDCLEDModuleResults ZDC::ZdcLEDAnalysisTool::processZDCModule ( const xAOD::ZdcModule & module)
private

Definition at line 350 of file ZdcLEDAnalysisTool.cxx.

351{
352 ATH_MSG_DEBUG("Processing ZDC side, channel = " << module.zdcSide() << ", " << module.zdcModule());
353 bool doLG = false;
354
355 static const SG::ConstAccessor<std::vector<uint16_t> > g1dataAcc ("g1data");
356 static const SG::ConstAccessor<std::vector<uint16_t> > g0dataAcc ("g0data");
357 std::vector<uint16_t> HGSamples = g1dataAcc (module);
358 std::vector<uint16_t> LGSamples = g0dataAcc (module);
359
360 std::vector<uint16_t>::const_iterator maxIter = std::max_element(HGSamples.begin(), HGSamples.end());
361 if (maxIter != HGSamples.end()) {
362 if (*maxIter > m_HGADCOverflow) doLG = true;
363 }
364
365 if (doLG) {
367 }
368 else {
369 return processModuleData(module.zdcSide(),module.zdcModule(),HGSamples, m_sampleAnaStartZDC, m_sampleAnaEndZDC, 1);
370 }
371}

◆ recoZdcModules()

StatusCode ZDC::ZdcLEDAnalysisTool::recoZdcModules ( const xAOD::ZdcModuleContainer & moduleContainer,
const xAOD::ZdcModuleContainer & moduleSumContainer )
overridevirtual

Implements ZDC::IZdcAnalysisTool.

Definition at line 167 of file ZdcLEDAnalysisTool.cxx.

169{
170 if (!m_init) {
171 ATH_MSG_WARNING("Tool not initialized!");
172 return StatusCode::FAILURE;
173 }
174
175 if (moduleContainer.size()==0) return StatusCode::SUCCESS; // if no modules, do nothing
176
177 SG::ReadHandle<xAOD::EventInfo> eventInfo(m_eventInfoKey);
178 if (!eventInfo.isValid()) return StatusCode::FAILURE;
179
180 bool zdcErr = eventInfo->isEventFlagBitSet(xAOD::EventInfo::ForwardDet, ZdcEventInfo::ZDCDECODINGERROR );
181 bool rpdErr = eventInfo->isEventFlagBitSet(xAOD::EventInfo::ForwardDet, ZdcEventInfo::RPDDECODINGERROR );
182 if (zdcErr||rpdErr)
183 {
184 ATH_MSG_WARNING("ZDC or RPD decoding error found - abandoning ZdcLEDAnalysisTool!");
185 return StatusCode::SUCCESS;
186 }
187
188 unsigned int thisRunNumber = eventInfo->runNumber();
189 if (thisRunNumber != m_runNumber) {
190 ATH_MSG_INFO("ZDC LED analysis tool will be configured for run " << thisRunNumber << " m_doFADCCorr = " << m_doFADCCorr);
191 if (m_doFADCCorr)
192 {
193 unsigned int calibRunNumber = thisRunNumber;
194 if (m_forceCalibRun > -1) calibRunNumber = m_forceCalibRun;
195 ATH_MSG_INFO("FADC corrections will be configured for run " << calibRunNumber);
196 setFADCCorrections(calibRunNumber);
197 }
198 m_runNumber = thisRunNumber;
199 }
200 SG::ReadDecorHandle<xAOD::ZdcModuleContainer, unsigned int> eventTypeHandle(m_eventTypeKey);
201 SG::ReadDecorHandle<xAOD::ZdcModuleContainer, unsigned int> DAQModeHandle(m_DAQModeKey);
202
203 // Loop over the sum container to find event-level info (side == 0)
204 //
205 bool haveZdcEventInfo = false;
206 unsigned int eventType = ZdcEventInfo::ZdcEventUnknown;
207 unsigned int bcid = eventInfo->bcid();
208 unsigned int DAQMode = ZdcEventInfo::DAQModeUndef;
209
210 const xAOD::ZdcModule* moduleSumEventInfo_ptr = 0;
211
212 for (auto modSum : moduleSumContainer) {
213 //
214 // Module sum object with side == 0 contains event-level information
215 //
216 if (modSum->zdcSide() == 0) {
217 //
218 // Add the event type and bcid as aux decors
219 //
220 ATH_MSG_DEBUG("Found global sum");
221 eventType = eventTypeHandle(*modSum);
222 DAQMode = DAQModeHandle(*modSum);
223 haveZdcEventInfo = true;
224 moduleSumEventInfo_ptr = modSum;
225 }
226 }
227 if (!haveZdcEventInfo) {
228 ATH_MSG_ERROR("Zdc event data not available (moduleSum with side = 0)");
229 return StatusCode::FAILURE;
230 }
231
232 //
233 // only do something on LED calibration events
234 //
235 if (eventType != ZdcEventInfo::ZdcEventLED) return StatusCode::SUCCESS;
236
237 // In standalone mode, we have to read the BCID from the rob header
238 //
239 if (DAQMode == ZdcEventInfo::Standalone) {
240 SG::ReadDecorHandle<xAOD::ZdcModuleContainer, std::vector<uint16_t> > robBCIDHandle(m_robBCIDKey);
241 if (!robBCIDHandle.isValid()) return StatusCode::FAILURE;
242
243 const std::vector<uint16_t>& robBCIDvec = robBCIDHandle(*moduleSumEventInfo_ptr);
244 if (robBCIDHandle->size() == 0) return StatusCode::FAILURE;
245
246 unsigned int checkBCID = robBCIDvec[0];
247 for (unsigned int bcid : robBCIDvec) {
248 if (bcid != checkBCID) {
249 ATH_MSG_ERROR("Inconsistent BCIDs in rob header, cannot continue in standalone mode");
250 return StatusCode::FAILURE;
251 }
252 }
253
254 bcid = checkBCID;
255 }
256
257 // Determine the LED type
258 //
259 unsigned int evtLEDType = ZdcEventInfo::LEDNone;
260
261 for (unsigned int idxLED = 0; idxLED < ZdcEventInfo::NumLEDs; idxLED++) {
262 //
263 // Does the BCID match one of those associated with the LEDs?
264 //
265 if (m_LEDBCID[idxLED] == bcid) {
266 if (DAQMode != ZdcEventInfo::Standalone) {
267 //
268 // Also check the calreq trigger (to be implemented)
269 //
270 if (false) continue;
271 }
272
273 evtLEDType = idxLED;
274 break;
275 }
276 }
277
278 if (evtLEDType == ZdcEventInfo::LEDNone) {
279 //
280 // Thie BCID does not appear to be associated with one of the LEDs, print warning and quit processing
281 //
282 ATH_MSG_WARNING("Unexpected BCID found in data: bcid = " << bcid << m_configuration);
283 return StatusCode::SUCCESS;
284 }
285 else {
286 ATH_MSG_DEBUG("Event with BCID = " << bcid << " has LED type " << evtLEDType);
287 }
288
289 // We are currently calculating the presample as an unsigned it, but there is another "presample"
290 // from ZdcAnalysisTool which for good reasons is float. So we have to match the type.
291 //
292 SG::WriteDecorHandle<xAOD::ZdcModuleContainer,float> moduleLEDPresampleADCHandle(m_ZdcLEDPresampleADC);
293 SG::WriteDecorHandle<xAOD::ZdcModuleContainer,int> moduleLEDADCSumHandle(m_ZdcLEDADCSum);
294 SG::WriteDecorHandle<xAOD::ZdcModuleContainer,int> moduleLEDMaxADCHandle(m_ZdcLEDMaxADC);
295 SG::WriteDecorHandle<xAOD::ZdcModuleContainer,unsigned int> moduleLEDMaxSampleHandle(m_ZdcLEDMaxSample);
296 SG::WriteDecorHandle<xAOD::ZdcModuleContainer,float> moduleLEDAvgTimeHandle(m_ZdcLEDAvgTime);
297
298 SG::WriteDecorHandle<xAOD::ZdcModuleContainer,unsigned int> LEDTypeHandle(m_ZdcLEDType);
299
300 ATH_MSG_DEBUG("Starting event processing for LED " << m_LEDNames[evtLEDType]);
301
302 for (const auto zdcModule : moduleContainer)
303 {
304 ZDCLEDModuleResults results;
305 if (zdcModule->zdcType() == 0) {
306 results = processZDCModule(*zdcModule);
307 }
308 else if (zdcModule->zdcType() == 1 && zdcModule->zdcModule() == 4) {
309 results = processRPDModule(*zdcModule);
310 }
311
312 ATH_MSG_DEBUG("Writing aux decors to module with side, module, channel = " << zdcModule->zdcSide() << ", " << zdcModule->zdcModule()
313 << ", " << zdcModule->zdcChannel());
314
315 moduleLEDPresampleADCHandle(*zdcModule) = std::floor(results.getPresampleADC() + 1.0e-6);
316 moduleLEDADCSumHandle(*zdcModule) = results.getADCSum();
317 moduleLEDMaxADCHandle(*zdcModule) = results.getMaxADC();
318 moduleLEDMaxSampleHandle(*zdcModule) = results.getMaxSample();
319 moduleLEDAvgTimeHandle(*zdcModule) = results.getAvgTime();
320 }
321
322 // Write the LED type to the moduleSum container keep event-level data
323 //
324 LEDTypeHandle(*moduleSumEventInfo_ptr) = evtLEDType;
325
326 ATH_MSG_DEBUG("Finishing event processing");
327
328
329 return StatusCode::SUCCESS;
330 }
#define ATH_MSG_WARNING(x)
size_type size() const noexcept
Returns the number of elements in the collection.
ZDCLEDModuleResults processRPDModule(const xAOD::ZdcModule &module)
void setFADCCorrections(unsigned int runNumber)
ZDCLEDModuleResults processZDCModule(const xAOD::ZdcModule &module)
@ ForwardDet
The forward detectors.
ZdcModule_v1 ZdcModule
Definition ZdcModule.h:15
setEventNumber setTimeStamp bcid

◆ renounce()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ reprocessZdc()

StatusCode ZDC::ZdcLEDAnalysisTool::reprocessZdc ( )
overridevirtual

Implements ZDC::IZdcAnalysisTool.

Definition at line 332 of file ZdcLEDAnalysisTool.cxx.

333{
334 if (!m_init) {
335 ATH_MSG_WARNING("Tool not initialized!");
336 return StatusCode::FAILURE;
337 }
338
339 ATH_MSG_DEBUG ("Trying to retrieve " << m_zdcModuleContainerName);
340
341 m_zdcModules = 0;
343
344
346
347 return StatusCode::SUCCESS;
348}
const xAOD::ZdcModuleContainer * m_zdcModules
StatusCode recoZdcModules(const xAOD::ZdcModuleContainer &moduleContainer, const xAOD::ZdcModuleContainer &moduleSumContainer) override
const xAOD::ZdcModuleContainer * m_zdcSums
retrieve(aClass, aKey=None)
Definition PyKernel.py:110

◆ setFADCCorrections()

void ZDC::ZdcLEDAnalysisTool::setFADCCorrections ( unsigned int runNumber)
private

Definition at line 436 of file ZdcLEDAnalysisTool.cxx.

437{
438 std::string filename;
439 std::string runString;
440
441 if (runNumber == 0) runString = "ZdcFADCCorr_" + m_configuration + "_default.root";
442 else runString = ("ZdcFADCCorr_Run"+TString::Itoa(runNumber,10)+".root").Data();
443
444 filename = PathResolverFindCalibFile("ZdcAnalysis/" + runString );
445
446 if (filename.empty())
447 {
448 ATH_MSG_INFO("No FADC corrections file - disabling correction");
449 m_doFADCCorr = false; // disable correction
450 return;
451 }
452
453 ATH_MSG_INFO("Opening FADC corrections file " << filename);
454 std::unique_ptr<TFile> fFADCCorr(TFile::Open(filename.c_str(), "READ"));
455
456 if (!fFADCCorr->IsOpen()) {
457 ATH_MSG_INFO ("setFADCCorrections: failed to open file: " << filename << ". Disabling correction.");
458 m_doFADCCorr = false; // disable correctio
459 return;
460 //throw std::runtime_error ("ZdcAnalysisTool failed to open FADCCorrections file " + filename);
461 }
462
463 // Attempt to read histograms with corrections from file
464 //
465 bool readSuccess = true;
466 std::array<std::array<std::unique_ptr<const TH1>, 4>, 2> histogramsHG;
467 std::array<std::array<std::unique_ptr<const TH1>, 4>, 2> histogramsLG;
468
469 for (size_t side : {0, 1}) {
470 for (int module : {0, 1, 2, 3}) {
471 std::string histNameHG = "ZDC_FADCCorr_s" + std::to_string(side) + "_m" + std::to_string(module)+"_HG";
472 std::string histNameLG = "ZDC_FADCCorr_s" + std::to_string(side) + "_m" + std::to_string(module)+"_LG";
473
474 ATH_MSG_DEBUG("setFADCCorrections: Searching for histograms HG and LG: " << histNameHG << ", " << histNameLG);
475
476 TH1* histHG_ptr = static_cast<TH1*>(fFADCCorr->GetObjectChecked(histNameHG.c_str(), "TH1"));
477 TH1* histLG_ptr = static_cast<TH1*>(fFADCCorr->GetObjectChecked(histNameLG.c_str(), "TH1"));
478
479 if (!histHG_ptr || !histLG_ptr) {
480 std::string errMsg = "setFADCCorrections: unable to read FADC correction histogram(s) ";
481 if (!histHG_ptr) errMsg += histNameHG + " ";
482 if (!histLG_ptr) errMsg += histNameLG;
483
484 ATH_MSG_ERROR(errMsg);
485 readSuccess = false;
486 break;
487 }
488 else {
489 //
490 // Check for valid range (Lion uses -0.5 to 4095.5)
491 //
492
493 if ( std::abs(histHG_ptr->GetXaxis()->GetXmin()+0.5) > 1e-3 || std::abs(histHG_ptr->GetXaxis()->GetXmax() - 4095.5) > 1e-3) {
494 ATH_MSG_ERROR("setFADCCorrections: invalid axis range for HG FADC corrections in histogram with name " << histNameHG);
495 readSuccess = false;
496 break;
497 }
498 if (std::abs(histLG_ptr->GetXaxis()->GetXmin()+0.5) > 1e-3 || std::abs(histLG_ptr->GetXaxis()->GetXmax() - 4095.5) > 1e-3) {
499 ATH_MSG_ERROR("setFADCCorrections: invalid axis range for HG FADC corrections in histogram with name " << histNameLG);
500 readSuccess = false;
501 break;
502 }
503 ATH_MSG_INFO("Configuring FADC histos for side " << side << " mod " << module);
504 m_FADCCorrHG[side][module].reset(histHG_ptr);
505 m_FADCCorrLG[side][module].reset(histLG_ptr);
506
507 }
508 }
509 }
510
511 fFADCCorr->Close();
512
513 if (readSuccess) {
514 ATH_MSG_INFO("Successfully configured FADC correction");
515 m_doFADCCorr = true;
516 }
517 else {
518 ATH_MSG_ERROR("setFADCCorrections: due to at least one error, FADC corrections are not implemented");
519 m_doFADCCorr = false;
520 }
521
522 return;
523}
@ Data
Definition BaseObject.h:11
std::string PathResolverFindCalibFile(const std::string &logical_file_name)

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka

Member Data Documentation

◆ m_auxSuffix

Gaudi::Property<std::string> ZDC::ZdcLEDAnalysisTool::m_auxSuffix {this, "AuxSuffix", "", "Append this tag onto end of AuxData"}
private

Definition at line 110 of file ZdcLEDAnalysisTool.h.

110{this, "AuxSuffix", "", "Append this tag onto end of AuxData"};

◆ m_calreqNames

const std::vector<std::string> ZDC::ZdcLEDAnalysisTool::m_calreqNames = {"CalReq1", "CalReq2", "CalReq3"}
private

Definition at line 123 of file ZdcLEDAnalysisTool.h.

123{"CalReq1", "CalReq2", "CalReq3"};

◆ m_configuration

Gaudi::Property<std::string> ZDC::ZdcLEDAnalysisTool::m_configuration {this, "Configuration", "ppPbPb2023", "Which config files to use"}
private

Definition at line 107 of file ZdcLEDAnalysisTool.h.

107{this, "Configuration", "ppPbPb2023", "Which config files to use"};

◆ m_DAQModeKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZDC::ZdcLEDAnalysisTool::m_DAQModeKey
private
Initial value:
{
this, "ZdcDAQModeKey", "", "ZDC DAQ mode"}

Definition at line 154 of file ZdcLEDAnalysisTool.h.

154 {
155 this, "ZdcDAQModeKey", "", "ZDC DAQ mode"};

◆ m_deltaTSample

float ZDC::ZdcLEDAnalysisTool::m_deltaTSample {3.125}
private

Definition at line 128 of file ZdcLEDAnalysisTool.h.

128{3.125};

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_doFADCCorr

bool ZDC::ZdcLEDAnalysisTool::m_doFADCCorr {}
private

Definition at line 167 of file ZdcLEDAnalysisTool.h.

167{};

◆ m_doRPD

Gaudi::Property<bool> ZDC::ZdcLEDAnalysisTool::m_doRPD {this, "doRPD", true, "Process RPD Data?"}
private

Definition at line 114 of file ZdcLEDAnalysisTool.h.

114{this, "doRPD", true, "Process RPD Data?"};

◆ m_doZDC

Gaudi::Property<bool> ZDC::ZdcLEDAnalysisTool::m_doZDC {this, "doZDC", true, "Process ZDC Data?"}
private

Definition at line 115 of file ZdcLEDAnalysisTool.h.

115{this, "doZDC", true, "Process ZDC Data?"};

◆ m_eventInfoKey

SG::ReadHandleKey<xAOD::EventInfo> ZDC::ZdcLEDAnalysisTool::m_eventInfoKey
private
Initial value:
{
this, "EventInfoKey", "EventInfo", "Location of the event info."}

Definition at line 145 of file ZdcLEDAnalysisTool.h.

145 {
146 this, "EventInfoKey", "EventInfo", "Location of the event info."};

◆ m_eventTypeKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZDC::ZdcLEDAnalysisTool::m_eventTypeKey
private
Initial value:
{
this, "ZdcEventTypeKey", "", "ZDC Event type"}

Definition at line 148 of file ZdcLEDAnalysisTool.h.

148 {
149 this, "ZdcEventTypeKey", "", "ZDC Event type"};

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_FADCCorrHG

std::array< std::array<std::unique_ptr<const TH1>,4>,2> ZDC::ZdcLEDAnalysisTool::m_FADCCorrHG
private

Definition at line 170 of file ZdcLEDAnalysisTool.h.

◆ m_FADCCorrLG

std::array< std::array<std::unique_ptr<const TH1>,4>,2> ZDC::ZdcLEDAnalysisTool::m_FADCCorrLG
private

Definition at line 171 of file ZdcLEDAnalysisTool.h.

◆ m_forceCalibRun

int ZDC::ZdcLEDAnalysisTool::m_forceCalibRun {}
private

Definition at line 169 of file ZdcLEDAnalysisTool.h.

169{};

◆ m_HGADCOverflow

unsigned int ZDC::ZdcLEDAnalysisTool::m_HGADCOverflow {4095}
private

Definition at line 125 of file ZdcLEDAnalysisTool.h.

125{4095};

◆ m_init

bool ZDC::ZdcLEDAnalysisTool::m_init {false}
private

Definition at line 102 of file ZdcLEDAnalysisTool.h.

102{false};

◆ m_LEDBCID

std::vector<unsigned int> ZDC::ZdcLEDAnalysisTool::m_LEDBCID
private

Definition at line 120 of file ZdcLEDAnalysisTool.h.

◆ m_LEDCalreqIdx

std::vector<unsigned int> ZDC::ZdcLEDAnalysisTool::m_LEDCalreqIdx
private

Definition at line 119 of file ZdcLEDAnalysisTool.h.

◆ m_LEDNames

const std::vector<std::string> ZDC::ZdcLEDAnalysisTool::m_LEDNames = {"Blue1", "Green", "Blue2"}
private

Definition at line 122 of file ZdcLEDAnalysisTool.h.

122{"Blue1", "Green", "Blue2"};

◆ m_name

std::string ZDC::ZdcLEDAnalysisTool::m_name
private

Definition at line 106 of file ZdcLEDAnalysisTool.h.

◆ m_numSamples

unsigned int ZDC::ZdcLEDAnalysisTool::m_numSamples {24}
private

Definition at line 126 of file ZdcLEDAnalysisTool.h.

126{24};

◆ m_preSample

unsigned int ZDC::ZdcLEDAnalysisTool::m_preSample {0}
private

Definition at line 127 of file ZdcLEDAnalysisTool.h.

127{0};

◆ m_robBCIDKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZDC::ZdcLEDAnalysisTool::m_robBCIDKey
private
Initial value:
{
this, "ROBBCIDKey", "", "BCID from LUCROD ROB headers"}

Definition at line 151 of file ZdcLEDAnalysisTool.h.

151 {
152 this, "ROBBCIDKey", "", "BCID from LUCROD ROB headers"};

◆ m_runNumber

unsigned int ZDC::ZdcLEDAnalysisTool::m_runNumber {}
private

Definition at line 168 of file ZdcLEDAnalysisTool.h.

168{};

◆ m_sampleAnaEndRPD

unsigned int ZDC::ZdcLEDAnalysisTool::m_sampleAnaEndRPD {23}
private

Definition at line 132 of file ZdcLEDAnalysisTool.h.

132{23};

◆ m_sampleAnaEndZDC

unsigned int ZDC::ZdcLEDAnalysisTool::m_sampleAnaEndZDC {23}
private

Definition at line 130 of file ZdcLEDAnalysisTool.h.

130{23};

◆ m_sampleAnaStartRPD

unsigned int ZDC::ZdcLEDAnalysisTool::m_sampleAnaStartRPD {0}
private

Definition at line 131 of file ZdcLEDAnalysisTool.h.

131{0};

◆ m_sampleAnaStartZDC

unsigned int ZDC::ZdcLEDAnalysisTool::m_sampleAnaStartZDC {0}
private

Definition at line 129 of file ZdcLEDAnalysisTool.h.

129{0};

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.

◆ m_writeAux

bool ZDC::ZdcLEDAnalysisTool::m_writeAux {false}
private

Definition at line 108 of file ZdcLEDAnalysisTool.h.

108{false};

◆ m_ZdcLEDADCSum

SG::WriteDecorHandleKey<xAOD::ZdcModuleContainer> ZDC::ZdcLEDAnalysisTool::m_ZdcLEDADCSum {this, "ZdcLEDADCSum", "", "ZDC LED pulse FADC sum"}
private

Definition at line 159 of file ZdcLEDAnalysisTool.h.

159{this, "ZdcLEDADCSum", "", "ZDC LED pulse FADC sum"};

◆ m_ZdcLEDAvgTime

SG::WriteDecorHandleKey<xAOD::ZdcModuleContainer> ZDC::ZdcLEDAnalysisTool::m_ZdcLEDAvgTime {this, "ZdcLEDAvgTime", "", "ZDC LED average time"}
private

Definition at line 162 of file ZdcLEDAnalysisTool.h.

162{this, "ZdcLEDAvgTime", "", "ZDC LED average time"};

◆ m_ZdcLEDMaxADC

SG::WriteDecorHandleKey<xAOD::ZdcModuleContainer> ZDC::ZdcLEDAnalysisTool::m_ZdcLEDMaxADC {this, "ZdcLEDMaxADC", "", "ZDC LED pulse max FADC value"}
private

Definition at line 160 of file ZdcLEDAnalysisTool.h.

160{this, "ZdcLEDMaxADC", "", "ZDC LED pulse max FADC value"};

◆ m_ZdcLEDMaxSample

SG::WriteDecorHandleKey<xAOD::ZdcModuleContainer> ZDC::ZdcLEDAnalysisTool::m_ZdcLEDMaxSample {this, "ZdcLEDMaxSample", "", "ZDC LED max FADC sample"}
private

Definition at line 161 of file ZdcLEDAnalysisTool.h.

161{this, "ZdcLEDMaxSample", "", "ZDC LED max FADC sample"};

◆ m_ZdcLEDPresampleADC

SG::WriteDecorHandleKey<xAOD::ZdcModuleContainer> ZDC::ZdcLEDAnalysisTool::m_ZdcLEDPresampleADC {this, "ZdcLEDPresampleADC", "", "ZDC LED presample"}
private

Definition at line 158 of file ZdcLEDAnalysisTool.h.

158{this, "ZdcLEDPresampleADC", "", "ZDC LED presample"};

◆ m_ZdcLEDType

SG::WriteDecorHandleKey<xAOD::ZdcModuleContainer> ZDC::ZdcLEDAnalysisTool::m_ZdcLEDType {this, "ZdcLEDType", "", "ZDC LED Type (0-Blue1, 1-Green, 2-Blue2}"}
private

Definition at line 157 of file ZdcLEDAnalysisTool.h.

157{this, "ZdcLEDType", "", "ZDC LED Type (0-Blue1, 1-Green, 2-Blue2}"};

◆ m_ZdcLowGainScale

float ZDC::ZdcLEDAnalysisTool::m_ZdcLowGainScale {10}
private

Definition at line 134 of file ZdcLEDAnalysisTool.h.

134{10};

◆ m_zdcModuleContainerName

Gaudi::Property<std::string> ZDC::ZdcLEDAnalysisTool::m_zdcModuleContainerName {this, "ZdcModuleContainerName", "ZdcModules", "Location of ZDC processed data"}
private

Definition at line 138 of file ZdcLEDAnalysisTool.h.

138{this, "ZdcModuleContainerName", "ZdcModules", "Location of ZDC processed data"};

◆ m_zdcModules

const xAOD::ZdcModuleContainer* ZDC::ZdcLEDAnalysisTool::m_zdcModules {nullptr}
private

Definition at line 139 of file ZdcLEDAnalysisTool.h.

139{nullptr};

◆ m_zdcSumContainerName

Gaudi::Property<std::string> ZDC::ZdcLEDAnalysisTool::m_zdcSumContainerName {this, "ZdcSumContainerName", "ZdcSums", "Location of ZDC processed sums"}
private

Definition at line 140 of file ZdcLEDAnalysisTool.h.

140{this, "ZdcSumContainerName", "ZdcSums", "Location of ZDC processed sums"};

◆ m_zdcSums

const xAOD::ZdcModuleContainer* ZDC::ZdcLEDAnalysisTool::m_zdcSums {nullptr}
private

Definition at line 141 of file ZdcLEDAnalysisTool.h.

141{nullptr};

The documentation for this class was generated from the following files: