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

#include <TrigIDR4Mon.h>

Inheritance diagram for TrigIDR4Mon:
Collaboration diagram for TrigIDR4Mon:

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

 TrigIDR4Mon (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~TrigIDR4Mon ()
virtual StatusCode initialize () override
 initialize
virtual StatusCode fillHistograms (const EventContext &context) const override
 adds event to the monitoring histograms
virtual StatusCode finalize () override
virtual StatusCode bookHistograms ()
void addMonGroupFromBase (const std::string &)
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=Gaudi::Hive::currentContext()) const
 Calculate the average mu, i.e.
virtual float lbInteractionsPerCrossing (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate instantaneous number of interactions, i.e.
virtual float lbAverageLuminosity (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate average luminosity (in ub-1 s-1 => 10^30 cm-2 s-1).
virtual float lbLuminosityPerBCID (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the instantaneous luminosity per bunch crossing.
virtual double lbDuration (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the duration of the luminosity block (in seconds)
virtual float lbAverageLivefraction (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the average luminosity livefraction.
virtual float livefractionPerBCID (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the live fraction per bunch crossing ID.
virtual double lbLumiWeight (const EventContext &ctx=Gaudi::Hive::currentContext()) 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

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

double m_pTCut
double m_etaCut
double m_d0Cut
double m_z0Cut
int m_siHits
int m_pixHits
int m_sctHits
int m_trtHits
int m_strawHits
double m_tauEtCutOffline
double m_doTauThreeProng
double m_pTCutOffline
double m_etaCutOffline
double m_d0CutOffline
double m_mind0CutOffline
double m_z0CutOffline
int m_siHitsOffline
int m_pixHitsOffline
int m_sctHitsOffline
int m_blayerHitsOffline
int m_pixHolesOffline
int m_sctHolesOffline
int m_siHolesOffline
int m_trtHitsOffline
int m_strawHitsOffline
double m_matchR
double m_matchPhi
ToolHandle< Trig::TrigDecisionToolm_tdt
std::vector< TrackFilter * > m_filters
std::vector< TrackAssociator * > m_associators
std::vector< std::string > m_chainNames
 do we need this ??? why not the base class ???
std::vector< std::string > m_ntupleChainNames
std::string m_releaseMetaData
bool m_buildNtuple
std::string m_analysis_config
std::string m_outputFileName
bool m_genericFlag
bool m_initialisePerRun
bool m_firstRun
int m_selectTruthPdgId
int m_selectParentTruthPdgId
bool m_keepAllEvents
 kepp events even if they fail the requested trigger chains
bool m_fileopen
 if an ntple file open?
bool m_useHighestPT
 use only the highest pt tracks
int m_vtxIndex
 if performing the vertex analysis, the index of the offline vertex to look for
bool m_runPurity
 also run purity analyses
bool m_shifter
 determine whether this should be treated as a shifter chain
std::string m_sliceTag
 additional string for the histogram directory
bool m_containTracks
 do we want basic, or rigorous roi track containment
bool m_legacy
double m_fiducial_radius
 ntuple building variables
bool m_requireDecision
bool m_filter_on_roi
ToolHandleArray< GenericMonitoringToolm_monTools { this, "MonTools", {} }
SG::ReadHandleKeyArray< xAOD::TrackParticleContainerm_trackdummykeys { this, "OfflineTrackCollections", {"InDetTrackParticles"}, "" }
SG::ReadHandleKeyArray< xAOD::VertexContainerm_vtxdummykeys { this, "OfflineVertexCollections", {"PrimaryVertices"}, "" }
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

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

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

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

Detailed Description

Definition at line 37 of file TrigIDR4Mon.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 };

Constructor & Destructor Documentation

◆ TrigIDR4Mon()

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

Definition at line 27 of file TrigIDR4Mon.cxx.

28 : AthMonitorAlgorithm(name, pSvcLocator),
29 m_tdt("Trig::TrigDecisionTool/TrigDecisionTool"),
30 m_buildNtuple(false),
32 m_firstRun(true),
33 m_keepAllEvents(false),
34 m_fileopen(false),
35 m_useHighestPT(false),
36 m_vtxIndex(-1),
37 m_runPurity(false),
38 m_shifter(false),
39 m_sliceTag(""),
40 m_containTracks(false),
41 m_legacy(true),
43 m_requireDecision(false),
44 m_filter_on_roi(false)
45{
46 msg(MSG::INFO) << "TrigIDR4Mon::TrigIDR4Mon() compiled: " << __DATE__ << " " << __TIME__ << endmsg;
47
48 declareProperty( "SliceTag", m_sliceTag = "" );
49
50 declareProperty( "pTCut", m_pTCut = 0 );
51 declareProperty( "etaCut", m_etaCut = 5 );
52 declareProperty( "d0Cut", m_d0Cut = 1000 );
53 declareProperty( "z0Cut", m_z0Cut = 2000 );
54 declareProperty( "siHits", m_siHits = -1 );
55 m_pixHits=0;
56 m_sctHits=0;
57
58 declareProperty( "trtHits", m_trtHits = -2 );
59 declareProperty( "strawHits", m_strawHits = -2 );
60
61 declareProperty( "tauEtCutOffline", m_tauEtCutOffline = 0 );
62 declareProperty( "doTauThreeProng", m_doTauThreeProng = false);
63
64 declareProperty( "pTCutOffline", m_pTCutOffline = 1000 );
65 declareProperty( "etaCutOffline", m_etaCutOffline = 2.5 );
66 declareProperty( "d0CutOffline", m_d0CutOffline = 1000 );
67 declareProperty( "mind0CutOffline", m_mind0CutOffline = 0 );
68 declareProperty( "z0CutOffline", m_z0CutOffline = 2000 );
69 declareProperty( "pixHitsOffline", m_pixHitsOffline = 2 ); // 1 <- old value ( 2 degrees of freedom = 1 cluster )
70 declareProperty( "sctHitsOffline", m_sctHitsOffline = 6 ); // 6 <- old value ( 6 clusters = 3 spacepoints )
71 declareProperty( "siHitsOffline", m_siHitsOffline = 8 );
72 declareProperty( "blayerHitsOffline", m_blayerHitsOffline = -1 ); // no requirement - in case IBL is off
73
74 declareProperty( "pixHolesOffline", m_pixHolesOffline = 20 ); // essentially no limit
75 declareProperty( "sctHolesOffline", m_sctHolesOffline = 20 ); // essentially no limit
76 declareProperty( "siHolesOffline", m_siHolesOffline = 2 ); // npix holes + nsi holes <= 2 ( not degrees of freedom ! )
77
78 declareProperty( "ContainTracks", m_containTracks = false ); // use only basic track containment
79 declareProperty( "FiducialRadius", m_fiducial_radius = 32 );
80
81 declareProperty( "trtHitsOffline", m_trtHitsOffline = -2 );
82 declareProperty( "strawHitsOffline", m_strawHitsOffline = -2 );
83
84 declareProperty( "matchR", m_matchR = 0.1 );
85 declareProperty( "matchPhi", m_matchPhi = 0.1 );
86
87 declareProperty( "ntupleChainNames", m_ntupleChainNames );
88 declareProperty( "releaseMetaData", m_releaseMetaData );
89
90 declareProperty( "buildNtuple", m_buildNtuple = false );
91
92 declareProperty( "AnalysisConfig", m_analysis_config = "Ntuple");
93
94 declareProperty( "SelectTruthPdgId", m_selectTruthPdgId = 0 );
95 declareProperty( "SelectParentTruthPdgId", m_selectParentTruthPdgId = 0 );
96
97 declareProperty( "InitialisePerRun", m_initialisePerRun = false );
98 declareProperty( "KeepAllEvents", m_keepAllEvents = false );
99 declareProperty( "UseHighestPT", m_useHighestPT = false );
100 declareProperty( "VtxIndex", m_vtxIndex = -1 );
101
102 declareProperty( "RunPurity", m_runPurity = false );
103 declareProperty( "Shifter", m_shifter = false );
104
105 declareProperty( "GenericFlag", m_genericFlag = true );
106
107 declareProperty( "Legacy", m_legacy = true );
108
109 declareProperty( "outputFileName", m_outputFileName = "TrkNtuple.root" );
110
111 declareProperty( "RequireDecision", m_requireDecision = false );
112
113 declareProperty( "FilterOnRoi", m_filter_on_roi = false );
114
115 msg(MSG::INFO) << "TrigIDR4Mon::TrigIDR4Mon() exiting " << gDirectory->GetName() << endmsg;
116
117}
#define endmsg
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
int m_sctHolesOffline
Definition TrigIDR4Mon.h:86
double m_etaCutOffline
Definition TrigIDR4Mon.h:75
ToolHandle< Trig::TrigDecisionTool > m_tdt
Definition TrigIDR4Mon.h:96
double m_fiducial_radius
ntuple building variables
int m_trtHitsOffline
Definition TrigIDR4Mon.h:89
int m_vtxIndex
if performing the vertex analysis, the index of the offline vertex to look for
bool m_requireDecision
int m_selectParentTruthPdgId
int m_blayerHitsOffline
Definition TrigIDR4Mon.h:83
int m_siHitsOffline
Definition TrigIDR4Mon.h:80
std::string m_releaseMetaData
bool m_buildNtuple
double m_z0Cut
Definition TrigIDR4Mon.h:62
std::string m_analysis_config
std::string m_sliceTag
additional string for the histogram directory
double m_pTCut
Definition TrigIDR4Mon.h:59
bool m_fileopen
if an ntple file open?
double m_pTCutOffline
Definition TrigIDR4Mon.h:74
bool m_initialisePerRun
int m_pixHitsOffline
Definition TrigIDR4Mon.h:81
double m_mind0CutOffline
Definition TrigIDR4Mon.h:77
double m_tauEtCutOffline
Definition TrigIDR4Mon.h:72
std::string m_outputFileName
bool m_filter_on_roi
bool m_shifter
determine whether this should be treated as a shifter chain
int m_selectTruthPdgId
std::vector< std::string > m_ntupleChainNames
double m_z0CutOffline
Definition TrigIDR4Mon.h:78
double m_doTauThreeProng
Definition TrigIDR4Mon.h:73
int m_siHolesOffline
Definition TrigIDR4Mon.h:87
double m_matchR
Definition TrigIDR4Mon.h:93
bool m_runPurity
also run purity analyses
bool m_genericFlag
double m_d0CutOffline
Definition TrigIDR4Mon.h:76
bool m_keepAllEvents
kepp events even if they fail the requested trigger chains
int m_pixHolesOffline
Definition TrigIDR4Mon.h:85
bool m_containTracks
do we want basic, or rigorous roi track containment
double m_matchPhi
Definition TrigIDR4Mon.h:94
int m_strawHitsOffline
Definition TrigIDR4Mon.h:90
double m_etaCut
Definition TrigIDR4Mon.h:60
bool m_useHighestPT
use only the highest pt tracks
double m_d0Cut
Definition TrigIDR4Mon.h:61
int m_sctHitsOffline
Definition TrigIDR4Mon.h:82

◆ ~TrigIDR4Mon()

TrigIDR4Mon::~TrigIDR4Mon ( )
virtual

Definition at line 121 of file TrigIDR4Mon.cxx.

121 {
122
123 // if ( m_fileopen ) {
124 // for ( unsigned i=0 ; i<m_sequences.size() ; i++ ) m_sequences[i]->finalize();
125 // for ( unsigned i=0 ; i<m_sequences.size() ; i++ ) delete m_sequences[i];
126 // m_fileopen = false;
127 // }
128
129}

Member Function Documentation

◆ addMonGroupFromBase()

void TrigIDR4Mon::addMonGroupFromBase ( const std::string & )
inline

Definition at line 52 of file TrigIDR4Mon.h.

52{ }

◆ bookHistograms()

StatusCode TrigIDR4Mon::bookHistograms ( )
virtual

useful colour information - leave here ...

make a copy of the input truth setting job option, so that we can change it if required

in the tier 0 analysis the wildcard selection should always return one and only one chain

get chain

do offline type analyses first ...

just get this working - this funtionality isn't really wanted any longer

maybe better to set here - leave this in p[lace until we have tried it

check for configured chains only ...

get matching chains

for the Run 3 python config based, shoud return one-and-only one chains per item

Definition at line 169 of file TrigIDR4Mon.cxx.

169 {
170
171 ATH_MSG_DEBUG( " ----- enter book() ----- " );
172
173 ATH_MSG_INFO( " TrigIDR4Mon::book() " << gDirectory->GetName() );
174
176 // "^[[91;1m"
177 // "^[[m"
178
179 ATH_MSG_INFO( "^[[91;1m" << name() << "\t:AnalysisConfig " << m_analysis_config << "^[[m" );
180
181 ATH_MSG_INFO( "configuring chains: " << m_ntupleChainNames.size() << "\tmonTools: " << m_monTools.size() );
182
183 std::string lastvtx = "";
184
187
188 std::vector<std::string> chains;
189
190 chains.reserve( m_monTools.size() );
191
194
195 std::vector<ToolHandle<GenericMonitoringTool>*> monTools;
196 monTools.reserve(m_monTools.size());
197
198 ToolHandleArray<GenericMonitoringTool>::iterator toolitr = m_monTools.begin();;
199
200
201 // sort out all the chain stuff
202
203 while ( toolitr!=m_monTools.end() ) {
204
206 ChainString chainName = (toolitr->name());
207
208 ATH_MSG_INFO( "configuring chain: " << chainName.head() << "\t: " << chainName.tail() );
209
211
212 if ( chainName.head() == "" ) {
213
214 std::string selectChain = chainName.raw();
215
217
219 // toolitr->setPath( m_sliceTag+"/"+chainName );
220
221 if (std::find(chains.begin(), chains.end(), selectChain) == chains.end()) { // deduplicate
222 chains.push_back( selectChain );
223 monTools.push_back( &(*toolitr) );
224 }
225 }
226 else {
227
229
230 if ( chainName.head().find("HLT_")==std::string::npos ) {
231 // with the O2 optimisation that ATLAS uses, unevaluated pre- and postfix operators produce identical code - I prefer the postfix
232 //cppcheck-suppress postfixOperator
233 toolitr++;
234 continue;
235 }
236
238
239 std::string selectChain = chainName.head();
240
242
243 ATH_MSG_DEBUG( "checking chain: " << chainName.head() );
244
245 if ( selectChain=="" ) {
246 msg(MSG::WARNING) << "^[[91;1m" << "No chain matched\tchain input " << chainName.head() << " : " << chainName.tail() << "^[[m"<< endmsg;
247 ++toolitr;
248 continue;
249 }
250
251 std::string mchain = selectChain; //chainName.head();
252
253 if ( chainName.tail()!="" ) mchain += "/"+chainName.tail();
254 if ( chainName.roi()!="" ) mchain += "_"+chainName.roi();
255 if ( chainName.vtx()!="" ) mchain += "_"+chainName.vtx();
256 if ( chainName.element()!="" ) mchain += "_"+chainName.element();
257 if ( chainName.extra()!="" ) mchain += "_"+chainName.extra();
258
259 selectChain = chainName.subs( selectChain );
260
261 if ( std::find(chains.begin(), chains.end(), selectChain) == chains.end() ) { // deduplicate
262 chains.push_back( selectChain );
263 monTools.push_back( &(*toolitr) );
264 }
265
266 ++toolitr;
267 }
268
269 }
270
272
273
274 // ATH_MSG_DEBUG( " configured " << m_sequences.size() << " sequences" );
275
276 ATH_MSG_DEBUG( " ----- exit book() ----- " );
277
278 return StatusCode::SUCCESS;
279
280}
#define ATH_MSG_INFO(x)
#define ATH_MSG_DEBUG(x)
const std::string & extra() const
Definition ChainString.h:38
const std::string & roi() const
Definition ChainString.h:35
std::string subs(std::string s) const
const std::string & raw() const
Definition ChainString.h:42
const std::string & head() const
Definition ChainString.h:33
const std::string & tail() const
Definition ChainString.h:34
const std::string & vtx() const
Definition ChainString.h:36
const std::string & element() const
Definition ChainString.h:37
ToolHandleArray< GenericMonitoringTool > m_monTools
std::vector< std::string > m_chainNames
do we need this ??? why not the base class ???

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

64{
65 return 0;
66}

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

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

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

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

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

◆ fillHistograms()

StatusCode TrigIDR4Mon::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

print out all the configured chains if need be

Implements AthMonitorAlgorithm.

Definition at line 287 of file TrigIDR4Mon.cxx.

287 {
288
289 ATH_MSG_DEBUG( " ----- enter fill() ----- " );
290
291 const Trig::ChainGroup* chainGroup = m_tdt->getChainGroup( "HLT_e.*" );
292 const std::vector<std::string> selectChains = chainGroup->getListOfTriggers();
293
295 static std::once_flag flag;
296 std::call_once(flag, [&]() {
297 for ( unsigned i=0 ; i<selectChains.size() ; i++ ) {
298 ATH_MSG_DEBUG( "\tchain " << selectChains[i] << " from TDT" );
299 }
300
301 for ( size_t i=selectChains.size() ; i-- ; ) {
302 if ( i>5 ) i=5;
303 ATH_MSG_INFO( "^[[91;1m" << "configured chain " << selectChains[i] << "^[[m" );
304 }
305 });
306
307 if (msgLvl(MSG::DEBUG)) {
308 const std::vector<bool> isPassed = chainGroup->isPassedForEach();
309 for ( unsigned i=0 ; i<selectChains.size() ; i++ ) {
310 if ( isPassed[i] ) {
311 ATH_MSG_DEBUG( "chain " << selectChains[i] << "\tpass: " << isPassed[i] << "\tprescale: " << m_tdt->getPrescale(selectChains[i]) );
312 }
313 }
314 }
315
316 // for ( unsigned i=0 ; i<m_sequences.size() ; i++ ) {
317 // m_sequences[i]->execute();
318 // }
319
320 ATH_MSG_DEBUG(" ----- exit fill() ----- ");
321
322 return StatusCode::SUCCESS;
323}
bool msgLvl(const MSG::Level lvl) const
std::vector< bool > isPassedForEach(unsigned int condition=TrigDefs::Physics) const
return vector with isPassed decision for each chain
std::vector< std::string > getListOfTriggers() const
bool flag
Definition master.py:29

◆ 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 TrigIDR4Mon::finalize ( )
overridevirtual

Definition at line 331 of file TrigIDR4Mon.cxx.

331 {
332
333 ATH_MSG_DEBUG( " ====== enter proc() ====== " );
334
335
336 ATH_MSG_DEBUG( " ====== exit proc() ====== " );
337
338 return StatusCode::SUCCESS;
339}

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

◆ 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 TrigIDR4Mon::initialize ( )
overridevirtual

initialize

Returns
StatusCode

NB: Do NOT create the sequences here - leave it until the book() method, since we need to be automatically determine which chains to process, and so need the TrigDecisionTool which is niot configured until we have an iov

pointless setup of ReadHandleKeys because the monitoring appears to (uneccessarily) be being controlled by the scheduler We fetch the tracks and vertices in a helper class so don't want to mess with this ReadHandleKey - it is only here to placate the scheduler

Reimplemented from AthMonitorAlgorithm.

Definition at line 133 of file TrigIDR4Mon.cxx.

133 {
134
135 msg(MSG::DEBUG) << " ----- enter initialize() ----- " << endmsg;
136
137 msg(MSG::INFO) << "TrigIDR4Mon::initialize() " << gDirectory->GetName() << " " << m_sliceTag << endmsg;
138
142
143#if 0
144 std::cout << "TrigIDR4Mon::name = " << name() << std::endl;
145 std::cout << "TrigIDR4Mon::SliceTag = " << m_sliceTag << std::endl;
146 std::cout << "TrigIDR4Mon::AnalysisConfig = " << m_analysis_config << std::endl;
147 std::cout << "TrigIDR4Mon::Legacy = " << m_legacy << std::endl;
148#endif
149
150 ATH_CHECK(m_monTools.retrieve());
151
153
158
159 ATH_CHECK (m_trackdummykeys.initialize());
160 ATH_CHECK (m_vtxdummykeys.initialize());
161
162 ATH_MSG_DEBUG( " ----- exit init() ----- " );
163
165
166}
#define ATH_CHECK
Evaluate an expression and check for errors.
virtual StatusCode initialize() override
initialize
SG::ReadHandleKeyArray< xAOD::VertexContainer > m_vtxdummykeys
SG::ReadHandleKeyArray< xAOD::TrackParticleContainer > m_trackdummykeys
virtual StatusCode bookHistograms()

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

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

◆ sysInitialize()

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

Override sysInitialize.

Override sysInitialize from the base class.

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

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

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

Reimplemented in HypoBase, and InputMakerBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

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

◆ m_analysis_config

std::string TrigIDR4Mon::m_analysis_config
protected

Definition at line 110 of file TrigIDR4Mon.h.

◆ m_associators

std::vector<TrackAssociator*> TrigIDR4Mon::m_associators
protected

Definition at line 99 of file TrigIDR4Mon.h.

◆ m_blayerHitsOffline

int TrigIDR4Mon::m_blayerHitsOffline
protected

Definition at line 83 of file TrigIDR4Mon.h.

◆ m_buildNtuple

bool TrigIDR4Mon::m_buildNtuple
protected

Definition at line 108 of file TrigIDR4Mon.h.

◆ m_chainNames

std::vector<std::string> TrigIDR4Mon::m_chainNames
protected

do we need this ??? why not the base class ???

Definition at line 104 of file TrigIDR4Mon.h.

◆ m_containTracks

bool TrigIDR4Mon::m_containTracks
protected

do we want basic, or rigorous roi track containment

Definition at line 146 of file TrigIDR4Mon.h.

◆ m_d0Cut

double TrigIDR4Mon::m_d0Cut
protected

Definition at line 61 of file TrigIDR4Mon.h.

◆ m_d0CutOffline

double TrigIDR4Mon::m_d0CutOffline
protected

Definition at line 76 of file TrigIDR4Mon.h.

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

double TrigIDR4Mon::m_doTauThreeProng
protected

Definition at line 73 of file TrigIDR4Mon.h.

◆ 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_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_etaCut

double TrigIDR4Mon::m_etaCut
protected

Definition at line 60 of file TrigIDR4Mon.h.

◆ m_etaCutOffline

double TrigIDR4Mon::m_etaCutOffline
protected

Definition at line 75 of file TrigIDR4Mon.h.

◆ 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_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_fiducial_radius

double TrigIDR4Mon::m_fiducial_radius
protected

ntuple building variables

Definition at line 152 of file TrigIDR4Mon.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_fileopen

bool TrigIDR4Mon::m_fileopen
protected

if an ntple file open?

Definition at line 127 of file TrigIDR4Mon.h.

◆ m_filter_on_roi

bool TrigIDR4Mon::m_filter_on_roi
protected

Definition at line 156 of file TrigIDR4Mon.h.

◆ m_filters

std::vector<TrackFilter*> TrigIDR4Mon::m_filters
protected

Definition at line 98 of file TrigIDR4Mon.h.

◆ m_firstRun

bool TrigIDR4Mon::m_firstRun
protected

Definition at line 116 of file TrigIDR4Mon.h.

◆ m_genericFlag

bool TrigIDR4Mon::m_genericFlag
protected

Definition at line 113 of file TrigIDR4Mon.h.

◆ m_initialisePerRun

bool TrigIDR4Mon::m_initialisePerRun
protected

Definition at line 115 of file TrigIDR4Mon.h.

◆ m_keepAllEvents

bool TrigIDR4Mon::m_keepAllEvents
protected

kepp events even if they fail the requested trigger chains

Definition at line 124 of file TrigIDR4Mon.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_legacy

bool TrigIDR4Mon::m_legacy
protected

Definition at line 148 of file TrigIDR4Mon.h.

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

double TrigIDR4Mon::m_matchPhi
protected

Definition at line 94 of file TrigIDR4Mon.h.

◆ m_matchR

double TrigIDR4Mon::m_matchR
protected

Definition at line 93 of file TrigIDR4Mon.h.

◆ m_mind0CutOffline

double TrigIDR4Mon::m_mind0CutOffline
protected

Definition at line 77 of file TrigIDR4Mon.h.

◆ m_monTools

ToolHandleArray<GenericMonitoringTool> TrigIDR4Mon::m_monTools { this, "MonTools", {} }
protected

Definition at line 158 of file TrigIDR4Mon.h.

158{ this, "MonTools", {} }; // insane configuration paradigm ?

◆ m_name

std::string AthMonitorAlgorithm::m_name
privateinherited

Definition at line 371 of file AthMonitorAlgorithm.h.

◆ m_ntupleChainNames

std::vector<std::string> TrigIDR4Mon::m_ntupleChainNames
protected

Definition at line 105 of file TrigIDR4Mon.h.

◆ m_outputFileName

std::string TrigIDR4Mon::m_outputFileName
protected

Definition at line 111 of file TrigIDR4Mon.h.

◆ m_pixHits

int TrigIDR4Mon::m_pixHits
protected

Definition at line 65 of file TrigIDR4Mon.h.

◆ m_pixHitsOffline

int TrigIDR4Mon::m_pixHitsOffline
protected

Definition at line 81 of file TrigIDR4Mon.h.

◆ m_pixHolesOffline

int TrigIDR4Mon::m_pixHolesOffline
protected

Definition at line 85 of file TrigIDR4Mon.h.

◆ m_pTCut

double TrigIDR4Mon::m_pTCut
protected

Definition at line 59 of file TrigIDR4Mon.h.

◆ m_pTCutOffline

double TrigIDR4Mon::m_pTCutOffline
protected

Definition at line 74 of file TrigIDR4Mon.h.

◆ m_releaseMetaData

std::string TrigIDR4Mon::m_releaseMetaData
protected

Definition at line 106 of file TrigIDR4Mon.h.

◆ m_requireDecision

bool TrigIDR4Mon::m_requireDecision
protected

Definition at line 154 of file TrigIDR4Mon.h.

◆ m_runPurity

bool TrigIDR4Mon::m_runPurity
protected

also run purity analyses

Definition at line 137 of file TrigIDR4Mon.h.

◆ m_sctHits

int TrigIDR4Mon::m_sctHits
protected

Definition at line 66 of file TrigIDR4Mon.h.

◆ m_sctHitsOffline

int TrigIDR4Mon::m_sctHitsOffline
protected

Definition at line 82 of file TrigIDR4Mon.h.

◆ m_sctHolesOffline

int TrigIDR4Mon::m_sctHolesOffline
protected

Definition at line 86 of file TrigIDR4Mon.h.

◆ m_selectParentTruthPdgId

int TrigIDR4Mon::m_selectParentTruthPdgId
protected

Definition at line 121 of file TrigIDR4Mon.h.

◆ m_selectTruthPdgId

int TrigIDR4Mon::m_selectTruthPdgId
protected

Definition at line 119 of file TrigIDR4Mon.h.

◆ m_shifter

bool TrigIDR4Mon::m_shifter
protected

determine whether this should be treated as a shifter chain

Definition at line 140 of file TrigIDR4Mon.h.

◆ m_siHits

int TrigIDR4Mon::m_siHits
protected

Definition at line 64 of file TrigIDR4Mon.h.

◆ m_siHitsOffline

int TrigIDR4Mon::m_siHitsOffline
protected

Definition at line 80 of file TrigIDR4Mon.h.

◆ m_siHolesOffline

int TrigIDR4Mon::m_siHolesOffline
protected

Definition at line 87 of file TrigIDR4Mon.h.

◆ m_sliceTag

std::string TrigIDR4Mon::m_sliceTag
protected

additional string for the histogram directory

Definition at line 143 of file TrigIDR4Mon.h.

◆ m_strawHits

int TrigIDR4Mon::m_strawHits
protected

Definition at line 69 of file TrigIDR4Mon.h.

◆ m_strawHitsOffline

int TrigIDR4Mon::m_strawHitsOffline
protected

Definition at line 90 of file TrigIDR4Mon.h.

◆ m_tauEtCutOffline

double TrigIDR4Mon::m_tauEtCutOffline
protected

Definition at line 72 of file TrigIDR4Mon.h.

◆ m_tdt

ToolHandle<Trig::TrigDecisionTool> TrigIDR4Mon::m_tdt
protected

Definition at line 96 of file TrigIDR4Mon.h.

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

SG::ReadHandleKeyArray<xAOD::TrackParticleContainer> TrigIDR4Mon::m_trackdummykeys { this, "OfflineTrackCollections", {"InDetTrackParticles"}, "" }
protected

Definition at line 160 of file TrigIDR4Mon.h.

160{ this, "OfflineTrackCollections", {"InDetTrackParticles"}, "" };

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

int TrigIDR4Mon::m_trtHits
protected

Definition at line 68 of file TrigIDR4Mon.h.

◆ m_trtHitsOffline

int TrigIDR4Mon::m_trtHitsOffline
protected

Definition at line 89 of file TrigIDR4Mon.h.

◆ m_useHighestPT

bool TrigIDR4Mon::m_useHighestPT
protected

use only the highest pt tracks

Definition at line 130 of file TrigIDR4Mon.h.

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

◆ m_vtxdummykeys

SG::ReadHandleKeyArray<xAOD::VertexContainer> TrigIDR4Mon::m_vtxdummykeys { this, "OfflineVertexCollections", {"PrimaryVertices"}, "" }
protected

Definition at line 162 of file TrigIDR4Mon.h.

162{ this, "OfflineVertexCollections", {"PrimaryVertices"}, "" };

◆ m_vtxIndex

int TrigIDR4Mon::m_vtxIndex
protected

if performing the vertex analysis, the index of the offline vertex to look for

Definition at line 134 of file TrigIDR4Mon.h.

◆ m_z0Cut

double TrigIDR4Mon::m_z0Cut
protected

Definition at line 62 of file TrigIDR4Mon.h.

◆ m_z0CutOffline

double TrigIDR4Mon::m_z0CutOffline
protected

Definition at line 78 of file TrigIDR4Mon.h.


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