74 return StatusCode::SUCCESS;
82 return StatusCode::SUCCESS;
92 bool passTrigger =
true;
109 tree(
"lisTree")->Fill();
112 return StatusCode::SUCCESS;
134 for (
int isam = 0; isam <
nSamples; isam++)
157 if (zdcModules.
ptr())
159 for (
const auto zdcMod : *zdcModules)
164 for (
const auto zdcSum : *zdcSums)
184 if (zdcMod->zdcSide() == 0)
191 if(zdcMod->zdcSide() > 0){
195 int ichan = zdcMod->zdcChannel();
204 ANA_MSG_VERBOSE(
"LIS Module side " << zdcMod->zdcSide() <<
" channel " << ichan);
209 ANA_MSG_WARNING(
"Missing LIS aux data for side " << zdcMod->zdcSide() <<
" channel " << ichan);
224 const std::vector<uint16_t> &g1dataVec = g1dataAccessor(*zdcMod);
225 for (
int isam = 0; isam < nSamples && isam < static_cast<int>(g1dataVec.size()); isam++)
234 const std::vector<uint16_t> &g0dataVec = g0dataAccessor(*zdcMod);
235 for (
int isam = 0; isam < nSamples && isam < static_cast<int>(g0dataVec.size()); isam++)
258 for (
const auto zdcSum : *zdcSums) {
261 const std::vector<uint16_t>& rodBCID = rodBCIDAcc(*zdcSum);
262 if (!rodBCID.empty()) {
291 return StatusCode::SUCCESS;
298 bool passTrigger =
false;
303 for (
int i = 0; i < 16; i++)
311 for (
int i = 0; i < 16; i++)
338 <<
", first LB = " << startLB <<
", number of steps = " << nsteps);
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
uint32_t t_timeStampNSOffset
const xAOD::TrigDecision * m_trigDecision
float t_LISPresample[nLISChannels]
int t_LISADCSum[nLISChannels]
void processLisNtupleFromModules()
static constexpr int LISTypeInd
unsigned int t_LISMaxSample[nLISChannels]
uint32_t t_tbp[nTriggerWords]
float t_actIntPerCrossing
const xAOD::EventInfo * m_eventInfo
virtual StatusCode execute() override
static constexpr int infoSumInd
static constexpr int LISModuleInd
virtual StatusCode initialize() override
uint32_t t_extendedLevel1ID
bool processTriggerDecision()
unsigned int t_LISModuleStatus[nLISChannels]
static constexpr int nSamples
float t_avgIntPerCrossing
uint16_t t_LISRawdata[nLISChannels][nSamples]
uint32_t t_tav[nTriggerWords]
SG::ReadHandleKey< xAOD::ZdcModuleContainer > m_zdcSumContainerName
virtual StatusCode finalize() override
ZdcInjPulserAmpMap::Token m_injMapRunToken
unsigned int m_lastRunNumber
SG::ReadHandleKey< xAOD::ZdcModuleContainer > m_zdcModuleContainerName
float t_LISAvgTime[nLISChannels]
LisNtuple(const std::string &name, ISvcLocator *pSvcLocator)
int t_LISMaxADC[nLISChannels]
static constexpr int nLISChannels
std::unique_ptr< ZdcInjPulserAmpMap > m_zdcInjPulserAmpMap
Helper class to provide type-safe access to aux data.
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.
This module defines the arguments passed from the BATCH driver to the BATCH worker.