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

Class for Tile MuId based monitoring. More...

#include <TileMuIdMonitorAlgorithm.h>

Inheritance diagram for TileMuIdMonitorAlgorithm:
Collaboration diagram for TileMuIdMonitorAlgorithm:

Public Types

enum  L1TriggerTypeBit {
  BIT0_RNDM, BIT1_ZEROBIAS, BIT2_L1CAL, BIT3_MUON,
  BIT4_RPC, BIT5_FTK, BIT6_CTP, BIT7_CALIB,
  ANY_PHYSICS
}
 Describes L1 trigger type bits. More...
 
enum  AuxiliarySampling { SAMP_ALL = 4, MAX_SAMP = 5 }
 Describes Tile auxiliary sampling. More...
 
enum  Partition {
  PART_LBA, PART_LBC, PART_EBA, PART_EBC,
  PART_ALL, MAX_PART
}
 Describes Tile partitions (ROS - 1) More...
 
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

virtual ~TileMuIdMonitorAlgorithm ()=default
 
virtual StatusCode initialize () override
 initialize More...
 
virtual StatusCode fillHistograms (const EventContext &ctx) const override
 adds event to the monitoring histograms More...
 
 TileMonitorAlgorithm (const std::string &name, ISvcLocator *svcLocator)
 
std::vector< int > getL1TriggerIndices (uint32_t lvl1TriggerType) const
 Return indices of histograms to be filled according fired L1 trigger type. More...
 
L1TriggerTypeBit getL1TriggerTypeBit (int lvl1TriggerIdx) const
 Return Level1 Trigger type bit according trigger index. More...
 
int getNumberOfL1Triggers (void) const
 Return number of L1 triggers for which histograms should be filled. More...
 
bool isPhysicsEvent (uint32_t lvl1TriggerType) const
 Return true if it is physics event or false for calibration event. More...
 
Partition getPartition (const CaloCell *cell, const TileID *tileID) const
 Return Partition for Tile cell or MAX_PART otherwise. More...
 
Partition getPartition (Identifier id, const TileID *tileID) const
 Return Partition for Tile cell identifier or MAX_PART otherwise. More...
 
Partition getPartition (IdentifierHash hash, const TileID *tileID) const
 Return Partition for Tile cell identifier hash or MAX_PART otherwise. More...
 
 AthMonitorAlgorithm (const std::string &name, ISvcLocator *pSvcLocator)
 Constructor. More...
 
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 > &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

 flags
 
 Files
 
 HISTFileName
 
 useTrigger
 
 enableLumiAccess
 
 MaxEvents
 
 cfg
 
 l1Triggers
 
 fillHistogramsForL1Triggers
 
 withDetails
 
 True
 
 summariseProps
 
 sc
 

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

L1TriggerTypeBit getL1TriggerTypeBitFromName (const std::string &triggerBitName) const
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

SG::ReadHandleKey< TileMuContainerm_muContainerKey
 
std::vector< int > m_muIdTagsGroups
 
std::vector< int > m_muIdEnergyGroups
 
std::vector< int > m_muIdEtaGroups
 
std::vector< int > m_muIdPhiGroups
 
std::vector< int > m_muIdQualityGroups
 
std::vector< int > m_muIdEtaPhiGroups
 
std::vector< int > m_muIdEneEtaGroups
 
std::vector< int > m_muIdEnePhiGroups
 
std::vector< int > m_muIdEneQualityGroups
 
std::vector< int > m_muId1TagEnergyGroups
 
std::vector< int > m_muId1TagQualityGroups
 
std::vector< int > m_muId1TagEtaPhiGroups
 
std::vector< int > m_muId1TagEtaGroups
 
std::vector< int > m_muId1TagPhiGroups
 
std::vector< int > m_muId1TagEneQualityGroups
 
std::vector< int > m_muId2TagEnergyGroups
 
std::vector< int > m_muId2TagQualityGroups
 
std::vector< int > m_muId2TagEtaPhiGroups
 
std::vector< int > m_muId2TagEtaGroups
 
std::vector< int > m_muId2TagPhiGroups
 
std::vector< int > m_muId2TagEneQualityGroups
 
Gaudi::Property< std::vector< std::string > > m_fillHistogramsForL1Triggers
 
std::vector< L1TriggerTypeBitm_l1Triggers
 
std::vector< int > m_l1TriggerIndices
 
std::vector< std::string > m_l1TriggerBitNames
 
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
 

Detailed Description

Class for Tile MuId based monitoring.

Definition at line 18 of file TileMuIdMonitorAlgorithm.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

◆ AuxiliarySampling

Describes Tile auxiliary sampling.

Enumerator
SAMP_ALL 
MAX_SAMP 

Definition at line 40 of file TileMonitorAlgorithm.h.

40 {SAMP_ALL = 4, MAX_SAMP = 5};

◆ 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  };

◆ 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  };

◆ L1TriggerTypeBit

Describes L1 trigger type bits.

Enumerator
BIT0_RNDM 
BIT1_ZEROBIAS 
BIT2_L1CAL 
BIT3_MUON 
BIT4_RPC 
BIT5_FTK 
BIT6_CTP 
BIT7_CALIB 
ANY_PHYSICS 

Definition at line 33 of file TileMonitorAlgorithm.h.

◆ Partition

Describes Tile partitions (ROS - 1)

Enumerator
PART_LBA 
PART_LBC 
PART_EBA 
PART_EBC 
PART_ALL 
MAX_PART 

Definition at line 46 of file TileMonitorAlgorithm.h.

47  PART_EBC, PART_ALL, MAX_PART}; // ROS - 1

Constructor & Destructor Documentation

◆ ~TileMuIdMonitorAlgorithm()

virtual TileMuIdMonitorAlgorithm::~TileMuIdMonitorAlgorithm ( )
virtualdefault

Member Function Documentation

◆ AthMonitorAlgorithm()

