ATLAS Offline Software
Loading...
Searching...
No Matches
LArRODMonAlg Class Reference

#include <LArRODMonAlg.h>

Inheritance diagram for LArRODMonAlg:

Public Types

enum class  Environment_t {
  user = 0 , online , tier0 , tier0Raw ,
  tier0ESD , AOD , altprod
}
 Specifies the processing environment. More...
enum class  DataType_t {
  userDefined = 0 , monteCarlo , collisions , cosmics ,
  heavyIonCollisions
}
 Specifies what type of input data is being monitored. More...

Public Member Functions

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

Public Attributes

 flags = initConfigFlags()
 Files
 HISTFileName
 enableLumiAccess
 useTrigger
 cfg = CaloRecoCfg(flags)
 aff_acc = LArRODMonConfig(flags)
 f = open("LArRODMon.pkl","wb")

Protected Member Functions

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

Protected Attributes

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

Private Types

enum  PARTITION {
  EMBC =0 , EMBA , EMECC , EMECA ,
  HECC , HECA , FCALC , FCALA ,
  N_PARTITIONS
}
typedef std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > MonVarVec_t
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

PARTITION getPartition (const HWIdentifier chid) const
const char * getPartitionName (const HWIdentifier chid) const
diff_t compareChannel (const LArRawChannel &rcDig, const LArRawChannel &rcBS) const
void detailedOutput (const LArRODMonAlg::diff_t &, const LArDigit &dig, const EventContext &ctx) const
void dumpCellInfo (const HWIdentifier chid, const int gain, const EventContext &ctx, const diff_t &comp) const
 Dump a cell's information and calculated energies into a txt file.
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

const LArOnlineIDm_LArOnlineIDHelper =nullptr
SG::ReadHandleKey< LArRawChannelContainerm_channelKey_fromBytestream {this,"LArRawChannelKey_fromBytestream","LArRawChannels","SG key of LArRawChannels produced by teh DSP"}
SG::ReadHandleKey< LArRawChannelContainerm_channelKey_fromDigits {this,"LArRawChannelKey_fromDigits","LArRawChannels_FromDigits","SG key of LArRawChannels produced offline"}
SG::ReadHandleKey< LArDigitContainerm_digitContainerKey {this,"LArDigitContainerKey","FREE","SG key of LArDigitContainer read from Bytestream"}
SG::ReadHandleKey< LArFebHeaderContainerm_headerContainerKey {this,"LArFebHeaderKey","LArFebHeader","SG key of LArFebHeader"}
SG::ReadCondHandleKey< ILArOFCm_keyOFC {this,"KeyOFC","LArOFC","SG key of LArOFC CDO"}
SG::ReadCondHandleKey< ILArShapem_keyShape {this,"KeyShape","LArShape","SG key of LArShape CDO"}
SG::ReadCondHandleKey< ILArHVScaleCorrm_keyHVScaleCorr {this,"KeyHVScaleCorr","LArHVScaleCorr","SG key of LArHVScaleCorr CDO"}
SG::ReadCondHandleKey< ILArPedestalm_keyPedestal {this,"LArPedestalKey","LArPedestal","SG key of LArPedestal CDO"}
SG::ReadCondHandleKey< LArADC2MeVm_adc2mevKey {this,"LArADC2MeVKey","LArADC2MeV","SG Key of the LArADC2MeV CDO"}
LArBadChannelMask m_bcMask
SG::ReadCondHandleKey< LArBadChannelContm_bcContKey {this, "BadChanKey", "LArBadChannel", "SG key for LArBadChan object"}
Gaudi::Property< std::vector< std::string > > m_problemsToMask {this,"ProblemsToMask",{}, "Bad-Channel categories to mask"}
SG::ReadCondHandleKey< CaloNoisem_noiseCDOKey {this,"CaloNoiseKey","totalNoise","SG Key of CaloNoise data object"}
SG::ReadCondHandleKey< LArOnOffIdMappingm_cablingKey {this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping CDO"}
SG::ReadDecorHandleKey< xAOD::EventInfom_eventInfoKey {this, "LArStatusFlag", "EventInfo.larFlags", "Key for EventInfo object"}
Gaudi::Property< std::string > m_MonGroupName {this, "MonGroup", "RODMon"}
Gaudi::Property< std::vector< std::string > > m_SubDetNames {this, "LArRODSubDetNames", {} }
Gaudi::Property< std::vector< std::string > > m_partitions {this, "LArRODPartitionNames", {} }
Gaudi::Property< std::vector< int > > m_Nslots {this, "LArRODNslots", {} }
Gaudi::Property< std::string > m_DigitsFileName {this, "DigitsFileName","digits.txt","Digits dump output filename"}
Gaudi::Property< std::string > m_EnergyFileName {this,"EnergyFileName","energy.txt"," Energies dump output filename"}
Gaudi::Property< std::string > m_AiFileName {this,"AiFileName","Calib_ai.dat","dump output filename"}
Gaudi::Property< std::string > m_DumpCellsFileName {this,"DumpCellsFileName","dumpCells.txt","Cells dump output filename"}
Gaudi::Property< bool > m_doDspTestDump {this, "DoDspTestDump", false, "dsp dump switch"}
Gaudi::Property< bool > m_doCellsDump {this, "DoCellsDump", false, "cell dump switch"}
Gaudi::Property< bool > m_doCheckSum {this, "DoCheckSum", true, "checksum test switch"}
Gaudi::Property< bool > m_doRodStatus {this, "DoRodStatus", true, "ROD status test switch"}
Gaudi::Property< bool > m_printEnergyErrors {this, "PrintEnergyErrors", true, "energy errors printing"}
Gaudi::Property< bool > m_removeNoiseBursts {this, "RemoveNoiseBursts", true, "removing events with noise bursts"}
Gaudi::Property< bool > m_skipKnownProblematicChannels {this, "SkipKnownProblematicChannels", false, "skipping known problems?"}
Gaudi::Property< bool > m_skipNullPed {this, "SkipNullPed", false, "skipping no pedestal channels ?"}
Gaudi::Property< bool > m_skipNullQT {this, "SkipNullQT", false, "skipping no quality channe4ls ?"}
Gaudi::Property< float > m_timeOffset {this, "TimeOffset", 0.}
Gaudi::Property< short > m_adc_th {this, "ADCthreshold", 50, "Minimal number of ADC amplitude among samples required to compare online/offline"}
Gaudi::Property< float > m_peakTime_cut {this, "peakTimeCut", 5., "Cut on abs(peak time) to compare online/offline (all quantities)"}
Gaudi::Property< std::vector< std::pair< int, int > > > m_E_precision
Gaudi::Property< std::vector< std::pair< int, int > > > m_T_precision
Gaudi::Property< std::vector< std::pair< int, int > > > m_Q_precision
const float m_BC =25000
std::map< std::string, int > m_histoGroups
Gaudi::Property< std::vector< std::string > > m_streams {this, "Streams", {} }
Gaudi::Property< unsigned > m_max_dump {this, "MaxEvDump", 0, "max number of channels for detailed log-output"}
std::atomic< unsigned > m_ndump {0}
std::ofstream m_fai ATLAS_THREAD_SAFE
std::ofstream m_fdig ATLAS_THREAD_SAFE
std::ofstream m_fen ATLAS_THREAD_SAFE
std::ofstream m_fdump ATLAS_THREAD_SAFE
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.
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default).
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default).
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Static Private Attributes

static constexpr auto m_PARTNAMES =std::to_array<const char*>({"EMBC","EMBA","EMECC","EMECA","HECC","HECA","FCalC","FCalA","UNKNOWN"})

Detailed Description

Definition at line 33 of file LArRODMonAlg.h.

Member Typedef Documentation

◆ MonVarVec_t

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

Definition at line 370 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 class 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 194 of file AthMonitorAlgorithm.h.

194 {
195 userDefined = 0,
196 monteCarlo,
197 collisions,
198 cosmics,
199 heavyIonCollisions,
200 };
AthConfigFlags cosmics(AthConfigFlags flags, str instanceName, str recoMode)

◆ Environment_t

enum class 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 175 of file AthMonitorAlgorithm.h.

175 {
176 user = 0,
177 online,
178 tier0,
179 tier0Raw,
180 tier0ESD,
181 AOD,
182 altprod,
183 };

◆ PARTITION

enum LArRODMonAlg::PARTITION
private
Enumerator
EMBC 
EMBA 
EMECC 
EMECA 
HECC 
HECA 
FCALC 
FCALA 
N_PARTITIONS 

Definition at line 53 of file LArRODMonAlg.h.

53{ EMBC=0,EMBA, EMECC, EMECA, HECC, HECA, FCALC, FCALA, N_PARTITIONS};

Constructor & Destructor Documentation

◆ ~LArRODMonAlg()

LArRODMonAlg::~LArRODMonAlg ( )
virtual

Default destructor.

Definition at line 33 of file LArRODMonAlg.cxx.

33{}

Member Function Documentation

◆ AthMonitorAlgorithm()

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

Constructor.

Definition at line 45 of file AthMonitorAlgorithm.cxx.

9:AthReentrantAlgorithm(name,pSvcLocator)
10 // Put this here rather than in the header to allow forward-declaring
11 // TrigDecisionTool.
12,m_trigDecTool{this, "TrigDecisionTool",""}
13,m_environment(Environment_t::user)
14,m_dataType(DataType_t::userDefined)
15,m_vTrigChainNames({})
16{}
An algorithm that can be simultaneously executed in multiple threads.

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality ( ) const
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.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

