ATLAS Offline Software
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
ZdcMonitorAlgorithm Class Reference

#include <ZdcMonitorAlgorithm.h>

Inheritance diagram for ZdcMonitorAlgorithm:
Collaboration diagram for ZdcMonitorAlgorithm:

Public Types

enum  DecodingErrors { NoDecodingErrorBit = 0, ZDCDecodingErrorBit = 1, RPDDecodingErrorBit = 2 }
 
enum  UCCTriggers {
  UCCTrigEnabledBit = 0, TrigHELT50Bit = 1, TrigHELT35Bit = 2, TrigHELT25Bit = 3,
  TrigHELT20Bit = 4, TrigHELT15Bit = 5, UCCTrigDisabledBit = 6
}
 
enum  Environment_t {
  Environment_t::user = 0, Environment_t::online, Environment_t::tier0, Environment_t::tier0Raw,
  Environment_t::tier0ESD, Environment_t::AOD, Environment_t::altprod
}
 Specifies the processing environment. More...
 
enum  DataType_t {
  DataType_t::userDefined = 0, DataType_t::monteCarlo, DataType_t::collisions, DataType_t::cosmics,
  DataType_t::heavyIonCollisions
}
 Specifies what type of input data is being monitored. More...
 

Public Member Functions

 ZdcMonitorAlgorithm (const std::string &name, ISvcLocator *pSvcLocator)
 
virtual ~ZdcMonitorAlgorithm ()
 
virtual StatusCode initialize () override
 initialize More...
 
virtual StatusCode fillHistograms (const EventContext &ctx) const override
 adds event to the monitoring histograms More...
 
StatusCode fillPhysicsDataHistograms (const EventContext &ctx) const
 
virtual StatusCode execute (const EventContext &ctx) const override
 Applies filters and trigger requirements. More...
 
void fill (const ToolHandle< GenericMonitoringTool > &groupHandle, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &&variables) const
 Fills a vector of variables to a group by reference. More...
 
void fill (const ToolHandle< GenericMonitoringTool > &groupHandle, const std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &variables) const
 Fills a vector of variables to a group by reference. More...
 
template<typename... T>
void fill (const ToolHandle< GenericMonitoringTool > &groupHandle, T &&... variables) const
 Fills a variadic list of variables to a group by reference. More...
 
void fill (const std::string &groupName, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &&variables) const
 Fills a vector of variables to a group by name. More...
 
void fill (const std::string &groupName, const std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &variables) const
 Fills a vector of variables to a group by name. More...
 
template<typename... T>
void fill (const std::string &groupName, T &&... variables) const
 Fills a variadic list of variables to a group by name. More...
 
Environment_t environment () const
 Accessor functions for the environment. More...
 
Environment_t envStringToEnum (const std::string &str) const
 Convert the environment string from the python configuration to an enum object. More...
 
DataType_t dataType () const
 Accessor functions for the data type. More...
 
DataType_t dataTypeStringToEnum (const std::string &str) const
 Convert the data type string from the python configuration to an enum object. More...
 
const ToolHandle< GenericMonitoringTool > & getGroup (const std::string &name) const
 Get a specific monitoring tool from the tool handle array. More...
 
const ToolHandle< Trig::TrigDecisionTool > & getTrigDecisionTool () const
 Get the trigger decision tool member. More...
 
bool trigChainsArePassed (const std::vector< std::string > &vTrigNames) const
 Check whether triggers are passed. More...
 
SG::ReadHandle< xAOD::EventInfoGetEventInfo (const EventContext &) const
 Return a ReadHandle for an EventInfo object (get run/event numbers, etc.) More...
 