AthMonitorAlgorithm::AthMonitorAlgorithm
inherited

Constructor.

Definition at line 42 of file AthMonitorAlgorithm.cxx.

◆ cardinality()

unsigned int AthReentrantAlgorithm::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.

Override this to return 0 for reentrant algorithms.

Definition at line 55 of file AthReentrantAlgorithm.cxx.

56 {
57  return 0;
58 }

◆ 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 > &  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 > &  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 > &  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 > &  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 > &  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 & AthReentrantAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

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

Definition at line 79 of file AthReentrantAlgorithm.cxx.

80 {
81  // If we didn't find any symlinks to add, just return the collection
82  // from the base class. Otherwise, return the extended collection.
83  if (!m_extendedExtraObjects.empty()) {
85  }
86  return Algorithm::extraOutputDeps();
87 }

◆ fillHistograms()

StatusCode TileMuIdMonitorAlgorithm::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 TileMonitorAlgorithm.

Definition at line 52 of file TileMuIdMonitorAlgorithm.cxx.

52  {
53 
54 
55  // In case you want to measure the execution time
56  auto timer = Monitored::Timer("TIME_execute");
57 
58  const xAOD::EventInfo* eventInfo = GetEventInfo(ctx).get();
59 
60  // Indices of L1 trigger histograms to be filled in the current event
61  std::vector<int> l1TriggersIndices = getL1TriggerIndices(eventInfo->level1TriggerType());
62 
64  ATH_CHECK( muContainer.isValid() );
65 
66  int nTags = muContainer->size();
67  ATH_MSG_DEBUG( "Tile MuId nubmer of tags in the event: " << nTags );
68 
69  auto monNTags = Monitored::Scalar<int>("nTags", nTags);
70  for (int l1TriggerIdx : l1TriggersIndices) {
71  fill(m_tools[m_muIdTagsGroups[l1TriggerIdx]], monNTags);
72  }
73 
74  auto monEta = Monitored::Collection("eta", *muContainer, [] (const TileMu* mu) {return mu->eta();});
75  auto monPhi = Monitored::Collection("phi", *muContainer, [] (const TileMu* mu) {return mu->phi();});
76  auto monQuality = Monitored::Collection("quality", *muContainer, [] (const TileMu* mu) {return mu->quality();});
77  auto monEnergy = Monitored::Collection("energy", *muContainer,
78  [] (const TileMu* mu) {
79  return mu->enedep()[0] + mu->enedep()[1] + mu->enedep()[2];
80  });
81 
82  for (int l1TriggerIdx : l1TriggersIndices) {
83  fill(m_tools[m_muIdEnergyGroups[l1TriggerIdx]], monEnergy);
84  fill(m_tools[m_muIdEtaGroups[l1TriggerIdx]], monEta);
85  fill(m_tools[m_muIdPhiGroups[l1TriggerIdx]], monPhi);
86  fill(m_tools[m_muIdQualityGroups[l1TriggerIdx]], monQuality);
87  fill(m_tools[m_muIdEtaPhiGroups[l1TriggerIdx]], monEta, monPhi);
88  fill(m_tools[m_muIdEneEtaGroups[l1TriggerIdx]], monEta, monEnergy);
89  fill(m_tools[m_muIdEnePhiGroups[l1TriggerIdx]], monPhi, monEnergy);
90  fill(m_tools[m_muIdEneQualityGroups[l1TriggerIdx]], monEnergy, monQuality);
91  }
92 
93  if (nTags == 1) {
94  for (int l1TriggerIdx : l1TriggersIndices) {
95  fill(m_tools[m_muId1TagEnergyGroups[l1TriggerIdx]], monEnergy);
96  fill(m_tools[m_muId1TagQualityGroups[l1TriggerIdx]], monQuality);
97  fill(m_tools[m_muId1TagEtaPhiGroups[l1TriggerIdx]], monEta, monPhi);
98  fill(m_tools[m_muId1TagEtaGroups[l1TriggerIdx]], monEta, monEnergy);
99  fill(m_tools[m_muId1TagPhiGroups[l1TriggerIdx]], monPhi, monEnergy);
100  fill(m_tools[m_muId1TagEneQualityGroups[l1TriggerIdx]], monEnergy, monQuality);
101  }
102  } else if (nTags == 2) {
103  for (int l1TriggerIdx : l1TriggersIndices) {
104  fill(m_tools[m_muId2TagEnergyGroups[l1TriggerIdx]], monEnergy);
105  fill(m_tools[m_muId2TagQualityGroups[l1TriggerIdx]], monQuality);
106  fill(m_tools[m_muId2TagEtaPhiGroups[l1TriggerIdx]], monEta, monPhi);
107  fill(m_tools[m_muId2TagEtaGroups[l1TriggerIdx]], monEta, monEnergy);
108  fill(m_tools[m_muId2TagPhiGroups[l1TriggerIdx]], monPhi, monEnergy);
109  fill(m_tools[m_muId2TagEneQualityGroups[l1TriggerIdx]], monEnergy, monQuality);
110  }
111  }
112 
113  fill("TileMuIdMonExecuteTime", timer);
114 
115  return StatusCode::SUCCESS;
116 }

◆ filterPassed()

virtual bool AthReentrantAlgorithm::filterPassed ( const EventContext &  ctx) const
inlinevirtualinherited

Definition at line 135 of file AthReentrantAlgorithm.h.

135  {
136  return execState( ctx ).filterPassed();
137  }

◆ 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  if (!isInitialized()) {
173  "It seems that the AthMonitorAlgorithm::initialize was not called "
174  "in derived class initialize method");
175  } else {
176  std::string available = std::accumulate(
177  m_toolLookupMap.begin(), m_toolLookupMap.end(), std::string(""),
178  [](const std::string& s, auto h) { return s + "," + h.first; });
179  ATH_MSG_FATAL("The tool " << name << " could not be found in the tool array of the "
180  << "monitoring algorithm " << m_name << ". This probably reflects a discrepancy between "
181  << "your python configuration and c++ filling code. Note: your available groups are {"
182  << available << "}.");
183  }
184  }
185  return m_dummy;
186 }