62{
63 return 0;
64}

◆ compareChannel()

LArRODMonAlg::diff_t LArRODMonAlg::compareChannel ( const LArRawChannel & rcDig,
const LArRawChannel & rcBS ) const
private

Definition at line 381 of file LArRODMonAlg.cxx.

382 {
383 diff_t result;
384 const HWIdentifier chid=rcDig.channelID();
385 const int slot_fD = m_LArOnlineIDHelper->slot(chid);
386 const int feedthrough_fD = m_LArOnlineIDHelper->feedthrough(chid);
387 const float timeOffline = rcDig.time() - m_timeOffset*m_BC;
388
389 const float& en_fB=rcBS.energy();
390 const float& en_fD=rcDig.energy();
391
392 ATH_MSG_VERBOSE(chid.getString()<<" | "<<timeOffline<<" "<<rcBS.time()<<" | "<<en_fB<<" "<<en_fD);
393
394 if (fabs(timeOffline) > m_peakTime_cut*1000.){
395 ATH_MSG_DEBUG( " timeOffline too large " << timeOffline );
396 return result;
397 }
398
399 const std::string & hg=getPartitionName(chid);
400 auto slot = Monitored::Scalar<int>("slot",slot_fD);
401 auto ft = Monitored::Scalar<int>("FT",feedthrough_fD);
402
403 auto pairValueCmp = [](const int& a, const std::pair<int,int>& b){return a<b.first;};
404 //Energy check:
405 //Find expected precision given the cell-energy:
406 auto e_Precision=std::upper_bound(m_E_precision.begin(),m_E_precision.end(),std::abs(en_fB),pairValueCmp);
407 const size_t energyrange=e_Precision-m_E_precision.begin();
408 auto erange = Monitored::Scalar<int>("Erange",energyrange);
409 auto DiffE = Monitored::Scalar<float>("Ediff",en_fD - en_fB);
410 fill(m_MonGroupName,DiffE,erange);
411
412 auto Eon = Monitored::Scalar<float>("Eon",en_fB);
413 auto Eoff = Monitored::Scalar<float>("Eoff",en_fD);
414 fill(m_tools[m_histoGroups.at(hg)],DiffE,erange,Eon,Eoff);
415
416 if (std::abs(en_fD-en_fB) > e_Precision->second) {
417 //Fill results object for error counting, and dumping (if needed)compRes.e_on!=compRes.e_off)
418 result.e_off=en_fD;
419 result.e_on=en_fB;
420 auto weight_e = Monitored::Scalar<float>("weight_e",1.);
421 fill(m_tools[m_histoGroups.at(hg)],slot,ft,weight_e);
422 }
423
424 const float q_fB=rcBS.quality();
425 const float q_fD=rcDig.quality();
426 const float t_fB=rcBS.time();
427
428 if ((rcDig.provenance() & 0x2000) == 0 || q_fD==0 || t_fB==0 || q_fB==0 || timeOffline==0) {
429 // Skip time/Quality comparison if
430 // * provenance bits indicate the LArRawChannel builder didn't calculate these quantities
431 // * the offline time is zero (may happen if the OFC amplitude < 0.1 )
432 // * online value are zero
433 // * offline quality is 0 (avoid div-by-zero later on)
434 ATH_MSG_VERBOSE("Skip time/Quality comparison, not computed either online or offline");
435 return result;
436 }
437
438 auto DiffT = Monitored::Scalar<float>("Tdiff",timeOffline - t_fB);
439 //Find expected precision given the cell-time:
440 auto t_Precision=std::upper_bound(m_T_precision.begin(),m_T_precision.end(),std::abs(t_fB),pairValueCmp);
441
442 auto Ton = Monitored::Scalar<float>("Ton",t_fB);
443 auto Toff = Monitored::Scalar<float>("Toff",timeOffline);
444 fill(m_tools[m_histoGroups.at(hg)],DiffT,Ton,Toff);
445 fill(m_MonGroupName,DiffT);
446 if (fabs(DiffT) > t_Precision->second) {
447 auto weight_t = Monitored::Scalar<float>("weight_t",1.);
448 fill(m_tools[m_histoGroups.at(hg)],slot,ft,weight_t);
449 result.t_on=t_fB;
450 result.t_off=timeOffline;
451 }
452
453
454 //Quality check:
455 float qdiff = 65535.0; // max possible quality
456 if (q_fD > 0.) qdiff = (q_fD - q_fB)/std::sqrt(q_fD);
457
458 //Find expected precision given the cell-quality:
459 auto q_Precision=std::upper_bound(m_Q_precision.begin(),m_Q_precision.end(),std::abs(q_fB),pairValueCmp);
460
461 auto DiffQ = Monitored::Scalar<float>("Qdiff", qdiff);
462 auto Qon = Monitored::Scalar<float>("Qon",q_fB);
463 auto Qoff = Monitored::Scalar<float>("Qoff",q_fD);
464 fill(m_tools[m_histoGroups.at(hg)],DiffQ,Qon,Qoff);
465 fill(m_MonGroupName,DiffQ);
466
467 if (fabs(DiffQ) > q_Precision->second) {
468 auto weight_q = Monitored::Scalar<float>("weight_q",1.);
469 fill(m_tools[m_histoGroups.at(hg)],slot,ft,weight_q);
470 result.q_on=q_fB;
471 result.q_off=q_fD;
472 }
473 return result;
474}
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_DEBUG(x)
static Double_t a
std::string getString() const
Provide a string form of the identifier - hexadecimal.
int feedthrough(const HWIdentifier id) const
Return the feedthrough of a hardware cell identifier : feedthrough = [0,31] Barrel - A/C side or H/...
int slot(const HWIdentifier id) const
Return the slot number of a hardware cell identifier: slot = [1,15] Slot-ID in top part of the crat...
Gaudi::Property< std::vector< std::pair< int, int > > > m_T_precision
Gaudi::Property< std::vector< std::pair< int, int > > > m_E_precision
Gaudi::Property< std::vector< std::pair< int, int > > > m_Q_precision
std::map< std::string, int > m_histoGroups
uint16_t provenance() const
int time() const
uint16_t quality() const
HWIdentifier channelID() const
int energy() const
Declare a monitored scalar variable.
xAOD::MissingETComponent_v1::Weight weight_t
Type for kinematic weight.
void fill(H5::Group &out_file, size_t iterations)

◆ 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 224 of file AthMonitorAlgorithm.h.

224{ return m_dataType; }
AthMonitorAlgorithm::DataType_t m_dataType
Instance of the DataType_t enum.

◆ 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 144 of file AthMonitorAlgorithm.cxx.

144 {
145 // convert the string to all lowercase
146 std::string lowerCaseStr = str;
147 std::transform(lowerCaseStr.begin(), lowerCaseStr.end(), lowerCaseStr.begin(), ::tolower);
148
149 // check if it matches one of the enum choices
150 if( lowerCaseStr == "userdefined" ) {
152 } else if( lowerCaseStr == "montecarlo" ) {
154 } else if( lowerCaseStr == "collisions" ) {
156 } else if( lowerCaseStr == "cosmics" ) {
157 return DataType_t::cosmics;
158 } else if( lowerCaseStr == "heavyioncollisions" ) {
160 } else { // otherwise, warn the user and return "userDefined"
161 ATH_MSG_WARNING("AthMonitorAlgorithm::dataTypeStringToEnum(): Unknown data type "
162 <<str<<", returning userDefined.");
164 }
165}
#define ATH_MSG_WARNING(x)
void tolower(std::string &s)

◆ declareGaudiProperty()

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 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

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 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detailedOutput()

void LArRODMonAlg::detailedOutput ( const LArRODMonAlg::diff_t & cmp,
const LArDigit & dig,
const EventContext & ctx ) const
private

Definition at line 476 of file LArRODMonAlg.cxx.