virtual float lbAverageInteractionsPerCrossing (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the average mu, i.e. More...
 
virtual float lbInteractionsPerCrossing (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate instantaneous number of interactions, i.e. More...
 
virtual float lbAverageLuminosity (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate average luminosity (in ub-1 s-1 => 10^30 cm-2 s-1). More...
 
virtual float lbLuminosityPerBCID (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the instantaneous luminosity per bunch crossing. More...
 
virtual double lbDuration (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the duration of the luminosity block (in seconds) More...
 
virtual float lbAverageLivefraction (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the average luminosity livefraction. More...
 
virtual float livefractionPerBCID (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the live fraction per bunch crossing ID. More...
 
virtual double lbLumiWeight (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the average integrated luminosity multiplied by the live fraction. More...
 
virtual StatusCode parseList (const std::string &line, std::vector< std::string > &result) const
 Parse a string into a vector. More...
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual bool isClonable () const override
 Specify if the algorithm is clonable. More...
 
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
 
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
virtual bool filterPassed (const EventContext &ctx) const
 
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Public Attributes

int module_FPGA_max_ADC = 4096
 
 flags = initConfigFlags()
 
string directory = ''
 
string inputfile = 'AOD.pool.root'
 
 Files
 
 parser = flags.getArgumentParser()
 
 default
 
 help
 
 None
 
 args = flags.fillFromArgs(parser=parser)
 
 useTrigger
 
 HISTFileName
 
 cfg = MainServicesCfg(flags)
 
def zdcMonitorAcc = ZdcMonitoringConfig(flags)
 
 withDetails
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
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. More...
 

Protected Attributes

ToolHandleArray< GenericMonitoringToolm_tools {this,"GMTools",{}}
 Array of Generic Monitoring Tools. More...
 
PublicToolHandle< Trig::TrigDecisionToolm_trigDecTool {this, "TrigDecisionTool",""}
 Tool to tell whether a specific trigger is passed. More...
 
ToolHandleArray< IDQFilterToolm_DQFilterTools {this,"FilterTools",{}}
 Array of Data Quality filter tools. More...
 
SG::ReadCondHandleKey< LuminosityCondDatam_lumiDataKey {this,"LuminosityCondDataKey","LuminosityCondData","SG Key of LuminosityCondData object"}
 
SG::ReadCondHandleKey< LBDurationCondDatam_lbDurationDataKey {this,"LBDurationCondDataKey","LBDurationCondData","SG Key of LBDurationCondData object"}
 
SG::ReadCondHandleKey< TrigLiveFractionCondDatam_trigLiveFractionDataKey {this,"TrigLiveFractionCondDataKey","TrigLiveFractionCondData", "SG Key of TrigLiveFractionCondData object"}
 
AthMonitorAlgorithm::Environment_t m_environment
 Instance of the Environment_t enum. More...
 
AthMonitorAlgorithm::DataType_t m_dataType
 Instance of the DataType_t enum. More...
 
Gaudi::Property< std::string > m_environmentStr {this,"Environment","user"}
 Environment string pulled from the job option and converted to enum. More...
 
Gaudi::Property< std::string > m_dataTypeStr {this,"DataType","userDefined"}
 DataType string pulled from the job option and converted to enum. More...
 
Gaudi::Property< std::string > m_triggerChainString {this,"TriggerChain",""}
 Trigger chain string pulled from the job option and parsed into a vector. More...
 
std::vector< std::string > m_vTrigChainNames
 Vector of trigger chain names parsed from trigger chain string. More...
 
Gaudi::Property< std::string > m_fileKey {this,"FileKey",""}
 Internal Athena name for file. More...
 
Gaudi::Property< bool > m_useLumi {this,"EnableLumi",false}
 Allows use of various luminosity functions. More...
 
Gaudi::Property< float > m_defaultLBDuration {this,"DefaultLBDuration",60.}
 Default duration of one lumi block. More...
 
Gaudi::Property< int > m_detailLevel {this,"DetailLevel",0}
 Sets the level of detail used in the monitoring. More...
 
SG::ReadHandleKey< xAOD::EventInfom_EventInfoKey {this,"EventInfoKey","EventInfo"}
 Key for retrieving EventInfo from StoreGate. More...
 

Private Types

typedef std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > MonVarVec_t
 
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

bool check_equal_within_rounding (float a, float b, float epsilon=1e-6f) const
 
void calculate_log_bin_edges (float min_value, float max_value, int num_bins, std::vector< float > &bin_edges)
 
float calculate_inverse_bin_width (float event_value, const std::string &variable_name, const std::vector< float > &bin_edges) const
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

Gaudi::Property< unsigned int > m_runNumber {this, "RunNumber", 0, "Run number for current job"}
 
ZdcInjPulserAmpMap::Token m_injMapRunToken {}
 
Gaudi::Property< std::string > m_zdcModuleContainerName {this, "ZdcModuleContainerName", "ZdcModules", "Location of ZDC processed data"}
 
Gaudi::Property< std::string > m_zdcSumContainerName {this, "ZdcSumContainerName", "ZdcSums", "Location of ZDC processed sums"}
 
Gaudi::Property< std::string > m_auxSuffix {this, "AuxSuffix", "", "Append this tag onto end of AuxData"}
 
Gaudi::Property< float > m_expected1N {this, "Expected1NADC", 1000., "Expected 1N position in ADC"}
 
Gaudi::Property< float > m_energyCutForModuleFractMonitor {this, "EnergyCutForModuleFractMonitor", 13400., "Minimum energy sum required on each side for event to enter module fraction monitoring (default at 5 * 2680 GeV)"}
 
Gaudi::Property< float > m_ZDCEnergyCutForCentroidValidBitMonitor {this, "ZDCEnergyCutForCentroidValidBitMonitor", 13400., "Minimum energy required in ZDC for event to enter centroid valid bit monitoring (default at 5 * 2680 GeV)"}
 
Gaudi::Property< float > m_moduleChisqHistMinValue {this, "ZDCModuleChisqHistMinValue", 1000., "Min value for logarithmic binning for ZDC module chisq distribution"}
 
Gaudi::Property< float > m_moduleChisqHistMaxvalue {this, "ZDCModuleChisqHistMaxvalue", 1000., "Max value for logarithmic binning for ZDC module chisq distribution"}
 
Gaudi::Property< float > m_moduleChisqHistNumBins {this, "ZDCModuleChisqHistNumBins", 1000., "Number of bins for logarithmic binning for ZDC module chisq distribution"}
 
Gaudi::Property< float > m_moduleChisqOverAmpHistMinValue {this, "ZDCModuleChisqOverAmpHistMinValue", 1000., "Min value for logarithmic binning for ZDC module chisq over amplitude distribution"}
 
Gaudi::Property< float > m_moduleChisqOverAmpHistMaxvalue {this, "ZDCModuleChisqOverAmpHistMaxvalue", 1000., "Max value for logarithmic binning for ZDC module chisq over amplitude distribution"}
 
Gaudi::Property< float > m_moduleChisqOverAmpHistNumBins {this, "ZDCModuleChisqOverAmpHistNumBins", 1000., "Number of bins for logarithmic binning for ZDC module chisq over amplitude distribution"}
 
Gaudi::Property< std::string > m_triggerSideA {this, "triggerSideA", "L1_ZDC_A", "Trigger on side A, needed for 1N-peak monitoring on side C"}
 
Gaudi::Property< std::string > m_triggerSideC {this, "triggerSideC", "L1_ZDC_C", "Trigger on side C, needed for 1N-peak monitoring on side A"}
 
Gaudi::Property< std::string > m_UCCtriggerHELT15 {this, "triggerUCCHELT15", "L1_ZDC_HELT15_jTE4000", "UCC trigger requiring ZDC hadronic energy be less than 15 TeV"}
 
Gaudi::Property< std::string > m_UCCtriggerHELT20 {this, "triggerUCCHELT20", "L1_ZDC_HELT20_jTE4000", "UCC trigger requiring ZDC hadronic energy be less than 20 TeV"}
 
Gaudi::Property< std::string > m_UCCtriggerHELT25 {this, "triggerUCCHELT25", "L1_ZDC_HELT25_jTE4000", "UCC trigger requiring ZDC hadronic energy be less than 25 TeV"}
 
Gaudi::Property< std::string > m_UCCtriggerHELT35 {this, "triggerUCCHELT35", "L1_ZDC_HELT35_jTE4000", "UCC trigger requiring ZDC hadronic energy be less than 35 TeV"}
 
Gaudi::Property< std::string > m_UCCtriggerHELT50 {this, "triggerUCCHELT50", "L1_ZDC_HELT50_jTE4000", "UCC trigger requiring ZDC hadronic energy be less than 50 TeV"}
 
Gaudi::Property< unsigned int > m_nSecondsRejectStartofLBInjectorPulse {this, "NSecondsRejectStartofLBInjectorPulse", 3, "The number of seconds to reject at beginning of each LB in reco-amp-vs-input-voltage histograms in the injector pulse stream"}
 
Gaudi::Property< float > m_minAmpRequiredHGInjectorPulse {this, "MinAmpRequiredHGInjectorPulse", 20, "HG Minimum amplitude required for event to enter reco-amp-vs-input-voltage histograms in the injector pulse stream"}
 
Gaudi::Property< float > m_minAmpRequiredLGInjectorPulse {this, "MinAmpRequiredLGInjectorPulse", 20, "LG Minimum amplitude required for event to enter reco-amp-vs-input-voltage histograms in the injector pulse stream"}
 
Gaudi::Property< float > m_minVInjToImposeAmpRequirementHGInjectorPulse {this, "MinVInjToImposeAmpRequirementHGInjectorPulse", 0.002, "Minimum input voltage to impose HG minimum amplitude requirement in the injector pulse stream; set to negative value to cancel HG minimum-amplitude requirement"}
 
Gaudi::Property< float > m_minVInjToImposeAmpRequirementLGInjectorPulse {this, "MinVInjToImposeAmpRequirementLGInjectorPulse", 0.002, "Minimum input voltage to impose LG minimum amplitude requirement in the injector pulse stream; set to negative value to cancel LG minimum-amplitude requirement"}
 
Gaudi::Property< std::vector< std::string > > m_OOpOtriggerChains {this, "OOpOTriggers", {}, "List of trigger chains to monitor"}
 
Gaudi::Property< std::map< int, std::string > > m_OOpOL1TriggerFromCTPIDMap {this, "OOpOL1TriggerFromCTPIDMap", {}, "Map of CTP ID to trigger name for ZdcCalib PEB stream pO/OO monitoring"}
 
Gaudi::Property< std::string > m_lbTimeCoolFolderName { this, "LumiBlockTimeCoolFolderName", "/TRIGGER/LUMI/LBLB", "COOL folder in COOLONL_TRIGGER holding info about start and stop times for luminosity blocks" }
 
std::map< std::string, int > m_ZDCSideToolIndices
 
std::map< std::string, std::map< std::string, int > > m_ZDCModuleToolIndices
 
std::map< std::string, std::map< std::string, int > > m_RPDChannelToolIndices
 
std::map< std::string, std::map< std::string, std::map< std::string, int > > > m_LucrodResponseSingleVoltageToolIndices
 
std::vector< float > m_ZdcModuleChisqBinEdges
 
std::vector< float > m_ZdcModuleChisqOverAmpBinEdges
 
std::shared_ptr< ZdcInjPulserAmpMapm_zdcInjPulserAmpMap
 
Gaudi::Property< bool > m_isOnline {this,"IsOnline",false}
 
Gaudi::Property< bool > m_isSim {this,"IsSim",false}
 
Gaudi::Property< bool > m_CalInfoOn {this,"CalInfoOn",false}
 
Gaudi::Property< bool > m_EnableZDCSingleSideTriggers {this,"EnableZDCSingleSideTriggers",true}
 
Gaudi::Property< bool > m_EnableUCCTriggers {this,"EnableUCCTriggers",false}
 
Gaudi::Property< bool > m_EnableOOpOTriggers {this,"EnableOOpOTriggers",false}
 
Gaudi::Property< bool > m_IsPEBStream {this,"IsPEBStream",true}
 
Gaudi::Property< bool > m_isPPMode {this,"IsPPMode",true}
 
Gaudi::Property< bool > m_ispOMode {this,"IspOMode",true}
 
Gaudi::Property< bool > m_isOOMode {this,"IsOOMode",true}
 
Gaudi::Property< bool > m_isInjectedPulse {this,"IsInjectedPulse",false}
 
Gaudi::Property< bool > m_isStandalone {this,"IsStandalone",false}
 
Gaudi::Property< bool > m_enableZDC {this,"EnableZDC",true}
 
Gaudi::Property< bool > m_enableZDCPhysics {this,"EnableZDCPhysics",true}
 
Gaudi::Property< bool > m_enableRPD {this,"EnableRPD",true}
 
Gaudi::Property< bool > m_enableRPDAmp {this,"EnableRPDAmp",true}
 
Gaudi::Property< bool > m_enableCentroid {this,"EnableCentroid",true}
 
Gaudi::Property< std::vector< float > > m_injPulseVoltageSteps {this, "InjPulseVoltageSteps", {0.}}
 
Gaudi::Property< std::vector< std::string > > m_injPulseVoltageStepsStr {this, "InjPulseVoltageStepsStr", {""}}
 
SG::ReadHandleKey< xAOD::ZdcModuleContainerm_ZdcSumContainerKey {this, "ZdcSumContainerKey", "ZdcSums"}
 
SG::ReadHandleKey< xAOD::ZdcModuleContainerm_ZdcModuleContainerKey {this, "ZdcModuleContainerKey", "ZdcModules"}
 
SG::ReadHandleKey< xAOD::HIEventShapeContainerm_HIEventShapeContainerKey {this, "HIEventShapeContainerKey", "HIEventShape"}
 
SG::ReadCondHandleKey< AthenaAttributeListm_LBLBFolderInputKey { this, "LBLBFolderInputKey", "/TRIGGER/LUMI/LBLB" }
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_eventTypeKey {this, "ZdcEventTypeKey", m_zdcSumContainerName + ".EventType" + m_auxSuffix}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_DAQModeKey {this, "ZdcDAQModeKey", m_zdcSumContainerName + ".DAQMode" + m_auxSuffix}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcSumCalibEnergyKey {this, "ZdcSumCalibEnergyKey", m_zdcSumContainerName + ".CalibEnergy" + m_auxSuffix}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcSumAverageTimeKey {this, "ZdcSumAverageTimeKey", m_zdcSumContainerName + ".AverageTime" + m_auxSuffix}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcSumUncalibSumKey {this, "ZdcSumUncalibSumKey", m_zdcSumContainerName + ".UncalibSum" + m_auxSuffix}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcSumModuleMaskKey {this, "ZdcSumModuleMaskKey", m_zdcSumContainerName + ".ModuleMask" + m_auxSuffix}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcModuleStatusKey {this, "ZdcModuleStatusKey", m_zdcModuleContainerName + ".Status" + m_auxSuffix}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcModuleAmplitudeKey {this, "ZdcModuleAmplitudeKey", m_zdcModuleContainerName + ".Amplitude" + m_auxSuffix}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcModuleTimeKey {this, "ZdcModuleTimeKey", m_zdcModuleContainerName + ".Time" + m_auxSuffix}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcModuleAmpNoNonLinKey {this, "ZdcModuleAmpNoNonLinKey", m_zdcModuleContainerName + ".AmpNoNonLin" + m_auxSuffix}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcModuleFitAmpKey {this, "ZdcModuleFitAmpKey", m_zdcModuleContainerName + ".FitAmp" + m_auxSuffix}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcModuleFitT0Key {this, "ZdcModuleFitT0Key", m_zdcModuleContainerName + ".FitT0" + m_auxSuffix}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcModuleChisqKey {this, "ZdcModuleChisqKey", m_zdcModuleContainerName + ".Chisq" + m_auxSuffix}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcModuleCalibEnergyKey {this, "ZdcModuleCalibEnergyKey", m_zdcModuleContainerName + ".CalibEnergy" + m_auxSuffix}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcModuleCalibTimeKey {this, "ZdcModuleCalibTimeKey", m_zdcModuleContainerName + ".CalibTime" + m_auxSuffix}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcModuleMaxADCKey {this, "ZdcModuleMaxADCKey", m_zdcModuleContainerName + ".MaxADC" + m_auxSuffix}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcModuleMaxADCHGKey {this, "ZdcModuleMaxADCHGKey", m_zdcModuleContainerName + ".MaxADCHG" + m_auxSuffix}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcModuleMaxADCLGKey {this, "ZdcModuleMaxADCLGKey", m_zdcModuleContainerName + ".MaxADCLG" + m_auxSuffix}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcModuleFitAmpLGRefitKey {this, "ZdcModuleFitAmpLGRefitKey", m_zdcModuleContainerName + ".FitAmpLGRefit" + m_auxSuffix, "ZDC module fit amp LG refit"}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcModuleAmpLGRefitKey {this, "ZdcModuleAmpLGRefitKey", m_zdcModuleContainerName + ".AmpLGRefit" + m_auxSuffix, "ZDC module fit amp LG refit"}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcModuleT0LGRefitKey {this, "ZdcModuleT0LGRefitKey", m_zdcModuleContainerName + ".T0LGRefit" + m_auxSuffix, "ZDC module fit t0 LG refit"}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcModuleT0SubLGRefitKey {this, "ZdcModuleT0SubLGRefitKey", m_zdcModuleContainerName + ".T0SubLGRefit" + m_auxSuffix, "ZDC module subtracted t0 LG refit"}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcModuleChisqLGRefitKey {this, "ZdcModuleChisqLGRefitKey", m_zdcModuleContainerName + ".ChisqLGRefit" + m_auxSuffix, "ZDC module LG refit chi square"}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_RPDChannelAmplitudeKey {this, "RPDChannelAmplitudeKey", m_zdcModuleContainerName + ".RPDChannelAmplitude" + m_auxSuffix}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_RPDChannelAmplitudeCalibKey {this, "RPDChannelAmplitudeCalibKey", m_zdcModuleContainerName + ".RPDChannelAmplitudeCalib" + m_auxSuffix}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_RPDChannelMaxADCKey {this, "RPDChannelMaxADCKey", m_zdcModuleContainerName + ".RPDChannelMaxADC" + m_auxSuffix}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_RPDChannelMaxSampleKey {this, "RPDChannelMaxSampleKey", m_zdcModuleContainerName + ".RPDChannelMaxSample" + m_auxSuffix}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_RPDChannelStatusKey {this, "RPDChannelStatusKey", m_zdcModuleContainerName + ".RPDChannelStatus" + m_auxSuffix}
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_RPDChannelPileupExpFitParamsKey
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_RPDChannelPileupFracKey
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_RPDChannelSubtrAmpKey
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_RPDSubtrAmpSumKey
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_RPDxCentroidKey
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_RPDyCentroidKey
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_RPDreactionPlaneAngleKey
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_RPDcosDeltaReactionPlaneAngleKey
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_RPDcentroidStatusKey
 
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_RPDSideStatusKey
 
std::string m_name
 
std::unordered_map< std::string, size_t > m_toolLookupMap
 
const ToolHandle< GenericMonitoringToolm_dummy
 
Gaudi::Property< bool > m_enforceExpressTriggers
 
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Static Private Attributes

static const int m_nSides = 2
 
static const int m_nModules = 4
 
static const int m_nChannels = 16
 
static const int m_nDecodingErrorBits = 3
 
static const int m_nUCCTrigBits = 7
 
static const int m_nZdcStatusBits = 18
 
static const int m_nRpdStatusBits = 15
 
static const int m_nRpdCentroidStatusBits = 21
 

Detailed Description

Definition at line 28 of file ZdcMonitorAlgorithm.h.

Member Typedef Documentation

◆ MonVarVec_t

typedef std::vector<std::reference_wrapper<Monitored::IMonitoredVariable> > AthMonitorAlgorithm::MonVarVec_t
privateinherited

Definition at line 365 of file AthMonitorAlgorithm.h.

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Member Enumeration Documentation

◆ DataType_t

enum AthMonitorAlgorithm::DataType_t
stronginherited

Specifies what type of input data is being monitored.

An enumeration of the different types of data the monitoring application may be running over. This can be used to select which histograms to produce, e.g. to prevent the production of colliding-beam histograms when running on cosmic-ray data. Strings of the same names may be given as jobOptions.

Enumerator
userDefined 
monteCarlo 
collisions 
cosmics 
heavyIonCollisions 

Definition at line 191 of file AthMonitorAlgorithm.h.

191  {
192  userDefined = 0,
193  monteCarlo,
194  collisions,
195  cosmics,
196  heavyIonCollisions,
197  };

◆ DecodingErrors

Enumerator
NoDecodingErrorBit 
ZDCDecodingErrorBit 
RPDDecodingErrorBit 

Definition at line 30 of file ZdcMonitorAlgorithm.h.

30  {
34  };

◆ Environment_t

enum AthMonitorAlgorithm::Environment_t
stronginherited

Specifies the processing environment.

The running environment may be used to select which histograms are produced, and where they are located in the output. For example, the output paths of the histograms are different for the "user", "online" and the various offline flags. Strings of the same names may be given as jobOptions.

Enumerator
user 
online 
tier0 
tier0Raw 
tier0ESD 
AOD 
altprod 

Definition at line 172 of file AthMonitorAlgorithm.h.

172  {
173  user = 0,
174  online,
175  tier0,
176  tier0Raw,
177  tier0ESD,
178  AOD,
179  altprod,
180  };

◆ UCCTriggers

Enumerator
UCCTrigEnabledBit 
TrigHELT50Bit 
TrigHELT35Bit 
TrigHELT25Bit 
TrigHELT20Bit 
TrigHELT15Bit 
UCCTrigDisabledBit 

Definition at line 35 of file ZdcMonitorAlgorithm.h.

35  {
37  TrigHELT50Bit = 1,
38  TrigHELT35Bit = 2,
39  TrigHELT25Bit = 3,
40  TrigHELT20Bit = 4,
41  TrigHELT15Bit = 5,
43  };

Constructor & Destructor Documentation

◆ ZdcMonitorAlgorithm()

ZdcMonitorAlgorithm::ZdcMonitorAlgorithm ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 14 of file ZdcMonitorAlgorithm.cxx.

15 :AthMonitorAlgorithm(name,pSvcLocator){
16  ATH_MSG_DEBUG("calling the constructor of ZdcMonitorAlgorithm");
17 }

◆ ~ZdcMonitorAlgorithm()

ZdcMonitorAlgorithm::~ZdcMonitorAlgorithm ( )
virtual

Definition at line 20 of file ZdcMonitorAlgorithm.cxx.

20 {}

Member Function Documentation

◆ calculate_inverse_bin_width()

float ZdcMonitorAlgorithm::calculate_inverse_bin_width ( float  event_value,
const std::string &  variable_name,
const std::vector< float > &  bin_edges 
) const
private

Definition at line 46 of file ZdcMonitorAlgorithm.cxx.

46  {
47  // Check if the event_value is out of range
48  if (event_value < bin_edges.front() || event_value > bin_edges.back()) { // changed output level to debug: this is not uncommon
49  ATH_MSG_DEBUG("In calculation of inverse-bin-width event weight for the variable " << variable_name << ", the current event value " << event_value << " is out of the bin range.");
50  ATH_MSG_DEBUG("Assign zero weight for the current event (event not filled).");
51  return 0.0; // event weight is zero
52  }
53 
54  // Find the bin in which event_value falls
55  for (size_t i = 0; i < bin_edges.size() - 1; ++i) {
56  if (event_value >= bin_edges[i] && event_value < bin_edges[i + 1]) {
57  float bin_width = bin_edges[i + 1] - bin_edges[i];
58  if (bin_width != 0) {
59  return 1.0f / bin_width; // Return the inverse of bin width
60  } else {
61  ATH_MSG_WARNING("Warning: in calculation of inverse-bin-width event weight for the variable " << variable_name << ", bin width containing the event value " << event_value << " is zero.");
62  ATH_MSG_WARNING("Assign zero weight for the current event (event not filled).");
63  return 0.0; // event weight is zero
64  }
65  }
66  }
67 
68  // Handle edge case where event_value == bin_edges.back()
69  if (event_value == bin_edges.back()) {
70  size_t last_bin_index = bin_edges.size() - 2;
71  float bin_width = bin_edges[last_bin_index + 1] - bin_edges[last_bin_index];
72  return 1.0 / bin_width;
73  }
74 
75  // If no bin is found (should not reach here)
76  ATH_MSG_WARNING("Warning: in calculation of inverse-bin-width event weight for the variable " << variable_name << ", no valid bin found for the event value " << event_value << ".");
77  ATH_MSG_WARNING("Assign zero weight for the current event (event not filled).");
78  return 0.0; // event weight is zero
79 }

◆ calculate_log_bin_edges()

void ZdcMonitorAlgorithm::calculate_log_bin_edges ( float  min_value,
float  max_value,
int  num_bins,
std::vector< float > &  bin_edges 
)
private

Definition at line 27 of file ZdcMonitorAlgorithm.cxx.

27  {
28  // Clear the vector to ensure it's empty
29  bin_edges.clear();
30 
31  // Calculate the logarithmic bin edges
32  float log_min = std::log10(min_value);
33  float log_max = std::log10(max_value);
34 
35  // Linear space between log_min and log_max with num_bins+1 points
36  float step = (log_max - log_min) / num_bins;
37 
38  // Populate the vector with the bin edges
39  for (int i = 0; i <= num_bins; ++i) {
40  float edge = log_min + i * step;
41  bin_edges.push_back(std::pow(10, edge));
42  }
43 }

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64 {
65  return 0;
66 }

◆ check_equal_within_rounding()

bool ZdcMonitorAlgorithm::check_equal_within_rounding ( float  a,
float  b,
float  epsilon = 1e-6f 
) const
private

Definition at line 23 of file ZdcMonitorAlgorithm.cxx.

23  {
24  return std::fabs(a - b) < epsilon;
25 }

◆ dataType()

DataType_t AthMonitorAlgorithm::dataType ( ) const
inlineinherited

Accessor functions for the data type.

Returns
the current value of the class's DataType_t instance.

Definition at line 221 of file AthMonitorAlgorithm.h.

221 { return m_dataType; }

◆ dataTypeStringToEnum()

AthMonitorAlgorithm::DataType_t AthMonitorAlgorithm::dataTypeStringToEnum ( const std::string &  str) const
inherited

Convert the data type string from the python configuration to an enum object.

Returns
a value in the DataType_t enumeration which matches the input string.

Definition at line 140 of file AthMonitorAlgorithm.cxx.

140  {
141  // convert the string to all lowercase
142  std::string lowerCaseStr = str;
143  std::transform(lowerCaseStr.begin(), lowerCaseStr.end(), lowerCaseStr.begin(), ::tolower);
144 
145  // check if it matches one of the enum choices
146  if( lowerCaseStr == "userdefined" ) {
148  } else if( lowerCaseStr == "montecarlo" ) {
149  return DataType_t::monteCarlo;
150  } else if( lowerCaseStr == "collisions" ) {
151  return DataType_t::collisions;
152  } else if( lowerCaseStr == "cosmics" ) {
153  return DataType_t::cosmics;
154  } else if( lowerCaseStr == "heavyioncollisions" ) {
156  } else { // otherwise, warn the user and return "userDefined"
157  ATH_MSG_WARNING("AthMonitorAlgorithm::dataTypeStringToEnum(): Unknown data type "
158  <<str<<", returning userDefined.");
160  }
161 }

◆ declareGaudiProperty() [1/4]

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

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

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

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

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

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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  }

◆ detStore()

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

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

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ environment()

Environment_t AthMonitorAlgorithm::environment ( ) const
inlineinherited

Accessor functions for the environment.

Returns
the current value of the class's Environment_t instance.

Definition at line 205 of file AthMonitorAlgorithm.h.

205 { return m_environment; }

◆ envStringToEnum()

AthMonitorAlgorithm::Environment_t AthMonitorAlgorithm::envStringToEnum ( const std::string &  str) const
inherited

Convert the environment string from the python configuration to an enum object.

Returns
a value in the Environment_t enumeration which matches the input string.

Definition at line 112 of file AthMonitorAlgorithm.cxx.

112  {
113  // convert the string to all lowercase
114  std::string lowerCaseStr = str;
115  std::transform(lowerCaseStr.begin(), lowerCaseStr.end(), lowerCaseStr.begin(), ::tolower);
116 
117  // check if it matches one of the enum choices
118  if( lowerCaseStr == "user" ) {
119  return Environment_t::user;
120  } else if( lowerCaseStr == "online" ) {
121  return Environment_t::online;
122  } else if( lowerCaseStr == "tier0" ) {
123  return Environment_t::tier0;
124  } else if( lowerCaseStr == "tier0raw" ) {
126  } else if( lowerCaseStr == "tier0esd" ) {
128  } else if( lowerCaseStr == "aod" ) {
129  return Environment_t::AOD;
130  } else if( lowerCaseStr == "altprod" ) {
131  return Environment_t::altprod;
132  } else { // otherwise, warn the user and return "user"
133  ATH_MSG_WARNING("AthMonitorAlgorithm::envStringToEnum(): Unknown environment "
134  <<str<<", returning user.");
135  return Environment_t::user;
136  }
137 }

◆ evtStore() [1/2]

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

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

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( ) const
inlineinherited

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

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ execute()

StatusCode AthMonitorAlgorithm::execute ( const EventContext &  ctx) const
overridevirtualinherited

Applies filters and trigger requirements.

Then, calls fillHistograms().

Parameters
ctxevent context for reentrant Athena call
Returns
StatusCode

Definition at line 73 of file AthMonitorAlgorithm.cxx.

73  {
74 
75  // Checks that all of the DQ filters are passed. If any one of the filters
76  // fails, return SUCCESS code and do not fill the histograms with the event.
77  for ( const auto& filterItr : m_DQFilterTools ) {
78  if (!filterItr->accept()) {
79  ATH_MSG_DEBUG("Event rejected due to filter tool.");
80  return StatusCode::SUCCESS;
81  }
82  }
83 
84  // Trigger: If there is a decision tool and the chains fail, skip the event.
86  ATH_MSG_DEBUG("Event rejected due to trigger filter.");
87  return StatusCode::SUCCESS;
88  }
89 
90  ATH_MSG_DEBUG("Event accepted!");
91  return fillHistograms(ctx);
92 }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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

◆ extraOutputDeps()

const DataObjIDColl & AthCommonReentrantAlgorithm< Gaudi::Algorithm >::extraOutputDeps
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.

90 {
91  // If we didn't find any symlinks to add, just return the collection
92  // from the base class. Otherwise, return the extended collection.
93  if (!m_extendedExtraObjects.empty()) {
95  }
96  return BaseAlg::extraOutputDeps();
97 }

◆ fillHistograms()

StatusCode ZdcMonitorAlgorithm::fillHistograms ( const EventContext &  ctx) const
overridevirtual

adds event to the monitoring histograms

User will overwrite this function. Histogram booking is no longer done in C++. This function is called in execute once the filters are all passed.

Parameters
ctxforwarded from execute
Returns
StatusCode

Implements AthMonitorAlgorithm.

Definition at line 1099 of file ZdcMonitorAlgorithm.cxx.

1099  {
1100 
1101  ATH_MSG_DEBUG("calling the fillHistograms function");
1102 
1104  if (! eventInfo.isValid() || eventInfo.cptr() == nullptr) {
1105  ATH_MSG_WARNING("EventInfo handle is not valid or has null pointer!");
1106  return StatusCode::SUCCESS;
1107  }
1108 
1109  unsigned int eventType = ZdcEventInfo::ZdcEventUnknown;
1110  unsigned int DAQMode = ZdcEventInfo::DAQModeUndef;
1111 
1114 
1116 
1117  if (! zdcSums.isValid() ) {
1118  ATH_MSG_WARNING("evtStore() does not contain Collection with name "<< m_ZdcSumContainerKey);
1119  return StatusCode::SUCCESS;
1120  }
1121  for (const auto zdcSum : *zdcSums) {
1122  if (zdcSum->zdcSide() == 0){
1123  if (!eventTypeHandle.isAvailable()){
1124  ATH_MSG_WARNING("The global sum entry in zdc sum container can be retrieved; but it does NOT have the variable eventType written as a decoration!");
1125  return StatusCode::SUCCESS;
1126  }
1127 
1128  if (!DAQModeHandle.isAvailable()){
1129  ATH_MSG_WARNING("The global sum entry in zdc sum container can be retrieved; but it does NOT have the variable DAQMode written as a decoration!");
1130  return StatusCode::SUCCESS;
1131  }
1132 
1133  eventType = eventTypeHandle(*zdcSum);
1134  DAQMode = DAQModeHandle(*zdcSum);
1135  }
1136  }
1137 
1138  ATH_MSG_DEBUG("The event type is: " << eventType);
1139 
1141  ATH_MSG_WARNING("The zdc sum container can be retrieved from the evtStore() but");
1142  ATH_MSG_WARNING("Either the event type or the DAQ mode is the default unknown value");
1143  ATH_MSG_WARNING("Most likely, there is no global sum (side == 0) entry in the zdc sum container");
1144  return StatusCode::SUCCESS;
1145  }
1146 
1147  if (eventType == ZdcEventInfo::ZdcEventPhysics || eventType == ZdcEventInfo::ZdcSimulation){
1148  return fillPhysicsDataHistograms(ctx);
1149  }
1150 
1151  ATH_MSG_WARNING("Event type should be PhysicsData/Simulation but it is NOT");
1152  return StatusCode::SUCCESS;
1153 }

◆ fillPhysicsDataHistograms()

StatusCode ZdcMonitorAlgorithm::fillPhysicsDataHistograms ( const EventContext &  ctx) const

Definition at line 201 of file ZdcMonitorAlgorithm.cxx.

201  {
202  ATH_MSG_DEBUG("calling the fillPhysicsDataHistograms function");
203 
204 // ______________________________________________________________________________
205  // EVENT-level flags for whether ZDC, RPD and RPDCentroid data is available
206  // needed for events with LUCROD decoding error - will have missing aux data
207  bool cur_event_ZDC_available = true;
208  bool cur_event_RPD_available = true;
209  bool cur_event_RPDCentroid_available = true;
210 
211 // ______________________________________________________________________________
212 
213 // ______________________________________________________________________________
214  // declaring & obtaining event-level information of interest
215 // ______________________________________________________________________________
217 
218  // already checked in fillHistograms that eventInfo is valid
219  auto lumiBlock = Monitored::Scalar<uint32_t>("lumiBlock", eventInfo->lumiBlock());
220  auto bcid = Monitored::Scalar<unsigned int>("bcid", eventInfo->bcid());
221  uint32_t eventTime = eventInfo->timeStamp();
222  uint32_t runNumber = eventInfo->runNumber();
223 
224 // ______________________________________________________________________________
225  // check for decoding errors
226 // ______________________________________________________________________________
227  bool zdcDecodingError = eventInfo->isEventFlagBitSet(xAOD::EventInfo::ForwardDet, ZdcEventInfo::ZDCDECODINGERROR );
228  bool rpdDecodingError = eventInfo->isEventFlagBitSet(xAOD::EventInfo::ForwardDet, ZdcEventInfo::RPDDECODINGERROR );
229  std::array<float, m_nDecodingErrorBits> decodingErrorBitsArr = {0, 0, 0};
230 
231  cur_event_ZDC_available &= !zdcDecodingError;
232  cur_event_RPD_available &= !rpdDecodingError;
233 
234  if (!zdcDecodingError && !rpdDecodingError){
235  decodingErrorBitsArr[0] += 1;
236  } else if (zdcDecodingError){
237  ATH_MSG_WARNING("ZDC Decoding error!");
238  decodingErrorBitsArr[1] += 1;
239  } else { // RPD decoding error
240  ATH_MSG_WARNING("RPD Decoding error!");
241  decodingErrorBitsArr[2] += 1;
242  }
243 
244  auto zdcTool = getGroup("genZdcMonTool"); // get the tool for easier group filling
245 
246  auto decodingErrorBits = Monitored::Collection("decodingErrorBits", decodingErrorBitsArr);
247  fill(zdcTool, decodingErrorBits, lumiBlock);
248 
249 // ______________________________________________________________________________
250  // does event pass trigger selections?
251 // ______________________________________________________________________________
252 
253 
254 // ----------------------- ZDC single-sided triggers -----------------------
255 
256  auto passTrigSideA = Monitored::Scalar<bool>("passTrigSideA",false); // if trigger isn't enabled (e.g, MC) the with-trigger histograms are never filled (cut mask never satisfied)
257  auto passTrigSideC = Monitored::Scalar<bool>("passTrigSideC",false);
258 
259  if(m_EnableZDCSingleSideTriggers && m_enableZDCPhysics){ // if not enable trigger, the pass-trigger booleans will still be defined but with value always set to false
260  const auto &trigDecTool = getTrigDecisionTool();
261  passTrigSideA = trigDecTool->isPassed(m_triggerSideA, TrigDefs::Physics);
262  passTrigSideC = trigDecTool->isPassed(m_triggerSideC, TrigDefs::Physics);
263  if (passTrigSideA) ATH_MSG_DEBUG("passing trig on side A!");
264  if (passTrigSideC) ATH_MSG_DEBUG("passing trig on side C!");
265  }
266 
267 // ----------------------- UCC triggers -----------------------
268 
269  auto passUCCTrig_HELT15 = Monitored::Scalar<bool>("passUCCTrig_HELT15",false);
270  auto passUCCTrig_HELT20 = Monitored::Scalar<bool>("passUCCTrig_HELT20",false);
271  auto passUCCTrig_HELT25 = Monitored::Scalar<bool>("passUCCTrig_HELT25",false);
272  auto passUCCTrig_HELT35 = Monitored::Scalar<bool>("passUCCTrig_HELT35",false);
273  auto passUCCTrig_HELT50 = Monitored::Scalar<bool>("passUCCTrig_HELT50",false);
274 
275  std::array<float, m_nUCCTrigBits> uccTrigBitsArr = {0};
276 
277  if(m_EnableUCCTriggers && m_enableZDCPhysics){ // if not enable trigger, the pass-trigger booleans will still be defined but with value always set to false
278  uccTrigBitsArr[UCCTrigEnabledBit] += 1;
279 
280  const auto &trigDecTool = getTrigDecisionTool();
281  passUCCTrig_HELT15 = trigDecTool->isPassed(m_UCCtriggerHELT15);
282  passUCCTrig_HELT20 = trigDecTool->isPassed(m_UCCtriggerHELT20);
283  passUCCTrig_HELT25 = trigDecTool->isPassed(m_UCCtriggerHELT25);
284  passUCCTrig_HELT35 = trigDecTool->isPassed(m_UCCtriggerHELT35);
285  passUCCTrig_HELT50 = trigDecTool->isPassed(m_UCCtriggerHELT50);
286 
287  if (passUCCTrig_HELT15){
288  uccTrigBitsArr[TrigHELT15Bit] += 1;
289  ATH_MSG_DEBUG("passing UCC trigger L1_ZDC_HELT15_jTE4000!");
290  }
291  if (passUCCTrig_HELT20){
292  uccTrigBitsArr[TrigHELT20Bit] += 1;
293  ATH_MSG_DEBUG("passing UCC trigger L1_ZDC_HELT20_jTE4000!");
294  }
295  if (passUCCTrig_HELT25){
296  uccTrigBitsArr[TrigHELT25Bit] += 1;
297  ATH_MSG_DEBUG("passing UCC trigger L1_ZDC_HELT25_jTE4000!");
298  }
299  if (passUCCTrig_HELT35){
300  uccTrigBitsArr[TrigHELT35Bit] += 1;
301  ATH_MSG_DEBUG("passing UCC trigger L1_ZDC_HELT35_jTE4000!");
302  }
303  if (passUCCTrig_HELT50){
304  uccTrigBitsArr[TrigHELT50Bit] += 1;
305  ATH_MSG_DEBUG("passing UCC trigger L1_ZDC_HELT50_jTE4000!");
306  }
307  }else{
308  uccTrigBitsArr[UCCTrigDisabledBit] += 1;
309  }
310 
311  auto uccTrigBits = Monitored::Collection("uccTrigBits", uccTrigBitsArr);
312  fill(zdcTool, uccTrigBits, lumiBlock);
313 
314 // ----------------------- OOpO triggers -----------------------
315  int nOOpOTriggers = m_OOpOtriggerChains.size();
316  int nOOpOL1TriggersFromCTP = m_OOpOL1TriggerFromCTPIDMap.size();
317  std::vector<float> oopoTrigBitsArr(nOOpOTriggers+2, 0.); // enabled, trigger bits, disabled
318 
319  std::vector<Monitored::Scalar<bool>> oopoTrigPassBoolVec;
320  oopoTrigPassBoolVec.reserve(nOOpOTriggers);
321 
322  if(m_EnableOOpOTriggers && m_enableZDCPhysics) { // if not enable trigger, the pass-trigger booleans will still be defined but with value always set to false
323  oopoTrigBitsArr[0] += 1; // OOpO trigger enabled
324 
325  const auto &trigDecTool = getTrigDecisionTool();
326 
327  for (int i = 0; i < nOOpOTriggers - nOOpOL1TriggersFromCTP; ++i) {
328  const bool pass = (trigDecTool->isPassed( m_OOpOtriggerChains[i] ));
329 
330  // Histogram variable name: “pass<L1-name>”
331  std::string varName = "pass" + m_OOpOtriggerChains[i];
332  // *Optionally sanitise if you have funky characters*
333  std::replace_if( varName.begin(), varName.end(),
334  [](char c){ return c=='-'; }, '_' );
335 
336  oopoTrigPassBoolVec.emplace_back( varName, pass );
337  oopoTrigBitsArr[i+1] += pass;
338  }
339 
340  try {
341  const xAOD::TrigDecision* trigDecision = nullptr;
342  ANA_CHECK(evtStore()->retrieve( trigDecision, "xTrigDecision"));
343 
344  if (!trigDecision){
345  throw std::runtime_error("Trigger decision NOT retrieved for PEB stream!");
346  }
347  std::vector<uint32_t> tbp = trigDecision->tbp();
348 
349  for (const auto& [ctp_id, trig_name] : m_OOpOL1TriggerFromCTPIDMap) {
350  int ind = ctp_id / 32; // index in vector tbp
351  int bit = ctp_id % 32; // bit in tax[ind]
352  const bool pass = ((tbp.at(ind) >> bit) & 1);
353  ATH_MSG_INFO("what's the size of xAOD::TrigDecision::tbp()? " << tbp.size());
354  std::string varName = "pass" + trig_name;
355  oopoTrigPassBoolVec.emplace_back( varName, pass );
356  oopoTrigBitsArr.at(oopoTrigPassBoolVec.size()) += pass;
357  }
358  } catch (const std::out_of_range& e) {
359  ATH_MSG_WARNING("Out of range error captured when fetching L1 trigger bits from CTP ID: " << e.what());
360  } catch (const std::runtime_error& e) {
361  ATH_MSG_WARNING("Runtime error captured when fetching L1 trigger bits from CTP ID: " << e.what());
362  } catch (const std::exception& e) {
363  ATH_MSG_WARNING("Other std::exception captured when fetching L1 trigger bits from CTP ID: " << e.what());
364  } catch (...) {
365  ATH_MSG_WARNING("Error captured when fetching L1 trigger bits from CTP ID. Likely either no L1 trigger looked at or no L1 trigger will show to be passed.");
366  }
367  }else{
368  oopoTrigBitsArr[nOOpOTriggers + 1] += 1; // OOpO trigger disabled
369  }
370 
371  auto oopoTrigBits = Monitored::Collection("OOpOTrigBits", oopoTrigBitsArr);
372 
373  fill(zdcTool, oopoTrigBits, lumiBlock);
374 
375 // ______________________________________________________________________________
376  // declaring & obtaining variables of interest for the ZDC sums
377  // including the RPD x,y positions, reaction plane and status
378 // ______________________________________________________________________________
380 
381  auto zdcEnergySumTwoSidesTeV = Monitored::Scalar<float>("zdcEnergySumTwoSidesTeV",0.0);
382  auto zdcHadronicEnergySumTwoSidesTeV = Monitored::Scalar<float>("zdcHadronicEnergySumTwoSidesTeV",0.0);
383  auto zdcEnergySumA = Monitored::Scalar<float>("zdcEnergySumA",-1000.0);
384  auto zdcEnergySumC = Monitored::Scalar<float>("zdcEnergySumC",-1000.0);
385  auto zdcUncalibSumA = Monitored::Scalar<float>("zdcUncalibSumA",-1000.0);
386  auto zdcUncalibSumC = Monitored::Scalar<float>("zdcUncalibSumC",-1000.0);
387  auto rpdCosDeltaReactionPlaneAngle = Monitored::Scalar<float>("rpdCosDeltaReactionPlaneAngle",-1000.0);
388  auto bothReactionPlaneAngleValid = Monitored::Scalar<bool>("bothReactionPlaneAngleValid",true);
389  auto bothHasCentroid = Monitored::Scalar<bool>("bothHasCentroid",true); // the looser requirement that both centroids were calculated (ignore valid)
390 
391  std::array<bool, 2> centroidSideValidArr;
392  std::array<bool, 2> rpdSideValidArr = {false, false};
393  std::array<std::vector<float>,2> rpdSubAmpVecs;
394  auto rpdSubAmpSumCurSide = Monitored::Scalar<float>("rpdSubAmpSum",-1000.0);
395  auto rpdXCentroidCurSide = Monitored::Scalar<float>("xCentroid",-1000.0);
396  auto rpdYCentroidCurSide = Monitored::Scalar<float>("yCentroid",-1000.0);
397  auto rpdReactionPlaneAngleCurSide = Monitored::Scalar<float>("ReactionPlaneAngle",-1000.0);
398  auto centroidValid = Monitored::Scalar<bool>("centroidValid",false);
399  auto centroidValidBitFloat = Monitored::Scalar<float>("centroidValidBitFloat", -1000.0); // 0.5 if valid, 1.5 if invalid --> needed for DQ
400  auto passMinZDCEnergyCutForCentroidValidEvaluation = Monitored::Scalar<bool>("passMinZDCEnergyCutForCentroidValidEvaluation",false);
401 
402  // need to recognize same-side correlation among the following observables
403  // since they are filled differently, it is helpful to store each of their values in the 2-dimension array first
404  // and fill the side monitoring tool in the same "monitoring group"
405  std::array<float, 2> zdcEMModuleEnergyArr = {-1000.,-1000.};
406  std::array<float, 2> zdcEnergySumArr = {-1000,-1000.};
407  std::array<float, 2> zdcUncalibSumArr = {-1000.,-1000.};
408  std::array<float, 2> zdcAvgTimeArr = {-1000.,-1000.};
409  std::array<bool, 2> zdcModuleMaskArr = {false, false};
410  std::array<bool, 2> passTrigOppSideArr = {false, false};
411  std::array<float, 2> rpdAmplitudeCalibSum = {-1000.,-1000.};
412  std::array<float, 2> rpdMaxADCSum = {-1000.,-1000.};
413 
414  std::array<float, m_nRpdCentroidStatusBits> centroidStatusBitsCountCurSide;
415 
416  if (! zdcSums.isValid() ) {
417  ATH_MSG_WARNING("evtStore() does not contain Collection with name "<< m_ZdcSumContainerKey);
418  return StatusCode::SUCCESS;
419  }
420 
425 
426  // write ZDC per-arm information to arrays
427  zdcEnergySumTwoSidesTeV = 0.;
428 
429  if (m_enableZDCPhysics){ // write down energy sum, uncalib sum, average time, and module mask if we enable ZDC physics
430  cur_event_ZDC_available &= ZdcSumCalibEnergyHandle.isAvailable();
431 
432  if (cur_event_ZDC_available){
433  for (const auto zdcSum : *zdcSums) { // side -1: C; side 1: A
434  if (zdcSum->zdcSide() != 0){
435  int iside = (zdcSum->zdcSide() > 0)? 1 : 0;
436 
437  zdcEnergySumArr[iside] = ZdcSumCalibEnergyHandle(*zdcSum);
438  zdcUncalibSumArr[iside] = ZdcSumUncalibSumHandle(*zdcSum);
439  zdcAvgTimeArr[iside] = ZdcSumAverageTimeHandle(*zdcSum);
440  zdcModuleMaskArr[iside] = ZdcSumModuleMaskHandle(*zdcSum);
441 
442  passTrigOppSideArr[iside] = (iside == 0)? passTrigSideA : passTrigSideC;
443 
444  zdcEnergySumTwoSidesTeV += (ZdcSumCalibEnergyHandle(*zdcSum)) / 1000.;
445 
446  if (zdcSum->zdcSide() == 1){
447  zdcEnergySumA = ZdcSumCalibEnergyHandle(*zdcSum);
448  zdcUncalibSumA = ZdcSumUncalibSumHandle(*zdcSum);
449  }
450  else {
451  zdcEnergySumC = ZdcSumCalibEnergyHandle(*zdcSum);
452  zdcUncalibSumC = ZdcSumUncalibSumHandle(*zdcSum);
453  }
454  }
455  } // having filled both sides
456  }
457  } else if (m_enableZDC){ // enable ZDC but not physics - for now, the only case is injector pulse --> no energy, only record uncalib sum
458  cur_event_ZDC_available &= ZdcSumUncalibSumHandle.isAvailable();
459  if (cur_event_ZDC_available){
460  for (const auto zdcSum : *zdcSums) { // side -1: C; side 1: A
461  if (zdcSum->zdcSide() != 0){
462  int iside = (zdcSum->zdcSide() > 0)? 1 : 0;
463  zdcUncalibSumArr[iside] = ZdcSumUncalibSumHandle(*zdcSum);
464  }
465  }
466  }
467  }
468 
469  // write RPD per-arm status to arrays
470  if (m_enableRPDAmp){
472  cur_event_RPD_available &= RPDsideStatusHandle.isAvailable();
473  if (cur_event_RPD_available){
474  for (const auto zdcSum : *zdcSums) { // side -1: C; side 1: A
475  if (zdcSum->zdcSide() != 0){ // contains the RPD Cos Delta reaction plane
476  int iside = (zdcSum->zdcSide() > 0)? 1 : 0;
477  unsigned int rpdStatusCurSide = RPDsideStatusHandle(*zdcSum);
478  rpdSideValidArr.at(iside) = rpdStatusCurSide & 1 << ZDC::RPDDataAnalyzer::ValidBit;
479  }
480  }
481  }
482  }
483 
484  // fill RPD centroid information to monitoring tools
485  if (m_enableCentroid){
493 
494  cur_event_RPDCentroid_available &= RPDcentroidStatusHandle.isAvailable();
495  if (cur_event_RPDCentroid_available){
496  for (const auto zdcSum : *zdcSums) { // side -1: C; side 1: A
497 
498  if (zdcSum->zdcSide() == 0){ // contains the RPD Cos Delta reaction plane
499  rpdCosDeltaReactionPlaneAngle = RPDcosDeltaReactionPlaneAngleHandle(*zdcSum);
500  }else{
501  int iside = (zdcSum->zdcSide() > 0)? 1 : 0; // already exclude the possibility of global sum
502  std::string side_str = (iside == 0)? "C" : "A";
503 
504  rpdSubAmpVecs[iside] = RPDsubAmpHandle(*zdcSum);
505  rpdSubAmpSumCurSide = RPDsubAmpSumHandle(*zdcSum);
506  rpdXCentroidCurSide = RPDxCentroidHandle(*zdcSum);
507  rpdYCentroidCurSide = RPDyCentroidHandle(*zdcSum);
508  rpdReactionPlaneAngleCurSide = RPDreactionPlaneAngleHandle(*zdcSum);
509 
510  unsigned int rpdCentroidStatusCurSide = RPDcentroidStatusHandle(*zdcSum);
511 
512  // Remarks - Oct 2024
513  // HasCentroidBit is false if RPD on the current side is invalid
514  // The centroid ValidBit, compared with Has HasCentroidBit, also checks that ZDC is valid
515  // and has the infrastruture to require (1) ZDC total energy to be in given range
516  // (2) EM-module energy to be in given range
517  // (3) pile up fraction is below a threshold
518  // but these are currently NOT implemented
519  // for online, we only monitor the ones requiring valid bit
520  // for offline, we plot both sets, with the expectation that they are the same for now
521  centroidValid = (rpdCentroidStatusCurSide & 1 << ZDC::RpdSubtractCentroidTool::ValidBit);
522 
523  centroidValidBitFloat = (centroidValid)? 0.5 : 1.5;
524 
525  centroidSideValidArr.at(iside) = rpdCentroidStatusCurSide & 1 << ZDC::RpdSubtractCentroidTool::ValidBit;
526  bool curSideHasCentroid = (rpdCentroidStatusCurSide & 1 << ZDC::RpdSubtractCentroidTool::HasCentroidBit);
527 
528  bothReactionPlaneAngleValid &= centroidValid;
529  bothHasCentroid &= curSideHasCentroid;
530 
531  for (int bit = 0; bit < m_nRpdCentroidStatusBits; bit++) centroidStatusBitsCountCurSide[bit] = 0; // reset
532  for (int bit = 0; bit < m_nRpdCentroidStatusBits; bit++){
533  if (rpdCentroidStatusCurSide & 1 << bit){
534  centroidStatusBitsCountCurSide[bit] += 1;
535  }
536  }
537  auto centroidStatusBits = Monitored::Collection("centroidStatusBits", centroidStatusBitsCountCurSide);
538 
539  if (curSideHasCentroid){ // only impose the looser requirement that this side has centroid; have a set of histograms for the more stringent centroid-valid requirement
540  if (m_enableZDCPhysics){ // if not enable ZDC physics, no ZDC energy --> the boolean requiring minimum ZDC energy will always be set to false
541  passMinZDCEnergyCutForCentroidValidEvaluation = (zdcEnergySumArr[iside] > m_ZDCEnergyCutForCentroidValidBitMonitor);
542  }
543  fill(m_tools[m_ZDCSideToolIndices.at(side_str)], rpdSubAmpSumCurSide, centroidValid, passMinZDCEnergyCutForCentroidValidEvaluation, centroidValidBitFloat, rpdXCentroidCurSide, rpdYCentroidCurSide, rpdReactionPlaneAngleCurSide, centroidStatusBits, lumiBlock, bcid);
544  }else{
545  fill(m_tools[m_ZDCSideToolIndices.at(side_str)], rpdSubAmpSumCurSide, centroidStatusBits, lumiBlock, bcid);
546  }
547  }
548  } // having filled both sides
549  }
550  }
551 
552 // ______________________________________________________________________________
553  // declaring & obtaining variables of interest for the ZDC modules & RPD channels
554  // filling arrays of monitoring tools (module/channel-level)
555  // updating status bits
556 // ______________________________________________________________________________
557 
559 
572 
578 
579  auto zdcModuleAmp = Monitored::Scalar<float>("zdcModuleAmp", -1000.0);
580  auto zdcModuleFitAmp = Monitored::Scalar<float>("zdcModuleFitAmp", -1000.0);
581  auto zdcModuleMaxADC = Monitored::Scalar<float>("zdcModuleMaxADC", -1000.0);
582  auto zdcModuleMaxADCHG = Monitored::Scalar<float>("zdcModuleMaxADCHG", -1000.0);
583  auto zdcModuleMaxADCLG = Monitored::Scalar<float>("zdcModuleMaxADCLG", -1000.0);
584  auto zdcModuleAmpToMaxADCRatio = Monitored::Scalar<float>("zdcModuleAmpToMaxADCRatio", -1000.0);
585  auto zdcModuleFract = Monitored::Scalar<float>("zdcModuleFract", -1000.0);
586  auto zdcUncalibSumCurrentSide = Monitored::Scalar<float>("zdcUncalibSumCurrentSide", -1000.0);
587  auto zdcEnergySumCurrentSide = Monitored::Scalar<float>("zdcEnergySumCurrentSide", -1000.0);
588  auto zdcAbove20NCurrentSide = Monitored::Scalar<bool>("zdcAbove20NCurrentSide", false);
589  auto zdcEnergyAboveModuleFractCut = Monitored::Scalar<bool>("zdcEnergyAboveModuleFractCut", false);
590  auto zdcModuleTime = Monitored::Scalar<float>("zdcModuleTime", -1000.0);
591  auto zdcModuleFitT0 = Monitored::Scalar<float>("zdcModuleFitT0", -1000.0);
592  auto zdcModuleChisq = Monitored::Scalar<float>("zdcModuleChisq", -1000.0);
593  auto zdcModuleChisqEventWeight = Monitored::Scalar<float>("zdcModuleChisqEventWeight", -1000.0);
594  auto zdcModuleChisqOverAmp = Monitored::Scalar<float>("zdcModuleChisqOverAmp", -1000.0);
595  auto zdcModuleChisqOverAmpEventWeight = Monitored::Scalar<float>("zdcModuleChisqOverAmpEventWeight", -1000.0);
596  auto zdcModuleCalibAmp = Monitored::Scalar<float>("zdcModuleCalibAmp", -1000.0);
597  auto zdcModuleCalibTime = Monitored::Scalar<float>("zdcModuleCalibTime", -1000.0);
598  auto zdcModuleLG = Monitored::Scalar<bool>("zdcModuleLG", false);
599  auto zdcModuleHG = Monitored::Scalar<bool>("zdcModuleHG", false);
600  auto injectedPulseInputVoltage = Monitored::Scalar<float>("injectedPulseInputVoltage", -1000.0);
601  auto zdcHGInjPulseValid = Monitored::Scalar<bool>("zdcHGInjPulseValid", true);
602  auto zdcLGInjPulseValid = Monitored::Scalar<bool>("zdcLGInjPulseValid", true);
603 
604  auto zdcModuleFractionValid = Monitored::Scalar<bool>("zdcModuleFractionValid", false);
605  auto zdcModuleTimeValid = Monitored::Scalar<bool>("zdcModuleTimeValid", false);
606  auto zdcModuleHGTimeValid = Monitored::Scalar<bool>("zdcModuleHGTimeValid", false);
607  auto zdcModuleLGTimeValid = Monitored::Scalar<bool>("zdcModuleLGTimeValid", false);
608 
609  auto zdcModuleLGFitAmp = Monitored::Scalar<float>("zdcModuleLGFitAmp", -1000.0);
610  auto zdcModuleFitAmpLGRefit = Monitored::Scalar<float>("zdcModuleFitAmpLGRefit", -1000.0);
611  auto zdcModuleAmpLGRefit = Monitored::Scalar<float>("zdcModuleAmpLGRefit", -1000.0);
612  auto zdcModuleT0LGRefit = Monitored::Scalar<float>("zdcModuleT0LGRefit", -1000.0);
613  auto zdcModuleT0SubLGRefit = Monitored::Scalar<float>("zdcModuleT0SubLGRefit", -1000.0);
614  auto zdcModuleChisqLGRefit = Monitored::Scalar<float>("zdcModuleChisqLGRefit", -1000.0);
615 
616  auto zdcModuleHGtoLGAmpRatio = Monitored::Scalar<float>("zdcModuleHGtoLGAmpRatio", -1000.0);
617  auto zdcModuleHGtoLGAmpRatioNoNonlinCorr = Monitored::Scalar<float>("zdcModuleHGtoLGAmpRatioNoNonlinCorr", -1000.0);
618  auto zdcModuleHGtoLGT0Diff = Monitored::Scalar<float>("zdcModuleHGtoLGT0Diff", -1000.0);
619 
620  auto rpdChannelSubAmp = Monitored::Scalar<float>("RPDChannelSubAmp", -1000.0);
621  auto rpdChannelAmplitude = Monitored::Scalar<float>("RPDChannelAmplitude", -1000.0);
622  auto rpdChannelMaxADC = Monitored::Scalar<float>("RPDChannelMaxADC", -1000.0);
623  auto rpdChannelMaxSample = Monitored::Scalar<unsigned int>("RPDChannelMaxSample", 1000);
624  auto rpdChannelAmplitudeCalib = Monitored::Scalar<float>("RPDChannelAmplitudeCalib", -1000.0);
625  auto rpdChannelStatus = Monitored::Scalar<unsigned int>("RPDChannelStatus", 1000);
626  auto rpdChannelPileupFitSlope = Monitored::Scalar<float>("RPDChannelPileupFitSlope", -1000);
627  auto absRpdChannelAmplitude = Monitored::Scalar<float>("absRPDChannelAmplitude", -1000.); // EM module energy on the same side (assuming filled already)
628  auto rpdChannelValid = Monitored::Scalar<bool>("RPDChannelValid", false);
629  auto rpdChannelValidBitFloat = Monitored::Scalar<float>("RPDChannelValidBitFloat", -1000.0); // 0.5 if valid, 1.5 if invalid --> needed for DQ
630  auto rpdChannelCentroidValid = Monitored::Scalar<bool>("RPDChannelCentroidValid", false);
631  auto rpdChannelPileupFrac = Monitored::Scalar<float>("RPDChannelPileupFrac", -1000.);
632  auto zdcEMModuleEnergySameSide = Monitored::Scalar<float>("zdcEMModuleEnergySameSide", -1000.); // EM module energy on the same side (assuming filled already)
633  auto zdcEnergySumSameSide = Monitored::Scalar<float>("zdcEnergySumSameSide", -1000.); // EM module energy on the same side (assuming filled already)
634 
635  std::array<float, m_nZdcStatusBits> zdcStatusBitsCount;
636  std::array<float, m_nRpdStatusBits> rpdStatusBitsCount;
637 
638  if (! zdcModules.isValid() ) {
639  ATH_MSG_WARNING("evtStore() does not contain Collection with name "<< m_ZdcModuleContainerKey);
640  return StatusCode::SUCCESS;
641  }
642 
644  // Check the event run number agrees with fixed run number
645  if (runNumber != m_runNumber) {
646  ATH_MSG_WARNING("The event run number differs from the fixed run number read from the input-file metadata!");
647  ATH_MSG_WARNING("The event run number is " << runNumber << "; the fixed run number is " << m_runNumber);
648  }
649 
650  injectedPulseInputVoltage = m_zdcInjPulserAmpMap->getPulserAmplitude(m_injMapRunToken, lumiBlock);
651  }
652 
653  // first loop over zdcModules - read ZDC-module information & fill in ZDC histograms
654  // separate ZDC and RPD variable retrieval into two for loops to make sure
655  // essential ZDC information (e.g, the EM module energy and total energy sum on both sides) is properly filled
656  // before they are required in RPD channel monitoring
657  zdcHadronicEnergySumTwoSidesTeV = 0.;
658  if (m_enableZDC){
659  cur_event_ZDC_available &= zdcModuleStatusHandle.isAvailable();
660  if (cur_event_ZDC_available){
661  for (const auto zdcMod : *zdcModules){
662  int iside = (zdcMod->zdcSide() > 0)? 1 : 0;
663  std::string side_str = (iside == 0)? "C" : "A";
664 
665  if (zdcMod->zdcType() == 0){
666  int imod = zdcMod->zdcModule();
667  std::string module_str = std::to_string(imod);
668 
669  int status = zdcModuleStatusHandle(*zdcMod);
670 
671  for (int bit = 0; bit < m_nZdcStatusBits; bit++) zdcStatusBitsCount[bit] = 0; // reset
672  for (int bit = 0; bit < m_nZdcStatusBits; bit++){
673  if (status & 1 << bit){
674  zdcStatusBitsCount[bit] += 1;
675  }
676  }
677 
678  auto zdcStatusBits = Monitored::Collection("zdcStatusBits", zdcStatusBitsCount);
679  fill(m_tools[m_ZDCModuleToolIndices.at(side_str).at(module_str)], zdcStatusBits, lumiBlock, bcid);
680 
681  if ((status & 1 << ZDCPulseAnalyzer::PulseBit) != 0){ // has pulse
682  zdcModuleAmp = zdcModuleAmplitudeHandle(*zdcMod);
683  float zdcModuleAmpNoNonLin = zdcModuleAmpNoNonLinHandle(*zdcMod); // module fit amplitude (without gain factor or nonlinear corrections applied)
684  zdcModuleFitAmp = zdcModuleFitAmpHandle(*zdcMod); // module fit amplitude (without gain factor or nonlinear corrections applied)
685  zdcModuleMaxADC = zdcModuleMaxADCHandle(*zdcMod);
686  zdcModuleMaxADCHG = zdcModuleMaxADCHGHandle(*zdcMod);
687  zdcModuleMaxADCLG = zdcModuleMaxADCLGHandle(*zdcMod);
688  zdcModuleAmpToMaxADCRatio = (zdcModuleMaxADC == 0)? -1000. : zdcModuleFitAmp / zdcModuleMaxADC; // use fit amplitude: no gain factor applied to either
689  zdcModuleTime = zdcModuleTimeHandle(*zdcMod);
690  zdcModuleFitT0 = zdcModuleFitT0Handle(*zdcMod);
691  zdcModuleChisq = zdcModuleChisqHandle(*zdcMod);
692  zdcModuleCalibAmp = zdcModuleCalibEnergyHandle(*zdcMod);
693  zdcModuleCalibTime = zdcModuleCalibTimeHandle(*zdcMod);
694  zdcUncalibSumCurrentSide = zdcUncalibSumArr[iside];
695  zdcEnergySumCurrentSide = zdcEnergySumArr[iside];
696  zdcAbove20NCurrentSide = (zdcUncalibSumCurrentSide > 20 * m_expected1N);
697  zdcEnergyAboveModuleFractCut = (zdcEnergySumCurrentSide > m_energyCutForModuleFractMonitor);
698 
699  if (m_enableZDCPhysics){
700  zdcModuleFract = (zdcEnergySumCurrentSide == 0)? -1000. : zdcModuleCalibAmp / zdcEnergySumCurrentSide; // use calibrated amplitudes + energy sum
701  }else{
702  zdcModuleFract = (zdcUncalibSumCurrentSide == 0)? -1000. : zdcModuleAmp / zdcUncalibSumCurrentSide; // use uncalibrated amplitudes + amplitude sum
703  }
704 
705  // use fit amplitude for chisq over amplitude: neither fit amplitude nor chisq has gain factor applied
706  zdcModuleChisqOverAmp = (zdcModuleFitAmp == 0)? -1000. : zdcModuleChisq / zdcModuleFitAmp;
707  zdcModuleLG = (status & 1 << ZDCPulseAnalyzer::LowGainBit);
708  zdcModuleHG = !zdcModuleLG;
709 
710  zdcModuleFractionValid = (zdcModuleFract >= 0 && zdcModuleFract <= 1);
711  zdcModuleTimeValid = (zdcModuleTime > -100.);
712  zdcModuleHGTimeValid = zdcModuleHG && zdcModuleTimeValid;
713  zdcModuleLGTimeValid = zdcModuleLG && zdcModuleTimeValid;
714 
715 
716  zdcModuleFitAmpLGRefit = zdcModuleFitAmpLGRefitHandle(*zdcMod);
717  zdcModuleAmpLGRefit = zdcModuleAmpLGRefitHandle(*zdcMod);
718  zdcModuleT0LGRefit = zdcModuleT0LGRefitHandle(*zdcMod);
719  zdcModuleT0SubLGRefit = zdcModuleT0SubLGRefitHandle(*zdcMod);
720  zdcModuleChisqLGRefit = zdcModuleChisqLGRefitHandle(*zdcMod);
721 
722  zdcModuleLGFitAmp = (zdcModuleHG)? zdcModuleFitAmpLGRefit * 1. : zdcModuleFitAmp * 1.;
723 
724  zdcModuleHGtoLGAmpRatio = (zdcModuleLG || zdcModuleAmpLGRefit == 0)? -1000. : zdcModuleAmp * 1. / zdcModuleAmpLGRefit; // HG/LG ratio if HG is valid and LG-refit amplitude is nonzero (shouldn't be)
725  zdcModuleHGtoLGAmpRatioNoNonlinCorr = (zdcModuleLG || zdcModuleAmpLGRefit == 0)? -1000. : zdcModuleAmpNoNonLin * 1. / zdcModuleAmpLGRefit; // HG/LG ratio if HG is valid and LG-refit amplitude is nonzero (shouldn't be)
726  zdcModuleHGtoLGT0Diff = (zdcModuleLG)? -1000. : zdcModuleFitT0 - zdcModuleT0LGRefit;
727 
728  zdcModuleChisqEventWeight = calculate_inverse_bin_width(zdcModuleChisq, "module chisq", m_ZdcModuleChisqBinEdges);
729  zdcModuleChisqOverAmpEventWeight = calculate_inverse_bin_width(zdcModuleChisqOverAmp, "module chisq over amplitude", m_ZdcModuleChisqOverAmpBinEdges);
730 
731  if (imod == 0) zdcEMModuleEnergyArr[iside] = zdcModuleCalibAmp; // EM module energy
732  else zdcHadronicEnergySumTwoSidesTeV += zdcModuleCalibAmp / 1000.; // hadronic module energy
733 
734 
735 
736  if (m_isInjectedPulse){
737 
738  zdcHGInjPulseValid = true;
739  zdcLGInjPulseValid = true;
740 
741  bool pass_first3s = true;
742 
743  // ------------ throw away the first few seconds of each LB ------------
744  // get the start + end time of the event LB from the cool data
745  // copied from Trigger/TrigT1/TrigT1CTMonitoring/src/BSMonitoringAlg.cxx
746 
747  if (!m_isSim && !m_isOnline) {
748  uint64_t lb_stime = 0; // LB POSIX start time in seconds
749  uint64_t lb_etime = 0; // LB POSIX end time in seconds
750  bool retrievedLumiBlockTimes = false;
751 
753  const AthenaAttributeList* lblbattrList{*lblb};
754  if (lblbattrList==nullptr) {
755  ATH_MSG_WARNING("Failed to retrieve /TRIGGER/LUMI/LBLB " << m_LBLBFolderInputKey.key() << " not found");
756  }
757  else {
758  retrievedLumiBlockTimes = true;
759  auto lb_stime_loc = (*lblbattrList)["StartTime"].data<cool::UInt63>();
760  auto lb_etime_loc = (*lblbattrList)["EndTime"].data<cool::UInt63>();
761  lb_stime = lb_stime_loc;
762  lb_etime = lb_etime_loc;
763  ATH_MSG_DEBUG("lb_stime: " << lb_stime << " lb_etime: " << lb_etime );
764  }
765 
766  lb_stime /= 1000000000;
767  lb_etime /= 1000000000;
768 
769  if (lb_etime <= lb_stime || !retrievedLumiBlockTimes){
770  ATH_MSG_WARNING("The LB start + end time for current event is not retrieved.");
771  ATH_MSG_WARNING("No event rejection at beginning of LB is implemented.");
772  }else if(eventTime < lb_stime){
773  ATH_MSG_WARNING("Event time is before the start time of the current LB");
774  ATH_MSG_WARNING("Event time: " << eventTime << "; current LB: " << lumiBlock << "; start time of current LB: " << lb_stime);
775  }else if (eventTime > lb_etime){
776  ATH_MSG_WARNING("Event time is after the end time of the current LB");
777  ATH_MSG_WARNING("Event time: " << eventTime << "; current LB: " << lumiBlock << "; end time of current LB: " << lb_etime);
778  }else{ // require event time to be at least X seconds after start time of the current LB
779  pass_first3s = (eventTime > lb_stime + m_nSecondsRejectStartofLBInjectorPulse);
780  zdcHGInjPulseValid &= (eventTime > lb_stime + m_nSecondsRejectStartofLBInjectorPulse);
781  zdcLGInjPulseValid &= (eventTime > lb_stime + m_nSecondsRejectStartofLBInjectorPulse);
782  }
783  }
784 
785  // ------------ impose the rest of HG/LG injector-pulse validity requirements ------------
786 
787  zdcHGInjPulseValid &= zdcModuleHG;
788  zdcHGInjPulseValid &= !(status & 1 << ZDCPulseAnalyzer::ExcludeEarlyLGBit);
789  zdcHGInjPulseValid &= !(status & 1 << ZDCPulseAnalyzer::BadChisqBit);
790  zdcHGInjPulseValid &= !(status & 1 << ZDCPulseAnalyzer::FailBit);
791  zdcHGInjPulseValid &= !(status & 1 << ZDCPulseAnalyzer::FitMinAmpBit);
792  zdcHGInjPulseValid &= !(status & 1 << ZDCPulseAnalyzer::BadT0Bit);
794  zdcHGInjPulseValid &= (zdcModuleAmp > m_minAmpRequiredHGInjectorPulse);
795  }
796 
797  zdcLGInjPulseValid &= !(status & 1 << ZDCPulseAnalyzer::LGOverflowBit);
798  zdcLGInjPulseValid &= !(status & 1 << ZDCPulseAnalyzer::ExcludeEarlyLGBit);
799  zdcLGInjPulseValid &= !(status & 1 << ZDCPulseAnalyzer::BadChisqBit);
800  zdcLGInjPulseValid &= !(status & 1 << ZDCPulseAnalyzer::FailBit);
801  zdcLGInjPulseValid &= !(status & 1 << ZDCPulseAnalyzer::FitMinAmpBit);
802  zdcLGInjPulseValid &= !(status & 1 << ZDCPulseAnalyzer::BadT0Bit);
804  zdcLGInjPulseValid &= (zdcModuleLGFitAmp > m_minAmpRequiredLGInjectorPulse);
805  }
806 
807  if (injectedPulseInputVoltage > 0){ // LB > startLB
808  if (injectedPulseInputVoltage > 1 && !zdcLGInjPulseValid &&pass_first3s){ // problematic range && LG not valid && not failing first 3s
809 
810  std::ostringstream fails;
811  std::vector<std::pair<std::string, bool>> checks = {
812  {"LGOverflowBit", !(status & (1 << ZDCPulseAnalyzer::LGOverflowBit))},
813  {"ExcludeEarlyLGBit", !(status & (1 << ZDCPulseAnalyzer::ExcludeEarlyLGBit))},
814  {"BadChisqBit", !(status & (1 << ZDCPulseAnalyzer::BadChisqBit))},
815  {"FailBit", !(status & (1 << ZDCPulseAnalyzer::FailBit))},
816  {"FitMinAmpBit", !(status & (1 << ZDCPulseAnalyzer::FitMinAmpBit))},
817  {"BadT0Bit", !(status & (1 << ZDCPulseAnalyzer::BadT0Bit))}
818  };
819 
820  for (const auto& [name, pass] : checks) {
821  if (!pass) fails << "fail " << name << "; ";
822  }
823 
824  ATH_MSG_DEBUG("[LG NOT valid] Lumi block: " << lumiBlock
825  << "; input voltage: " << injectedPulseInputVoltage
826  << "; LG amp: " << zdcModuleLGFitAmp
827  << "; side" << side_str << ", mod" << module_str
828  << "; " << fails.str());
829 
830  }
831  } else if (lumiBlock > m_zdcInjPulserAmpMap->getFirstLumiBlock(m_injMapRunToken)){ // LB > startLB but injectedPulseInputVoltage < 0!
832  ATH_MSG_WARNING("Lumi block: " << lumiBlock << ", yet input voltage is negative!! input voltage: " << injectedPulseInputVoltage);
833  }
834 
835 
836  // ------------ find the voltage index & fill per-voltage HG&LG cut masks ------------
837 
838  std::vector<float> injPulseVoltageSteps = m_injPulseVoltageSteps.value();
839 
840  int voltage_index = -1;
841  auto voltage_iter = std::find_if(injPulseVoltageSteps.begin(), injPulseVoltageSteps.end(),
842  [&](float num) { return check_equal_within_rounding(num, injectedPulseInputVoltage); });
843 
844  if (voltage_iter != injPulseVoltageSteps.end()) {
845  voltage_index = std::distance(injPulseVoltageSteps.begin(), voltage_iter);
846  ATH_MSG_DEBUG("Found injected-pulse input voltage " << injectedPulseInputVoltage << " at index " << std::distance(injPulseVoltageSteps.begin(), voltage_iter));
847  } else {
848  ATH_MSG_WARNING("Injected-pulse input voltage " << injectedPulseInputVoltage << "(Lumi block: " << lumiBlock << ") NOT found in voltage steps read from json.");
849  ATH_MSG_WARNING("Possibly a problem with json file reading.");
850  ATH_MSG_WARNING("Single-voltage lucrod response histograms NOT filled.");
851  }
852 
853  // ------------ fill the histograms ------------
854 
855  auto VoltageIndex = Monitored::Scalar<float>("VoltageIndex", voltage_index+0.5);
856 
857  if (m_isStandalone) injectedPulseInputVoltage = zdcModuleAmp * 1. / 25000.; // no LB in standalone --> fill dummy histograms
858  fill(m_tools[m_ZDCModuleToolIndices.at(side_str).at(module_str)], VoltageIndex, zdcModuleAmp, zdcModuleFitAmp, zdcModuleMaxADC, zdcModuleMaxADCHG, zdcModuleMaxADCLG, zdcModuleAmpToMaxADCRatio, zdcModuleFract, zdcUncalibSumCurrentSide, zdcEnergySumCurrentSide, zdcModuleTime, zdcModuleFitT0, zdcModuleChisq, zdcModuleChisqOverAmp, zdcModuleChisqEventWeight, zdcModuleChisqOverAmpEventWeight, zdcModuleCalibAmp, zdcModuleCalibTime, zdcModuleLG, zdcModuleHG, zdcModuleAmpLGRefit, zdcModuleT0LGRefit, zdcModuleT0SubLGRefit, zdcModuleChisqLGRefit, zdcModuleLGFitAmp, zdcModuleHGtoLGAmpRatio, zdcModuleHGtoLGAmpRatioNoNonlinCorr, zdcModuleHGtoLGT0Diff, zdcModuleFractionValid, zdcModuleTimeValid, zdcModuleHGTimeValid, zdcModuleLGTimeValid, injectedPulseInputVoltage, zdcHGInjPulseValid, zdcLGInjPulseValid, lumiBlock, bcid);
859  if (voltage_index >= 0 && (!m_isOnline)){
860  fill(m_tools[m_LucrodResponseSingleVoltageToolIndices.at(side_str).at(module_str).at(m_injPulseVoltageStepsStr.value().at(voltage_index))], zdcModuleFitAmp, zdcModuleLGFitAmp, zdcModuleMaxADCHG, zdcModuleMaxADCLG, zdcHGInjPulseValid, zdcLGInjPulseValid);
861  }
862  }else{
863  fill(m_tools[m_ZDCModuleToolIndices.at(side_str).at(module_str)], zdcModuleAmp, zdcModuleMaxADC, zdcModuleMaxADCHG, zdcModuleMaxADCLG, zdcModuleAmpToMaxADCRatio, zdcModuleFract, zdcUncalibSumCurrentSide, zdcEnergySumCurrentSide, zdcAbove20NCurrentSide, zdcEnergyAboveModuleFractCut, zdcModuleTime, zdcModuleFitT0, zdcModuleChisq, zdcModuleChisqOverAmp, zdcModuleChisqEventWeight, zdcModuleChisqOverAmpEventWeight, zdcModuleCalibAmp, zdcModuleCalibTime, zdcModuleLG, zdcModuleHG, zdcModuleAmpLGRefit, zdcModuleT0LGRefit, zdcModuleT0SubLGRefit, zdcModuleChisqLGRefit, zdcModuleHGtoLGAmpRatio, zdcModuleHGtoLGAmpRatioNoNonlinCorr, zdcModuleHGtoLGT0Diff, zdcModuleFractionValid, zdcModuleTimeValid, zdcModuleHGTimeValid, zdcModuleLGTimeValid, lumiBlock, bcid);
864  }
865  }
866  }
867  }
868  }
869  }
870 
871 
872  // second loop over zdcModules - read RPD-channel information & fill in RPD histograms
873  // only run if NOT injector pulse
874  if (m_enableRPDAmp){
882 
883  cur_event_RPD_available &= RPDChannelStatusHandle.isAvailable();
884  if (cur_event_RPD_available){
885  for (const auto zdcMod : *zdcModules){
886  int iside = (zdcMod->zdcSide() > 0)? 1 : 0;
887  std::string side_str = (iside == 0)? "C" : "A";
888 
889  if (zdcMod->zdcType() == 1) {
890  // this is the RPD
891 
892  int ichannel = zdcMod->zdcChannel(); // zero-based
893  std::string channel_str = std::to_string(ichannel);
894 
895  int status = RPDChannelStatusHandle(*zdcMod);
896 
897  for (int bit = 0; bit < m_nRpdStatusBits; bit++) rpdStatusBitsCount[bit] = 0; // reset
898  for (int bit = 0; bit < m_nRpdStatusBits; bit++){
899  if (status & 1 << bit){
900  rpdStatusBitsCount[bit] += 1;
901  }
902  }
903 
904  auto rpdStatusBits = Monitored::Collection("RPDStatusBits", rpdStatusBitsCount);
905 
906  rpdChannelSubAmp = rpdSubAmpVecs[iside][ichannel];
907  rpdChannelAmplitude = RPDChannelAmplitudeHandle(*zdcMod);
908  rpdChannelMaxADC = RPDChannelMaxADCHandle(*zdcMod);
909  rpdChannelMaxSample = RPDChannelMaxSampleHandle(*zdcMod);
910  rpdChannelAmplitudeCalib = RPDChannelAmplitudeCalibHandle(*zdcMod);
911  std::vector<float> rpdChannelPileupFitParams = RPDChannelPileupExpFitParamsHandle(*zdcMod);
912  rpdChannelPileupFitSlope = rpdChannelPileupFitParams[1];
913  rpdChannelPileupFrac = RPDChannelPileupFracHandle(*zdcMod);
914 
915  absRpdChannelAmplitude = abs(rpdChannelAmplitude);
916  zdcEMModuleEnergySameSide = zdcEMModuleEnergyArr[iside];
917  zdcEnergySumSameSide = zdcEnergySumArr[iside];
918  bool curRpdChannelValid = status & 1 << ZDC::RPDDataAnalyzer::ValidBit;
919  rpdChannelValid = curRpdChannelValid;
920  rpdChannelValidBitFloat = (curRpdChannelValid)? 0.5 : 1.5;
921  rpdChannelCentroidValid = centroidSideValidArr.at(iside);
922 
923  rpdAmplitudeCalibSum[iside] += rpdChannelAmplitudeCalib;
924  rpdMaxADCSum[iside] += rpdChannelMaxADC;
925 
926  fill(m_tools[m_RPDChannelToolIndices.at(side_str).at(channel_str)], rpdChannelSubAmp, rpdChannelAmplitude, rpdChannelAmplitudeCalib, rpdChannelMaxADC, rpdChannelMaxSample, rpdStatusBits, rpdChannelPileupFitSlope, absRpdChannelAmplitude, rpdChannelPileupFrac, zdcEMModuleEnergySameSide, zdcEnergySumSameSide, rpdChannelValid, rpdChannelValidBitFloat, rpdChannelCentroidValid, lumiBlock, bcid);
927  }
928  }
929  }
930  }
931 
932 
933 // ______________________________________________________________________________
934  // obtaining fCalEt on A,C side
935 // ______________________________________________________________________________
936 
937  auto totalEt24 = Monitored::Scalar<double>("totalEt24", 0.0); // total ET within |eta| < 2.4
938  auto fcalEtA = Monitored::Scalar<double>("fcalEtA", 0.0);
939  auto fcalEtC = Monitored::Scalar<double>("fcalEtC", 0.0);
940  auto fcalEtSumTwoSides = Monitored::Scalar<double>("fcalEtSumTwoSides", 0.0);
941  std::array<double,2> fcalEtArr = {0.,0.};
942 
945  if (! eventShapes.isValid()) {
946  ATH_MSG_WARNING("evtStore() does not contain Collection with name "<< m_HIEventShapeContainerKey);
947  }
948  else{
949  for (const auto eventShape : *eventShapes){
950  int layer = eventShape->layer();
951  float eta = eventShape->etaMin();
952  float et = eventShape->et();
953  if (layer == 21 || layer == 22 || layer == 23){ // FCal
954  fcalEtSumTwoSides += et / 1000000.;
955  if (eta > 0){
956  fcalEtA += et / 1000000.;
957  fcalEtArr[1] += et / 1000000.;
958  }
959  if (eta < 0){
960  fcalEtC += et / 1000000.;
961  fcalEtArr[0] += et / 1000000.;
962  }
963  }
964 
965  if (TMath::Abs(eta) < 2.4) {
966  totalEt24 += et / 1000000.;
967  }
968  }
969  }
970  }
971 
972 // ______________________________________________________________________________
973  // give warning if there is missing aux data but no decoding error
974 // ______________________________________________________________________________
975  if (!cur_event_ZDC_available && !zdcDecodingError){
976  ATH_MSG_WARNING("Current event has no ZDC decoding error but ZDC aux data is not available!");
977  }
978  if (!cur_event_RPD_available && !rpdDecodingError){
979  ATH_MSG_WARNING("Current event has no RPD decoding error but RPD aux data is not available!");
980  }
981 // ______________________________________________________________________________
982  // give warning and return if neither ZDC nor RPD are available
983 // ______________________________________________________________________________
984  if (!cur_event_ZDC_available && !cur_event_RPD_available){
985  ATH_MSG_WARNING("For current event, neither ZDC nor RPD data are available!");
986  return StatusCode::SUCCESS;
987  }
988 
989 // ______________________________________________________________________________
990  // filling generic ZDC monitoring tool for A-C side correlations & cos(reaction plane angle)
991 // ______________________________________________________________________________
992 
993  if ((m_enableZDCPhysics && cur_event_ZDC_available) || (m_enableCentroid && cur_event_RPD_available)) {
994 
995  if (m_enableZDCPhysics && cur_event_ZDC_available){
996  // ZDC-only global variables
997  std::vector<std::reference_wrapper<Monitored::IMonitoredVariable>> vars_global = {
999  std::ref(bcid),
1000  std::ref(passTrigSideA),
1001  std::ref(passTrigSideC),
1002  std::ref(zdcEnergySumA),
1003  std::ref(zdcEnergySumC),
1004  std::ref(zdcUncalibSumA),
1005  std::ref(zdcUncalibSumC),
1006  std::ref(zdcEnergySumTwoSidesTeV),
1007  };
1008 
1009  // calo-based global variables
1010  if (m_CalInfoOn){ // calorimeter information is turned on
1011  vars_global.insert(vars_global.end(), {
1012  std::ref(fcalEtA),
1013  std::ref(fcalEtC),
1014  std::ref(zdcHadronicEnergySumTwoSidesTeV),
1015  std::ref(fcalEtSumTwoSides),
1016  std::ref(totalEt24)
1017  });
1018  }
1019 
1020  if (m_EnableUCCTriggers){
1021  vars_global.insert(vars_global.end(), {
1022  std::ref(passUCCTrig_HELT15),
1023  std::ref(passUCCTrig_HELT20),
1024  std::ref(passUCCTrig_HELT25),
1025  std::ref(passUCCTrig_HELT35),
1026  std::ref(passUCCTrig_HELT50)
1027  });
1028  }
1029 
1030  if (m_EnableOOpOTriggers){
1031  for (auto& m : oopoTrigPassBoolVec) vars_global.push_back( std::ref(m) );
1032  }
1033 
1034  auto monitor_globals = Monitored::Group(zdcTool, vars_global);
1035  }
1036 
1037  if (m_enableCentroid && cur_event_RPD_available){
1038  fill(zdcTool, rpdCosDeltaReactionPlaneAngle, bothReactionPlaneAngleValid, bothHasCentroid);
1039  }
1040  }
1041 
1042 // ______________________________________________________________________________
1043  // filling per-side tools
1044 // ______________________________________________________________________________
1045 
1046 
1047  if (m_enableZDCPhysics && cur_event_ZDC_available && m_enableRPDAmp && cur_event_RPD_available){
1048  for (int iside = 0; iside < m_nSides; iside++){
1049  std::string side_str = (iside == 0)? "C" : "A";
1050 
1051  auto passTrigOppSide = Monitored::Scalar<bool>("passTrigOppSide",passTrigOppSideArr[iside]); // this is duplicate information as A,C but convenient for filling per-side histograms
1052  auto zdcEnergySumCurSide = Monitored::Scalar<float>("zdcEnergySum",zdcEnergySumArr[iside]); // this is duplicate information as A,C but convenient for filling per-side histograms
1053  auto zdcEnergySumCurSideTeV = Monitored::Scalar<float>("zdcEnergySumTeV",zdcEnergySumArr[iside]/1000.); // this is duplicate information as A,C but convenient for filling per-side histograms
1054  auto zdcUncalibSumCurSide = Monitored::Scalar<float>("zdcUncalibSum",zdcUncalibSumArr[iside]); // this is duplicate information as A,C but convenient for filling per-side histograms
1055  auto zdcEMModuleEnergyCurSide = Monitored::Scalar<float>("zdcEMModuleEnergy",zdcEMModuleEnergyArr[iside]);
1056  auto zdcAvgTimeCurSide = Monitored::Scalar<float>("zdcAvgTime",zdcAvgTimeArr[iside]);
1057  auto zdcModuleMaskCurSide = Monitored::Scalar<bool>("zdcModuleMask",zdcModuleMaskArr[iside]);
1058 
1059  auto fcalEtCurSide = Monitored::Scalar<float>("fCalEt",fcalEtArr[iside]);
1060 
1061  ATH_MSG_DEBUG("fcalEtCurSide: " << fcalEtCurSide);
1062  auto rpdAmplitudeCalibSumCurSide = Monitored::Scalar<float>("rpdAmplitudeCalibSum",rpdAmplitudeCalibSum[iside]);
1063  auto rpdMaxADCSumCurSide = Monitored::Scalar<float>("rpdMaxADCSum",rpdMaxADCSum[iside]);
1064  auto rpdCurSideValid = Monitored::Scalar<bool>("RPDSideValid",rpdSideValidArr[iside]);
1065 
1066  fill(m_tools[m_ZDCSideToolIndices.at(side_str)], passTrigOppSide, zdcEnergySumCurSide, zdcEnergySumCurSideTeV, zdcUncalibSumCurSide, zdcEMModuleEnergyCurSide, zdcAvgTimeCurSide, zdcModuleMaskCurSide, rpdAmplitudeCalibSumCurSide, rpdMaxADCSumCurSide, rpdCurSideValid, fcalEtCurSide, lumiBlock, bcid);
1067  }
1068  }else if (m_enableZDCPhysics && cur_event_ZDC_available){
1069  for (int iside = 0; iside < m_nSides; iside++){
1070  std::string side_str = (iside == 0)? "C" : "A";
1071 
1072  auto passTrigOppSide = Monitored::Scalar<bool>("passTrigOppSide",passTrigOppSideArr[iside]); // this is duplicate information as A,C but convenient for filling per-side histograms
1073  auto zdcEnergySumCurSide = Monitored::Scalar<float>("zdcEnergySum",zdcEnergySumArr[iside]); // this is duplicate information as A,C but convenient for filling per-side histograms
1074  auto zdcEnergySumCurSideTeV = Monitored::Scalar<float>("zdcEnergySum",zdcEnergySumArr[iside]/1000.); // this is duplicate information as A,C but convenient for filling per-side histograms
1075  auto zdcUncalibSumCurSide = Monitored::Scalar<float>("zdcUncalibSum",zdcUncalibSumArr[iside]); // this is duplicate information as A,C but convenient for filling per-side histograms
1076  auto zdcEMModuleEnergyCurSide = Monitored::Scalar<float>("zdcEMModuleEnergy",zdcEMModuleEnergyArr[iside]);
1077  auto zdcAvgTimeCurSide = Monitored::Scalar<float>("zdcAvgTime",zdcAvgTimeArr[iside]);
1078  auto zdcModuleMaskCurSide = Monitored::Scalar<bool>("zdcModuleMask",zdcModuleMaskArr[iside]);
1079  auto fcalEtCurSide = Monitored::Scalar<float>("fCalEt",fcalEtArr[iside]);
1080 
1081  fill(m_tools[m_ZDCSideToolIndices.at(side_str)], passTrigOppSide, zdcEnergySumCurSide, zdcEnergySumCurSideTeV, zdcUncalibSumCurSide, zdcEMModuleEnergyCurSide, zdcAvgTimeCurSide, zdcModuleMaskCurSide, fcalEtCurSide, lumiBlock, bcid);
1082  }
1083  }else if (m_enableRPDAmp && cur_event_RPD_available){
1084  for (int iside = 0; iside < m_nSides; iside++){
1085  std::string side_str = (iside == 0)? "C" : "A";
1086 
1087  auto rpdAmplitudeCalibSumCurSide = Monitored::Scalar<float>("rpdAmplitudeCalibSum",rpdAmplitudeCalibSum[iside]);
1088  auto rpdMaxADCSumCurSide = Monitored::Scalar<float>("rpdMaxADCSum",rpdMaxADCSum[iside]);
1089  auto rpdCurSideValid = Monitored::Scalar<bool>("RPDSideValid",rpdSideValidArr[iside]);
1090 
1091  fill(m_tools[m_ZDCSideToolIndices.at(side_str)], rpdAmplitudeCalibSumCurSide, rpdMaxADCSumCurSide, rpdCurSideValid, lumiBlock, bcid);
1092  }
1093  }
1094 
1095  return StatusCode::SUCCESS;
1096 }

◆ filterPassed()

virtual bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext &  ctx) const
inlinevirtualinherited

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