◆ getL1TriggerIndices()

std::vector< int > TileMonitorAlgorithm::getL1TriggerIndices ( uint32_t  lvl1TriggerType) const
inherited

Return indices of histograms to be filled according fired L1 trigger type.

Parameters
lvl1TriggerTypeLevel1 Trigger Type
Returns
vector of indices of histograms to be filled

Definition at line 67 of file TileMonitorAlgorithm.cxx.

67  {
68 
69  std::vector<int> triggerIndices;
70  int triggerIdx{-1};
71 
72  if (lvl1TriggerType != 0) {
73  // First bit tells if physics (=1) or calibration (=0) event
74  if ((lvl1TriggerType >> BIT7_CALIB) & 1) { // format is 0x1AAAAAAA
75  // Always try store at least AnyPhysTrig (=8)
76  triggerIdx = m_l1TriggerIndices[ANY_PHYSICS];
77  if (triggerIdx >= 0) triggerIndices.push_back(triggerIdx);
78  // Adding the phys triggers one by one
79  for (int bitTrigger = 0; bitTrigger < BIT7_CALIB; ++bitTrigger) {
80  if ((lvl1TriggerType >> bitTrigger) & 1) {
81  triggerIdx = m_l1TriggerIndices[bitTrigger];
82  if (triggerIdx >= 0) triggerIndices.push_back(triggerIdx);
83  }
84  }
85  } else { // Calibration event foramt is 0x0AAAAAAA
86  triggerIdx = m_l1TriggerIndices[BIT7_CALIB];
87  if (triggerIdx >= 0) triggerIndices.push_back(triggerIdx);
88  }
89  } else {
90  // Always try store at least AnyPhysTrig (=8)
91  triggerIdx = m_l1TriggerIndices[ANY_PHYSICS];
92  if (triggerIdx >= 0) triggerIndices.push_back(triggerIdx);
93  }
94 
95  return triggerIndices;
96 }

◆ getL1TriggerTypeBit()

TileMonitorAlgorithm::L1TriggerTypeBit TileMonitorAlgorithm::getL1TriggerTypeBit ( int  lvl1TriggerIdx) const
inherited

Return Level1 Trigger type bit according trigger index.

Parameters
lvl1TriggerIdxLevel1 Trigger index
Returns
level1 trigger type bit according trigger index

Definition at line 104 of file TileMonitorAlgorithm.cxx.

104  {
105  return m_l1Triggers.at(lvl1TriggerIdx);
106 }

◆ getL1TriggerTypeBitFromName()

TileMonitorAlgorithm::L1TriggerTypeBit TileMonitorAlgorithm::getL1TriggerTypeBitFromName ( const std::string &  triggerBitName) const
privateinherited

Definition at line 35 of file TileMonitorAlgorithm.cxx.

35  {
36 
37  // Convert the triger name to lower case
38  std::string loCaseTriggerBitName = triggerBitName;
39  std::transform(triggerBitName.begin(), triggerBitName.end(), loCaseTriggerBitName.begin(), ::tolower);
40 
41  if( loCaseTriggerBitName == "bit0_rndm" ) {
42  return L1TriggerTypeBit::BIT0_RNDM;
43  } else if( loCaseTriggerBitName == "bit1_zerobias" ) {
44  return L1TriggerTypeBit::BIT1_ZEROBIAS;
45  } else if( loCaseTriggerBitName == "bit2_l1cal" ) {
46  return L1TriggerTypeBit::BIT2_L1CAL;
47  } else if( loCaseTriggerBitName == "bit3_muon" ) {
48  return L1TriggerTypeBit::BIT3_MUON;
49  } else if( loCaseTriggerBitName == "bit4_rpc" ) {
50  return L1TriggerTypeBit::BIT4_RPC;
51  } else if( loCaseTriggerBitName == "bit5_ftk" ) {
52  return L1TriggerTypeBit::BIT5_FTK;
53  } else if( loCaseTriggerBitName == "bit6_ctp" ) {
54  return L1TriggerTypeBit::BIT6_CTP;
55  } else if( loCaseTriggerBitName == "bit7_calib" ) {
56  return L1TriggerTypeBit::BIT7_CALIB;
57  } else if( loCaseTriggerBitName == "anyphystrig" ) {
58  return L1TriggerTypeBit::ANY_PHYSICS;
59  } else { // Otherwise, warn the user and return "AnyPhysTrig"
60  ATH_MSG_WARNING("::getL1TriggerTypeBitFromName(): Unknown L1 trigger type bit name: "
61  << triggerBitName << ", returning AnyPhysTrig.");
62  return L1TriggerTypeBit::ANY_PHYSICS;
63  }
64 }

◆ getNumberOfL1Triggers()

int TileMonitorAlgorithm::getNumberOfL1Triggers ( void  ) const
inlineinherited

Return number of L1 triggers for which histograms should be filled.

Definition at line 66 of file TileMonitorAlgorithm.h.

66 {return m_fillHistogramsForL1Triggers.size();};

◆ getPartition() [1/3]

TileMonitorAlgorithm::Partition TileMonitorAlgorithm::getPartition ( const CaloCell cell,
const TileID tileID 
) const
inherited

Return Partition for Tile cell or MAX_PART otherwise.

Parameters
cellCalo cell

Definition at line 109 of file TileMonitorAlgorithm.cxx.

109  {
110  return cell ? getPartition(cell->ID(), tileID) : MAX_PART;
111 }

◆ getPartition() [2/3]

TileMonitorAlgorithm::Partition TileMonitorAlgorithm::getPartition ( Identifier  id,
const TileID tileID 
) const
inherited

Return Partition for Tile cell identifier or MAX_PART otherwise.