478 {
479
480
481 const HWIdentifier chid=dig.channelID();
482 const auto gain=dig.gain();
483
484 SG::ReadCondHandle<CaloNoise> noiseHdl{m_noiseCDOKey,ctx};
485 const CaloNoise *noisep = *noiseHdl;
486
487 SG::ReadCondHandle<ILArPedestal> pedestalHdl{m_keyPedestal, ctx};
488 const ILArPedestal* pedestals=*pedestalHdl;
489
490 SG::ReadCondHandle<ILArOFC> ofcHdl{m_keyOFC, ctx};
491 const ILArOFC* ofcs=*ofcHdl;
492 const ILArOFC::OFCRef_t& OFCa = ofcs->OFC_a(chid,gain);
493 const ILArOFC::OFCRef_t& OFCb = ofcs->OFC_b(chid,gain);
494 SG::ReadCondHandle<ILArShape> shapeHdl{m_keyShape, ctx};
495
496 const ILArShape* shapes=*shapeHdl;
497 const ILArShape::ShapeRef_t& shape = shapes->Shape(chid,gain);
498 const ILArShape::ShapeRef_t& shapeDer = shapes->ShapeDer(chid,gain);
499
500 SG::ReadCondHandle<ILArHVScaleCorr> hvScaleCorrHdl{m_keyHVScaleCorr, ctx};
501 const ILArHVScaleCorr* hvScaleCorrs=*hvScaleCorrHdl;
502
503 SG::ReadCondHandle<LArADC2MeV> adc2MeVHdl{m_adc2mevKey, ctx};
504 const LArADC2MeV* adc2mev=*adc2MeVHdl;
505 const auto& polynom_adc2mev=adc2mev->ADC2MEV(chid,gain);
506 const float escale = (polynom_adc2mev)[1];
507 float ramp0 = (polynom_adc2mev)[0];
508 SG::ReadCondHandle<LArOnOffIdMapping> cablingHdl{m_cablingKey, ctx};
509 const LArOnOffIdMapping* cabling=*cablingHdl;
510
511 const float hvscale = hvScaleCorrs->HVScaleCorr(chid);
512 const int channel=m_LArOnlineIDHelper->channel(chid);
513 const HWIdentifier febid=m_LArOnlineIDHelper->feb_Id(chid);
514 const std::vector<short>& samples=dig.samples();
515 if (gain == 0) ramp0 = 0.; // no ramp intercepts in HG
516 const float ped = pedestals->pedestal(chid,dig.gain());
517
518
519 //Log-file output if requested ...
520 if (m_ndump<m_max_dump || m_printEnergyErrors) {
521 ATH_MSG_WARNING("Channel " << m_LArOnlineIDHelper->channel_name(chid) << ", gain " << gain
522 <<", run " << ctx.eventID().run_number() << ", evt " << ctx.eventID().event_number());
523 if (cmp.e_on!=cmp.e_off) {
524 ATH_MSG_WARNING("DSP Energy Error:");
525 ATH_MSG_WARNING( " Eonl = " << cmp.e_on << " , Eoff = " << cmp.e_off
526 << " , Eoff - Eonl = " << cmp.e_off-cmp.e_on);
527 }
528 else {
529 ATH_MSG_WARNING("Eonl=Eofl="<< cmp.e_on);
530 }
531 if(cmp.t_off!=cmp.t_on ) {
532 ATH_MSG_WARNING( "DSP Time Error:");
533 ATH_MSG_WARNING( " Tonl = " << cmp.t_on << " , Toff = " << cmp.t_off
534 << " , Toff - Tonl = " << cmp.t_off - cmp.t_on);
535 }
536 if (cmp.q_off!=cmp.q_on) {
537 ATH_MSG_WARNING( "DSP Quality Error");
538 ATH_MSG_WARNING( " Qonl = " << cmp.q_on << " , Qoff = " << cmp.q_off
539 << " (Qoff - Qnl)/sqrt(Qoff) = " << (cmp.q_off - cmp.q_on)/std::sqrt(cmp.q_off));
540 }
541 }
542 if (m_ndump<m_max_dump) {
543 std::string output;
544 output="Digits : ";
545 for (const short s : samples) {output+=std::to_string(s)+ " ";}
546 ATH_MSG_INFO(output);
547
548 output="OFCa : ";
549 for (const auto o : OFCa) {output+=std::to_string(o)+" ";}
550 ATH_MSG_INFO(output);
551
552 output="OFCb : ";
553 for (const auto o : OFCb) {output+=std::to_string(o)+" ";}
554 ATH_MSG_INFO(output);
555
556 output="Shape : ";
557 for (const auto s : shape) {output+=std::to_string(s)+" ";}
558 ATH_MSG_INFO(output);
559
560 output="ShapeDer : ";
561 for (const auto s : shapeDer) {output+=std::to_string(s)+" ";}
562 ATH_MSG_INFO( output );
563
564 ATH_MSG_INFO( "Escale: "<<escale<<" intercept: "<<ramp0<<" pedestal: "<<ped<<" gain: "<<dig.gain() );
565 const Identifier cellid=cabling->cnvToIdentifier(chid);
566 const float noise=noisep->getNoise(cellid,gain);
567 ATH_MSG_INFO( "Noise: "<<noise);
568 ATH_MSG_INFO( "HVScaleCorr: "<<hvscale);
569 double emon=0.;
570 const unsigned nOFCSamp=std::min(samples.size(),OFCa.size());
571 for (unsigned k=0; k<nOFCSamp; ++k) emon += (samples.at(k)-ped)*OFCa.at(k);
572 emon *= escale;
573 emon += ramp0;
574 ATH_MSG_INFO( "intercept + Escale*Sum[(sample-ped)*OFCa] "<<emon);
575 }//end log-file dump
576
577 if(m_doCellsDump) {
578 float sumai = 0.;
579 for (const float a : OFCa) {sumai += a;}
580 float pedplusoffset=0;
581 if (escale*sumai != 0) pedplusoffset = ped - ramp0/(escale*sumai);
582 else pedplusoffset = 0;
583 const float inv_Escale = 1. / escale;
584
585 m_fai << channel<<"\t"<< ped<<"\t"<< pedplusoffset<<"\t"
586 << OFCa[0]*escale<<"\t"<< OFCa[1]*escale<<"\t"<< OFCa[2]*escale<<"\t"<< OFCa[3]*escale<<"\t"<< OFCa[4]*escale<<"\t"
587 << OFCb[0]*escale<<"\t"<< OFCb[1]*escale<<"\t"<< OFCb[2]*escale<<"\t"<< OFCb[3]*escale<<"\t"<< OFCb[4]*escale<<"\t"
588 << shape[0]*inv_Escale<<"\t"<< shape[1]*inv_Escale<<"\t"<< shape[2]*inv_Escale<<"\t"<< shape[3]*inv_Escale<<"\t"<< shape[4]*inv_Escale<<"\t"
589 << shapeDer[0]*inv_Escale<<"\t"<< shapeDer[1]*inv_Escale<<"\t"<< shapeDer[2]*inv_Escale<<"\t"<< shape[3]*inv_Escale<<"\t"<< shapeDer[4]*inv_Escale << std::endl;
590
591 // Dumping file with offline energy and online energ
592 m_fen << m_ndump << " " << cmp.e_off << " " << cmp.e_on ;
593 m_fen << " // FEB " << febid.get_identifier32().get_compact() << " ( channel " << channel << " ), event " << ctx.eventID().event_number() << std::endl;
594
595 // Dumping file with digits
596 m_fdig << channel << " ";
597 for (const short d : samples) {
598 m_fdig << d << " ";
599 }
600 m_fdig << " // FEB " << febid.get_identifier32().get_compact() << " ( channel " << channel << " ), event " << ctx.eventID().event_number() << std::endl;
601 } //end if m_doCellsDump
602 return;
603}
#define ATH_MSG_INFO(x)
float getNoise(const IdentifierHash h, const int gain) const
Accessor by IdentifierHash and gain.
Definition CaloNoise.h:35
virtual const float & HVScaleCorr(const HWIdentifier &id) const =0
virtual OFCRef_t OFC_b(const HWIdentifier &id, int gain, int tbin=0) const =0
virtual OFCRef_t OFC_a(const HWIdentifier &id, int gain, int tbin=0) const =0
access to OFCs by online ID, gain, and tbin (!=0 for testbeam)
LArVectorProxy OFCRef_t
This class defines the interface for accessing Optimal Filtering coefficients for each channel provid...
Definition ILArOFC.h:26
virtual float pedestal(const HWIdentifier &id, int gain) const =0
LArVectorProxy ShapeRef_t
This class defines the interface for accessing Shape (Nsample variable, Dt = 25 ns fixed) @stereotype...
Definition ILArShape.h:26
virtual ShapeRef_t Shape(const HWIdentifier &id, int gain, int tbin=0, int mode=0) const =0
virtual ShapeRef_t ShapeDer(const HWIdentifier &id, int gain, int tbin=0, int mode=0) const =0
value_type get_compact() const
Get the compact id.
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
const LArVectorProxy ADC2MEV(const HWIdentifier &id, int gain) const
Definition LArADC2MeV.h:32
CaloGain::CaloGain gain() const
Definition LArDigit.h:72
const std::vector< short > & samples() const
Definition LArDigit.h:78
const HWIdentifier & channelID() const
Definition LArDigit.h:69
int channel(const HWIdentifier id) const
Return the channel number of a hardware cell identifier channel = [0,127] in all FEB.
std::string channel_name(const HWIdentifier id) const
Return a string corresponding to a feedthrough name given an identifier.
HWIdentifier feb_Id(int barrel_ec, int pos_neg, int feedthrough, int slot) const
Create feb_Id from fields.
const LArOnlineID * m_LArOnlineIDHelper
SG::ReadCondHandleKey< LArADC2MeV > m_adc2mevKey
SG::ReadCondHandleKey< ILArOFC > m_keyOFC
SG::ReadCondHandleKey< ILArShape > m_keyShape
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
std::atomic< unsigned > m_ndump
SG::ReadCondHandleKey< ILArHVScaleCorr > m_keyHVScaleCorr
output
Definition merge.py:16
cmp(x, y)
Definition EI_Lib.py:6

◆ 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.

◆ dumpCellInfo()

void LArRODMonAlg::dumpCellInfo ( const HWIdentifier chid,
const int gain,
const EventContext & ctx,
const diff_t & comp ) const
private

Dump a cell's information and calculated energies into a txt file.

Definition at line 605 of file LArRODMonAlg.cxx.

