15ZdcLEDNtuple ::ZdcLEDNtuple(
const std::string &name, ISvcLocator *pSvcLocator)
26StatusCode ZdcLEDNtuple ::initialize()
69 return StatusCode::SUCCESS;
72StatusCode ZdcLEDNtuple ::execute()
77 return StatusCode::SUCCESS;
88 tree(
"zdcLEDTree")->Fill();
92 return StatusCode::SUCCESS;
103 for (
size_t iside = 0; iside <
nSides; iside++)
105 for (
int imod = 0; imod <
nZDC; imod++)
113 for (
int isam = 0; isam <
nSamples; isam++)
119 for (
int imod = 0; imod <
nRPD; imod++)
140 if (zdcModules.
ptr())
143 for (
const auto zdcMod : *zdcModules)
149 for (
const auto zdcSum : *zdcSums)
167 if (zdcMod->zdcSide() != 0)
170 if (zdcMod->zdcSide() > 0)
173 ANA_MSG_VERBOSE(
"Module " << zdcMod->zdcSide() <<
" " << zdcMod->zdcModule());
176 int imod = zdcMod->zdcModule();
191 for (
int isam = 0; isam <
nSamples; isam++)
199 int imod = zdcMod->zdcChannel();
213 for (
int isam = 0; isam <
nSamples; isam++)
244StatusCode ZdcLEDNtuple ::finalize()
246 return StatusCode::SUCCESS;
Helper class to provide constant type-safe access to aux data.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
StatusCode book(const TH1 &hist, const std::string &tDir="", const std::string &stream="")
Simplify the booking and registering (into THistSvc) of histograms.
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Helper class to provide constant type-safe access to aux data.
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
const_pointer_type ptr()
Dereference the pointer.
unsigned int t_RPDModuleMaxSample[nSides][nRPD]
uint16_t t_RPDModuleRawdata[nSides][nRPD][nSamples]
int t_ZdcModuleMaxADC[nSides][nZDC]
uint32_t t_extendedLevel1ID
void processZdcLEDNtupleFromModules()
static constexpr int nSides
int t_RPDModuleMaxADC[nSides][nRPD]
float t_RPDModulePresample[nSides][nRPD]
unsigned int t_ZdcModuleMaxSample[nSides][nZDC]
float t_RPDModuleAvgTime[nSides][nRPD]
float t_actIntPerCrossing
std::vector< uint16_t > g1dataVec
std::vector< uint16_t > g0dataVec
uint32_t t_timeStampNSOffset
float t_avgIntPerCrossing
static constexpr int nSamples
static constexpr int ZdcTypeInd
static constexpr int RPDModuleInd
static constexpr int RPDTypeInd
SG::ReadHandleKey< xAOD::ZdcModuleContainer > m_zdcModuleContainerName
SG::ReadHandleKey< xAOD::ZdcModuleContainer > m_zdcSumContainerName
uint16_t t_ZdcModuleg0data[nSides][nZDC][nSamples]
int t_RPDModuleADCSum[nSides][nRPD]
static constexpr int nRPD
int t_ZdcModuleADCSum[nSides][nZDC]
static constexpr int nZDC
static constexpr int infoSumInd
float t_ZdcModulePresample[nSides][nZDC]
uint16_t t_ZdcModuleg1data[nSides][nZDC][nSamples]
const xAOD::EventInfo * m_eventInfo
float t_ZdcModuleAvgTime[nSides][nZDC]
This module defines the arguments passed from the BATCH driver to the BATCH worker.