96  {
97  return execState( ctx ).filterPassed();
98  }

◆ GetEventInfo()

SG::ReadHandle< xAOD::EventInfo > AthMonitorAlgorithm::GetEventInfo ( const EventContext &  ctx) const
inherited

Return a ReadHandle for an EventInfo object (get run/event numbers, etc.)

Parameters
ctxEventContext for the event
Returns
a SG::ReadHandle<xAOD::EventInfo>

Definition at line 107 of file AthMonitorAlgorithm.cxx.

107  {
109 }

◆ getGroup()

const ToolHandle< GenericMonitoringTool > & AthMonitorAlgorithm::getGroup ( const std::string &  name) const
inherited

Get a specific monitoring tool from the tool handle array.

Finds a specific GenericMonitoringTool instance from the list of monitoring tools (a ToolHandleArray). Throws a FATAL warning if the object found is empty.

Parameters
namestring name of the desired tool
Returns
reference to the desired monitoring tool

Definition at line 164 of file AthMonitorAlgorithm.cxx.

164  {
165  // get the pointer to the tool, and check that it exists
166  auto idx = m_toolLookupMap.find(name);
167  if (ATH_LIKELY(idx != m_toolLookupMap.end())) {
168  return m_tools[idx->second];
169  }
170  else {
171  // treat empty tool handle case as in Monitored::Group
172  if (m_toolLookupMap.empty()) {
173  return m_dummy;
174  }
175 
176  if (!isInitialized()) {
178  "It seems that the AthMonitorAlgorithm::initialize was not called "
179  "in derived class initialize method");
180  } else {
181  std::string available = std::accumulate(
182  m_toolLookupMap.begin(), m_toolLookupMap.end(), std::string(""),
183  [](const std::string& s, auto h) { return s + "," + h.first; });
184  ATH_MSG_FATAL("The tool " << name << " could not be found in the tool array of the "
185  << "monitoring algorithm " << m_name << ". This probably reflects a discrepancy between "
186  << "your python configuration and c++ filling code. Note: your available groups are {"
187  << available << "}.");
188  }
189  }
190  return m_dummy;
191 }