608 {
609
610 // Dumping cell information in a text file so that it can be compared to unhappy channels lists for instance ...
611
612 const int barrel_ec=m_LArOnlineIDHelper->barrel_ec(chid);
613 const int posneg=m_LArOnlineIDHelper->pos_neg(chid);
614 const int slot = m_LArOnlineIDHelper->slot(chid);
615 const int FT = m_LArOnlineIDHelper->feedthrough(chid);
616 const int channel = m_LArOnlineIDHelper->channel(chid);
617 const HWIdentifier febid= m_LArOnlineIDHelper->feb_Id(chid);
618 m_fdump << "0x" << std::hex << std::setw(8)<<febid.get_identifier32().get_compact() << " " << std::dec << std::setw(3) << std::right << channel << " 0x" << std::hex << std::setw(8)<<chid.get_identifier32().get_compact()
619 <<std::dec << std::setw(3) << std::right << slot << std::setw(3) << std::right << FT << std::setw(3) << std::right << barrel_ec << std::setw(3) << std::right<< posneg << std::setw(6) << std::right << getPartitionName(chid)
620 << " " << gain << " " << " " << cmp.e_off << " "<< cmp.e_on << " "<<cmp.t_off << " "<<cmp.t_on <<" "<<cmp.q_off << " "<<cmp.q_on <<ctx.eventID().event_number()<<std::endl;
621 return;
622}
int barrel_ec(const HWIdentifier id) const
Return the position barrel or endcap of a hardware cell identifier: barrel_ec = [0,...
int pos_neg(const HWIdentifier id) const
Return the side of a hardware cell identifier pos_neg = [0,1] positive-side or negative-side Barrel...

◆ 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 208 of file AthMonitorAlgorithm.h.

208{ return m_environment; }
AthMonitorAlgorithm::Environment_t m_environment
Instance of the Environment_t enum.

◆ 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 116 of file AthMonitorAlgorithm.cxx.

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

◆ evtStore()

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.

◆ 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 77 of file AthMonitorAlgorithm.cxx.

77 {
78
79 // Checks that all of the DQ filters are passed. If any one of the filters
80 // fails, return SUCCESS code and do not fill the histograms with the event.
81 for ( const auto& filterItr : m_DQFilterTools ) {
82 if (!filterItr->accept(ctx)) {
83 ATH_MSG_DEBUG("Event rejected due to filter tool.");
84 return StatusCode::SUCCESS;
85 }
86 }
87
88 // Trigger: If there is a decision tool and the chains fail, skip the event.
90 ATH_MSG_DEBUG("Event rejected due to trigger filter.");
91 return StatusCode::SUCCESS;
92 }
93
94 ATH_MSG_DEBUG("Event accepted!");
95 return fillHistograms(ctx);
96}
virtual StatusCode fillHistograms(const EventContext &ctx) const =0
adds event to the monitoring histograms
bool trigChainsArePassed(const std::vector< std::string > &vTrigNames) const
Check whether triggers are passed.
std::vector< std::string > m_vTrigChainNames
Vector of trigger chain names parsed from trigger chain string.
PublicToolHandle< Trig::TrigDecisionTool > m_trigDecTool
Tool to tell whether a specific trigger is passed.
ToolHandleArray< IDQFilterTool > m_DQFilterTools
Array of Data Quality filter tools.

◆ 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 ( ) const
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.

88{
89 // If we didn't find any symlinks to add, just return the collection
90 // from the base class. Otherwise, return the extended collection.
91 if (!m_extendedExtraObjects.empty()) {
93 }
95}
An algorithm that can be simultaneously executed in multiple threads.

◆ fillHistograms()

StatusCode LArRODMonAlg::fillHistograms ( const EventContext & ctx) const
finaloverridevirtual

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 114 of file LArRODMonAlg.cxx.