Parameters
idCalo cell identifier

Definition at line 120 of file TileMonitorAlgorithm.cxx.

120  {
121 
122  Partition partition = MAX_PART; // by default for non Tile cell
123 
124  if (tileID->is_tile(id)) {
125  int section = tileID->section(id);
126  int side = tileID->side(id);
127 
128  if (section == 1) {
129  partition = (side == 1) ? PART_LBA : PART_LBC;
130  } else if (section == 2 || section == 3) {
131  partition = (side == 1) ? PART_EBA : PART_EBC;
132  }
133  }
134 
135  return partition;
136 }

◆ getPartition() [3/3]

TileMonitorAlgorithm::Partition TileMonitorAlgorithm::getPartition ( IdentifierHash  hash,
const TileID tileID 
) const
inherited

Return Partition for Tile cell identifier hash or MAX_PART otherwise.

Parameters
hashCalo cell identifier hash

Definition at line 114 of file TileMonitorAlgorithm.cxx.

114  {
115  return getPartition(tileID->cell_id(hash), tileID);
116 }

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

189  {
190  return m_trigDecTool;
191 }

◆ initialize()

StatusCode TileMuIdMonitorAlgorithm::initialize ( )
overridevirtual

initialize

Returns
StatusCode

Reimplemented from TileMonitorAlgorithm.

Definition at line 14 of file TileMuIdMonitorAlgorithm.cxx.

14  {
15 
16  ATH_MSG_INFO("in initialize()");
17 
18  ATH_CHECK( m_muContainerKey.initialize() );
19 
20  using namespace Monitored;
21 
22  int nL1Triggers = getNumberOfL1Triggers();
23 
24  m_muIdTagsGroups = buildToolMap<int>(m_tools, "TileMuIdTags", nL1Triggers);
25  m_muIdEnergyGroups = buildToolMap<int>(m_tools, "TileMuIdEnergy", nL1Triggers);
26  m_muIdEtaGroups = buildToolMap<int>(m_tools, "TileMuIdEta", nL1Triggers);
27  m_muIdPhiGroups = buildToolMap<int>(m_tools, "TileMuIdPhi", nL1Triggers);
28  m_muIdQualityGroups = buildToolMap<int>(m_tools, "TileMuIdQuality", nL1Triggers);
29  m_muIdEtaPhiGroups = buildToolMap<int>(m_tools, "TileMuIdEtaPhi", nL1Triggers);
30  m_muIdEneEtaGroups = buildToolMap<int>(m_tools, "TileMuIdEneEta", nL1Triggers);
31  m_muIdEnePhiGroups = buildToolMap<int>(m_tools, "TileMuIdEnePhi", nL1Triggers);
32  m_muIdEneQualityGroups = buildToolMap<int>(m_tools, "TileMuIdEneQuality", nL1Triggers);
33 
34  m_muId1TagEnergyGroups = buildToolMap<int>(m_tools, "TileMuId1TagEnergy", nL1Triggers);
35  m_muId1TagQualityGroups = buildToolMap<int>(m_tools, "TileMuId1TagQuality", nL1Triggers);
36  m_muId1TagEtaPhiGroups = buildToolMap<int>(m_tools, "TileMuId1TagEtaPhi", nL1Triggers);
37  m_muId1TagEtaGroups = buildToolMap<int>(m_tools, "TileMuId1TagEta", nL1Triggers);
38  m_muId1TagPhiGroups = buildToolMap<int>(m_tools, "TileMuId1TagPhi", nL1Triggers);
39  m_muId1TagEneQualityGroups = buildToolMap<int>(m_tools, "TileMuId1TagEneQuality", nL1Triggers);
40 
41  m_muId2TagEnergyGroups = buildToolMap<int>(m_tools, "TileMuId2TagEnergy", nL1Triggers);
42  m_muId2TagQualityGroups = buildToolMap<int>(m_tools, "TileMuId2TagQuality", nL1Triggers);
43  m_muId2TagEtaPhiGroups = buildToolMap<int>(m_tools, "TileMuId2TagEtaPhi", nL1Triggers);
44  m_muId2TagEtaGroups = buildToolMap<int>(m_tools, "TileMuId2TagEta", nL1Triggers);
45  m_muId2TagPhiGroups = buildToolMap<int>(m_tools, "TileMuId2TagPhi", nL1Triggers);
46  m_muId2TagEneQualityGroups = buildToolMap<int>(m_tools, "TileMuId2TagEneQuality", nL1Triggers);
47 
49 }

◆ 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 AthReentrantAlgorithm::isClonable ( ) const
overridevirtualinherited

◆ isPhysicsEvent()

bool TileMonitorAlgorithm::isPhysicsEvent ( uint32_t  lvl1TriggerType) const
inherited

Return true if it is physics event or false for calibration event.

Parameters
lvl1TriggerTypeLevel1 Trigger Type
Returns
true if it is physics event according L1 trigger type

Definition at line 98 of file TileMonitorAlgorithm.cxx.

98  {
99  // First bit tells if physics (=1) or calibration (=0) event
100  return (lvl1TriggerType == 0) || (((lvl1TriggerType >> BIT7_CALIB) & 1) == 1);
101 }

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

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

◆ 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 AthReentrantAlgorithm::setFilterPassed ( bool  state,
const EventContext &  ctx 
) const
inlinevirtualinherited

Definition at line 139 of file AthReentrantAlgorithm.h.

139  {
140  execState( ctx ).setFilterPassed( state );
141  }

◆ sysExecute()

StatusCode AthReentrantAlgorithm::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 67 of file AthReentrantAlgorithm.cxx.

68 {
69  return Gaudi::Algorithm::sysExecute (ctx);
70 }

◆ sysInitialize()

StatusCode AthReentrantAlgorithm::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 96 of file AthReentrantAlgorithm.cxx.