◆ getTrigDecisionTool()

const ToolHandle< Trig::TrigDecisionTool > & AthMonitorAlgorithm::getTrigDecisionTool ( ) const
inherited

Get the trigger decision tool member.

The trigger decision tool is used to check whether a specific trigger is passed by an event.

Returns
m_trigDecTool

Definition at line 194 of file AthMonitorAlgorithm.cxx.

194  {
195  return m_trigDecTool;
196 }

◆ initialize()

StatusCode ZdcMonitorAlgorithm::initialize ( )
overridevirtual

initialize

Returns
StatusCode

Reimplemented from AthMonitorAlgorithm.

Definition at line 82 of file ZdcMonitorAlgorithm.cxx.

82  {
83 
84  ATH_MSG_DEBUG("initializing for the monitoring algorithm");
85  ATH_MSG_DEBUG("Is online? " << m_isOnline);
86  ATH_MSG_DEBUG("Is calorimeter info turned on? " << m_CalInfoOn);
87  ATH_MSG_DEBUG("Is single-side ZDC trigger info turned on? " << m_EnableZDCSingleSideTriggers);
88  ATH_MSG_DEBUG("Is UCC trigger info turned on? " << m_EnableUCCTriggers);
89  ATH_MSG_DEBUG("Is injected pulse? " << m_isInjectedPulse);
90  ATH_MSG_DEBUG("Is Standalone? " << m_isStandalone);
91  ATH_MSG_DEBUG("Enable ZDC? " << m_enableZDC);
92  ATH_MSG_DEBUG("Enable ZDC Physics? " << m_enableZDCPhysics);
93  ATH_MSG_DEBUG("Enable RPD Amp? " << m_enableRPDAmp);
94  ATH_MSG_DEBUG("Enable Centroid? " << m_enableCentroid);
95 
96  using namespace Monitored;
97  ATH_CHECK( m_ZdcSumContainerKey.initialize() );
98  ATH_CHECK( m_ZdcModuleContainerKey.initialize() );
100 
101  ATH_CHECK( m_eventTypeKey.initialize() );
102  // ATH_CHECK( m_ZdcBCIDKey.initialize() );
103  ATH_CHECK( m_DAQModeKey.initialize() );
104 
109 
110  // access to conditions in cool database
112 
125 
131 
139 
148 
149  // calculate log binnings
152 
153  // read json file for LB-to-injector-pulse-amplitude mapping and fill the mapping vector
154  m_zdcInjPulserAmpMap = std::make_shared<ZdcInjPulserAmpMap>();
155  ATH_MSG_DEBUG( "Using JSON file for injector-pulse voltage at path " << m_zdcInjPulserAmpMap->getFilePath() );
156  ATH_MSG_DEBUG("CALIBPATH: " << std::getenv("CALIBPATH"));
157 
158  // create monitoring tools and map the strings to the tools
159  std::vector<std::string> sides = {"C","A"};
160  std::vector<std::string> modules = {"0","1","2","3"};
161  std::vector<std::string> channels = {"0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15"};
162 
163  m_ZDCModuleToolIndices = buildToolMap<std::map<std::string,int>>(m_tools,"ZdcModuleMonitor",sides,modules);
164  if (m_enableZDCPhysics || m_enableRPDAmp || m_enableCentroid){ // none is true for injector pulse --> no Per-side monitoring tool
165  m_ZDCSideToolIndices = buildToolMap<int>(m_tools,"ZdcSideMonitor",sides);
166  }
167  if (m_enableRPDAmp){
168  m_RPDChannelToolIndices = buildToolMap<std::map<std::string,int>>(m_tools,"RpdChannelMonitor",sides,channels);
169  }
170  if (m_isInjectedPulse && (!m_isStandalone) && (!m_isOnline)) {
171  m_LucrodResponseSingleVoltageToolIndices = buildToolMap<std::map<std::string,std::map<std::string,int>>>(m_tools,"LucrodResponseSingleVoltageMonitor",sides,modules,m_injPulseVoltageStepsStr.value());
172  }
173 
174  //---------------------------------------------------
175 
176  // Get access to the injector pulse steps for (fixed) run number for current job
177  //
179 
181  if (!m_injMapRunToken.isValid()) {
182  ATH_MSG_ERROR("Unable to obtain injector pulse steps for run " << m_runNumber);
183  }
184  else {
185  unsigned int startLB = m_zdcInjPulserAmpMap->getFirstLumiBlock(m_injMapRunToken);
186  unsigned int nsteps = m_zdcInjPulserAmpMap->getNumSteps(m_injMapRunToken);
187  ATH_MSG_INFO("Successfully obtained injector pulse steps for run " << m_runNumber
188  << ", first LB = " << startLB << ", number of steps = " << nsteps);
189  }
190  }
191 
192  //---------------------------------------------------
193  // initialize superclass
194 
196  //---------------------------------------------------
197 
198 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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.