114 {
115 ATH_MSG_VERBOSE( "In LArRODMonAlg::fillHistograms()");
116
117 //monitored variables
118 auto weight_e = Monitored::Scalar<float>("weight_e",1.);
119 auto weight_q = Monitored::Scalar<float>("weight_q",1.);
120 auto weight_t = Monitored::Scalar<float>("weight_t",1.);
121 auto numE = Monitored::Scalar<int>("numE",1.);
122 auto numQ = Monitored::Scalar<int>("numQ",1.);
123 auto numT = Monitored::Scalar<int>("numT",1.);
124 auto gain = Monitored::Scalar<int>("gain",-1);
125 auto partition = Monitored::Scalar<int>("partition",-1);
126 auto partitionI = Monitored::Scalar<int>("partitionI",-1);
127 auto lb = Monitored::Scalar<int>("LBN",0);
128 auto sweetc = Monitored::Scalar<float>("Sweetc",1.);
129
130 SG::ReadHandle<xAOD::EventInfo> thisEventInfo{GetEventInfo(ctx)};
131
132 SG::ReadCondHandle<ILArPedestal> pedestalHdl{m_keyPedestal, ctx};
133 const ILArPedestal* pedestals=*pedestalHdl;
134
135 //retrieve BadChannel info:
136 SG::ReadCondHandle<LArBadChannelCont> bcContHdl{m_bcContKey,ctx};
137 const LArBadChannelCont* bcCont{*bcContHdl};
138
139 bool isEventFlaggedByLArNoisyROAlg = false; // keep default as false
140 bool isEventFlaggedByLArNoisyROAlgInTimeW = false; // keep deault as false
141
142 if ( thisEventInfo->isEventFlagBitSet(xAOD::EventInfo::LAr,0) ) {
143 isEventFlaggedByLArNoisyROAlg = true;
144 ATH_MSG_DEBUG( "Event flagged as Noisy" );
145 }
146
147 if ( thisEventInfo->isEventFlagBitSet(xAOD::EventInfo::LAr,3) ) {
148 isEventFlaggedByLArNoisyROAlgInTimeW = true;
149 ATH_MSG_DEBUG( " !!! Noisy event found by LArNoisyROAlg in Time window of 500ms!!!" );
150 }
151
152 // Noise bursts cleaning (LArNoisyRO_Std or TimeWindowVeto) added by B.Trocme - 19/7/12
153 if (m_removeNoiseBursts && (isEventFlaggedByLArNoisyROAlg || isEventFlaggedByLArNoisyROAlgInTimeW)) return StatusCode::SUCCESS;
154
155 // Retrieve stream info
156 int nStreams = m_streams.size();
157 // if ((nStreams == 1 && m_streams[0] == "all") || nStreams <= 0) selectstreams = false;
158
159 lb = thisEventInfo->lumiBlock();
160
161 //Fixme: Use LArTrigStreamMatching also here.
162 const int streamsize = nStreams + 1;
163 std::vector<int> hasStream(streamsize,0);
164 // for (int str = 0; str < nStreams + 1; str++) hasStream[str] = 0;
165
166 bool hasstrlist = false;
167 const std::vector< xAOD::EventInfo::StreamTag >& evtStreamTags=thisEventInfo->streamTags();
168 for (const auto& evtStreamTag : evtStreamTags) {
169 std::vector<std::string>::const_iterator evtStreamTagIt=std::find(m_streams.begin(),m_streams.end(),evtStreamTag.name());
170 if (evtStreamTagIt!=m_streams.end()) {
171 const unsigned str=evtStreamTagIt-m_streams.begin();
172 ATH_MSG_VERBOSE( "Keeping Stream Tag: " << evtStreamTag.type() << "_" << evtStreamTag.name());
173 hasStream[str] = 1;
174 hasstrlist = true;
175 }
176 }
177 if (! hasstrlist) hasStream[nStreams] = 1;
178
179
180 SG::ReadHandle<LArRawChannelContainer> rawColl_fromDigits(m_channelKey_fromDigits, ctx);
181
182 SG::ReadHandle<LArRawChannelContainer> rawColl_fromBytestream(m_channelKey_fromBytestream, ctx);
183
184 SG::ReadHandle<LArDigitContainer> pLArDigitContainer(m_digitContainerKey, ctx);
185
186 std::set<HWIdentifier> ignoreFEBs;
187
188 if (m_doCheckSum || m_doRodStatus) {
189 const LArFebHeaderContainer* febCont = SG::get(m_headerContainerKey, ctx);
190 if (!febCont) {
191 ATH_MSG_WARNING( "No LArFEB container found in TDS" );
192 } else {
193 for (const auto* febH : *febCont) {
194 if (((m_doCheckSum && febH->ChecksumVerification()==false)) ||
195 (m_doRodStatus && febH->RodStatus()!=0))
196 ignoreFEBs.insert(febH->FEBId());
197 }
198 }
199 ATH_MSG_DEBUG("Found " << ignoreFEBs.size() << " FEBs with checksum errors or statatus errors. Will ignore these FEBs.");
200 }
201
202 std::vector<ERRCOUNTER> errcounters(N_PARTITIONS);
203 ERRCOUNTER allEC;
204
205 std::vector<unsigned> errsPerFEB;
206 errsPerFEB.resize(m_LArOnlineIDHelper->febHashMax(),0);
207
208 const bool ignoreFebs=(ignoreFEBs.size()>0);
209 std::set<HWIdentifier>::const_iterator ignoreFebsEnd=ignoreFEBs.end();
210
211 unsigned count_gain[(int)CaloGain::LARNGAIN] = {0};
212
213 //Build an association of channels in the two LArRawChannelContainers.
214 //The LArRawChannelContainers are unordered collections of LArRawChannels.
215 //But we know that they have the same order because they were built from the same source (namely the LArDigits and RawChannels in the Bytestream)
216 //and we know that the LArRawChannels built offline are a subset of the LArRawChannelContainers read from Bytestream.
217 //Therfore we can search much more efficiently
218 LArRawChannelContainer::const_iterator rcDigIt=rawColl_fromDigits->begin();
219 LArRawChannelContainer::const_iterator rcDigIt_e=rawColl_fromDigits->end();
220 LArRawChannelContainer::const_iterator rcBSIt=rawColl_fromBytestream->begin();
221 LArRawChannelContainer::const_iterator rcBSIt_e=rawColl_fromBytestream->end();
222
223 LArDigitContainer::const_iterator digIt=pLArDigitContainer->begin();
224 LArDigitContainer::const_iterator digIt_e=pLArDigitContainer->end();
225
226
227 //Loop over indices in LArRawChannelContainer built offline (the small one)
228 ATH_MSG_DEBUG( "Entering the LArRawChannel loop." );
229
230 for (;rcDigIt!=rcDigIt_e;++rcDigIt) {
231 const HWIdentifier idDig=rcDigIt->hardwareID();
232 const HWIdentifier febId=m_LArOnlineIDHelper->feb_Id(idDig);
233 // Check if this FEB should be ignored
234 if (ignoreFebs) {
235 if (ignoreFEBs.find(febId)!=ignoreFebsEnd) continue;
236 }
237 //Check if this is a bad channel
238 if (m_skipKnownProblematicChannels && m_bcMask.cellShouldBeMasked(bcCont,idDig)) continue;
239
240 const CaloGain::CaloGain gain = rcDigIt->gain();
241 if ((gain >= ERRCOUNTER::N) or (gain < 0)){
242 ATH_MSG_WARNING( std::format("gain {} is out of range for the ERRCOUNTER array size, {}",
243 static_cast<std::underlying_type_t<CaloGain::CaloGain>>(gain), ERRCOUNTER::N));
244 return StatusCode::FAILURE;
245 }
246 //Check pedestal if needed
247 if (m_skipNullPed) {
248 const float ped = pedestals->pedestal(idDig,gain);
249 if(ped <= (1.0+LArElecCalib::ERRORCODE)) continue;
250 }
251
252 //Now look for corresponding channel in the LArRawChannelContainer read from Bytestream (the big one)
253 LArRawChannelContainer::const_iterator currIt=rcBSIt; //Remember current position in container
254 for (;rcBSIt!=rcBSIt_e && rcBSIt->hardwareID() != idDig; ++rcBSIt);
255 if (rcBSIt==rcBSIt_e) {
256 ATH_MSG_WARNING( "LArDigitContainer not in the expected order. Change of LArByteStream format?" );
257 //Wrap-around
258 for (rcBSIt=rawColl_fromBytestream->begin();rcBSIt!=currIt && rcBSIt->hardwareID() != idDig; ++rcBSIt);
259 if (rcBSIt==currIt) {
260 ATH_MSG_ERROR( "Channel " << m_LArOnlineIDHelper->channel_name(idDig) << " not found." );
261 return StatusCode::FAILURE;
262 }
263 }
264
265 //Now look for corresponding channel in the LArDigitContainer read from Bytestream
266 //Should be in almost in sync with the RawChannelContainer we are iterating over,
267 //but contains disconnected channels that are not part of the LArRawChannelContainer
268 LArDigitContainer::const_iterator currDigIt=digIt; //Remember current position in digit-container
269 for (;digIt!=digIt_e && (*digIt)->hardwareID() != idDig; ++digIt);
270 if (digIt==digIt_e) {
271 ATH_MSG_WARNING( "LArRawChannelContainer not in the expected order. Change of LArRawChannelBuilder behavior?" );
272 //Wrap-around
273 for (digIt=pLArDigitContainer->begin();digIt!=currDigIt && (*digIt)->hardwareID() != idDig; ++digIt);
274 if (digIt==currDigIt) {
275 ATH_MSG_ERROR( "Channel " << m_LArOnlineIDHelper->channel_name(idDig) << " not found in LArDigitContainer." );
276 return StatusCode::FAILURE;
277 }
278 }
279 const LArDigit* dig=*digIt;
280 const std::vector<short>& samples=dig->samples();
281 const auto [minSamplesIt, maxSamplesIt] = std::minmax_element(samples.begin(),samples.end());
282 if (m_adc_th<=0 || (*maxSamplesIt-*minSamplesIt)>m_adc_th) {
283 const diff_t compRes=compareChannel(*rcDigIt,*rcBSIt);
284 if (compRes.e_on!=compRes.e_off || compRes.t_on!=compRes.t_off || compRes.q_on!=compRes.q_off) {
285 if (m_ndump<m_max_dump || m_printEnergyErrors || m_doCellsDump || m_doDspTestDump) {
286 detailedOutput(compRes,*dig,ctx);
287 ++m_ndump;
288 }
289 if (m_doCellsDump) {
290 dumpCellInfo(idDig,gain,ctx,compRes);
291 }
292 }
293 //Count errors:
294 const PARTITION p=getPartition(idDig);
295 if (compRes.e_on!=compRes.e_off) {
296 ++(errcounters[p].errors_E[gain]);
297 ++(allEC.errors_E[gain]);
298
299 IdentifierHash febHash=m_LArOnlineIDHelper->feb_Hash(febId);
300 ++(errsPerFEB[febHash]);
301 }
302 if (compRes.t_on!=compRes.t_off) {//Time-error
303 ++(errcounters[p].errors_T[gain]);
304 ++(allEC.errors_T[gain]);
305 }
306
307 if (compRes.q_on!=compRes.q_off) {//Quality-error
308 ++(errcounters[p].errors_Q[gain]);
309 ++(allEC.errors_Q[gain]);
310 }
311
312 }
313 else {
314 ATH_MSG_DEBUG( "Samples : "<< *maxSamplesIt << " " << *minSamplesIt );
315 }
316 }//end loop over rawColl_fromDigits
317
318 ATH_MSG_DEBUG( "End of rawChannels loop" );
319
320 for (unsigned i=0;i<m_LArOnlineIDHelper->febHashMax();++i) {
321 const HWIdentifier febid=m_LArOnlineIDHelper->feb_Id(i);
322 const std::string pn=getPartitionName(febid);
323 sweetc = errsPerFEB[i];
324 fill(m_tools[m_histoGroups.at(pn)],sweetc);
325 }
326
327
328 ATH_MSG_VERBOSE( "*Number of errors in Energy Computation : " );
329 ATH_MSG_VERBOSE( "* Low Gain : " << allEC.errors_E[2] << " / " << count_gain[CaloGain::LARLOWGAIN] );
330 ATH_MSG_VERBOSE( "* Medium Gain : " << allEC.errors_E[1] << " / " << count_gain[CaloGain::LARMEDIUMGAIN] );
331 ATH_MSG_VERBOSE( "* High Gain : " << allEC.errors_E[0] << " / " << count_gain[CaloGain::LARHIGHGAIN] );
332 ATH_MSG_VERBOSE( "*Number of errors in Time Computation : " );
333 ATH_MSG_VERBOSE( "* Low Gain : " << allEC.errors_T[2] << " / " << count_gain[CaloGain::LARLOWGAIN] );
334 ATH_MSG_VERBOSE( "* Medium Gain : " << allEC.errors_T[1] << " / " << count_gain[CaloGain::LARMEDIUMGAIN] );
335 ATH_MSG_VERBOSE( "* High Gain : " << allEC.errors_T[0] << " / " << count_gain[CaloGain::LARHIGHGAIN] );
336 ATH_MSG_VERBOSE( "*Number of errors in Quality Computation : " );
337 ATH_MSG_VERBOSE( "* Low Gain : " << allEC.errors_Q[2] << " / " << count_gain[CaloGain::LARLOWGAIN] );
338 ATH_MSG_VERBOSE( "* Medium Gain : " << allEC.errors_Q[1] << " / " << count_gain[CaloGain::LARMEDIUMGAIN] );
339 ATH_MSG_VERBOSE( "* High Gain : " << allEC.errors_Q[0] << " / " << count_gain[CaloGain::LARHIGHGAIN] );
340
341 for (unsigned p=0;p<N_PARTITIONS;++p) {
342 unsigned allErrsPartE=0;
343 unsigned allErrsPartT=0;
344 unsigned allErrsPartQ=0;
345 partition = p;
346 for (unsigned g=0;g<3;++g) {
347 gain = g;
348 weight_e = (float)errcounters[p].errors_E[g];
349 weight_q = (float)errcounters[p].errors_Q[g];
350 weight_t = (float)errcounters[p].errors_T[g];
351 fill(m_MonGroupName, partition, gain, weight_e, weight_q, weight_t);
352
353 allErrsPartE+=errcounters[p].errors_E[g];
354 allErrsPartT+=errcounters[p].errors_T[g];
355 allErrsPartQ+=errcounters[p].errors_Q[g];
356 }
357 partitionI = p;
358 numE = (float)allErrsPartE;
359 numT = (float)allErrsPartT;
360 numQ = (float)allErrsPartQ;
361 fill(m_MonGroupName, lb, partitionI, numE, numT, numQ);
362 }//end loop over partitions
363
364 /*
365 for(int str = 0; str < nStreams + 1; str++) {
366 if (hasStream[str] == 1) {
367
368 m_hEErrors_LB_stream->Fill((float)m_curr_lb,(float)str,(float)allErr_E);
369 m_hTErrors_LB_stream->Fill((float)m_curr_lb,(float)str,(float)allErr_T);
370 m_hQErrors_LB_stream->Fill((float)m_curr_lb,(float)str,(float)allErr_Q);
371 FIXME
372 }
373 }
374 */
375
376 return StatusCode::SUCCESS;
377}
#define ATH_MSG_ERROR(x)
LArBadXCont< LArBadChannel > LArBadChannelCont
DataModel_detail::const_iterator< DataVector > const_iterator
Definition DataVector.h:838
bool cellShouldBeMasked(const LArBadChannelCont *bcCont, const HWIdentifier &hardwareId) const
size_type febHashMax() const
define feb hash tables max size
IdentifierHash feb_Hash(HWIdentifier febId) const
Create feb hash identifiers from feb identifiers.
static constexpr int N
const char * getPartitionName(const HWIdentifier chid) const
void dumpCellInfo(const HWIdentifier chid, const int gain, const EventContext &ctx, const diff_t &comp) const
Dump a cell's information and calculated energies into a txt file.
Gaudi::Property< std::vector< std::string > > m_streams
PARTITION getPartition(const HWIdentifier chid) const
diff_t compareChannel(const LArRawChannel &rcDig, const LArRawChannel &rcBS) const
SG::ReadCondHandleKey< LArBadChannelCont > m_bcContKey
LArBadChannelMask m_bcMask
void detailedOutput(const LArRODMonAlg::diff_t &, const LArDigit &dig, const EventContext &ctx) const
@ LAr
The LAr calorimeter.
int lb
Definition globals.cxx:23
@ LARMEDIUMGAIN
Definition CaloGain.h:18
@ LARLOWGAIN
Definition CaloGain.h:18
@ LARNGAIN
Definition CaloGain.h:19
@ LARHIGHGAIN
Definition CaloGain.h:18
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.