96  {
98 
99  if (sc.isFailure()) {
100  return sc;
101  }
102 
103  ServiceHandle<ICondSvc> cs("CondSvc",name());
104  for (auto h : outputHandles()) {
105  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
106  // do this inside the loop so we don't create the CondSvc until needed
107  if ( cs.retrieve().isFailure() ) {
108  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
109  return StatusCode::SUCCESS;
110  }
111  if (cs->regHandle(this,*h).isFailure()) {
112  sc = StatusCode::FAILURE;
113  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
114  << " with CondSvc");
115  }
116  }
117  }
118  return sc;
119 }

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

◆ TileMonitorAlgorithm()

TileMonitorAlgorithm::TileMonitorAlgorithm
inline

Definition at line 21 of file TileMonitorAlgorithm.h.

22  :AthMonitorAlgorithm(name, svcLocator), m_l1TriggerIndices(9, -1) {}

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

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

◆ 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

◆ cfg

TileMuIdMonitorAlgorithm.cfg

Definition at line 230 of file TileMuIdMonitorAlgorithm.py.

◆ enableLumiAccess

TileMuIdMonitorAlgorithm.enableLumiAccess

Definition at line 222 of file TileMuIdMonitorAlgorithm.py.

◆ Files

TileMuIdMonitorAlgorithm.Files

Definition at line 219 of file TileMuIdMonitorAlgorithm.py.

◆ fillHistogramsForL1Triggers

TileMuIdMonitorAlgorithm.fillHistogramsForL1Triggers

Definition at line 237 of file TileMuIdMonitorAlgorithm.py.

◆ flags

TileMuIdMonitorAlgorithm.flags

Definition at line 218 of file TileMuIdMonitorAlgorithm.py.

◆ HISTFileName

TileMuIdMonitorAlgorithm.HISTFileName

Definition at line 220 of file TileMuIdMonitorAlgorithm.py.

◆ l1Triggers

TileMuIdMonitorAlgorithm.l1Triggers

Definition at line 233 of file TileMuIdMonitorAlgorithm.py.

◆ 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_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_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 AthReentrantAlgorithm::m_extendedExtraObjects
privateinherited

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

Empty if no symlinks were found.

Definition at line 153 of file AthReentrantAlgorithm.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_fillHistogramsForL1Triggers

Gaudi::Property<std::vector<std::string> > TileMonitorAlgorithm::m_fillHistogramsForL1Triggers
privateinherited
Initial value:
{this,
"fillHistogramsForL1Triggers", {}, "Fill histograms per given L1 trigger types"}

Definition at line 98 of file TileMonitorAlgorithm.h.

◆ m_l1TriggerBitNames

std::vector<std::string> TileMonitorAlgorithm::m_l1TriggerBitNames
privateinherited
Initial value:
{"bit0_RNDM", "bit1_ZeroBias", "bit2_L1CAL", "bit3_MUON",
"bit4_RPC", "bit5_FTK", "bti6_CTP", "bit7_Calib", "AnyPhysTrig"}

Definition at line 103 of file TileMonitorAlgorithm.h.

◆ m_l1TriggerIndices

std::vector<int> TileMonitorAlgorithm::m_l1TriggerIndices
privateinherited

Definition at line 102 of file TileMonitorAlgorithm.h.

◆ m_l1Triggers

std::vector<L1TriggerTypeBit> TileMonitorAlgorithm::m_l1Triggers
privateinherited

Definition at line 101 of file TileMonitorAlgorithm.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_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_muContainerKey

SG::ReadHandleKey<TileMuContainer> TileMuIdMonitorAlgorithm::m_muContainerKey
private
Initial value:
{this,
"TileMuContainer", "TileMuObj", "Tile MuId container name"}

Definition at line 29 of file TileMuIdMonitorAlgorithm.h.

◆ m_muId1TagEneQualityGroups

std::vector<int> TileMuIdMonitorAlgorithm::m_muId1TagEneQualityGroups
private

Definition at line 47 of file TileMuIdMonitorAlgorithm.h.

◆ m_muId1TagEnergyGroups

std::vector<int> TileMuIdMonitorAlgorithm::m_muId1TagEnergyGroups
private

Definition at line 42 of file TileMuIdMonitorAlgorithm.h.

◆ m_muId1TagEtaGroups

std::vector<int> TileMuIdMonitorAlgorithm::m_muId1TagEtaGroups
private

Definition at line 45 of file TileMuIdMonitorAlgorithm.h.

◆ m_muId1TagEtaPhiGroups

std::vector<int> TileMuIdMonitorAlgorithm::m_muId1TagEtaPhiGroups
private

Definition at line 44 of file TileMuIdMonitorAlgorithm.h.

◆ m_muId1TagPhiGroups

std::vector<int> TileMuIdMonitorAlgorithm::m_muId1TagPhiGroups
private

Definition at line 46 of file TileMuIdMonitorAlgorithm.h.

◆ m_muId1TagQualityGroups

std::vector<int> TileMuIdMonitorAlgorithm::m_muId1TagQualityGroups
private

Definition at line 43 of file TileMuIdMonitorAlgorithm.h.

◆ m_muId2TagEneQualityGroups

std::vector<int> TileMuIdMonitorAlgorithm::m_muId2TagEneQualityGroups
private

Definition at line 54 of file TileMuIdMonitorAlgorithm.h.

◆ m_muId2TagEnergyGroups

std::vector<int> TileMuIdMonitorAlgorithm::m_muId2TagEnergyGroups
private

Definition at line 49 of file TileMuIdMonitorAlgorithm.h.

◆ m_muId2TagEtaGroups

std::vector<int> TileMuIdMonitorAlgorithm::m_muId2TagEtaGroups
private

Definition at line 52 of file TileMuIdMonitorAlgorithm.h.

◆ m_muId2TagEtaPhiGroups

std::vector<int> TileMuIdMonitorAlgorithm::m_muId2TagEtaPhiGroups
private

Definition at line 51 of file TileMuIdMonitorAlgorithm.h.