◆ isClonable()

bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::isClonable
overridevirtualinherited

Specify if the algorithm is clonable.

Reentrant algorithms are clonable.

Definition at line 68 of file AthCommonReentrantAlgorithm.cxx.

52 {
53  // Reentrant algorithms are clonable.
54  return true;
55 }

◆ msg() [1/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::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< Gaudi::Algorithm > >::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.

◆ parseList()

StatusCode AthMonitorAlgorithm::parseList ( const std::string &  line,
std::vector< std::string > &  result 
) const
virtualinherited

Parse a string into a vector.

The input string is a single long string of all of the trigger names. It parses this string and turns it into a vector, where each element is one trigger or trigger category.

Parameters
lineThe input string.
resultThe parsed output vector of strings.
Returns
StatusCode

Definition at line 341 of file AthMonitorAlgorithm.cxx.

341  {
342  std::string item;
343  std::stringstream ss(line);
344 
345  ATH_MSG_DEBUG( "AthMonitorAlgorithm::parseList()" );
346 
347  while ( std::getline(ss, item, ',') ) {
348  std::stringstream iss(item); // remove whitespace
349  iss >> item;
350  result.push_back(item);
351  }
352 
353  return StatusCode::SUCCESS;
354 }

◆ 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< Gaudi::Algorithm > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ setFilterPassed()

virtual void AthCommonReentrantAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool  state,
const EventContext &  ctx 
) const
inlinevirtualinherited

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100  {
101  execState( ctx ).setFilterPassed( state );
102  }

◆ sysExecute()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext &  ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.

77 {
78  return BaseAlg::sysExecute (ctx);
79 }

◆ sysInitialize()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in InputMakerBase, and HypoBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

107  {
109 
110  if (sc.isFailure()) {
111  return sc;
112  }
113 
114  ServiceHandle<ICondSvc> cs("CondSvc",name());
115  for (auto h : outputHandles()) {
116  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
117  // do this inside the loop so we don't create the CondSvc until needed
118  if ( cs.retrieve().isFailure() ) {
119  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
120  return StatusCode::SUCCESS;
121  }
122  if (cs->regHandle(this,*h).isFailure()) {
123  sc = StatusCode::FAILURE;
124  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125  << " with CondSvc");
126  }
127  }
128  }
129  return sc;
130 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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.

◆ trigChainsArePassed()

bool AthMonitorAlgorithm::trigChainsArePassed ( const std::vector< std::string > &  vTrigNames) const
inherited

Check whether triggers are passed.

For the event, use the trigger decision tool to check that at least one of the triggers listed in the supplied vector is passed.

Parameters
vTrigNamesList of trigger names.
Returns
If empty input, default to true. If at least one trigger is specified, returns whether at least one trigger was passed.

Definition at line 199 of file AthMonitorAlgorithm.cxx.

199  {
200 
201 
202  // If no triggers were given, return true.
203  if (vTrigNames.empty()) return true;
204 
205 
206  // Trigger: Check if this Algorithm is being run as an Express Stream job.
207  // Events are entering the express stream are chosen randomly, and by chain,
208  // Hence an additional check should be aplied to see if the chain(s)
209  // monitored here are responsible for the event being selected for
210  // the express stream.
211 
212  const auto group = m_trigDecTool->getChainGroup(vTrigNames);
214  const auto passedBits = m_trigDecTool->isPassedBits(group);
215  bool expressPass = passedBits & TrigDefs::Express_passed; //bitwise AND
216  if(!expressPass) {
217  return false;
218  }
219  }
220 
221  // monitor the event if any of the chains in the chain group passes the event.
222  return group->isPassed();
223 
224 }

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ args

ZdcMonitorAlgorithm.args = flags.fillFromArgs(parser=parser)

Definition at line 1262 of file ZdcMonitorAlgorithm.py.

◆ cfg

ZdcMonitorAlgorithm.cfg = MainServicesCfg(flags)

Definition at line 1278 of file ZdcMonitorAlgorithm.py.

◆ default

ZdcMonitorAlgorithm.default

Definition at line 1258 of file ZdcMonitorAlgorithm.py.

◆ directory

string ZdcMonitorAlgorithm.directory = ''

Definition at line 1253 of file ZdcMonitorAlgorithm.py.

◆ Files

ZdcMonitorAlgorithm.Files

Definition at line 1255 of file ZdcMonitorAlgorithm.py.

◆ flags

ZdcMonitorAlgorithm.flags = initConfigFlags()

Definition at line 1252 of file ZdcMonitorAlgorithm.py.

◆ help

ZdcMonitorAlgorithm.help

Definition at line 1258 of file ZdcMonitorAlgorithm.py.

◆ HISTFileName

ZdcMonitorAlgorithm.HISTFileName

Definition at line 1266 of file ZdcMonitorAlgorithm.py.

◆ inputfile

string ZdcMonitorAlgorithm.inputfile = 'AOD.pool.root'

Definition at line 1254 of file ZdcMonitorAlgorithm.py.

◆ m_auxSuffix

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

Definition at line 61 of file ZdcMonitorAlgorithm.h.

◆ m_CalInfoOn

Gaudi::Property<bool> ZdcMonitorAlgorithm::m_CalInfoOn {this,"CalInfoOn",false}
private

Definition at line 125 of file ZdcMonitorAlgorithm.h.

◆ m_DAQModeKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_DAQModeKey {this, "ZdcDAQModeKey", m_zdcSumContainerName + ".DAQMode" + m_auxSuffix}
private

Definition at line 153 of file ZdcMonitorAlgorithm.h.

◆ m_dataType

AthMonitorAlgorithm::DataType_t AthMonitorAlgorithm::m_dataType
protectedinherited

Instance of the DataType_t enum.

Definition at line 351 of file AthMonitorAlgorithm.h.

◆ m_dataTypeStr

Gaudi::Property<std::string> AthMonitorAlgorithm::m_dataTypeStr {this,"DataType","userDefined"}
protectedinherited

DataType string pulled from the job option and converted to enum.

Definition at line 353 of file AthMonitorAlgorithm.h.

◆ m_defaultLBDuration

Gaudi::Property<float> AthMonitorAlgorithm::m_defaultLBDuration {this,"DefaultLBDuration",60.}
protectedinherited

Default duration of one lumi block.

Definition at line 360 of file AthMonitorAlgorithm.h.

◆ m_detailLevel

Gaudi::Property<int> AthMonitorAlgorithm::m_detailLevel {this,"DetailLevel",0}
protectedinherited

Sets the level of detail used in the monitoring.

Definition at line 361 of file AthMonitorAlgorithm.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_DQFilterTools

ToolHandleArray<IDQFilterTool> AthMonitorAlgorithm::m_DQFilterTools {this,"FilterTools",{}}
protectedinherited

Array of Data Quality filter tools.

Definition at line 341 of file AthMonitorAlgorithm.h.

◆ m_dummy

const ToolHandle<GenericMonitoringTool> AthMonitorAlgorithm::m_dummy
privateinherited

Definition at line 369 of file AthMonitorAlgorithm.h.

◆ m_enableCentroid

Gaudi::Property<bool> ZdcMonitorAlgorithm::m_enableCentroid {this,"EnableCentroid",true}
private