◆ 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 }
virtual bool filterPassed(const EventContext &ctx) const

◆ finalize()

StatusCode LArRODMonAlg::finalize ( )
finaloverridevirtual

Definition at line 631 of file LArRODMonAlg.cxx.

631 {
632 m_fai.close();
633 m_fdig.close();
634 m_fen.close();
635 m_fdump.close();
636 return StatusCode::SUCCESS;
637}

◆ 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 111 of file AthMonitorAlgorithm.cxx.

111 {
112 return SG::ReadHandle<xAOD::EventInfo>(m_EventInfoKey, ctx);
113}
SG::ReadHandleKey< xAOD::EventInfo > m_EventInfoKey
Key for retrieving EventInfo from StoreGate.

◆ 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 168 of file AthMonitorAlgorithm.cxx.

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

◆ getPartition()

LArRODMonAlg::PARTITION LArRODMonAlg::getPartition ( const HWIdentifier chid) const
inlineprivate

Definition at line 189 of file LArRODMonAlg.h.

189 {
190 const int side=m_LArOnlineIDHelper->pos_neg(chid);
191 if (m_LArOnlineIDHelper->isEMBchannel(chid)) {
192 if (side==0)
193 return EMBC;
194 else
195 return EMBA;
196 }
197 if (m_LArOnlineIDHelper->isEMECchannel(chid)) {
198 if (side==0)
199 return EMECC;
200 else
201 return EMECA;
202 }
204 if (side==0)
205 return HECC;
206 else
207 return HECA;
208 }
210 if (side==0)
211 return FCALC;
212 else
213 return FCALA;
214 }
215
216 ATH_MSG_FATAL(std::format("Channel {:#x} neither EMB nor EMEC nor HEC nor FCAL???",chid.get_identifier32().get_compact()));
217 return N_PARTITIONS;
218}
bool isEMBchannel(const HWIdentifier id) const
bool isFCALchannel(const HWIdentifier id) const
bool isHECchannel(const HWIdentifier id) const override final
bool isEMECchannel(const HWIdentifier id) const override final

◆ getPartitionName()

const char * LArRODMonAlg::getPartitionName ( const HWIdentifier chid) const
inlineprivate

Definition at line 221 of file LArRODMonAlg.h.

221 {
222 return m_PARTNAMES[getPartition(chid)];
223}

◆ 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 198 of file AthMonitorAlgorithm.cxx.

198 {
199 return m_trigDecTool;
200}

◆ initialize()

StatusCode LArRODMonAlg::initialize ( )
finaloverridevirtual

initialize

Returns
StatusCode

Reimplemented from AthMonitorAlgorithm.

Definition at line 37 of file LArRODMonAlg.cxx.

37 {
38 ATH_MSG_VERBOSE( "In LArRODMonAlg::initialize() ");
39
40 ATH_CHECK(detStore()->retrieve(m_LArOnlineIDHelper, "LArOnlineID"));
41
42 ATH_CHECK(m_channelKey_fromDigits.initialize());
43 ATH_CHECK(m_channelKey_fromBytestream.initialize());
44 ATH_CHECK(m_digitContainerKey.initialize());
45 ATH_CHECK(m_headerContainerKey.initialize());
46
47 ATH_CHECK(m_keyOFC.initialize());
48 ATH_CHECK(m_keyShape.initialize());
49 ATH_CHECK(m_keyHVScaleCorr.initialize());
50 ATH_CHECK(m_keyPedestal.initialize());
51
52 ATH_CHECK(m_adc2mevKey.initialize());
53
54 ATH_CHECK(m_noiseCDOKey.initialize());
55 ATH_CHECK(m_cablingKey.initialize());
56
57 ATH_CHECK(m_bcContKey.initialize());
58 ATH_CHECK(m_bcMask.buildBitMask(m_problemsToMask,msg()));
59
60 ATH_CHECK( m_eventInfoKey.initialize() );
61
62
63 //Check properties ...
64 if (Gaudi::Concurrency::ConcurrencyFlags::numThreads() > 1) { //MT environment
65 if (m_doDspTestDump) {
66 ATH_MSG_ERROR("Property 'DoDspTestDump' must not be true if nThreads>1");
67 return StatusCode::FAILURE;
68 }
69 if (m_doCellsDump) {
70 ATH_MSG_ERROR("Property 'DoCellsDump' must not be true if nThreads>1");
71 return StatusCode::FAILURE;
72 }
73 }
74
75
76 auto pairCmp = [](const std::pair<int,int>& p1, const std::pair<int,int>& p2) {return (p1.first<p2.first);};
77 if (!std::is_sorted(m_E_precision.begin(),m_E_precision.end(),pairCmp)) {
78 ATH_MSG_ERROR("Configuration problem: Energy ranges not in ascending order!");
79 return StatusCode::FAILURE;
80 }
81
82 if (!std::is_sorted(m_T_precision.begin(),m_T_precision.end(),pairCmp)) {
83 ATH_MSG_ERROR("Configuration problem: Time ranges not in ascending order!");
84 return StatusCode::FAILURE;
85 }
86
87 if (!std::is_sorted(m_Q_precision.begin(),m_Q_precision.end(),pairCmp)) {
88 ATH_MSG_ERROR("Configuration problem: Quality ranges not in ascending order!");
89 return StatusCode::FAILURE;
90 }
91
92
93 // Open output files for DspTest
94 if (m_doDspTestDump) {
95 m_fai.open(m_AiFileName,std::ios::trunc);
96 m_fdig.open(m_DigitsFileName,std::ios::trunc);
97 m_fen.open(m_EnergyFileName,std::ios::trunc);
98 }
99
100 // Output file
101 if (m_doCellsDump) {
102 m_fdump.open(m_DumpCellsFileName);
103 m_fdump<<"febid channel CellID slot FT barrel_ec posneg partition E_off E_on T_off T_on Q_off Q_on event "<<std::endl;
104 }
105
106
107 ATH_MSG_DEBUG("Setting an offset time of " << m_timeOffset << " BC, i.e. " << m_timeOffset*m_BC << " ps");
108
109 m_histoGroups = Monitored::buildToolMap<int>(m_tools,m_MonGroupName, m_partitions);
110
112}
#define ATH_CHECK
Evaluate an expression and check for errors.
const ServiceHandle< StoreGateSvc > & detStore() const
virtual StatusCode initialize() override
initialize
StatusCode buildBitMask(const std::vector< std::string > &problemsToMask, MsgStream &msg)
StatusCode initialize(bool used=true)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
std::vector< V > buildToolMap(const ToolHandleArray< GenericMonitoringTool > &tools, const std::string &baseName, int nHist)
Builds an array of indices (base case).
MsgStream & msg
Definition testRead.cxx:32

◆ 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()

◆ msg()

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ 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 345 of file AthMonitorAlgorithm.cxx.

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

◆ 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();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

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

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ setFilterPassed()

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

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100 {
102 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const

◆ 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.

75{
76 return BaseAlg::sysExecute (ctx);
77}

◆ 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 HypoBase, and InputMakerBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

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

◆ 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 203 of file AthMonitorAlgorithm.cxx.

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

◆ 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) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }

Member Data Documentation

◆ aff_acc

LArRODMonAlg.aff_acc = LArRODMonConfig(flags)

Definition at line 234 of file LArRODMonAlg.py.

◆ ATLAS_THREAD_SAFE [1/4]

std::ofstream m_fdump LArRODMonAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 183 of file LArRODMonAlg.h.

◆ ATLAS_THREAD_SAFE [2/4]

std::ofstream m_fen LArRODMonAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 182 of file LArRODMonAlg.h.

◆ ATLAS_THREAD_SAFE [3/4]

std::ofstream m_fdig LArRODMonAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 181 of file LArRODMonAlg.h.

◆ ATLAS_THREAD_SAFE [4/4]

std::ofstream m_fai LArRODMonAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 180 of file LArRODMonAlg.h.

◆ cfg

LArRODMonAlg.cfg = CaloRecoCfg(flags)

Definition at line 229 of file LArRODMonAlg.py.

◆ enableLumiAccess

LArRODMonAlg.enableLumiAccess

Definition at line 223 of file LArRODMonAlg.py.

◆ f

LArRODMonAlg.f = open("LArRODMon.pkl","wb")

Definition at line 240 of file LArRODMonAlg.py.

◆ Files

LArRODMonAlg.Files