◆ m_muId2TagPhiGroups

std::vector<int> TileMuIdMonitorAlgorithm::m_muId2TagPhiGroups
private

Definition at line 53 of file TileMuIdMonitorAlgorithm.h.

◆ m_muId2TagQualityGroups

std::vector<int> TileMuIdMonitorAlgorithm::m_muId2TagQualityGroups
private

Definition at line 50 of file TileMuIdMonitorAlgorithm.h.

◆ m_muIdEneEtaGroups

std::vector<int> TileMuIdMonitorAlgorithm::m_muIdEneEtaGroups
private

Definition at line 38 of file TileMuIdMonitorAlgorithm.h.

◆ m_muIdEnePhiGroups

std::vector<int> TileMuIdMonitorAlgorithm::m_muIdEnePhiGroups
private

Definition at line 39 of file TileMuIdMonitorAlgorithm.h.

◆ m_muIdEneQualityGroups

std::vector<int> TileMuIdMonitorAlgorithm::m_muIdEneQualityGroups
private

Definition at line 40 of file TileMuIdMonitorAlgorithm.h.

◆ m_muIdEnergyGroups

std::vector<int> TileMuIdMonitorAlgorithm::m_muIdEnergyGroups
private

Definition at line 33 of file TileMuIdMonitorAlgorithm.h.

◆ m_muIdEtaGroups

std::vector<int> TileMuIdMonitorAlgorithm::m_muIdEtaGroups
private

Definition at line 34 of file TileMuIdMonitorAlgorithm.h.

◆ m_muIdEtaPhiGroups

std::vector<int> TileMuIdMonitorAlgorithm::m_muIdEtaPhiGroups
private

Definition at line 37 of file TileMuIdMonitorAlgorithm.h.

◆ m_muIdPhiGroups

std::vector<int> TileMuIdMonitorAlgorithm::m_muIdPhiGroups
private

Definition at line 35 of file TileMuIdMonitorAlgorithm.h.

◆ m_muIdQualityGroups

std::vector<int> TileMuIdMonitorAlgorithm::m_muIdQualityGroups
private

Definition at line 36 of file TileMuIdMonitorAlgorithm.h.

◆ m_muIdTagsGroups

std::vector<int> TileMuIdMonitorAlgorithm::m_muIdTagsGroups
private

Definition at line 32 of file TileMuIdMonitorAlgorithm.h.

◆ m_name

std::string AthMonitorAlgorithm::m_name
privateinherited

Definition at line 366 of file AthMonitorAlgorithm.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_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_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.

◆ MaxEvents

TileMuIdMonitorAlgorithm.MaxEvents

Definition at line 223 of file TileMuIdMonitorAlgorithm.py.

◆ sc

TileMuIdMonitorAlgorithm.sc

Definition at line 244 of file TileMuIdMonitorAlgorithm.py.

◆ summariseProps

TileMuIdMonitorAlgorithm.summariseProps

Definition at line 239 of file TileMuIdMonitorAlgorithm.py.

◆ True

TileMuIdMonitorAlgorithm.True

Definition at line 239 of file TileMuIdMonitorAlgorithm.py.

◆ useTrigger

TileMuIdMonitorAlgorithm.useTrigger

Definition at line 221 of file TileMuIdMonitorAlgorithm.py.

◆ withDetails

TileMuIdMonitorAlgorithm.withDetails

Definition at line 239 of file TileMuIdMonitorAlgorithm.py.