Definition at line 139 of file ZdcMonitorAlgorithm.h.

◆ m_EnableOOpOTriggers

Gaudi::Property<bool> ZdcMonitorAlgorithm::m_EnableOOpOTriggers {this,"EnableOOpOTriggers",false}
private

Definition at line 128 of file ZdcMonitorAlgorithm.h.

◆ m_enableRPD

Gaudi::Property<bool> ZdcMonitorAlgorithm::m_enableRPD {this,"EnableRPD",true}
private

Definition at line 137 of file ZdcMonitorAlgorithm.h.

◆ m_enableRPDAmp

Gaudi::Property<bool> ZdcMonitorAlgorithm::m_enableRPDAmp {this,"EnableRPDAmp",true}
private

Definition at line 138 of file ZdcMonitorAlgorithm.h.

◆ m_EnableUCCTriggers

Gaudi::Property<bool> ZdcMonitorAlgorithm::m_EnableUCCTriggers {this,"EnableUCCTriggers",false}
private

Definition at line 127 of file ZdcMonitorAlgorithm.h.

◆ m_enableZDC

Gaudi::Property<bool> ZdcMonitorAlgorithm::m_enableZDC {this,"EnableZDC",true}
private

Definition at line 135 of file ZdcMonitorAlgorithm.h.

◆ m_enableZDCPhysics

Gaudi::Property<bool> ZdcMonitorAlgorithm::m_enableZDCPhysics {this,"EnableZDCPhysics",true}
private

Definition at line 136 of file ZdcMonitorAlgorithm.h.

◆ m_EnableZDCSingleSideTriggers

Gaudi::Property<bool> ZdcMonitorAlgorithm::m_EnableZDCSingleSideTriggers {this,"EnableZDCSingleSideTriggers",true}
private

Definition at line 126 of file ZdcMonitorAlgorithm.h.

◆ m_energyCutForModuleFractMonitor

Gaudi::Property<float> ZdcMonitorAlgorithm::m_energyCutForModuleFractMonitor {this, "EnergyCutForModuleFractMonitor", 13400., "Minimum energy sum required on each side for event to enter module fraction monitoring (default at 5 * 2680 GeV)"}
private

Definition at line 65 of file ZdcMonitorAlgorithm.h.

◆ m_enforceExpressTriggers

Gaudi::Property<bool> AthMonitorAlgorithm::m_enforceExpressTriggers
privateinherited
Initial value:
{this,
"EnforceExpressTriggers", false,
"Requires that matched triggers made the event enter the express stream"}

Definition at line 372 of file AthMonitorAlgorithm.h.

◆ m_environment

AthMonitorAlgorithm::Environment_t AthMonitorAlgorithm::m_environment
protectedinherited

Instance of the Environment_t enum.

Definition at line 350 of file AthMonitorAlgorithm.h.

◆ m_environmentStr

Gaudi::Property<std::string> AthMonitorAlgorithm::m_environmentStr {this,"Environment","user"}
protectedinherited

Environment string pulled from the job option and converted to enum.

Definition at line 352 of file AthMonitorAlgorithm.h.

◆ m_EventInfoKey

SG::ReadHandleKey<xAOD::EventInfo> AthMonitorAlgorithm::m_EventInfoKey {this,"EventInfoKey","EventInfo"}
protectedinherited

Key for retrieving EventInfo from StoreGate.

Definition at line 362 of file AthMonitorAlgorithm.h.

◆ m_eventTypeKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_eventTypeKey {this, "ZdcEventTypeKey", m_zdcSumContainerName + ".EventType" + m_auxSuffix}
private

Definition at line 151 of file ZdcMonitorAlgorithm.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_expected1N

Gaudi::Property<float> ZdcMonitorAlgorithm::m_expected1N {this, "Expected1NADC", 1000., "Expected 1N position in ADC"}
private

Definition at line 63 of file ZdcMonitorAlgorithm.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 114 of file AthCommonReentrantAlgorithm.h.

◆ m_fileKey

Gaudi::Property<std::string> AthMonitorAlgorithm::m_fileKey {this,"FileKey",""}
protectedinherited

Internal Athena name for file.

Definition at line 358 of file AthMonitorAlgorithm.h.

◆ m_HIEventShapeContainerKey

SG::ReadHandleKey<xAOD::HIEventShapeContainer> ZdcMonitorAlgorithm::m_HIEventShapeContainerKey {this, "HIEventShapeContainerKey", "HIEventShape"}
private

Definition at line 147 of file ZdcMonitorAlgorithm.h.

◆ m_injMapRunToken

ZdcInjPulserAmpMap::Token ZdcMonitorAlgorithm::m_injMapRunToken {}
private

Definition at line 57 of file ZdcMonitorAlgorithm.h.

◆ m_injPulseVoltageSteps

Gaudi::Property<std::vector<float> > ZdcMonitorAlgorithm::m_injPulseVoltageSteps {this, "InjPulseVoltageSteps", {0.}}
private

Definition at line 141 of file ZdcMonitorAlgorithm.h.

◆ m_injPulseVoltageStepsStr

Gaudi::Property<std::vector<std::string> > ZdcMonitorAlgorithm::m_injPulseVoltageStepsStr {this, "InjPulseVoltageStepsStr", {""}}
private

Definition at line 142 of file ZdcMonitorAlgorithm.h.

◆ m_isInjectedPulse

Gaudi::Property<bool> ZdcMonitorAlgorithm::m_isInjectedPulse {this,"IsInjectedPulse",false}
private

Definition at line 133 of file ZdcMonitorAlgorithm.h.

◆ m_isOnline

Gaudi::Property<bool> ZdcMonitorAlgorithm::m_isOnline {this,"IsOnline",false}
private

Definition at line 123 of file ZdcMonitorAlgorithm.h.

◆ m_isOOMode

Gaudi::Property<bool> ZdcMonitorAlgorithm::m_isOOMode {this,"IsOOMode",true}
private

Definition at line 132 of file ZdcMonitorAlgorithm.h.

◆ m_IsPEBStream

Gaudi::Property<bool> ZdcMonitorAlgorithm::m_IsPEBStream {this,"IsPEBStream",true}
private

Definition at line 129 of file ZdcMonitorAlgorithm.h.

◆ m_ispOMode

Gaudi::Property<bool> ZdcMonitorAlgorithm::m_ispOMode {this,"IspOMode",true}
private

Definition at line 131 of file ZdcMonitorAlgorithm.h.

◆ m_isPPMode

Gaudi::Property<bool> ZdcMonitorAlgorithm::m_isPPMode {this,"IsPPMode",true}
private

Definition at line 130 of file ZdcMonitorAlgorithm.h.

◆ m_isSim

Gaudi::Property<bool> ZdcMonitorAlgorithm::m_isSim {this,"IsSim",false}
private

Definition at line 124 of file ZdcMonitorAlgorithm.h.

◆ m_isStandalone

Gaudi::Property<bool> ZdcMonitorAlgorithm::m_isStandalone {this,"IsStandalone",false}
private

Definition at line 134 of file ZdcMonitorAlgorithm.h.

◆ m_lbDurationDataKey

SG::ReadCondHandleKey<LBDurationCondData> AthMonitorAlgorithm::m_lbDurationDataKey {this,"LBDurationCondDataKey","LBDurationCondData","SG Key of LBDurationCondData object"}
protectedinherited

Definition at line 345 of file AthMonitorAlgorithm.h.

◆ m_LBLBFolderInputKey

SG::ReadCondHandleKey<AthenaAttributeList> ZdcMonitorAlgorithm::m_LBLBFolderInputKey { this, "LBLBFolderInputKey", "/TRIGGER/LUMI/LBLB" }
private

Definition at line 149 of file ZdcMonitorAlgorithm.h.

◆ m_lbTimeCoolFolderName

Gaudi::Property<std::string > ZdcMonitorAlgorithm::m_lbTimeCoolFolderName { this, "LumiBlockTimeCoolFolderName", "/TRIGGER/LUMI/LBLB", "COOL folder in COOLONL_TRIGGER holding info about start and stop times for luminosity blocks" }
private

Definition at line 95 of file ZdcMonitorAlgorithm.h.

◆ m_LucrodResponseSingleVoltageToolIndices

std::map<std::string,std::map<std::string,std::map<std::string,int> > > ZdcMonitorAlgorithm::m_LucrodResponseSingleVoltageToolIndices
private

Definition at line 111 of file ZdcMonitorAlgorithm.h.

◆ m_lumiDataKey

SG::ReadCondHandleKey<LuminosityCondData> AthMonitorAlgorithm::m_lumiDataKey {this,"LuminosityCondDataKey","LuminosityCondData","SG Key of LuminosityCondData object"}
protectedinherited

Definition at line 343 of file AthMonitorAlgorithm.h.

◆ m_minAmpRequiredHGInjectorPulse

Gaudi::Property<float> ZdcMonitorAlgorithm::m_minAmpRequiredHGInjectorPulse {this, "MinAmpRequiredHGInjectorPulse", 20, "HG Minimum amplitude required for event to enter reco-amp-vs-input-voltage histograms in the injector pulse stream"}
private

Definition at line 87 of file ZdcMonitorAlgorithm.h.

◆ m_minAmpRequiredLGInjectorPulse

Gaudi::Property<float> ZdcMonitorAlgorithm::m_minAmpRequiredLGInjectorPulse {this, "MinAmpRequiredLGInjectorPulse", 20, "LG Minimum amplitude required for event to enter reco-amp-vs-input-voltage histograms in the injector pulse stream"}
private

Definition at line 88 of file ZdcMonitorAlgorithm.h.

◆ m_minVInjToImposeAmpRequirementHGInjectorPulse

Gaudi::Property<float> ZdcMonitorAlgorithm::m_minVInjToImposeAmpRequirementHGInjectorPulse {this, "MinVInjToImposeAmpRequirementHGInjectorPulse", 0.002, "Minimum input voltage to impose HG minimum amplitude requirement in the injector pulse stream; set to negative value to cancel HG minimum-amplitude requirement"}
private

Definition at line 89 of file ZdcMonitorAlgorithm.h.

◆ m_minVInjToImposeAmpRequirementLGInjectorPulse

Gaudi::Property<float> ZdcMonitorAlgorithm::m_minVInjToImposeAmpRequirementLGInjectorPulse {this, "MinVInjToImposeAmpRequirementLGInjectorPulse", 0.002, "Minimum input voltage to impose LG minimum amplitude requirement in the injector pulse stream; set to negative value to cancel LG minimum-amplitude requirement"}
private

Definition at line 90 of file ZdcMonitorAlgorithm.h.

◆ m_moduleChisqHistMaxvalue

Gaudi::Property<float> ZdcMonitorAlgorithm::m_moduleChisqHistMaxvalue {this, "ZDCModuleChisqHistMaxvalue", 1000., "Max value for logarithmic binning for ZDC module chisq distribution"}
private

Definition at line 69 of file ZdcMonitorAlgorithm.h.

◆ m_moduleChisqHistMinValue

Gaudi::Property<float> ZdcMonitorAlgorithm::m_moduleChisqHistMinValue {this, "ZDCModuleChisqHistMinValue", 1000., "Min value for logarithmic binning for ZDC module chisq distribution"}
private

Definition at line 68 of file ZdcMonitorAlgorithm.h.

◆ m_moduleChisqHistNumBins

Gaudi::Property<float> ZdcMonitorAlgorithm::m_moduleChisqHistNumBins {this, "ZDCModuleChisqHistNumBins", 1000., "Number of bins for logarithmic binning for ZDC module chisq distribution"}
private

Definition at line 70 of file ZdcMonitorAlgorithm.h.

◆ m_moduleChisqOverAmpHistMaxvalue

Gaudi::Property<float> ZdcMonitorAlgorithm::m_moduleChisqOverAmpHistMaxvalue {this, "ZDCModuleChisqOverAmpHistMaxvalue", 1000., "Max value for logarithmic binning for ZDC module chisq over amplitude distribution"}
private

Definition at line 72 of file ZdcMonitorAlgorithm.h.

◆ m_moduleChisqOverAmpHistMinValue

Gaudi::Property<float> ZdcMonitorAlgorithm::m_moduleChisqOverAmpHistMinValue {this, "ZDCModuleChisqOverAmpHistMinValue", 1000., "Min value for logarithmic binning for ZDC module chisq over amplitude distribution"}
private

Definition at line 71 of file ZdcMonitorAlgorithm.h.

◆ m_moduleChisqOverAmpHistNumBins

Gaudi::Property<float> ZdcMonitorAlgorithm::m_moduleChisqOverAmpHistNumBins {this, "ZDCModuleChisqOverAmpHistNumBins", 1000., "Number of bins for logarithmic binning for ZDC module chisq over amplitude distribution"}
private

Definition at line 73 of file ZdcMonitorAlgorithm.h.

◆ m_name

std::string AthMonitorAlgorithm::m_name
privateinherited

Definition at line 366 of file AthMonitorAlgorithm.h.

◆ m_nChannels

const int ZdcMonitorAlgorithm::m_nChannels = 16
staticprivate

Definition at line 100 of file ZdcMonitorAlgorithm.h.

◆ m_nDecodingErrorBits

const int ZdcMonitorAlgorithm::m_nDecodingErrorBits = 3
staticprivate

Definition at line 101 of file ZdcMonitorAlgorithm.h.

◆ m_nModules

const int ZdcMonitorAlgorithm::m_nModules = 4
staticprivate

Definition at line 99 of file ZdcMonitorAlgorithm.h.

◆ m_nRpdCentroidStatusBits

const int ZdcMonitorAlgorithm::m_nRpdCentroidStatusBits = 21
staticprivate

Definition at line 105 of file ZdcMonitorAlgorithm.h.

◆ m_nRpdStatusBits

const int ZdcMonitorAlgorithm::m_nRpdStatusBits = 15
staticprivate

Definition at line 104 of file ZdcMonitorAlgorithm.h.

◆ m_nSecondsRejectStartofLBInjectorPulse

Gaudi::Property<unsigned int> ZdcMonitorAlgorithm::m_nSecondsRejectStartofLBInjectorPulse {this, "NSecondsRejectStartofLBInjectorPulse", 3, "The number of seconds to reject at beginning of each LB in reco-amp-vs-input-voltage histograms in the injector pulse stream"}
private

Definition at line 86 of file ZdcMonitorAlgorithm.h.

◆ m_nSides

const int ZdcMonitorAlgorithm::m_nSides = 2
staticprivate

Definition at line 98 of file ZdcMonitorAlgorithm.h.

◆ m_nUCCTrigBits

const int ZdcMonitorAlgorithm::m_nUCCTrigBits = 7
staticprivate

Definition at line 102 of file ZdcMonitorAlgorithm.h.

◆ m_nZdcStatusBits

const int ZdcMonitorAlgorithm::m_nZdcStatusBits = 18
staticprivate

Definition at line 103 of file ZdcMonitorAlgorithm.h.

◆ m_OOpOL1TriggerFromCTPIDMap

Gaudi::Property<std::map<int,std::string> > ZdcMonitorAlgorithm::m_OOpOL1TriggerFromCTPIDMap {this, "OOpOL1TriggerFromCTPIDMap", {}, "Map of CTP ID to trigger name for ZdcCalib PEB stream pO/OO monitoring"}
private

Definition at line 93 of file ZdcMonitorAlgorithm.h.

◆ m_OOpOtriggerChains

Gaudi::Property<std::vector<std::string> > ZdcMonitorAlgorithm::m_OOpOtriggerChains {this, "OOpOTriggers", {}, "List of trigger chains to monitor"}
private

Definition at line 92 of file ZdcMonitorAlgorithm.h.

◆ m_RPDcentroidStatusKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_RPDcentroidStatusKey
private
Initial value:
{
this, "centroidStatusKey", m_zdcSumContainerName + ".centroidStatus" + m_auxSuffix,
"Centroid status word"}

Definition at line 215 of file ZdcMonitorAlgorithm.h.

◆ m_RPDChannelAmplitudeCalibKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_RPDChannelAmplitudeCalibKey {this, "RPDChannelAmplitudeCalibKey", m_zdcModuleContainerName + ".RPDChannelAmplitudeCalib" + m_auxSuffix}
private

Definition at line 184 of file ZdcMonitorAlgorithm.h.

◆ m_RPDChannelAmplitudeKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_RPDChannelAmplitudeKey {this, "RPDChannelAmplitudeKey", m_zdcModuleContainerName + ".RPDChannelAmplitude" + m_auxSuffix}
private

Definition at line 183 of file ZdcMonitorAlgorithm.h.

◆ m_RPDChannelMaxADCKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_RPDChannelMaxADCKey {this, "RPDChannelMaxADCKey", m_zdcModuleContainerName + ".RPDChannelMaxADC" + m_auxSuffix}
private

Definition at line 185 of file ZdcMonitorAlgorithm.h.

◆ m_RPDChannelMaxSampleKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_RPDChannelMaxSampleKey {this, "RPDChannelMaxSampleKey", m_zdcModuleContainerName + ".RPDChannelMaxSample" + m_auxSuffix}
private

Definition at line 186 of file ZdcMonitorAlgorithm.h.

◆ m_RPDChannelPileupExpFitParamsKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_RPDChannelPileupExpFitParamsKey
private
Initial value:
{
this, "RpdChannelPileupExpFitParamsKey", m_zdcModuleContainerName+".RPDChannelPileupExpFitParams"+m_auxSuffix,
"RPD channel pileup exponential fit parameters: exp( [0] + [1]*sample )"}

Definition at line 190 of file ZdcMonitorAlgorithm.h.

◆ m_RPDChannelPileupFracKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_RPDChannelPileupFracKey
private
Initial value:
{
this, "RPDChannelPileupFracKey", m_zdcModuleContainerName+".RPDChannelPileupFrac"+m_auxSuffix,
"RPD channel pileup as fraction of total (nominal baseline-subtracted) sum ADC"}

Definition at line 193 of file ZdcMonitorAlgorithm.h.

◆ m_RPDChannelStatusKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_RPDChannelStatusKey {this, "RPDChannelStatusKey", m_zdcModuleContainerName + ".RPDChannelStatus" + m_auxSuffix}
private

Definition at line 187 of file ZdcMonitorAlgorithm.h.

◆ m_RPDChannelSubtrAmpKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_RPDChannelSubtrAmpKey
private
Initial value:
{
this, "RPDChannelSubtrAmpKey", m_zdcSumContainerName + ".RPDChannelSubtrAmp" + m_auxSuffix,
"RPD channel subtracted amplitudes (tile mass) used in centroid calculation"}

Definition at line 196 of file ZdcMonitorAlgorithm.h.

◆ m_RPDChannelToolIndices

std::map<std::string,std::map<std::string,int> > ZdcMonitorAlgorithm::m_RPDChannelToolIndices
private

Definition at line 110 of file ZdcMonitorAlgorithm.h.

◆ m_RPDcosDeltaReactionPlaneAngleKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_RPDcosDeltaReactionPlaneAngleKey
private
Initial value:
{
this, "cosDeltaReactionPlaneAngleKey", m_zdcSumContainerName + ".cosDeltaReactionPlaneAngle" + m_auxSuffix,
"Cosine of the difference between the reaction plane angles of the two sides"}

Definition at line 212 of file ZdcMonitorAlgorithm.h.

◆ m_RPDreactionPlaneAngleKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_RPDreactionPlaneAngleKey
private
Initial value:
{
this, "reactionPlaneAngleKey", m_zdcSumContainerName + ".reactionPlaneAngle" + m_auxSuffix,
"Reaction plane angle in [-pi, pi) from the positive x axis (angle of centorid on side C, angle of centroid + pi on side A)"}

Definition at line 209 of file ZdcMonitorAlgorithm.h.

◆ m_RPDSideStatusKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_RPDSideStatusKey
private
Initial value:
{
this, "RPDSideStatusKey", m_zdcSumContainerName + ".RPDStatus" + m_auxSuffix,
"Centroid status word"}

Definition at line 218 of file ZdcMonitorAlgorithm.h.

◆ m_RPDSubtrAmpSumKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_RPDSubtrAmpSumKey
private
Initial value:
{
this, "RPDSubtrAmpSumKey", m_zdcSumContainerName + ".RPDSubtrAmpSum" + m_auxSuffix,
"Sum of RPD channel subtracted amplitudes (total mass) used in centroid calculation"}

Definition at line 199 of file ZdcMonitorAlgorithm.h.

◆ m_RPDxCentroidKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_RPDxCentroidKey
private
Initial value:
{
this, "xCentroidKey", m_zdcSumContainerName + ".xCentroid" + m_auxSuffix,
"X centroid after geometry corrections and after average centroid subtraction"}

Definition at line 202 of file ZdcMonitorAlgorithm.h.

◆ m_RPDyCentroidKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_RPDyCentroidKey
private
Initial value:
{
this, "yCentroidKey", m_zdcSumContainerName + ".yCentroid" + m_auxSuffix,
"Y centroid after geometry corrections and after average centroid subtraction"}

Definition at line 205 of file ZdcMonitorAlgorithm.h.

◆ m_runNumber

Gaudi::Property<unsigned int> ZdcMonitorAlgorithm::m_runNumber {this, "RunNumber", 0, "Run number for current job"}
private

Definition at line 56 of file ZdcMonitorAlgorithm.h.

◆ m_toolLookupMap

std::unordered_map<std::string, size_t> AthMonitorAlgorithm::m_toolLookupMap
privateinherited

Definition at line 367 of file AthMonitorAlgorithm.h.

◆ m_tools

ToolHandleArray<GenericMonitoringTool> AthMonitorAlgorithm::m_tools {this,"GMTools",{}}
protectedinherited

Array of Generic Monitoring Tools.

Definition at line 338 of file AthMonitorAlgorithm.h.

◆ m_trigDecTool

PublicToolHandle<Trig::TrigDecisionTool> AthMonitorAlgorithm::m_trigDecTool {this, "TrigDecisionTool",""}
protectedinherited

Tool to tell whether a specific trigger is passed.

Definition at line 340 of file AthMonitorAlgorithm.h.

◆ m_triggerChainString

Gaudi::Property<std::string> AthMonitorAlgorithm::m_triggerChainString {this,"TriggerChain",""}
protectedinherited

Trigger chain string pulled from the job option and parsed into a vector.

Definition at line 355 of file AthMonitorAlgorithm.h.