Definition at line 220 of file LArRODMonAlg.py.

◆ flags

LArRODMonAlg.flags = initConfigFlags()

Definition at line 210 of file LArRODMonAlg.py.

◆ HISTFileName

LArRODMonAlg.HISTFileName

Definition at line 222 of file LArRODMonAlg.py.

◆ m_adc2mevKey

SG::ReadCondHandleKey<LArADC2MeV> LArRODMonAlg::m_adc2mevKey {this,"LArADC2MeVKey","LArADC2MeV","SG Key of the LArADC2MeV CDO"}
private

Definition at line 110 of file LArRODMonAlg.h.

110{this,"LArADC2MeVKey","LArADC2MeV","SG Key of the LArADC2MeV CDO"};

◆ m_adc_th

Gaudi::Property<short> LArRODMonAlg::m_adc_th {this, "ADCthreshold", 50, "Minimal number of ADC amplitude among samples required to compare online/offline"}
private

Definition at line 148 of file LArRODMonAlg.h.

148{this, "ADCthreshold", 50, "Minimal number of ADC amplitude among samples required to compare online/offline"};

◆ m_AiFileName

Gaudi::Property<std::string> LArRODMonAlg::m_AiFileName {this,"AiFileName","Calib_ai.dat","dump output filename"}
private

Definition at line 132 of file LArRODMonAlg.h.

132{this,"AiFileName","Calib_ai.dat","dump output filename"};

◆ m_BC

const float LArRODMonAlg::m_BC =25000
private

Definition at line 168 of file LArRODMonAlg.h.

◆ m_bcContKey

SG::ReadCondHandleKey<LArBadChannelCont> LArRODMonAlg::m_bcContKey {this, "BadChanKey", "LArBadChannel", "SG key for LArBadChan object"}
private

Definition at line 113 of file LArRODMonAlg.h.

113{this, "BadChanKey", "LArBadChannel", "SG key for LArBadChan object"};

◆ m_bcMask

LArBadChannelMask LArRODMonAlg::m_bcMask
private

Definition at line 112 of file LArRODMonAlg.h.

◆ m_cablingKey

