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

#include <TrigR3Mon.h>

Inheritance diagram for TrigR3Mon:
Collaboration diagram for TrigR3Mon:

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

 TrigR3Mon (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~TrigR3Mon ()
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< T_AnalysisConfig< AthReentrantAlgorithm > * > m_sequences
 do we need this ??? why not the base class ???
std::vector< std::string > m_chainNames
std::vector< std::string > m_ntupleChainNames
std::string m_releaseMetaData
bool m_buildNtuple
bool m_mcTruthIn
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
int m_shifterChains
 max number of shifter chains to use - must be < 2 at the moment
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","InDetLargeD0TrackParticles"}, "" }
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 36 of file TrigR3Mon.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

◆ TrigR3Mon()

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

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

◆ ~TrigR3Mon()

TrigR3Mon::~TrigR3Mon ( )
virtual

Definition at line 125 of file TrigR3Mon.cxx.

125 {
126
127 if ( m_fileopen ) {
128 for ( unsigned i=0 ; i<m_sequences.size() ; i++ ) m_sequences[i]->finalize();
129 for ( unsigned i=0 ; i<m_sequences.size() ; i++ ) delete m_sequences[i];
130 m_fileopen = false;
131 }
132
133 // msg(MSG::INFO) << "TrigR3Mon::~TrigR3Mon()" << endmsg;
134 for ( unsigned i=m_filters.size() ; i-- ; ) delete m_filters[i];
135 for ( unsigned i=m_associators.size() ; i-- ; ) delete m_associators[i];
136
137}
std::vector< T_AnalysisConfig< AthReentrantAlgorithm > * > m_sequences
do we need this ??? why not the base class ???
Definition TrigR3Mon.h:101
std::vector< TrackFilter * > m_filters
Definition TrigR3Mon.h:97
std::vector< TrackAssociator * > m_associators
Definition TrigR3Mon.h:98
virtual StatusCode finalize() override

Member Function Documentation

◆ addMonGroupFromBase()

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

Definition at line 51 of file TrigR3Mon.h.

51{ }

◆ bookHistograms()

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

create sequences if need be ...

should only create the associators that we want to pass in - should control which we want with a flag, so that we can configure which matcher we want to use and also with what matching criteria

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

get chain

do offline type analyses first ...

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

get some configuration flags

only use the R3 navigation now

not needed now, but can't do any harm

don't filter cosmic chains on Roi

  • could be done with a global job option, but then if configuring some cosmic chains, and non cosmic chains, then all would be tarred with the same brush

Definition at line 177 of file TrigR3Mon.cxx.

177 {
178
179 ATH_MSG_DEBUG( " ----- enter book() ----- " );
180
181 ATH_MSG_INFO( " TrigR3Mon::book() " << gDirectory->GetName() );
182
184 // "^[[91;1m"
185 // "^[[m"
186
187 ATH_MSG_INFO( "^[[91;1m" << name() << "\t:AnalysisConfig " << m_analysis_config << "^[[m" );
188
189 ATH_MSG_INFO( "configuring chains: " << m_ntupleChainNames.size() << "\tmonTools: " << m_monTools.size() );
190
191 std::string lastvtx = "";
192
195
196 bool mcTruth = m_mcTruthIn;
197
198 if ( m_buildNtuple ) {
199
200 if ( m_tdt->getNavigationFormat() == "TriggerElement" ) {
201 m_sequences.push_back( new AnalysisConfig_Ntuple( m_ntupleChainNames,
203 m_keepAllEvents ) );
204 }
205 else {
206 AnalysisConfigMT_Ntuple* ac = new AnalysisConfigMT_Ntuple( m_ntupleChainNames,
209
212 m_sequences.push_back( ac );
213 }
214
215 m_sequences.back()->releaseData(m_releaseMetaData);
216 if ( m_requireDecision ) m_sequences.back()->setRequireDecision(true);
217 if ( m_mcTruthIn ) m_sequences.back()->setMCTruth(mcTruth);
218 m_sequences.back()->setFilterOnRoi( m_filter_on_roi );
219 }
220 else if ( m_analysis_config=="Tier0" ) {
221
223
224 // track filters
225 // reference tracks (offline or truth) ...
226 TrackFilter* filterRef = new Filter_Track( m_etaCutOffline, m_d0CutOffline, m_mind0CutOffline, m_z0CutOffline, m_pTCutOffline,
230
231 // test (trigger) tracks..
232 // TrackFilter* filterTest = new Filter_Track( m_etaCut, m_d0Cut, m_z0Cut, m_pTCut, -1, -1, -1, -1, -2, -2 );
233 TrackFilter* filterTest = new Filter_AcceptAll();
234
235 // keep track of the filters so they can be cleaned up at the end
236 m_filters.push_back(filterRef);
237 m_filters.push_back(filterTest);
238 // m_filters.push_back(filterTest_TRT);
239
240
241 // track associators
242 TrackAssociator* dR_matcher = new Associator_BestDeltaRMatcher("EBdeltaR", m_matchR); // this needs to be set correctly
243
244 // keep track of the associators so they can be cleaned up at the end
245 m_associators.push_back(dR_matcher);
246
250
251 // TrackAssociator* phi_matcher = new Associator_BestDeltaPhiMatcher("EBdeltaPhi", m_matchPhi); // this needs to be set correctly
252 // m_associators.push_back(phi_matcher);
253
254 std::vector<std::string> chains;
255
256 chains.reserve( m_monTools.size() );
257
260
261 std::vector<ToolHandle<GenericMonitoringTool>*> monTools;
262 monTools.reserve(m_monTools.size());
263
264 ToolHandleArray<GenericMonitoringTool>::iterator toolitr = m_monTools.begin();;
265
266 while ( toolitr!=m_monTools.end() ) {
267
269 ChainString chainName = (toolitr->name());
270
271 ATH_MSG_DEBUG( "configuring chain: " << chainName.head() << "\t: " << chainName.tail() );
272
274
275 if ( chainName.head() == "" ) {
276
277 std::string selectChain = chainName.raw();
278
280 // toolitr->setPath( m_sliceTag+"/"+chainName );
281
282 if (std::find(chains.begin(), chains.end(), selectChain) == chains.end()) { // deduplicate
283 chains.push_back( selectChain );
284 monTools.push_back( &(*toolitr) );
285 }
286
287 }
288 else {
289
291
292 if ( chainName.head().find("HLT_")==std::string::npos ) {
293 ++toolitr;
294 continue;
295 }
296
298
299 std::string selectChain = chainName.head();
300
302
303 ATH_MSG_DEBUG( "checking chain: " << chainName.head() );
304
305 if ( selectChain=="" ) {
306 msg(MSG::WARNING) << "^[[91;1m" << "No chain matched\tchain input " << chainName.head() << " : " << chainName.tail() << "^[[m"<< endmsg;
307 ++toolitr;
308 continue;
309 }
310
311 std::string mchain = selectChain; //chainName.head();
312
313 if ( chainName.tail()!="" ) mchain += "/"+chainName.tail();
314 if ( chainName.roi()!="" ) mchain += "_"+chainName.roi();
315 if ( chainName.vtx()!="" ) mchain += "_"+chainName.vtx();
316 if ( chainName.element()!="" ) mchain += "_"+chainName.element();
317 if ( chainName.extra()!="" ) mchain += "_"+chainName.extra();
318 if ( !chainName.passed() ) mchain += "_DTE";
319
320 selectChain = chainName.subs( selectChain );
321
322#if 0
324 std::cout << "\nTrigR3Mon::chain specification: " << chainName << "\t" << chainName.raw() << std::endl;
325 std::cout << "\tchain: " << chainName.head() << std::endl;
326 std::cout << "\tkey: " << chainName.tail() << std::endl;
327 std::cout << "\troi: " << chainName.roi() << std::endl;
328 std::cout << "\tvtx: " << chainName.vtx() << std::endl;
329 std::cout << "\tte: " << chainName.element() << std::endl;
330 std::cout << "\textra: " << chainName.extra() << std::endl;
331#endif
332
333
334#if 0
337 int shifter_efid = 0;
338 int shifter_ftf = 0;
339 int shifter_efid_run1 = 0;
340
342 int shifterChains = m_shifterChains;
343 if ( chainName.vtx()=="" ) shifterChains = ( m_shifterChains>1 ? 1 : m_shifterChains );
344
345 if ( m_sliceTag.find("Shifter")!=std::string::npos || m_shifter ) {
347 if ( chainName.tail().find("_FTF")!=std::string::npos ) {
349 if ( shifter_ftf>=shifterChains ||
350 ( shifter_ftf<shifterChains && chainName.vtx()!="" && chainName.vtx()==lastvtx ) ) {
351 msg(MSG::DEBUG) << "^[[91;1m" << "Matching chain " << selectChain << " excluded - Shifter chain already definied^[[m" << endmsg;
353 ++toolitr;
354 continue;
355 }
356 ++shifter_ftf;
357 lastvtx = chainName.vtx();
358 }
359 else if ( chainName.tail().find("_IDTrig")!=std::string::npos || chainName.tail().find("CosmicsN_EFID")!=std::string::npos ) {
361 ++shifter_efid;
362 if ( shifter_efid>shifterChains ) {
363 msg(MSG::DEBUG) << "^[[91;1m" << "Matching chain " << selectChain << " excluded - Shifter chain already definied^[[m" << endmsg;
364 ++toolitr;
365 continue;
366 }
367 }
368 else if ( chainName.tail().find("_EFID")!=std::string::npos ) {
370 shifter_efid_run1++;
371 if ( shifter_efid_run1>shifterChains ) {
372 msg(MSG::DEBUG) << "^[[91;1m" << "Matching chain " << selectChain << " excluded - Shifter chain already definied^[[m" << endmsg;
373 ++toolitr;
374 continue;
375 }
376 }
377 }
378#endif
379
380 if ( std::find(chains.begin(), chains.end(), selectChain) == chains.end() ) { // deduplicate
381 chains.push_back( selectChain );
382 monTools.push_back( &(*toolitr) );
383 }
384
385 }
386
387 ++toolitr;
388 }
389
391
392 // tag and probe object creation
393 std::vector<std::string>& allchains = m_ntupleChainNames;
394
395 std::vector<ChainString> allcs;
396
397 allcs.reserve(allchains.size());
398
399
401 std::vector<std::string> mtypes;
402
403 for ( size_t i=0 ; i<allchains.size() ; i++ ) {
404 allcs.emplace_back( ChainString( allchains[i] ) );
405 if ( allcs.back().head().find("HLT_")==0 ) continue;
406 if ( allcs.back().head()=="Offline" ) {
407 mcTruth = false;
408 if ( allcs.back().tail()!="" ) {
409 if ( allcs.back().tail().find("+")==0 ) {
410 mtypes.push_back( allcs.back().tail().substr(1) );
411 ATH_MSG_INFO( "Adding Offline reference collection: " << mtypes.back() );
412 }
413 else {
414 if ( mtypes.size()<1 ) ATH_MSG_WARNING( "Too Many reference collections : " << allcs.back().tail() );
415 else {
416 mtypes.push_back( allcs.back().tail() );
417 ATH_MSG_INFO( "Offline reference collection: " << mtypes.back() );
418 }
419 }
420 }
421 else {
422 mtypes.push_back( "" );
423 }
424 }
425 }
426
427 for ( size_t i=0 ; i<m_chainNames.size() ; i++ ) {
428
429 ChainString probe = m_chainNames[i] ;
430
431 TagNProbe* tnp = 0;
432
433 if ( probe.extra().find("probe")!=std::string::npos ) {
434
435 std::string probe_key = std::string(probe.extra()).erase( probe.extra().find("probe"), 5 ) ;
436
437 for ( size_t j=0 ; j<allchains.size() ; j++ ) {
438
439 ChainString tag = allchains[j];
440
441 // tag chain must be the same as probe chain but with te=0 and extra=*_tag
442 if ( tag.head() != probe.head() ) continue;
443 if ( tag.element() == probe.element() ) continue;
444 if ( tag.extra().find("tag")==std::string::npos ) continue;
445
446 std::string tag_key = std::string(tag.extra()).erase( tag.extra().find("tag"), 3 ) ;
447
448 if ( tag_key != probe_key ) continue;
449
450 double massMin = 40;
451 double massMax = 150;
452
453 if ( tag.head().find("Jpsi")!=std::string::npos ) {
454 massMin = 0;
455 massMax = 20;
456 }
457
458 if ( mcTruth ) tnp = new TagNProbe( "Truth", massMin, massMax );
459 else tnp = new TagNProbe( "Offline", massMin, massMax );
460
461 tnp->tag(tag.raw()) ;
462 tnp->probe(probe.raw()) ;
463
464 ATH_MSG_DEBUG( "Tag and probe pair found: " << tag << " : " << probe );
465
466 break ;
467
468 }
469 }
470
471
473
474 {
475
476 ATH_MSG_INFO( "configure analysis: " << m_chainNames[i] );
477
478 AnalysisConfigR3_Tier0* analysis = new AnalysisConfigR3_Tier0( m_sliceTag, // m_chainNames[i],
479 m_chainNames[i], "", "",
480 m_chainNames[i], "", "",
481 filterTest, filterRef,
482 dR_matcher,
483 new AnalysisR3_Tier0( m_chainNames[i], m_pTCut, m_etaCut, m_d0Cut, m_z0Cut ),
484 tnp );
485
486 analysis->setRunPurity(m_runPurity);
487 // analysis->setShifter(m_shifter);
489
490 analysis->set_monTool( monTools[i] );
491 if ( mtypes.size()>0 ) analysis->setTypes( mtypes );
492
493 analysis->initialise();
494
495 if ( mcTruth ) {
496 analysis->setPdgID( m_selectTruthPdgId );
498
499 analysis->setMCTruthRef( true );
500 analysis->setOfflineRef( false );
501 }
502
503 m_sequences.push_back( analysis );
504
505 std::string highestPT_str = "";
506 std::string vtxindex_str = "";
507
508 if ( m_useHighestPT ) {
509 highestPT_str = ": using highest PT only";
510 m_sequences.back()->setUseHighestPT(true);
511 }
512 else m_sequences.back()->setUseHighestPT(false);
513
514 if ( !(m_vtxIndex<0) ) {
515 vtxindex_str = ": searching for vertex index ";
516 m_sequences.back()->setVtxIndex(m_vtxIndex);
517 }
518
519 m_sequences.back()->releaseData(m_releaseMetaData);
520
524 if ( m_chainNames[i].find("cosmic")!=std::string::npos ||
525 m_chainNames[i].find("Cosmic")!=std::string::npos ) m_sequences.back()->setFilterOnRoi(false);
526
527 ATH_MSG_DEBUG( " ----- creating analysis " << m_sequences.back()->name() << " : " << m_chainNames[i] << " " << highestPT_str << " " << vtxindex_str << " -----" );
528
529 }
530 }
531 }
532
533 if ( !m_fileopen && ( m_initialisePerRun || m_firstRun ) ) {
534 m_fileopen = true;
535
536 for ( unsigned i=0 ; i<m_sequences.size() ; i++ ) {
537 ATH_MSG_VERBOSE( " ----- booking for analysis " << m_sequences[i]->name() << " -----" );
538 m_sequences[i]->initialize( this, &m_tdt );
539 m_sequences[i]->setGenericFlag(m_genericFlag);
540 m_sequences[i]->book();
541 }
542 m_firstRun = false;
543 }
544
545 ATH_MSG_DEBUG( " configured " << m_sequences.size() << " sequences" );
546
547 ATH_MSG_DEBUG( " ----- exit book() ----- " );
548
549 return StatusCode::SUCCESS;
550
551}
T_AnalysisConfigR3_Tier0< AthReentrantAlgorithm, AnalysisR3_Tier0 > AnalysisConfigR3_Tier0
#define ATH_MSG_INFO(x)
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
TIDA::Associator< TIDA::Track > TrackAssociator
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
bool passed() const
Definition ChainString.h:40
const std::string & vtx() const
Definition ChainString.h:36
const std::string & element() const
Definition ChainString.h:37
void set_monTool(ToolHandle< GenericMonitoringTool > *m)
void setTypes(const std::vector< std::string > &t)
void probe(const std::string &chainName)
Definition TagNProbe.h:46
void tag(const std::string &chainName)
getters and setters
Definition TagNProbe.h:45
std::vector< std::string > m_chainNames
Definition TrigR3Mon.h:103
ToolHandleArray< GenericMonitoringTool > m_monTools
Definition TrigR3Mon.h:161
std::string find(const std::string &s)
return a remapped string
Definition hcg.cxx:138

◆ 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}
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 TrigR3Mon::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 558 of file TrigR3Mon.cxx.

558 {
559
560 ATH_MSG_DEBUG( " ----- enter fill() ----- " );
561
562 const Trig::ChainGroup* chainGroup = m_tdt->getChainGroup( "HLT_e.*" );
563 const std::vector<std::string> selectChains = chainGroup->getListOfTriggers();
564
566 static std::once_flag flag;
567 std::call_once(flag, [&]() {
568 for ( unsigned i=0 ; i<selectChains.size() ; i++ ) {
569 ATH_MSG_DEBUG( "\tchain " << selectChains[i] << " from TDT" );
570 }
571
572 for ( size_t i=selectChains.size() ; i-- ; ) {
573 if ( i>5 ) i=5;
574 ATH_MSG_INFO( "^[[91;1m" << "configured chain " << selectChains[i] << "^[[m" );
575 }
576 });
577
578 if (msgLvl(MSG::DEBUG)) {
579 const std::vector<bool> isPassed = chainGroup->isPassedForEach();
580 for ( unsigned i=0 ; i<selectChains.size() ; i++ ) {
581 if ( isPassed[i] ) {
582 ATH_MSG_DEBUG( "chain " << selectChains[i] << "\tpass: " << isPassed[i] << "\tprescale: " << m_tdt->getPrescale(selectChains[i]) );
583 }
584 }
585 }
586
587 for ( unsigned i=0 ; i<m_sequences.size() ; i++ ) {
588 m_sequences[i]->execute();
589 }
590
591 ATH_MSG_DEBUG(" ----- exit fill() ----- ");
592
593 return StatusCode::SUCCESS;
594}
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 TrigR3Mon::finalize ( )
overridevirtual

Definition at line 602 of file TrigR3Mon.cxx.

602 {
603
604 ATH_MSG_DEBUG( " ====== enter proc() ====== " );
605 if ( m_initialisePerRun ) {
606 for ( unsigned i=0 ; i<m_sequences.size() ; i++ ) m_sequences[i]->finalize();
607 m_fileopen = false;
608 }
609 ATH_MSG_DEBUG( " ====== exit proc() ====== " );
610
611 return StatusCode::SUCCESS;
612}

◆ 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 TrigR3Mon::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 141 of file TrigR3Mon.cxx.

141 {
142
143 msg(MSG::DEBUG) << " ----- enter initialize() ----- " << endmsg;
144
145 msg(MSG::INFO) << "TrigR3Mon::initialize() " << gDirectory->GetName() << " " << m_sliceTag << endmsg;
146
150
151#if 0
152 std::cout << "TrigR3Mon::name = " << name() << std::endl;
153 std::cout << "TrigR3Mon::SliceTag = " << m_sliceTag << std::endl;
154 std::cout << "TrigR3Mon::AnalysisConfig = " << m_analysis_config << std::endl;
155 std::cout << "TrigR3Mon::Legacy = " << m_legacy << std::endl;
156#endif
157
158 ATH_CHECK(m_monTools.retrieve());
159
161
166
167 ATH_CHECK (m_trackdummykeys.initialize());
168 ATH_CHECK (m_vtxdummykeys.initialize());
169
170 ATH_MSG_DEBUG( " ----- exit init() ----- " );
171
173
174}
#define ATH_CHECK
Evaluate an expression and check for errors.
virtual StatusCode initialize() override
initialize
SG::ReadHandleKeyArray< xAOD::TrackParticleContainer > m_trackdummykeys
Definition TrigR3Mon.h:163
SG::ReadHandleKeyArray< xAOD::VertexContainer > m_vtxdummykeys
Definition TrigR3Mon.h:165
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 TrigR3Mon::m_analysis_config
protected

Definition at line 110 of file TrigR3Mon.h.

◆ m_associators

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

Definition at line 98 of file TrigR3Mon.h.

◆ m_blayerHitsOffline

int TrigR3Mon::m_blayerHitsOffline
protected

Definition at line 82 of file TrigR3Mon.h.

◆ m_buildNtuple

bool TrigR3Mon::m_buildNtuple
protected

Definition at line 107 of file TrigR3Mon.h.

◆ m_chainNames

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

Definition at line 103 of file TrigR3Mon.h.

◆ m_containTracks

bool TrigR3Mon::m_containTracks
protected

do we want basic, or rigorous roi track containment

Definition at line 149 of file TrigR3Mon.h.

◆ m_d0Cut

double TrigR3Mon::m_d0Cut
protected

Definition at line 60 of file TrigR3Mon.h.

◆ m_d0CutOffline

double TrigR3Mon::m_d0CutOffline
protected

Definition at line 75 of file TrigR3Mon.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 TrigR3Mon::m_doTauThreeProng
protected

Definition at line 72 of file TrigR3Mon.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 TrigR3Mon::m_etaCut
protected

Definition at line 59 of file TrigR3Mon.h.

◆ m_etaCutOffline

double TrigR3Mon::m_etaCutOffline
protected

Definition at line 74 of file TrigR3Mon.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 TrigR3Mon::m_fiducial_radius
protected

ntuple building variables

Definition at line 155 of file TrigR3Mon.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 TrigR3Mon::m_fileopen
protected

if an ntple file open?

Definition at line 127 of file TrigR3Mon.h.

◆ m_filter_on_roi

bool TrigR3Mon::m_filter_on_roi
protected

Definition at line 159 of file TrigR3Mon.h.

◆ m_filters

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

Definition at line 97 of file TrigR3Mon.h.

◆ m_firstRun

bool TrigR3Mon::m_firstRun
protected

Definition at line 116 of file TrigR3Mon.h.

◆ m_genericFlag

bool TrigR3Mon::m_genericFlag
protected

Definition at line 113 of file TrigR3Mon.h.

◆ m_initialisePerRun

bool TrigR3Mon::m_initialisePerRun
protected

Definition at line 115 of file TrigR3Mon.h.

◆ m_keepAllEvents

bool TrigR3Mon::m_keepAllEvents
protected

kepp events even if they fail the requested trigger chains

Definition at line 124 of file TrigR3Mon.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 TrigR3Mon::m_legacy
protected

Definition at line 151 of file TrigR3Mon.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 TrigR3Mon::m_matchPhi
protected

Definition at line 93 of file TrigR3Mon.h.

◆ m_matchR

double TrigR3Mon::m_matchR
protected

Definition at line 92 of file TrigR3Mon.h.

◆ m_mcTruthIn

bool TrigR3Mon::m_mcTruthIn
protected

Definition at line 108 of file TrigR3Mon.h.

◆ m_mind0CutOffline

double TrigR3Mon::m_mind0CutOffline
protected

Definition at line 76 of file TrigR3Mon.h.

◆ m_monTools

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

Definition at line 161 of file TrigR3Mon.h.

161{ 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> TrigR3Mon::m_ntupleChainNames
protected

Definition at line 104 of file TrigR3Mon.h.

◆ m_outputFileName

std::string TrigR3Mon::m_outputFileName
protected

Definition at line 111 of file TrigR3Mon.h.

◆ m_pixHits

int TrigR3Mon::m_pixHits
protected

Definition at line 64 of file TrigR3Mon.h.

◆ m_pixHitsOffline

int TrigR3Mon::m_pixHitsOffline
protected

Definition at line 80 of file TrigR3Mon.h.

◆ m_pixHolesOffline

int TrigR3Mon::m_pixHolesOffline
protected

Definition at line 84 of file TrigR3Mon.h.

◆ m_pTCut

double TrigR3Mon::m_pTCut
protected

Definition at line 58 of file TrigR3Mon.h.

◆ m_pTCutOffline

double TrigR3Mon::m_pTCutOffline
protected

Definition at line 73 of file TrigR3Mon.h.

◆ m_releaseMetaData

std::string TrigR3Mon::m_releaseMetaData
protected

Definition at line 105 of file TrigR3Mon.h.

◆ m_requireDecision

bool TrigR3Mon::m_requireDecision
protected

Definition at line 157 of file TrigR3Mon.h.

◆ m_runPurity

bool TrigR3Mon::m_runPurity
protected

also run purity analyses

Definition at line 137 of file TrigR3Mon.h.

◆ m_sctHits

int TrigR3Mon::m_sctHits
protected

Definition at line 65 of file TrigR3Mon.h.

◆ m_sctHitsOffline

int TrigR3Mon::m_sctHitsOffline
protected

Definition at line 81 of file TrigR3Mon.h.

◆ m_sctHolesOffline

int TrigR3Mon::m_sctHolesOffline
protected

Definition at line 85 of file TrigR3Mon.h.

◆ m_selectParentTruthPdgId

int TrigR3Mon::m_selectParentTruthPdgId
protected

Definition at line 121 of file TrigR3Mon.h.

◆ m_selectTruthPdgId

int TrigR3Mon::m_selectTruthPdgId
protected

Definition at line 119 of file TrigR3Mon.h.

◆ m_sequences

std::vector<T_AnalysisConfig<AthReentrantAlgorithm>*> TrigR3Mon::m_sequences
protected

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

Definition at line 101 of file TrigR3Mon.h.

◆ m_shifter

bool TrigR3Mon::m_shifter
protected

determine whether this should be treated as a shifter chain

Definition at line 140 of file TrigR3Mon.h.

◆ m_shifterChains

int TrigR3Mon::m_shifterChains
protected

max number of shifter chains to use - must be < 2 at the moment

Definition at line 143 of file TrigR3Mon.h.

◆ m_siHits

int TrigR3Mon::m_siHits
protected

Definition at line 63 of file TrigR3Mon.h.

◆ m_siHitsOffline

int TrigR3Mon::m_siHitsOffline
protected

Definition at line 79 of file TrigR3Mon.h.

◆ m_siHolesOffline

int TrigR3Mon::m_siHolesOffline
protected

Definition at line 86 of file TrigR3Mon.h.

◆ m_sliceTag

std::string TrigR3Mon::m_sliceTag
protected

additional string for the histogram directory

Definition at line 146 of file TrigR3Mon.h.

◆ m_strawHits

int TrigR3Mon::m_strawHits
protected

Definition at line 68 of file TrigR3Mon.h.

◆ m_strawHitsOffline

int TrigR3Mon::m_strawHitsOffline
protected

Definition at line 89 of file TrigR3Mon.h.

◆ m_tauEtCutOffline

double TrigR3Mon::m_tauEtCutOffline
protected

Definition at line 71 of file TrigR3Mon.h.

◆ m_tdt

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

Definition at line 95 of file TrigR3Mon.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> TrigR3Mon::m_trackdummykeys { this, "OfflineTrackCollections", {"InDetTrackParticles","InDetLargeD0TrackParticles"}, "" }
protected

Definition at line 163 of file TrigR3Mon.h.

163{ this, "OfflineTrackCollections", {"InDetTrackParticles","InDetLargeD0TrackParticles"}, "" };

◆ 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 TrigR3Mon::m_trtHits
protected

Definition at line 67 of file TrigR3Mon.h.

◆ m_trtHitsOffline

int TrigR3Mon::m_trtHitsOffline
protected

Definition at line 88 of file TrigR3Mon.h.

◆ m_useHighestPT

bool TrigR3Mon::m_useHighestPT
protected

use only the highest pt tracks

Definition at line 130 of file TrigR3Mon.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> TrigR3Mon::m_vtxdummykeys { this, "OfflineVertexCollections", {"PrimaryVertices"}, "" }
protected

Definition at line 165 of file TrigR3Mon.h.

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

◆ m_vtxIndex

int TrigR3Mon::m_vtxIndex
protected

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

Definition at line 134 of file TrigR3Mon.h.

◆ m_z0Cut

double TrigR3Mon::m_z0Cut
protected

Definition at line 61 of file TrigR3Mon.h.

◆ m_z0CutOffline

double TrigR3Mon::m_z0CutOffline
protected

Definition at line 77 of file TrigR3Mon.h.


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