◆ m_triggerSideA

Gaudi::Property<std::string> ZdcMonitorAlgorithm::m_triggerSideA {this, "triggerSideA", "L1_ZDC_A", "Trigger on side A, needed for 1N-peak monitoring on side C"}
private

Definition at line 76 of file ZdcMonitorAlgorithm.h.

◆ m_triggerSideC

Gaudi::Property<std::string> ZdcMonitorAlgorithm::m_triggerSideC {this, "triggerSideC", "L1_ZDC_C", "Trigger on side C, needed for 1N-peak monitoring on side A"}
private

Definition at line 77 of file ZdcMonitorAlgorithm.h.

◆ m_trigLiveFractionDataKey

SG::ReadCondHandleKey<TrigLiveFractionCondData> AthMonitorAlgorithm::m_trigLiveFractionDataKey {this,"TrigLiveFractionCondDataKey","TrigLiveFractionCondData", "SG Key of TrigLiveFractionCondData object"}
protectedinherited

Definition at line 347 of file AthMonitorAlgorithm.h.

◆ m_UCCtriggerHELT15

Gaudi::Property<std::string> ZdcMonitorAlgorithm::m_UCCtriggerHELT15 {this, "triggerUCCHELT15", "L1_ZDC_HELT15_jTE4000", "UCC trigger requiring ZDC hadronic energy be less than 15 TeV"}
private

Definition at line 80 of file ZdcMonitorAlgorithm.h.

◆ m_UCCtriggerHELT20

Gaudi::Property<std::string> ZdcMonitorAlgorithm::m_UCCtriggerHELT20 {this, "triggerUCCHELT20", "L1_ZDC_HELT20_jTE4000", "UCC trigger requiring ZDC hadronic energy be less than 20 TeV"}
private

Definition at line 81 of file ZdcMonitorAlgorithm.h.

◆ m_UCCtriggerHELT25

Gaudi::Property<std::string> ZdcMonitorAlgorithm::m_UCCtriggerHELT25 {this, "triggerUCCHELT25", "L1_ZDC_HELT25_jTE4000", "UCC trigger requiring ZDC hadronic energy be less than 25 TeV"}
private

Definition at line 82 of file ZdcMonitorAlgorithm.h.

◆ m_UCCtriggerHELT35

Gaudi::Property<std::string> ZdcMonitorAlgorithm::m_UCCtriggerHELT35 {this, "triggerUCCHELT35", "L1_ZDC_HELT35_jTE4000", "UCC trigger requiring ZDC hadronic energy be less than 35 TeV"}
private

Definition at line 83 of file ZdcMonitorAlgorithm.h.

◆ m_UCCtriggerHELT50

Gaudi::Property<std::string> ZdcMonitorAlgorithm::m_UCCtriggerHELT50 {this, "triggerUCCHELT50", "L1_ZDC_HELT50_jTE4000", "UCC trigger requiring ZDC hadronic energy be less than 50 TeV"}
private

Definition at line 84 of file ZdcMonitorAlgorithm.h.

◆ m_useLumi

Gaudi::Property<bool> AthMonitorAlgorithm::m_useLumi {this,"EnableLumi",false}
protectedinherited

Allows use of various luminosity functions.

Definition at line 359 of file AthMonitorAlgorithm.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.

◆ m_vTrigChainNames

std::vector<std::string> AthMonitorAlgorithm::m_vTrigChainNames
protectedinherited

Vector of trigger chain names parsed from trigger chain string.

Definition at line 356 of file AthMonitorAlgorithm.h.

◆ m_ZDCEnergyCutForCentroidValidBitMonitor

Gaudi::Property<float> ZdcMonitorAlgorithm::m_ZDCEnergyCutForCentroidValidBitMonitor {this, "ZDCEnergyCutForCentroidValidBitMonitor", 13400., "Minimum energy required in ZDC for event to enter centroid valid bit monitoring (default at 5 * 2680 GeV)"}
private

Definition at line 66 of file ZdcMonitorAlgorithm.h.

◆ m_zdcInjPulserAmpMap

std::shared_ptr<ZdcInjPulserAmpMap> ZdcMonitorAlgorithm::m_zdcInjPulserAmpMap
private

Definition at line 116 of file ZdcMonitorAlgorithm.h.

◆ m_ZdcModuleAmpLGRefitKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_ZdcModuleAmpLGRefitKey {this, "ZdcModuleAmpLGRefitKey", m_zdcModuleContainerName + ".AmpLGRefit" + m_auxSuffix, "ZDC module fit amp LG refit"}
private

Definition at line 177 of file ZdcMonitorAlgorithm.h.

◆ m_ZdcModuleAmplitudeKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_ZdcModuleAmplitudeKey {this, "ZdcModuleAmplitudeKey", m_zdcModuleContainerName + ".Amplitude" + m_auxSuffix}
private

Definition at line 163 of file ZdcMonitorAlgorithm.h.

◆ m_ZdcModuleAmpNoNonLinKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_ZdcModuleAmpNoNonLinKey {this, "ZdcModuleAmpNoNonLinKey", m_zdcModuleContainerName + ".AmpNoNonLin" + m_auxSuffix}
private

Definition at line 165 of file ZdcMonitorAlgorithm.h.

◆ m_ZdcModuleCalibEnergyKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_ZdcModuleCalibEnergyKey {this, "ZdcModuleCalibEnergyKey", m_zdcModuleContainerName + ".CalibEnergy" + m_auxSuffix}
private

Definition at line 169 of file ZdcMonitorAlgorithm.h.

◆ m_ZdcModuleCalibTimeKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_ZdcModuleCalibTimeKey {this, "ZdcModuleCalibTimeKey", m_zdcModuleContainerName + ".CalibTime" + m_auxSuffix}
private

Definition at line 170 of file ZdcMonitorAlgorithm.h.

◆ m_ZdcModuleChisqBinEdges

std::vector<float> ZdcMonitorAlgorithm::m_ZdcModuleChisqBinEdges
private

Definition at line 113 of file ZdcMonitorAlgorithm.h.

◆ m_ZdcModuleChisqKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_ZdcModuleChisqKey {this, "ZdcModuleChisqKey", m_zdcModuleContainerName + ".Chisq" + m_auxSuffix}
private

Definition at line 168 of file ZdcMonitorAlgorithm.h.

◆ m_ZdcModuleChisqLGRefitKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_ZdcModuleChisqLGRefitKey {this, "ZdcModuleChisqLGRefitKey", m_zdcModuleContainerName + ".ChisqLGRefit" + m_auxSuffix, "ZDC module LG refit chi square"}
private

Definition at line 180 of file ZdcMonitorAlgorithm.h.

◆ m_ZdcModuleChisqOverAmpBinEdges

std::vector<float> ZdcMonitorAlgorithm::m_ZdcModuleChisqOverAmpBinEdges
private

Definition at line 114 of file ZdcMonitorAlgorithm.h.

◆ m_ZdcModuleContainerKey

SG::ReadHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_ZdcModuleContainerKey {this, "ZdcModuleContainerKey", "ZdcModules"}
private

Definition at line 146 of file ZdcMonitorAlgorithm.h.

◆ m_zdcModuleContainerName

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

Definition at line 59 of file ZdcMonitorAlgorithm.h.

◆ m_ZdcModuleFitAmpKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_ZdcModuleFitAmpKey {this, "ZdcModuleFitAmpKey", m_zdcModuleContainerName + ".FitAmp" + m_auxSuffix}
private

Definition at line 166 of file ZdcMonitorAlgorithm.h.

◆ m_ZdcModuleFitAmpLGRefitKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_ZdcModuleFitAmpLGRefitKey {this, "ZdcModuleFitAmpLGRefitKey", m_zdcModuleContainerName + ".FitAmpLGRefit" + m_auxSuffix, "ZDC module fit amp LG refit"}
private

Definition at line 176 of file ZdcMonitorAlgorithm.h.

◆ m_ZdcModuleFitT0Key

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_ZdcModuleFitT0Key {this, "ZdcModuleFitT0Key", m_zdcModuleContainerName + ".FitT0" + m_auxSuffix}
private

Definition at line 167 of file ZdcMonitorAlgorithm.h.

◆ m_ZdcModuleMaxADCHGKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_ZdcModuleMaxADCHGKey {this, "ZdcModuleMaxADCHGKey", m_zdcModuleContainerName + ".MaxADCHG" + m_auxSuffix}
private

Definition at line 172 of file ZdcMonitorAlgorithm.h.

◆ m_ZdcModuleMaxADCKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_ZdcModuleMaxADCKey {this, "ZdcModuleMaxADCKey", m_zdcModuleContainerName + ".MaxADC" + m_auxSuffix}
private

Definition at line 171 of file ZdcMonitorAlgorithm.h.

◆ m_ZdcModuleMaxADCLGKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_ZdcModuleMaxADCLGKey {this, "ZdcModuleMaxADCLGKey", m_zdcModuleContainerName + ".MaxADCLG" + m_auxSuffix}
private

Definition at line 173 of file ZdcMonitorAlgorithm.h.

◆ m_ZdcModuleStatusKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_ZdcModuleStatusKey {this, "ZdcModuleStatusKey", m_zdcModuleContainerName + ".Status" + m_auxSuffix}
private

Definition at line 162 of file ZdcMonitorAlgorithm.h.

◆ m_ZdcModuleT0LGRefitKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_ZdcModuleT0LGRefitKey {this, "ZdcModuleT0LGRefitKey", m_zdcModuleContainerName + ".T0LGRefit" + m_auxSuffix, "ZDC module fit t0 LG refit"}
private

Definition at line 178 of file ZdcMonitorAlgorithm.h.

◆ m_ZdcModuleT0SubLGRefitKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_ZdcModuleT0SubLGRefitKey {this, "ZdcModuleT0SubLGRefitKey", m_zdcModuleContainerName + ".T0SubLGRefit" + m_auxSuffix, "ZDC module subtracted t0 LG refit"}
private

Definition at line 179 of file ZdcMonitorAlgorithm.h.

◆ m_ZdcModuleTimeKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_ZdcModuleTimeKey {this, "ZdcModuleTimeKey", m_zdcModuleContainerName + ".Time" + m_auxSuffix}
private

Definition at line 164 of file ZdcMonitorAlgorithm.h.

◆ m_ZDCModuleToolIndices

std::map<std::string,std::map<std::string,int> > ZdcMonitorAlgorithm::m_ZDCModuleToolIndices
private

Definition at line 109 of file ZdcMonitorAlgorithm.h.

◆ m_ZDCSideToolIndices

std::map<std::string,int> ZdcMonitorAlgorithm::m_ZDCSideToolIndices
private

Definition at line 108 of file ZdcMonitorAlgorithm.h.

◆ m_ZdcSumAverageTimeKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_ZdcSumAverageTimeKey {this, "ZdcSumAverageTimeKey", m_zdcSumContainerName + ".AverageTime" + m_auxSuffix}
private

Definition at line 157 of file ZdcMonitorAlgorithm.h.

◆ m_ZdcSumCalibEnergyKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_ZdcSumCalibEnergyKey {this, "ZdcSumCalibEnergyKey", m_zdcSumContainerName + ".CalibEnergy" + m_auxSuffix}
private

Definition at line 156 of file ZdcMonitorAlgorithm.h.

◆ m_ZdcSumContainerKey

SG::ReadHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_ZdcSumContainerKey {this, "ZdcSumContainerKey", "ZdcSums"}
private

Definition at line 145 of file ZdcMonitorAlgorithm.h.

◆ m_zdcSumContainerName

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

Definition at line 60 of file ZdcMonitorAlgorithm.h.

◆ m_ZdcSumModuleMaskKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_ZdcSumModuleMaskKey {this, "ZdcSumModuleMaskKey", m_zdcSumContainerName + ".ModuleMask" + m_auxSuffix}
private

Definition at line 159 of file ZdcMonitorAlgorithm.h.

◆ m_ZdcSumUncalibSumKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> ZdcMonitorAlgorithm::m_ZdcSumUncalibSumKey {this, "ZdcSumUncalibSumKey", m_zdcSumContainerName + ".UncalibSum" + m_auxSuffix}
private

Definition at line 158 of file ZdcMonitorAlgorithm.h.

◆ module_FPGA_max_ADC

int ZdcMonitorAlgorithm.module_FPGA_max_ADC = 4096

Definition at line 18 of file ZdcMonitorAlgorithm.py.

◆ None

ZdcMonitorAlgorithm.None

Definition at line 1259 of file ZdcMonitorAlgorithm.py.

◆ parser

ZdcMonitorAlgorithm.parser = flags.getArgumentParser()

Definition at line 1257 of file ZdcMonitorAlgorithm.py.

◆ useTrigger

ZdcMonitorAlgorithm.useTrigger

Definition at line 1264 of file ZdcMonitorAlgorithm.py.

◆ withDetails

ZdcMonitorAlgorithm.withDetails

Definition at line 1288 of file ZdcMonitorAlgorithm.py.

◆ zdcMonitorAcc

def ZdcMonitorAlgorithm.zdcMonitorAcc = ZdcMonitoringConfig(flags)