SG::ReadCondHandleKey<LArOnOffIdMapping> LArRODMonAlg::m_cablingKey {this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping CDO"}
private

Definition at line 118 of file LArRODMonAlg.h.

118{this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping CDO"};

◆ m_channelKey_fromBytestream

SG::ReadHandleKey<LArRawChannelContainer> LArRODMonAlg::m_channelKey_fromBytestream {this,"LArRawChannelKey_fromBytestream","LArRawChannels","SG key of LArRawChannels produced by teh DSP"}
private

Definition at line 98 of file LArRODMonAlg.h.

98{this,"LArRawChannelKey_fromBytestream","LArRawChannels","SG key of LArRawChannels produced by teh DSP"};

◆ m_channelKey_fromDigits

SG::ReadHandleKey<LArRawChannelContainer> LArRODMonAlg::m_channelKey_fromDigits {this,"LArRawChannelKey_fromDigits","LArRawChannels_FromDigits","SG key of LArRawChannels produced offline"}
private

Definition at line 99 of file LArRODMonAlg.h.

99{this,"LArRawChannelKey_fromDigits","LArRawChannels_FromDigits","SG key of LArRawChannels produced offline"};

◆ m_dataType

AthMonitorAlgorithm::DataType_t AthMonitorAlgorithm::m_dataType
protectedinherited

Instance of the DataType_t enum.

Definition at line 356 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 358 of file AthMonitorAlgorithm.h.

358{this,"DataType","userDefined"};

◆ m_defaultLBDuration

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

Default duration of one lumi block.

Definition at line 365 of file AthMonitorAlgorithm.h.

365{this,"DefaultLBDuration",60.};

◆ m_detailLevel

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

Sets the level of detail used in the monitoring.

Definition at line 366 of file AthMonitorAlgorithm.h.

366{this,"DetailLevel",0};

◆ 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_digitContainerKey

SG::ReadHandleKey<LArDigitContainer> LArRODMonAlg::m_digitContainerKey {this,"LArDigitContainerKey","FREE","SG key of LArDigitContainer read from Bytestream"}
private

Definition at line 101 of file LArRODMonAlg.h.

101{this,"LArDigitContainerKey","FREE","SG key of LArDigitContainer read from Bytestream"};

◆ m_DigitsFileName

Gaudi::Property<std::string> LArRODMonAlg::m_DigitsFileName {this, "DigitsFileName","digits.txt","Digits dump output filename"}
private

Definition at line 130 of file LArRODMonAlg.h.

130{this, "DigitsFileName","digits.txt","Digits dump output filename"};

◆ m_doCellsDump

Gaudi::Property<bool> LArRODMonAlg::m_doCellsDump {this, "DoCellsDump", false, "cell dump switch"}
private

Definition at line 136 of file LArRODMonAlg.h.

136{this, "DoCellsDump", false, "cell dump switch"};

◆ m_doCheckSum

Gaudi::Property<bool> LArRODMonAlg::m_doCheckSum {this, "DoCheckSum", true, "checksum test switch"}
private

Definition at line 137 of file LArRODMonAlg.h.

137{this, "DoCheckSum", true, "checksum test switch"};

◆ m_doDspTestDump

Gaudi::Property<bool> LArRODMonAlg::m_doDspTestDump {this, "DoDspTestDump", false, "dsp dump switch"}
private

Definition at line 135 of file LArRODMonAlg.h.

135{this, "DoDspTestDump", false, "dsp dump switch"};

◆ m_doRodStatus

Gaudi::Property<bool> LArRODMonAlg::m_doRodStatus {this, "DoRodStatus", true, "ROD status test switch"}
private

Definition at line 138 of file LArRODMonAlg.h.

138{this, "DoRodStatus", true, "ROD status test switch"};

◆ m_DQFilterTools

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

Array of Data Quality filter tools.

Definition at line 346 of file AthMonitorAlgorithm.h.

346{this,"FilterTools",{}};

◆ m_dummy

const ToolHandle<GenericMonitoringTool> AthMonitorAlgorithm::m_dummy
privateinherited

Definition at line 374 of file AthMonitorAlgorithm.h.

◆ m_DumpCellsFileName

Gaudi::Property<std::string> LArRODMonAlg::m_DumpCellsFileName {this,"DumpCellsFileName","dumpCells.txt","Cells dump output filename"}
private

Definition at line 133 of file LArRODMonAlg.h.

133{this,"DumpCellsFileName","dumpCells.txt","Cells dump output filename"};

◆ m_E_precision

Gaudi::Property<std::vector<std::pair<int, int> > > LArRODMonAlg::m_E_precision
private
Initial value:
{this,"EnergyPrecisionRanges",
{{8192,2},{65536,9},{524288,65},{4194304,513},{std::numeric_limits<int>::max(),8193}},
"Energy precision ranges vector<pair<upperLimit,ExpectedPrecision>"}

Definition at line 159 of file LArRODMonAlg.h.

159 {this,"EnergyPrecisionRanges",
160 {{8192,2},{65536,9},{524288,65},{4194304,513},{std::numeric_limits<int>::max(),8193}},
161 "Energy precision ranges vector<pair<upperLimit,ExpectedPrecision>"};

◆ m_EnergyFileName

Gaudi::Property<std::string> LArRODMonAlg::m_EnergyFileName {this,"EnergyFileName","energy.txt"," Energies dump output filename"}
private

Definition at line 131 of file LArRODMonAlg.h.

131{this,"EnergyFileName","energy.txt"," Energies dump output filename"};

◆ 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 377 of file AthMonitorAlgorithm.h.

377 {this,
378 "EnforceExpressTriggers", false,
379 "Requires that matched triggers made the event enter the express stream"};

◆ m_environment

AthMonitorAlgorithm::Environment_t AthMonitorAlgorithm::m_environment
protectedinherited

Instance of the Environment_t enum.

Definition at line 355 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 357 of file AthMonitorAlgorithm.h.

357{this,"Environment","user"};

◆ m_EventInfoKey

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

Key for retrieving EventInfo from StoreGate.

Definition at line 367 of file AthMonitorAlgorithm.h.

367{this,"EventInfoKey","EventInfo"};

◆ m_eventInfoKey

SG::ReadDecorHandleKey<xAOD::EventInfo> LArRODMonAlg::m_eventInfoKey {this, "LArStatusFlag", "EventInfo.larFlags", "Key for EventInfo object"}
private

Definition at line 121 of file LArRODMonAlg.h.

121{this, "LArStatusFlag", "EventInfo.larFlags", "Key for EventInfo object"};

◆ 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_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 363 of file AthMonitorAlgorithm.h.

363{this,"FileKey",""};

◆ m_headerContainerKey

SG::ReadHandleKey<LArFebHeaderContainer> LArRODMonAlg::m_headerContainerKey {this,"LArFebHeaderKey","LArFebHeader","SG key of LArFebHeader"}
private

Definition at line 102 of file LArRODMonAlg.h.

102{this,"LArFebHeaderKey","LArFebHeader","SG key of LArFebHeader"};

◆ m_histoGroups

std::map<std::string,int> LArRODMonAlg::m_histoGroups
private

Definition at line 171 of file LArRODMonAlg.h.

◆ m_keyHVScaleCorr

SG::ReadCondHandleKey<ILArHVScaleCorr> LArRODMonAlg::m_keyHVScaleCorr {this,"KeyHVScaleCorr","LArHVScaleCorr","SG key of LArHVScaleCorr CDO"}
private

Definition at line 107 of file LArRODMonAlg.h.

107{this,"KeyHVScaleCorr","LArHVScaleCorr","SG key of LArHVScaleCorr CDO"};

◆ m_keyOFC

SG::ReadCondHandleKey<ILArOFC> LArRODMonAlg::m_keyOFC {this,"KeyOFC","LArOFC","SG key of LArOFC CDO"}
private

Definition at line 105 of file LArRODMonAlg.h.

105{this,"KeyOFC","LArOFC","SG key of LArOFC CDO"};

◆ m_keyPedestal

SG::ReadCondHandleKey<ILArPedestal> LArRODMonAlg::m_keyPedestal {this,"LArPedestalKey","LArPedestal","SG key of LArPedestal CDO"}
private

Definition at line 108 of file LArRODMonAlg.h.

108{this,"LArPedestalKey","LArPedestal","SG key of LArPedestal CDO"};

◆ m_keyShape

SG::ReadCondHandleKey<ILArShape> LArRODMonAlg::m_keyShape {this,"KeyShape","LArShape","SG key of LArShape CDO"}
private

Definition at line 106 of file LArRODMonAlg.h.

106{this,"KeyShape","LArShape","SG key of LArShape CDO"};

◆ m_LArOnlineIDHelper

const LArOnlineID* LArRODMonAlg::m_LArOnlineIDHelper =nullptr
private

Definition at line 51 of file LArRODMonAlg.h.

◆ m_lbDurationDataKey

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

Definition at line 350 of file AthMonitorAlgorithm.h.

351{this,"LBDurationCondDataKey","LBDurationCondData","SG Key of LBDurationCondData object"};

◆ m_lumiDataKey

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

Definition at line 348 of file AthMonitorAlgorithm.h.

349{this,"LuminosityCondDataKey","LuminosityCondData","SG Key of LuminosityCondData object"};

◆ m_max_dump

Gaudi::Property<unsigned> LArRODMonAlg::m_max_dump {this, "MaxEvDump", 0, "max number of channels for detailed log-output"}
private

Definition at line 175 of file LArRODMonAlg.h.

175{this, "MaxEvDump", 0, "max number of channels for detailed log-output"};

◆ m_MonGroupName

Gaudi::Property<std::string> LArRODMonAlg::m_MonGroupName {this, "MonGroup", "RODMon"}
private

Definition at line 124 of file LArRODMonAlg.h.

124{this, "MonGroup", "RODMon"};

◆ m_name

std::string AthMonitorAlgorithm::m_name
privateinherited

Definition at line 371 of file AthMonitorAlgorithm.h.

◆ m_ndump

std::atomic<unsigned> LArRODMonAlg::m_ndump {0}
mutableprivate

Definition at line 176 of file LArRODMonAlg.h.

176{0};

◆ m_noiseCDOKey

SG::ReadCondHandleKey<CaloNoise> LArRODMonAlg::m_noiseCDOKey {this,"CaloNoiseKey","totalNoise","SG Key of CaloNoise data object"}
private

Definition at line 117 of file LArRODMonAlg.h.

117{this,"CaloNoiseKey","totalNoise","SG Key of CaloNoise data object"};

◆ m_Nslots

Gaudi::Property<std::vector<int> > LArRODMonAlg::m_Nslots {this, "LArRODNslots", {} }
private

Definition at line 127 of file LArRODMonAlg.h.

127{this, "LArRODNslots", {} };

◆ m_partitions

Gaudi::Property<std::vector<std::string> > LArRODMonAlg::m_partitions {this, "LArRODPartitionNames", {} }
private

Definition at line 126 of file LArRODMonAlg.h.

126{this, "LArRODPartitionNames", {} };

◆ m_PARTNAMES

auto LArRODMonAlg::m_PARTNAMES =std::to_array<const char*>({"EMBC","EMBA","EMECC","EMECA","HECC","HECA","FCalC","FCalA","UNKNOWN"})
staticconstexprprivate

Definition at line 54 of file LArRODMonAlg.h.

◆ m_peakTime_cut

Gaudi::Property<float> LArRODMonAlg::m_peakTime_cut {this, "peakTimeCut", 5., "Cut on abs(peak time) to compare online/offline (all quantities)"}
private

Definition at line 149 of file LArRODMonAlg.h.

149{this, "peakTimeCut", 5., "Cut on abs(peak time) to compare online/offline (all quantities)"};

◆ m_printEnergyErrors

Gaudi::Property<bool> LArRODMonAlg::m_printEnergyErrors {this, "PrintEnergyErrors", true, "energy errors printing"}
private

Definition at line 139 of file LArRODMonAlg.h.

139{this, "PrintEnergyErrors", true, "energy errors printing"};

◆ m_problemsToMask

Gaudi::Property<std::vector<std::string> > LArRODMonAlg::m_problemsToMask {this,"ProblemsToMask",{}, "Bad-Channel categories to mask"}
private

Definition at line 114 of file LArRODMonAlg.h.

114{this,"ProblemsToMask",{}, "Bad-Channel categories to mask"};

◆ m_Q_precision

Gaudi::Property<std::vector<std::pair<int, int> > > LArRODMonAlg::m_Q_precision
private
Initial value:
{this,"QualityPrecisionRanges",
{{std::numeric_limits<int>::max(),3}},
"Quality precision ranges as vector<pair<upperLImit,ExpectedPrecision"}

Definition at line 165 of file LArRODMonAlg.h.

165 {this,"QualityPrecisionRanges",
166 {{std::numeric_limits<int>::max(),3}},
167 "Quality precision ranges as vector<pair<upperLImit,ExpectedPrecision"};

◆ m_removeNoiseBursts

Gaudi::Property<bool> LArRODMonAlg::m_removeNoiseBursts {this, "RemoveNoiseBursts", true, "removing events with noise bursts"}
private

Definition at line 140 of file LArRODMonAlg.h.

140{this, "RemoveNoiseBursts", true, "removing events with noise bursts"};

◆ m_skipKnownProblematicChannels

Gaudi::Property<bool> LArRODMonAlg::m_skipKnownProblematicChannels {this, "SkipKnownProblematicChannels", false, "skipping known problems?"}
private

Definition at line 143 of file LArRODMonAlg.h.

143{this, "SkipKnownProblematicChannels", false, "skipping known problems?"};

◆ m_skipNullPed

Gaudi::Property<bool> LArRODMonAlg::m_skipNullPed {this, "SkipNullPed", false, "skipping no pedestal channels ?"}
private

Definition at line 144 of file LArRODMonAlg.h.

144{this, "SkipNullPed", false, "skipping no pedestal channels ?"};

◆ m_skipNullQT

Gaudi::Property<bool> LArRODMonAlg::m_skipNullQT {this, "SkipNullQT", false, "skipping no quality channe4ls ?"}
private

Definition at line 145 of file LArRODMonAlg.h.

145{this, "SkipNullQT", false, "skipping no quality channe4ls ?"};

◆ m_streams

Gaudi::Property<std::vector<std::string> > LArRODMonAlg::m_streams {this, "Streams", {} }
private

Definition at line 173 of file LArRODMonAlg.h.

173{this, "Streams", {} };

◆ m_SubDetNames

Gaudi::Property<std::vector<std::string> > LArRODMonAlg::m_SubDetNames {this, "LArRODSubDetNames", {} }
private

Definition at line 125 of file LArRODMonAlg.h.

125{this, "LArRODSubDetNames", {} };

◆ m_T_precision

Gaudi::Property<std::vector<std::pair<int, int> > > LArRODMonAlg::m_T_precision
private
Initial value:
{this,"TimePrecisionRanges",
{{1000,340},{5000,340},{25000,340},{50000,340},{std::numeric_limits<int>::max(),340}},
"Time precision ranges as vector<pair<upperLImit,ExpectedPrecision"}

Definition at line 162 of file LArRODMonAlg.h.

162 {this,"TimePrecisionRanges",
163 {{1000,340},{5000,340},{25000,340},{50000,340},{std::numeric_limits<int>::max(),340}},
164 "Time precision ranges as vector<pair<upperLImit,ExpectedPrecision"};

◆ m_timeOffset

Gaudi::Property<float> LArRODMonAlg::m_timeOffset {this, "TimeOffset", 0.}
private

Definition at line 147 of file LArRODMonAlg.h.

147{this, "TimeOffset", 0.};

◆ m_toolLookupMap

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

Definition at line 372 of file AthMonitorAlgorithm.h.

◆ m_tools

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

Array of Generic Monitoring Tools.

Definition at line 341 of file AthMonitorAlgorithm.h.

341{this,"GMTools",{}};

◆ m_trigDecTool

PublicToolHandle<Trig::TrigDecisionTool> AthMonitorAlgorithm::m_trigDecTool
protectedinherited

Tool to tell whether a specific trigger is passed.

Definition at line 345 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 360 of file AthMonitorAlgorithm.h.

360{this,"TriggerChain",""};

◆ m_trigLiveFractionDataKey

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

Definition at line 352 of file AthMonitorAlgorithm.h.

353{this,"TrigLiveFractionCondDataKey","TrigLiveFractionCondData", "SG Key of TrigLiveFractionCondData object"};

◆ m_useLumi

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

Allows use of various luminosity functions.

Definition at line 364 of file AthMonitorAlgorithm.h.

364{this,"EnableLumi",false};

◆ 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 361 of file AthMonitorAlgorithm.h.

◆ useTrigger

LArRODMonAlg.useTrigger

Definition at line 224 of file LArRODMonAlg.py.


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