The documentation for this class was generated from the following files:
TileMonitorAlgorithm::getL1TriggerIndices
std::vector< int > getL1TriggerIndices(uint32_t lvl1TriggerType) const
Return indices of histograms to be filled according fired L1 trigger type.
Definition: TileMonitorAlgorithm.cxx:67
AthMonitorAlgorithm::Environment_t::tier0Raw
@ tier0Raw
TileMonitorAlgorithm::BIT2_L1CAL
@ BIT2_L1CAL
Definition: TileMonitorAlgorithm.h:33
TileMuIdMonitorAlgorithm::m_muIdEneQualityGroups
std::vector< int > m_muIdEneQualityGroups
Definition: TileMuIdMonitorAlgorithm.h:40
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
TileMonitorAlgorithm::BIT4_RPC
@ BIT4_RPC
Definition: TileMonitorAlgorithm.h:34
checkFileSG.line
line
Definition: checkFileSG.py:75
TileMuIdMonitorAlgorithm::m_muIdEnePhiGroups
std::vector< int > m_muIdEnePhiGroups
Definition: TileMuIdMonitorAlgorithm.h:39
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
get_generator_info.result
result
Definition: get_generator_info.py:21
ReadCellNoiseFromCool.cell
cell
Definition: ReadCellNoiseFromCool.py:53
TileMuIdMonitorAlgorithm::m_muIdEneEtaGroups
std::vector< int > m_muIdEneEtaGroups
Definition: TileMuIdMonitorAlgorithm.h:38
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
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
TileMonitorAlgorithm::PART_EBA
@ PART_EBA
Definition: TileMonitorAlgorithm.h:46
TileMuIdMonitorAlgorithm::m_muId2TagEtaGroups
std::vector< int > m_muId2TagEtaGroups
Definition: TileMuIdMonitorAlgorithm.h:52
TileMonitorAlgorithm::PART_EBC
@ PART_EBC
Definition: TileMonitorAlgorithm.h:47
AthMonitorAlgorithm::Environment_t::tier0
@ tier0
AthMonitorAlgorithm::Environment_t::AOD
@ AOD
TileMuIdMonitorAlgorithm::m_muIdQualityGroups
std::vector< int > m_muIdQualityGroups
Definition: TileMuIdMonitorAlgorithm.h:36
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
TileMonitorAlgorithm::ANY_PHYSICS
@ ANY_PHYSICS
Definition: TileMonitorAlgorithm.h:34
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
TileMonitorAlgorithm::BIT3_MUON
@ BIT3_MUON
Definition: TileMonitorAlgorithm.h:33
accumulate
bool accumulate(AccumulateMap &map, std::vector< module_t > const &modules, FPGATrackSimMatrixAccumulator const &acc)
Accumulates an accumulator (e.g.
Definition: FPGATrackSimMatrixAccumulator.cxx:22
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
Tile_Base_ID::side
int side(const Identifier &id) const
Definition: Tile_Base_ID.cxx:153
TileMonitorAlgorithm::m_l1Triggers
std::vector< L1TriggerTypeBit > m_l1Triggers
Definition: TileMonitorAlgorithm.h:101
TileMuIdMonitorAlgorithm::m_muId1TagEtaPhiGroups
std::vector< int > m_muId1TagEtaPhiGroups
Definition: TileMuIdMonitorAlgorithm.h:44
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
AthMonitorAlgorithm::m_toolLookupMap
std::unordered_map< std::string, size_t > m_toolLookupMap
Definition: AthMonitorAlgorithm.h:367
AthMonitorAlgorithm::m_environment
AthMonitorAlgorithm::Environment_t m_environment
Instance of the Environment_t enum.
Definition: AthMonitorAlgorithm.h:350
cosmics
Definition: cosmics.py:1
TileMonitorAlgorithm::m_fillHistogramsForL1Triggers
Gaudi::Property< std::vector< std::string > > m_fillHistogramsForL1Triggers
Definition: TileMonitorAlgorithm.h:98
TileMuIdMonitorAlgorithm::m_muId2TagEneQualityGroups
std::vector< int > m_muId2TagEneQualityGroups
Definition: TileMuIdMonitorAlgorithm.h:54
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
TileMuIdMonitorAlgorithm::m_muId2TagQualityGroups
std::vector< int > m_muId2TagQualityGroups
Definition: TileMuIdMonitorAlgorithm.h:50
TileMonitorAlgorithm::MAX_SAMP
@ MAX_SAMP
Definition: TileMonitorAlgorithm.h:40
TileMuIdMonitorAlgorithm::m_muId1TagEneQualityGroups
std::vector< int > m_muId1TagEneQualityGroups
Definition: TileMuIdMonitorAlgorithm.h:47
AthMonitorAlgorithm::trigChainsArePassed
bool trigChainsArePassed(const std::vector< std::string > &vTrigNames) const
Check whether triggers are passed.
Definition: AthMonitorAlgorithm.cxx:194
TileMonitorAlgorithm::BIT5_FTK
@ BIT5_FTK
Definition: TileMonitorAlgorithm.h:34
AthMonitorAlgorithm::Environment_t::user
@ user
python.utils.AtlRunQueryTimer.timer
def timer(name, disabled=False)
Definition: AtlRunQueryTimer.py:86
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
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
TileMonitorAlgorithm::BIT6_CTP
@ BIT6_CTP
Definition: TileMonitorAlgorithm.h:34
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
TRT::Hit::side
@ side
Definition: HitInfo.h:83
TileMonitorAlgorithm::SAMP_ALL
@ SAMP_ALL
Definition: TileMonitorAlgorithm.h:40
TileMuIdMonitorAlgorithm::m_muIdEtaGroups
std::vector< int > m_muIdEtaGroups
Definition: TileMuIdMonitorAlgorithm.h:34
TileMonitorAlgorithm::initialize
virtual StatusCode initialize() override
initialize
Definition: TileMonitorAlgorithm.cxx:10
TileMuIdMonitorAlgorithm::m_muId2TagEtaPhiGroups
std::vector< int > m_muId2TagEtaPhiGroups
Definition: TileMuIdMonitorAlgorithm.h:51
PyPoolBrowser.item
item
Definition: PyPoolBrowser.py:129
TileSynchronizeBch.online
online
Definition: TileSynchronizeBch.py:88
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthMonitorAlgorithm::m_DQFilterTools
ToolHandleArray< IDQFilterTool > m_DQFilterTools
Array of Data Quality filter tools.
Definition: AthMonitorAlgorithm.h:341
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
Monitored
Generic monitoring tool for athena components.
Definition: GenericMonitoringTool.h:30
TileMonitorAlgorithm::BIT7_CALIB
@ BIT7_CALIB
Definition: TileMonitorAlgorithm.h:34
AthMonitorAlgorithm::DataType_t::heavyIonCollisions
@ heavyIonCollisions
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
TileMonitorAlgorithm::BIT0_RNDM
@ BIT0_RNDM
Definition: TileMonitorAlgorithm.h:33
TileMonitorAlgorithm::Partition
Partition
Describes Tile partitions (ROS - 1)
Definition: TileMonitorAlgorithm.h:46
tolower
void tolower(std::string &s)
Definition: AthenaSummarySvc.cxx:111
AthMonitorAlgorithm::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const =0
adds event to the monitoring histograms
Amg::transform
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
Definition: GeoPrimitivesHelpers.h:156
TileMonitorAlgorithm::PART_ALL
@ PART_ALL
Definition: TileMonitorAlgorithm.h:47
TileMuIdMonitorAlgorithm::m_muContainerKey
SG::ReadHandleKey< TileMuContainer > m_muContainerKey
Definition: TileMuIdMonitorAlgorithm.h:29
TileMonitorAlgorithm::PART_LBC
@ PART_LBC
Definition: TileMonitorAlgorithm.h:46
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AtlasDetectorID::is_tile
bool is_tile(Identifier id) const
Definition: AtlasDetectorID.h:695
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
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.
AthMonitorAlgorithm::GetEventInfo
SG::ReadHandle< xAOD::EventInfo > GetEventInfo(const EventContext &) const
Return a ReadHandle for an EventInfo object (get run/event numbers, etc.)
Definition: AthMonitorAlgorithm.cxx:107
AthMonitorAlgorithm::m_dataType
AthMonitorAlgorithm::DataType_t m_dataType
Instance of the DataType_t enum.
Definition: AthMonitorAlgorithm.h:351
AthReentrantAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthReentrantAlgorithm.h:153
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
TileMuIdMonitorAlgorithm::m_muIdEnergyGroups
std::vector< int > m_muIdEnergyGroups
Definition: TileMuIdMonitorAlgorithm.h:33
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
AthMonitorAlgorithm::m_tools
ToolHandleArray< GenericMonitoringTool > m_tools
Array of Generic Monitoring Tools.
Definition: AthMonitorAlgorithm.h:338
AthMonitorAlgorithm::Environment_t::online
@ online
TileMuIdMonitorAlgorithm::m_muId2TagPhiGroups
std::vector< int > m_muId2TagPhiGroups
Definition: TileMuIdMonitorAlgorithm.h:53
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
TileMuIdMonitorAlgorithm::m_muId1TagQualityGroups
std::vector< int > m_muId1TagQualityGroups
Definition: TileMuIdMonitorAlgorithm.h:43
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
AthMonitorAlgorithm::Environment_t::tier0ESD
@ tier0ESD
AthMonitorAlgorithm::Environment_t::altprod
@ altprod
AthReentrantAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthReentrantAlgorithm.cxx:96
AthMonitorAlgorithm::m_enforceExpressTriggers
Gaudi::Property< bool > m_enforceExpressTriggers
Definition: AthMonitorAlgorithm.h:372
TileMonitorAlgorithm::m_l1TriggerIndices
std::vector< int > m_l1TriggerIndices
Definition: TileMonitorAlgorithm.h:102
item
Definition: ItemListSvc.h:43
WriteBchToCool.user
user
Definition: WriteBchToCool.py:76
TileMuIdMonitorAlgorithm::m_muId1TagEtaGroups
std::vector< int > m_muId1TagEtaGroups
Definition: TileMuIdMonitorAlgorithm.h:45
xAOD::EventInfo_v1
Class describing the basic event information.
Definition: EventInfo_v1.h:43
ATH_LIKELY
#define ATH_LIKELY(x)
Definition: AthUnlikelyMacros.h:16
a
TList * a
Definition: liststreamerinfos.cxx:10
CaloLCW_tf.group
group
Definition: CaloLCW_tf.py:28
h
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:109
python.CaloScaleNoiseConfig.str
str
Definition: CaloScaleNoiseConfig.py:78
TileMonitorAlgorithm::getNumberOfL1Triggers
int getNumberOfL1Triggers(void) const
Return number of L1 triggers for which histograms should be filled.
Definition: TileMonitorAlgorithm.h:66
TileMonitorAlgorithm::MAX_PART
@ MAX_PART
Definition: TileMonitorAlgorithm.h:47
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
AthMonitorAlgorithm::DataType_t::collisions
@ collisions
AthMonitorAlgorithm::m_name
std::string m_name
Definition: AthMonitorAlgorithm.h:366
TileMonitorAlgorithm::BIT1_ZEROBIAS
@ BIT1_ZEROBIAS
Definition: TileMonitorAlgorithm.h:33
StateLessPT_NewConfig.partition
partition
Definition: StateLessPT_NewConfig.py:49
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
TileMuIdMonitorAlgorithm::m_muId1TagEnergyGroups
std::vector< int > m_muId1TagEnergyGroups
Definition: TileMuIdMonitorAlgorithm.h:42
xAOD::EventInfo_v1::level1TriggerType
uint16_t level1TriggerType() const
The Level-1 trigger type.
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
TileMuIdMonitorAlgorithm::m_muIdTagsGroups
std::vector< int > m_muIdTagsGroups
Definition: TileMuIdMonitorAlgorithm.h:32
TileMuIdMonitorAlgorithm::m_muIdPhiGroups
std::vector< int > m_muIdPhiGroups
Definition: TileMuIdMonitorAlgorithm.h:35
str
Definition: BTagTrackIpAccessor.cxx:11
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
TileMuIdMonitorAlgorithm::m_muId2TagEnergyGroups
std::vector< int > m_muId2TagEnergyGroups
Definition: TileMuIdMonitorAlgorithm.h:49
Tile_Base_ID::section
int section(const Identifier &id) const
Definition: Tile_Base_ID.cxx:147
Monitored::Scalar
Declare a monitored scalar variable.
Definition: MonitoredScalar.h:34
TileMuIdMonitorAlgorithm::m_muIdEtaPhiGroups
std::vector< int > m_muIdEtaPhiGroups
Definition: TileMuIdMonitorAlgorithm.h:37
section
void section(const std::string &sec)
Definition: TestTriggerMenuAccess.cxx:22
TileMuIdMonitorAlgorithm::m_muId1TagPhiGroups
std::vector< int > m_muId1TagPhiGroups
Definition: TileMuIdMonitorAlgorithm.h:46
AthMonitorAlgorithm::DataType_t::userDefined
@ userDefined
Tile_Base_ID::cell_id
Identifier cell_id(const Identifier &any_id) const
Definition: Tile_Base_ID.cxx:581
CaloNoise_fillDB.mu
mu
Definition: CaloNoise_fillDB.py:53
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
Monitored::Timer
A monitored timer.
Definition: MonitoredTimer.h:32
TileMu
Class to store TileMuId quantities.
Definition: TileMu.h:25
TileMonitorAlgorithm::getPartition
Partition getPartition(const CaloCell *cell, const TileID *tileID) const
Return Partition for Tile cell or MAX_PART otherwise.
Definition: TileMonitorAlgorithm.cxx:109
AthMonitorAlgorithm::DataType_t::monteCarlo
@ monteCarlo
fitman.k
k
Definition: fitman.py:528
TileMonitorAlgorithm::PART_LBA
@ PART_LBA
Definition: TileMonitorAlgorithm.h:46
ServiceHandle< ICondSvc >
collisions
Definition: collisions.py:1