Definition at line 1281 of file ZdcMonitorAlgorithm.py.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
ZdcMonitorAlgorithm::fillPhysicsDataHistograms
StatusCode fillPhysicsDataHistograms(const EventContext &ctx) const
Definition: ZdcMonitorAlgorithm.cxx:201
ZDCPulseAnalyzer::FitMinAmpBit
@ FitMinAmpBit
Definition: ZDCPulseAnalyzer.h:44
test_pyathena.eta
eta
Definition: test_pyathena.py:10
ZdcMonitorAlgorithm::m_nSecondsRejectStartofLBInjectorPulse
Gaudi::Property< unsigned int > m_nSecondsRejectStartofLBInjectorPulse
Definition: ZdcMonitorAlgorithm.h:86
ZdcEventInfo::ZdcEventPhysics
@ ZdcEventPhysics
Definition: ZdcEventInfo.h:16
ZdcMonitorAlgorithm::m_ZdcSumAverageTimeKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcSumAverageTimeKey
Definition: ZdcMonitorAlgorithm.h:157
et
Extra patterns decribing particle interation process.
ZdcMonitorAlgorithm::m_ZdcModuleChisqKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcModuleChisqKey
Definition: ZdcMonitorAlgorithm.h:168
AthMonitorAlgorithm::Environment_t::tier0Raw
@ tier0Raw
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
ZdcMonitorAlgorithm::m_ZDCEnergyCutForCentroidValidBitMonitor
Gaudi::Property< float > m_ZDCEnergyCutForCentroidValidBitMonitor
Definition: ZdcMonitorAlgorithm.h:66
ZdcMonitorAlgorithm::m_minAmpRequiredLGInjectorPulse
Gaudi::Property< float > m_minAmpRequiredLGInjectorPulse
Definition: ZdcMonitorAlgorithm.h:88
TrigDefs::Group
Group
Properties of a chain group.
Definition: GroupProperties.h:13
ZdcMonitorAlgorithm::m_zdcSumContainerName
Gaudi::Property< std::string > m_zdcSumContainerName
Definition: ZdcMonitorAlgorithm.h:60
get_generator_info.result
result
Definition: get_generator_info.py:21
ZdcMonitorAlgorithm::UCCTrigDisabledBit
@ UCCTrigDisabledBit
Definition: ZdcMonitorAlgorithm.h:42
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
ZdcMonitorAlgorithm::TrigHELT35Bit
@ TrigHELT35Bit
Definition: ZdcMonitorAlgorithm.h:38
ZdcMonitorAlgorithm::m_moduleChisqHistMaxvalue
Gaudi::Property< float > m_moduleChisqHistMaxvalue
Definition: ZdcMonitorAlgorithm.h:69
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
AthMonitorAlgorithm::m_trigDecTool
PublicToolHandle< Trig::TrigDecisionTool > m_trigDecTool
Tool to tell whether a specific trigger is passed.
Definition: AthMonitorAlgorithm.h:340
ZdcMonitorAlgorithm::m_RPDChannelToolIndices
std::map< std::string, std::map< std::string, int > > m_RPDChannelToolIndices
Definition: ZdcMonitorAlgorithm.h:110
ZdcMonitorAlgorithm::m_nRpdStatusBits
static const int m_nRpdStatusBits
Definition: ZdcMonitorAlgorithm.h:104
ZdcMonitorAlgorithm::m_RPDSideStatusKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_RPDSideStatusKey
Definition: ZdcMonitorAlgorithm.h:218
ZdcMonitorAlgorithm::m_UCCtriggerHELT35
Gaudi::Property< std::string > m_UCCtriggerHELT35
Definition: ZdcMonitorAlgorithm.h:83
AthMonitorAlgorithm::Environment_t::tier0
@ tier0
AthMonitorAlgorithm::Environment_t::AOD
@ AOD
ZdcMonitorAlgorithm::m_ZdcSumUncalibSumKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcSumUncalibSumKey
Definition: ZdcMonitorAlgorithm.h:158
ZdcMonitorAlgorithm::m_ZdcModuleT0SubLGRefitKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcModuleT0SubLGRefitKey
Definition: ZdcMonitorAlgorithm.h:179
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
ZdcMonitorAlgorithm::m_RPDChannelPileupFracKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_RPDChannelPileupFracKey
Definition: ZdcMonitorAlgorithm.h:193
RPDUtils::sides
constexpr std::initializer_list< unsigned int > sides
Definition: RPDUtils.h:17
ZdcMonitorAlgorithm::m_ZdcModuleMaxADCHGKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcModuleMaxADCHGKey
Definition: ZdcMonitorAlgorithm.h:172
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:67
CheckAppliedSFs.bin_width
bin_width
Definition: CheckAppliedSFs.py:242
ZdcMonitorAlgorithm::m_RPDyCentroidKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_RPDyCentroidKey
Definition: ZdcMonitorAlgorithm.h:205
AthMonitorAlgorithm::m_vTrigChainNames
std::vector< std::string > m_vTrigChainNames
Vector of trigger chain names parsed from trigger chain string.
Definition: AthMonitorAlgorithm.h:356
AthCommonDataStore::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 > renounce(T &h)
Definition: AthCommonDataStore.h:380
AthMonitorAlgorithm::m_EventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_EventInfoKey
Key for retrieving EventInfo from StoreGate.
Definition: AthMonitorAlgorithm.h:362
ZdcMonitorAlgorithm::m_RPDChannelAmplitudeCalibKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_RPDChannelAmplitudeCalibKey
Definition: ZdcMonitorAlgorithm.h:184
AthMonitorAlgorithm::getTrigDecisionTool
const ToolHandle< Trig::TrigDecisionTool > & getTrigDecisionTool() const
Get the trigger decision tool member.
Definition: AthMonitorAlgorithm.cxx:194
ZdcMonitorAlgorithm::m_ZdcModuleContainerKey
SG::ReadHandleKey< xAOD::ZdcModuleContainer > m_ZdcModuleContainerKey
Definition: ZdcMonitorAlgorithm.h:146
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
ZdcMonitorAlgorithm::TrigHELT50Bit
@ TrigHELT50Bit
Definition: ZdcMonitorAlgorithm.h:37
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
ZdcMonitorAlgorithm::m_ZdcModuleFitT0Key
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcModuleFitT0Key
Definition: ZdcMonitorAlgorithm.h:167
AthMonitorAlgorithm::m_toolLookupMap
std::unordered_map< std::string, size_t > m_toolLookupMap
Definition: AthMonitorAlgorithm.h:367
ZdcEventInfo::ZdcEventUnknown
@ ZdcEventUnknown
Definition: ZdcEventInfo.h:16
ZdcMonitorAlgorithm::m_isOnline
Gaudi::Property< bool > m_isOnline
Definition: ZdcMonitorAlgorithm.h:123
ZdcMonitorAlgorithm::m_ZdcModuleChisqLGRefitKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcModuleChisqLGRefitKey
Definition: ZdcMonitorAlgorithm.h:180
ZdcMonitorAlgorithm::m_isSim
Gaudi::Property< bool > m_isSim
Definition: ZdcMonitorAlgorithm.h:124
AthMonitorAlgorithm::m_environment
AthMonitorAlgorithm::Environment_t m_environment
Instance of the Environment_t enum.
Definition: AthMonitorAlgorithm.h:350
ANA_CHECK
#define ANA_CHECK(EXP)
check whether the given expression was successful
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:324
ZDC::RPDDataAnalyzer::ValidBit
@ ValidBit
Definition: RPDDataAnalyzer.h:37
ZDCPulseAnalyzer::LGOverflowBit
@ LGOverflowBit
Definition: ZDCPulseAnalyzer.h:31
ZdcMonitorAlgorithm::TrigHELT25Bit
@ TrigHELT25Bit
Definition: ZdcMonitorAlgorithm.h:39
ZdcMonitorAlgorithm::m_ZdcModuleAmpNoNonLinKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcModuleAmpNoNonLinKey
Definition: ZdcMonitorAlgorithm.h:165
ZdcMonitorAlgorithm::m_zdcModuleContainerName
Gaudi::Property< std::string > m_zdcModuleContainerName
Definition: ZdcMonitorAlgorithm.h:59
cosmics
Definition: cosmics.py:1
ZdcMonitorAlgorithm::m_moduleChisqHistMinValue
Gaudi::Property< float > m_moduleChisqHistMinValue
Definition: ZdcMonitorAlgorithm.h:68
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
ZdcEventInfo::DAQMode
DAQMode
Definition: ZdcEventInfo.h:17
ZdcMonitorAlgorithm::m_injPulseVoltageSteps
Gaudi::Property< std::vector< float > > m_injPulseVoltageSteps
Definition: ZdcMonitorAlgorithm.h:141
ZDCPulseAnalyzer::PulseBit
@ PulseBit
Definition: ZDCPulseAnalyzer.h:24
ZdcMonitorAlgorithm::m_ZdcModuleAmpLGRefitKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcModuleAmpLGRefitKey
Definition: ZdcMonitorAlgorithm.h:177
ZdcMonitorAlgorithm::m_nSides
static const int m_nSides
Definition: ZdcMonitorAlgorithm.h:98
dq_defect_bulk_create_defects.line
line
Definition: dq_defect_bulk_create_defects.py:27
AthMonitorAlgorithm::trigChainsArePassed
bool trigChainsArePassed(const std::vector< std::string > &vTrigNames) const
Check whether triggers are passed.
Definition: AthMonitorAlgorithm.cxx:199
ZdcMonitorAlgorithm::m_enableCentroid
Gaudi::Property< bool > m_enableCentroid
Definition: ZdcMonitorAlgorithm.h:139
compute_lumi.lblb
lblb
Definition: compute_lumi.py:45
ZdcMonitorAlgorithm::m_ZdcModuleFitAmpKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcModuleFitAmpKey
Definition: ZdcMonitorAlgorithm.h:166
AthMonitorAlgorithm::Environment_t::user
@ user
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
dq_defect_copy_defect_database.channels
def channels
Definition: dq_defect_copy_defect_database.py:56
ZdcMonitorAlgorithm::m_ZdcModuleChisqOverAmpBinEdges
std::vector< float > m_ZdcModuleChisqOverAmpBinEdges
Definition: ZdcMonitorAlgorithm.h:114
Monitored::Collection
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
Definition: MonitoredCollection.h:38
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
AthMonitorAlgorithm::m_dummy
const ToolHandle< GenericMonitoringTool > m_dummy
Definition: AthMonitorAlgorithm.h:369
ZdcMonitorAlgorithm::m_triggerSideA
Gaudi::Property< std::string > m_triggerSideA
Definition: ZdcMonitorAlgorithm.h:76
ZdcMonitorAlgorithm::m_RPDChannelMaxADCKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_RPDChannelMaxADCKey
Definition: ZdcMonitorAlgorithm.h:185
ZdcMonitorAlgorithm::m_ZdcModuleCalibTimeKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcModuleCalibTimeKey
Definition: ZdcMonitorAlgorithm.h:170
ZdcMonitorAlgorithm::m_UCCtriggerHELT50
Gaudi::Property< std::string > m_UCCtriggerHELT50
Definition: ZdcMonitorAlgorithm.h:84
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
ZdcMonitorAlgorithm::m_triggerSideC
Gaudi::Property< std::string > m_triggerSideC
Definition: ZdcMonitorAlgorithm.h:77
ZdcMonitorAlgorithm::m_zdcInjPulserAmpMap
std::shared_ptr< ZdcInjPulserAmpMap > m_zdcInjPulserAmpMap
Definition: ZdcMonitorAlgorithm.h:116
ZdcMonitorAlgorithm::m_expected1N
Gaudi::Property< float > m_expected1N
Definition: ZdcMonitorAlgorithm.h:63
ZdcMonitorAlgorithm::m_HIEventShapeContainerKey
SG::ReadHandleKey< xAOD::HIEventShapeContainer > m_HIEventShapeContainerKey
Definition: ZdcMonitorAlgorithm.h:147
ZdcMonitorAlgorithm::m_moduleChisqOverAmpHistMaxvalue
Gaudi::Property< float > m_moduleChisqOverAmpHistMaxvalue
Definition: ZdcMonitorAlgorithm.h:72
ZdcMonitorAlgorithm::m_RPDSubtrAmpSumKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_RPDSubtrAmpSumKey
Definition: ZdcMonitorAlgorithm.h:199
PyPoolBrowser.item
item
Definition: PyPoolBrowser.py:129
ZdcInjPulserAmpMap::Token::isValid
bool isValid() const
Definition: ZdcInjPulserAmpMap.h:48
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:85
TileSynchronizeBch.online
online
Definition: TileSynchronizeBch.py:88
AthCommonReentrantAlgorithm::extraOutputDeps
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
Definition: AthCommonReentrantAlgorithm.cxx:89
ZdcMonitorAlgorithm::m_ZdcModuleStatusKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcModuleStatusKey
Definition: ZdcMonitorAlgorithm.h:162
ZdcMonitorAlgorithm::m_RPDxCentroidKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_RPDxCentroidKey
Definition: ZdcMonitorAlgorithm.h:202
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
ZdcMonitorAlgorithm::m_DAQModeKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_DAQModeKey
Definition: ZdcMonitorAlgorithm.h:153
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthMonitorAlgorithm::m_DQFilterTools
ToolHandleArray< IDQFilterTool > m_DQFilterTools
Array of Data Quality filter tools.
Definition: AthMonitorAlgorithm.h:341
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ZdcMonitorAlgorithm::m_ZdcSumModuleMaskKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcSumModuleMaskKey
Definition: ZdcMonitorAlgorithm.h:159
ZdcMonitorAlgorithm::m_EnableZDCSingleSideTriggers
Gaudi::Property< bool > m_EnableZDCSingleSideTriggers
Definition: ZdcMonitorAlgorithm.h:126
SG::ReadDecorHandle
Handle class for reading a decoration on an object.
Definition: StoreGate/StoreGate/ReadDecorHandle.h:94
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
ZdcEventInfo::ZDCDECODINGERROR
@ ZDCDECODINGERROR
Definition: ZdcEventInfo.h:19
ZdcMonitorAlgorithm::m_CalInfoOn
Gaudi::Property< bool > m_CalInfoOn
Definition: ZdcMonitorAlgorithm.h:125
ZdcMonitorAlgorithm::m_RPDChannelStatusKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_RPDChannelStatusKey
Definition: ZdcMonitorAlgorithm.h:187
lumiFormat.i
int i
Definition: lumiFormat.py:85
Monitored
Generic monitoring tool for athena components.
Definition: GenericMonitoringTool.h:30
ZdcMonitorAlgorithm::m_RPDChannelSubtrAmpKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_RPDChannelSubtrAmpKey
Definition: ZdcMonitorAlgorithm.h:196
ZdcMonitorAlgorithm::m_ZdcModuleMaxADCLGKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcModuleMaxADCLGKey
Definition: ZdcMonitorAlgorithm.h:173
PixelAthClusterMonAlgCfg.varName
string varName
end cluster ToT and charge
Definition: PixelAthClusterMonAlgCfg.py:125
AthMonitorAlgorithm::DataType_t::heavyIonCollisions
@ heavyIonCollisions
ZdcMonitorAlgorithm::UCCTrigEnabledBit
@ UCCTrigEnabledBit
Definition: ZdcMonitorAlgorithm.h:36
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Definition: AthCommonDataStore.h:145
ZdcMonitorAlgorithm::m_RPDChannelMaxSampleKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_RPDChannelMaxSampleKey
Definition: ZdcMonitorAlgorithm.h:186
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
tolower
void tolower(std::string &s)
Definition: AthenaSummarySvc.cxx:108
python.CaloAddPedShiftConfig.str
str
Definition: CaloAddPedShiftConfig.py:42
AthMonitorAlgorithm::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const =0
adds event to the monitoring histograms
AthCommonReentrantAlgorithm::sysExecute
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
Definition: AthCommonReentrantAlgorithm.cxx:76
ZdcEventInfo::ZdcSimulation
@ ZdcSimulation
Definition: ZdcEventInfo.h:16
ZdcMonitorAlgorithm::m_injMapRunToken
ZdcInjPulserAmpMap::Token m_injMapRunToken
Definition: ZdcMonitorAlgorithm.h:57
ZdcMonitorAlgorithm::m_enableZDC
Gaudi::Property< bool > m_enableZDC
Definition: ZdcMonitorAlgorithm.h:135
ZdcMonitorAlgorithm::m_RPDChannelAmplitudeKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_RPDChannelAmplitudeKey
Definition: ZdcMonitorAlgorithm.h:183
calibdata.exception
exception
Definition: calibdata.py:495
Amg::transform
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
Definition: GeoPrimitivesHelpers.h:156
ZDC::RpdSubtractCentroidTool::ValidBit
@ ValidBit
Definition: RpdSubtractCentroidTool.h:32
ZDCPulseAnalyzer::LowGainBit
@ LowGainBit
Definition: ZDCPulseAnalyzer.h:25
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthenaAttributeList
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
Definition: PersistentDataModel/PersistentDataModel/AthenaAttributeList.h:45
ZdcMonitorAlgorithm::m_isStandalone
Gaudi::Property< bool > m_isStandalone
Definition: ZdcMonitorAlgorithm.h:134
ZdcMonitorAlgorithm::m_ZdcModuleCalibEnergyKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcModuleCalibEnergyKey
Definition: ZdcMonitorAlgorithm.h:169
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
ZdcMonitorAlgorithm::m_minVInjToImposeAmpRequirementLGInjectorPulse
Gaudi::Property< float > m_minVInjToImposeAmpRequirementLGInjectorPulse
Definition: ZdcMonitorAlgorithm.h:90
AthMonitorAlgorithm::fill
void fill(const ToolHandle< GenericMonitoringTool > &groupHandle, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &&variables) const
Fills a vector of variables to a group by reference.
ZdcMonitorAlgorithm::m_RPDChannelPileupExpFitParamsKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_RPDChannelPileupExpFitParamsKey
Definition: ZdcMonitorAlgorithm.h:190
ZdcMonitorAlgorithm::m_auxSuffix
Gaudi::Property< std::string > m_auxSuffix
Definition: ZdcMonitorAlgorithm.h:61
ZdcMonitorAlgorithm::m_ZdcSumContainerKey
SG::ReadHandleKey< xAOD::ZdcModuleContainer > m_ZdcSumContainerKey
Definition: ZdcMonitorAlgorithm.h:145
ZdcMonitorAlgorithm::m_nRpdCentroidStatusBits
static const int m_nRpdCentroidStatusBits
Definition: ZdcMonitorAlgorithm.h:105
xAOD::EventInfo_v1::ForwardDet
@ ForwardDet
The forward detectors.
Definition: EventInfo_v1.h:338
ZdcMonitorAlgorithm::m_enableRPDAmp
Gaudi::Property< bool > m_enableRPDAmp
Definition: ZdcMonitorAlgorithm.h:138
AthMonitorAlgorithm::m_dataType
AthMonitorAlgorithm::DataType_t m_dataType
Instance of the DataType_t enum.
Definition: AthMonitorAlgorithm.h:351
ZdcMonitorAlgorithm::m_minVInjToImposeAmpRequirementHGInjectorPulse
Gaudi::Property< float > m_minVInjToImposeAmpRequirementHGInjectorPulse
Definition: ZdcMonitorAlgorithm.h:89
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
AthMonitorAlgorithm::DataType_t::cosmics
@ cosmics
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
trigbs_pickEvents.num
num
Definition: trigbs_pickEvents.py:76
ZDCPulseAnalyzer::BadChisqBit
@ BadChisqBit
Definition: ZDCPulseAnalyzer.h:37
AthMonitorAlgorithm::m_tools
ToolHandleArray< GenericMonitoringTool > m_tools
Array of Generic Monitoring Tools.
Definition: AthMonitorAlgorithm.h:338
ZdcMonitorAlgorithm::m_ZDCSideToolIndices
std::map< std::string, int > m_ZDCSideToolIndices
Definition: ZdcMonitorAlgorithm.h:108
AthMonitorAlgorithm::Environment_t::online
@ online
ZdcMonitorAlgorithm::m_ZdcModuleFitAmpLGRefitKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcModuleFitAmpLGRefitKey
Definition: ZdcMonitorAlgorithm.h:176
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:76
AthMonitorAlgorithm::Environment_t::tier0ESD
@ tier0ESD
AthMonitorAlgorithm::Environment_t::altprod
@ altprod
ZdcMonitorAlgorithm::m_OOpOL1TriggerFromCTPIDMap
Gaudi::Property< std::map< int, std::string > > m_OOpOL1TriggerFromCTPIDMap
Definition: ZdcMonitorAlgorithm.h:93
AthMonitorAlgorithm::m_enforceExpressTriggers
Gaudi::Property< bool > m_enforceExpressTriggers
Definition: AthMonitorAlgorithm.h:372
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
xAOD::bcid
setEventNumber setTimeStamp bcid
Definition: EventInfo_v1.cxx:133
ZdcMonitorAlgorithm::NoDecodingErrorBit
@ NoDecodingErrorBit
Definition: ZdcMonitorAlgorithm.h:31
ZdcMonitorAlgorithm::m_ZDCModuleToolIndices
std::map< std::string, std::map< std::string, int > > m_ZDCModuleToolIndices
Definition: ZdcMonitorAlgorithm.h:109
item
Definition: ItemListSvc.h:43
WriteBchToCool.user
user
Definition: WriteBchToCool.py:76
ZdcMonitorAlgorithm::m_ZdcModuleT0LGRefitKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcModuleT0LGRefitKey
Definition: ZdcMonitorAlgorithm.h:178
ZdcMonitorAlgorithm::m_eventTypeKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_eventTypeKey
Definition: ZdcMonitorAlgorithm.h:151
ZdcMonitorAlgorithm::m_ZdcModuleTimeKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcModuleTimeKey
Definition: ZdcMonitorAlgorithm.h:164
ZdcEventInfo::DAQModeUndef
@ DAQModeUndef
Definition: ZdcEventInfo.h:17
ZdcMonitorAlgorithm::ZDCDecodingErrorBit
@ ZDCDecodingErrorBit
Definition: ZdcMonitorAlgorithm.h:32
AthMonitorAlgorithm::initialize
virtual StatusCode initialize() override
initialize
Definition: AthMonitorAlgorithm.cxx:18
ZdcMonitorAlgorithm::m_ZdcModuleMaxADCKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcModuleMaxADCKey
Definition: ZdcMonitorAlgorithm.h:171
DeMoAtlasDataLoss.runNumber
string runNumber
Definition: DeMoAtlasDataLoss.py:64
ATH_LIKELY
#define ATH_LIKELY(x)
Definition: AthUnlikelyMacros.h:16
ZdcMonitorAlgorithm::RPDDecodingErrorBit
@ RPDDecodingErrorBit
Definition: ZdcMonitorAlgorithm.h:33
runIDAlign.accumulate
accumulate
Update flags based on parser line args.
Definition: runIDAlign.py:107
ZdcMonitorAlgorithm::m_injPulseVoltageStepsStr
Gaudi::Property< std::vector< std::string > > m_injPulseVoltageStepsStr
Definition: ZdcMonitorAlgorithm.h:142
ZdcMonitorAlgorithm::m_EnableUCCTriggers
Gaudi::Property< bool > m_EnableUCCTriggers
Definition: ZdcMonitorAlgorithm.h:127
ZdcMonitorAlgorithm::TrigHELT15Bit
@ TrigHELT15Bit
Definition: ZdcMonitorAlgorithm.h:41
a
TList * a
Definition: liststreamerinfos.cxx:10
CaloLCW_tf.group
group
Definition: CaloLCW_tf.py:28
SCT_ConditionsAlgorithms::CoveritySafe::getenv
std::string getenv(const std::string &variableName)
get an environment variable
Definition: SCT_ConditionsUtilities.cxx:17
ZdcMonitorAlgorithm::m_ZdcModuleAmplitudeKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcModuleAmplitudeKey
Definition: ZdcMonitorAlgorithm.h:163
h
ZdcMonitorAlgorithm::m_EnableOOpOTriggers
Gaudi::Property< bool > m_EnableOOpOTriggers
Definition: ZdcMonitorAlgorithm.h:128
ZdcMonitorAlgorithm::calculate_inverse_bin_width
float calculate_inverse_bin_width(float event_value, const std::string &variable_name, const std::vector< float > &bin_edges) const
Definition: ZdcMonitorAlgorithm.cxx:46
ZdcMonitorAlgorithm::m_LBLBFolderInputKey
SG::ReadCondHandleKey< AthenaAttributeList > m_LBLBFolderInputKey
Definition: ZdcMonitorAlgorithm.h:149
ZdcMonitorAlgorithm::m_UCCtriggerHELT15
Gaudi::Property< std::string > m_UCCtriggerHELT15
Definition: ZdcMonitorAlgorithm.h:80
ZdcMonitorAlgorithm::m_UCCtriggerHELT20
Gaudi::Property< std::string > m_UCCtriggerHELT20
Definition: ZdcMonitorAlgorithm.h:81
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
ref
const boost::regex ref(r_ef)
AthMonitorAlgorithm::DataType_t::collisions
@ collisions
ZdcMonitorAlgorithm::m_moduleChisqHistNumBins
Gaudi::Property< float > m_moduleChisqHistNumBins
Definition: ZdcMonitorAlgorithm.h:70
AthMonitorAlgorithm::m_name
std::string m_name
Definition: AthMonitorAlgorithm.h:366
ZdcMonitorAlgorithm::m_moduleChisqOverAmpHistMinValue
Gaudi::Property< float > m_moduleChisqOverAmpHistMinValue
Definition: ZdcMonitorAlgorithm.h:71
ZdcMonitorAlgorithm::m_moduleChisqOverAmpHistNumBins
Gaudi::Property< float > m_moduleChisqOverAmpHistNumBins
Definition: ZdcMonitorAlgorithm.h:73
ZdcMonitorAlgorithm::m_ZdcModuleChisqBinEdges
std::vector< float > m_ZdcModuleChisqBinEdges
Definition: ZdcMonitorAlgorithm.h:113
ZdcMonitorAlgorithm::m_RPDreactionPlaneAngleKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_RPDreactionPlaneAngleKey
Definition: ZdcMonitorAlgorithm.h:209
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
AthMonitorAlgorithm::AthMonitorAlgorithm
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: AthMonitorAlgorithm.cxx:7
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:629
ZdcMonitorAlgorithm::m_isInjectedPulse
Gaudi::Property< bool > m_isInjectedPulse
Definition: ZdcMonitorAlgorithm.h:133
python.SystemOfUnits.s
float s
Definition: SystemOfUnits.py:147
LArCellBinning.step
step
Definition: LArCellBinning.py:158
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthCommonReentrantAlgorithm.cxx:107
xAOD::TrigDecision_v1::tbp
const std::vector< uint32_t > & tbp() const
Get the Trigger Before Prescale bits.
str
Definition: BTagTrackIpAccessor.cxx:11
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:801
merge.status
status
Definition: merge.py:16
ZdcMonitorAlgorithm::m_runNumber
Gaudi::Property< unsigned int > m_runNumber
Definition: ZdcMonitorAlgorithm.h:56
ZdcMonitorAlgorithm::calculate_log_bin_edges
void calculate_log_bin_edges(float min_value, float max_value, int num_bins, std::vector< float > &bin_edges)
Definition: ZdcMonitorAlgorithm.cxx:27
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
ZdcMonitorAlgorithm::m_LucrodResponseSingleVoltageToolIndices
std::map< std::string, std::map< std::string, std::map< std::string, int > > > m_LucrodResponseSingleVoltageToolIndices
Definition: ZdcMonitorAlgorithm.h:111
ZDCPulseAnalyzer::FailBit
@ FailBit
Definition: ZDCPulseAnalyzer.h:26
Monitored::Scalar
Declare a monitored scalar variable.
Definition: MonitoredScalar.h:34
ZdcMonitorAlgorithm::TrigHELT20Bit
@ TrigHELT20Bit
Definition: ZdcMonitorAlgorithm.h:40
AthMonitorAlgorithm::DataType_t::userDefined
@ userDefined
ZDCPulseAnalyzer::BadT0Bit
@ BadT0Bit
Definition: ZDCPulseAnalyzer.h:39
xAOD::lumiBlock
setTeId lumiBlock
Definition: L2StandAloneMuon_v1.cxx:328
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthCommonReentrantAlgorithm.h:114
ZDC::RpdSubtractCentroidTool::HasCentroidBit
@ HasCentroidBit
Definition: RpdSubtractCentroidTool.h:33
ZdcMonitorAlgorithm::m_minAmpRequiredHGInjectorPulse
Gaudi::Property< float > m_minAmpRequiredHGInjectorPulse
Definition: ZdcMonitorAlgorithm.h:87
pow
constexpr int pow(int base, int exp) noexcept
Definition: ap_fixedTest.cxx:15
Amg::distance
float distance(const Amg::Vector3D &p1, const Amg::Vector3D &p2)
calculates the distance between two point in 3D space
Definition: GeoPrimitivesHelpers.h:54
python.compressB64.c
def c
Definition: compressB64.py:93
ZdcMonitorAlgorithm::m_RPDcosDeltaReactionPlaneAngleKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_RPDcosDeltaReactionPlaneAngleKey
Definition: ZdcMonitorAlgorithm.h:212
ZdcMonitorAlgorithm::m_ZdcSumCalibEnergyKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcSumCalibEnergyKey
Definition: ZdcMonitorAlgorithm.h:156
ZdcMonitorAlgorithm::m_OOpOtriggerChains
Gaudi::Property< std::vector< std::string > > m_OOpOtriggerChains
Definition: ZdcMonitorAlgorithm.h:92
ZdcMonitorAlgorithm::m_UCCtriggerHELT25
Gaudi::Property< std::string > m_UCCtriggerHELT25
Definition: ZdcMonitorAlgorithm.h:82
ZDCPulseAnalyzer::ExcludeEarlyLGBit
@ ExcludeEarlyLGBit
Definition: ZDCPulseAnalyzer.h:40
xAOD::TrigDecision_v1
Interface to the raw trigger decision information of the event.
Definition: TrigDecision_v1.h:44
AthMonitorAlgorithm::getGroup
const ToolHandle< GenericMonitoringTool > & getGroup(const std::string &name) const
Get a specific monitoring tool from the tool handle array.
Definition: AthMonitorAlgorithm.cxx:164
ZdcMonitorAlgorithm::m_enableZDCPhysics
Gaudi::Property< bool > m_enableZDCPhysics
Definition: ZdcMonitorAlgorithm.h:136
AthMonitorAlgorithm::DataType_t::monteCarlo
@ monteCarlo
fitman.k
k
Definition: fitman.py:528
python.SystemOfUnits.m
float m
Definition: SystemOfUnits.py:106
ZdcEventInfo::RPDDECODINGERROR
@ RPDDECODINGERROR
Definition: ZdcEventInfo.h:19
ServiceHandle< ICondSvc >
ZdcMonitorAlgorithm::m_RPDcentroidStatusKey
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_RPDcentroidStatusKey
Definition: ZdcMonitorAlgorithm.h:215
ZdcMonitorAlgorithm::m_nZdcStatusBits
static const int m_nZdcStatusBits
Definition: ZdcMonitorAlgorithm.h:103
collisions
Definition: collisions.py:1
ZdcMonitorAlgorithm::m_energyCutForModuleFractMonitor
Gaudi::Property< float > m_energyCutForModuleFractMonitor
Definition: ZdcMonitorAlgorithm.h:65