Analysis-level trigger event class. More...
#include "DataFormats/PatCandidates/interface/TriggerEvent.h"
Public Member Functions | |
TriggerAlgorithmRefVector | acceptedAlgorithms () const |
Get a vector of references to all succeeding L1 algorithms. More... | |
TriggerAlgorithmRefVector | acceptedAlgorithmsGtl () const |
Get a vector of references to all L1 algorithms succeeding on the GTL board. More... | |
TriggerConditionRefVector | acceptedConditions () const |
Get a vector of references to all succeeding L1 condition. More... | |
TriggerFilterRefVector | acceptedFilters () const |
Get a vector of references to all succeeding HLT filters. More... | |
TriggerPathRefVector | acceptedPaths () const |
Get a vector of references to all succeeding HLT paths. More... | |
TriggerAlgorithmRefVector | acceptedPhysAlgorithms () const |
Get a vector of references to all succeeding physics L1 algorithms. More... | |
TriggerAlgorithmRefVector | acceptedPhysAlgorithmsGtl () const |
Get a vector of references to all physics L1 algorithms succeeding on the GTL board. More... | |
TriggerAlgorithmRefVector | acceptedTechAlgorithms () const |
Get a vector of references to all succeeding technical L1 algorithms. More... | |
TriggerAlgorithmRefVector | acceptedTechAlgorithmsGtl () const |
Get a vector of references to all technical L1 algorithms succeeding on the GTL board. More... | |
bool | addObjectMatchResult (const TriggerObjectMatchRefProd &trigMatches, const std::string &labelMatcher) |
bool | addObjectMatchResult (const edm::Handle< TriggerObjectMatch > &trigMatches, const std::string &labelMatcher) |
bool | addObjectMatchResult (const edm::OrphanHandle< TriggerObjectMatch > &trigMatches, const std::string &labelMatcher) |
const TriggerAlgorithm * | algorithm (const std::string &nameAlgorithm) const |
TriggerConditionRefVector | algorithmConditions (const std::string &nameAlgorithm) const |
TriggerObjectRefVector | algorithmObjects (const std::string &nameAlgorithm) const |
Get a vector of references to all objects, which were used in a certain algorithm given by name. More... | |
const TriggerAlgorithmRef | algorithmRef (const std::string &nameAlgorithm) const |
const TriggerAlgorithmRefVector | algorithmRefs () const |
const TriggerAlgorithmCollection * | algorithms () const |
float | bCurrentAvg () const |
Get the CMS magnet current averaged over run. More... | |
float | bCurrentStart () const |
Get the CMS magnet current at start of run. More... | |
float | bCurrentStop () const |
Get the CMS magnet current at end of run. More... | |
uint16_t | beamMode () const |
Get the LHC beam mode. More... | |
uint16_t | beamMomentum () const |
Get the LHC beam momentum. More... | |
uint16_t | bstMasterStatus () const |
Get the LHC master status. More... | |
const TriggerCondition * | condition (const std::string &nameCondition) const |
TriggerAlgorithmRefVector | conditionAlgorithms (const TriggerConditionRef &conditionRef) const |
Get a vector of references to all algorithms, which have a certain condition assigned. More... | |
std::vector< std::string > | conditionCollections (const std::string &nameAlgorithm) const |
Get a list of all trigger object collections used in a certain condition given by name. More... | |
bool | conditionInAlgorithm (const TriggerConditionRef &conditionRef, const std::string &nameAlgorithm) const |
Checks, if a condition is assigned to a certain algorithm given by name. More... | |
TriggerObjectRefVector | conditionObjects (const std::string &nameCondition) const |
Get a vector of references to all objects, which were used in a certain condition given by name. More... | |
const TriggerConditionRef | conditionRef (const std::string &nameCondition) const |
const TriggerConditionRefVector | conditionRefs () const |
const TriggerConditionCollection * | conditions () const |
const TriggerFilter * | filter (const std::string &labelFilter) const |
std::vector< std::string > | filterCollections (const std::string &labelFilter) const |
Get a list of all trigger object collections used in a certain filter given by name. More... | |
bool | filterInPath (const TriggerFilterRef &filterRef, const std::string &namePath, bool firing=true) const |
Checks, if a filter is assigned to and was run in a certain path given by name. More... | |
TriggerObjectRefVector | filterObjects (const std::string &labelFilter) const |
Get a vector of references to all objects, which were used in a certain filter given by name. More... | |
TriggerPathRefVector | filterPaths (const TriggerFilterRef &filterRef, bool firing=true) const |
Get a vector of references to all paths, which have a certain filter assigned. More... | |
const TriggerFilterRef | filterRef (const std::string &labelFilter) const |
const TriggerFilterRefVector | filterRefs () const |
const TriggerFilterCollection * | filters () const |
unsigned | indexAlgorithm (const std::string &nameAlgorithm) const |
unsigned | indexCondition (const std::string &nameCondition) const |
unsigned | indexFilter (const std::string &labelFilter) const |
unsigned | indexPath (const std::string &namePath) const |
uint32_t | intensityBeam1 () const |
Get the LHC beam 1 intensity. More... | |
uint32_t | intensityBeam2 () const |
Get the LHC beam 2 intensity. More... | |
uint32_t | lhcFill () const |
Get the LHC fill number. More... | |
std::string | nameAlgorithm (const unsigned bitAlgorithm, const bool techAlgorithm=true) const |
const std::string & | nameHltTable () const |
Get the name of the HLT trigger table. More... | |
const std::string & | nameL1Menu () const |
Get the name of the L1 trigger menu. More... | |
TriggerAlgorithmRefVector | objectAlgorithms (const TriggerObjectRef &objectRef) const |
Get a vector of references to all algorithms, which have a certain object assigned. More... | |
TriggerConditionRefVector | objectConditions (const TriggerObjectRef &objectRef) const |
Get a vector of references to all conditions, which have a certain object assigned. More... | |
TriggerFilterRefVector | objectFilters (const TriggerObjectRef &objectRef, bool firing=true) const |
Get a vector of references to all filters, which have a certain object assigned. More... | |
bool | objectInAlgorithm (const TriggerObjectRef &objectRef, const std::string &nameAlgorithm) const |
Checks, if an object was used in a certain algorithm given by name. More... | |
bool | objectInCondition (const TriggerObjectRef &objectRef, const std::string &nameCondition) const |
Checks, if an object was used in a certain condition given by name. More... | |
bool | objectInFilter (const TriggerObjectRef &objectRef, const std::string &labelFilter) const |
Checks, if an object was used in a certain filter given by name. More... | |
bool | objectInPath (const TriggerObjectRef &objectRef, const std::string &namePath, bool firing=true) const |
Checks, if an object was used in a certain path given by name. More... | |
TriggerPathRefVector | objectPaths (const TriggerObjectRef &objectRef, bool firing=true) const |
Get a vector of references to all paths, which have a certain object assigned. More... | |
const TriggerObjectRefVector | objectRefs () const |
const TriggerObjectCollection * | objects () const |
TriggerObjectRefVector | objects (trigger::TriggerObjectType triggerObjectType) const |
Get a vector of references to all trigger objects by trigger object type. More... | |
TriggerObjectRefVector | objects (int triggerObjectType) const |
const TriggerPath * | path (const std::string &namePath) const |
TriggerFilterRefVector | pathFilters (const std::string &namePath, bool firing=true) const |
Get a vector of references to all active HLT filters assigned to a certain path given by name. More... | |
TriggerFilterRefVector | pathModules (const std::string &namePath, bool all=true) const |
TriggerObjectRefVector | pathObjects (const std::string &namePath, bool firing=true) const |
Get a vector of references to all objects, which were used in a certain path given by name. More... | |
const TriggerPathRef | pathRef (const std::string &namePath) const |
const TriggerPathRefVector | pathRefs () const |
const TriggerPathCollection * | paths () const |
TriggerAlgorithmRefVector | physAlgorithms () const |
Get a vector of references to all physics L1 algorithms. More... | |
void | setAccept (bool accept) |
Set the success flag. More... | |
void | setAlgorithms (const edm::Handle< TriggerAlgorithmCollection > &handleTriggerAlgorithms) |
void | setBCurrentAvg (float bCurrentAvg) |
Set the CMS magnet current averaged over run. More... | |
void | setBCurrentStart (float bCurrentStart) |
Set the CMS magnet current at start of run. More... | |
void | setBCurrentStop (float bCurrentStop) |
Set the CMS magnet current at end of run. More... | |
void | setBeamMode (uint16_t beamMode) |
Set the LHC beam mode. More... | |
void | setBeamMomentum (uint16_t beamMomentum) |
Set the LHC beam momentum. More... | |
void | setBstMasterStatus (uint16_t bstMasterStatus) |
Set the LHC master status. More... | |
void | setConditions (const edm::Handle< TriggerConditionCollection > &handleTriggerConditions) |
void | setError (bool error) |
Set the error flag. More... | |
void | setFilters (const edm::Handle< TriggerFilterCollection > &handleTriggerFilters) |
void | setIntensityBeam1 (uint32_t intensityBeam1) |
Set the LHC beam 1 intensity. More... | |
void | setIntensityBeam2 (uint32_t intensityBeam2) |
Set the LHC beam 2 intensity. More... | |
void | setLhcFill (uint32_t lhcFill) |
Set the LHC fill number. More... | |
void | setNameHltTable (const std::string &name) |
Set the name of the HLT trigger table. More... | |
void | setNameL1Menu (const std::string &name) |
Methods. More... | |
void | setObjects (const edm::Handle< TriggerObjectCollection > &handleTriggerObjects) |
void | setPaths (const edm::Handle< TriggerPathCollection > &handleTriggerPaths) |
void | setPhysDecl (bool physDecl) |
Set the PhysicsDeclared GT bit. More... | |
void | setRun (bool run) |
Set the run flag. More... | |
void | setTurnCount (uint32_t turnCount) |
Set the LHC beam turn counter. More... | |
TriggerAlgorithmRefVector | techAlgorithms () const |
Get a vector of references to all technical L1 algorithms. More... | |
TriggerEvent () | |
Constructors and Desctructor. More... | |
TriggerEvent (const std::string &nameHltTable, bool run=true, bool accept=true, bool error=false, bool physDecl=true) | |
Constructor from values, HLT only. More... | |
TriggerEvent (const std::string &nameL1Menu, const std::string &nameHltTable, bool run=true, bool accept=true, bool error=false, bool physDecl=true) | |
Constructor from values, HLT and L1/GT. More... | |
std::vector< std::string > | triggerMatchers () const |
Get a list of all linked trigger matches. More... | |
const TriggerObjectMatch * | triggerObjectMatchResult (const std::string &labelMatcher) const |
const TriggerObjectMatchContainer * | triggerObjectMatchResults () const |
Get all trigger matches. More... | |
uint32_t | turnCount () const |
Get the LHC beam turn counter. More... | |
bool | wasAccept () const |
Get the success flag. More... | |
bool | wasError () const |
Get the error flag. More... | |
bool | wasPhysDecl () const |
Get the PhysicsDeclared GT bit. More... | |
bool | wasRun () const |
Get the run flag. More... | |
virtual | ~TriggerEvent () |
Destructor. More... | |
Private Attributes | |
bool | accept_ |
Did HLT succeed? More... | |
TriggerAlgorithmRefProd | algorithms_ |
float | bCurrentAvg_ |
CMS magnet current in ??? averaged over run. More... | |
float | bCurrentStart_ |
CMS magnet current in ??? at start of run. More... | |
float | bCurrentStop_ |
CMS magnet current in ??? at end of run. More... | |
uint16_t | beamMode_ |
uint16_t | beamMomentum_ |
LHC beam momentum in GeV. More... | |
uint16_t | bstMasterStatus_ |
TriggerConditionRefProd | conditions_ |
Reference to pat::TriggerConditionCollection in event. More... | |
bool | error_ |
Was HLT in error? More... | |
TriggerFilterRefProd | filters_ |
Reference to pat::TriggerAlgorithmCollection in event. More... | |
uint32_t | intensityBeam1_ |
LHC beam 1 intensity in ??? More... | |
uint32_t | intensityBeam2_ |
LHC beam 2 intensity in ??? More... | |
uint32_t | lhcFill_ |
LHC fill number. More... | |
std::string | nameHltTable_ |
Name of the HLT trigger table. More... | |
std::string | nameL1Menu_ |
Data Members. More... | |
TriggerObjectMatchContainer | objectMatchResults_ |
Table of references to pat::TriggerObjectMatch associations in event. More... | |
TriggerObjectRefProd | objects_ |
Reference to pat::TriggerObjectCollection in event. More... | |
TriggerPathRefProd | paths_ |
Reference to pat::TriggerPathCollection in event. More... | |
bool | physDecl_ |
PhysicsDeclared GT bit. More... | |
bool | run_ |
Was HLT run? More... | |
uint32_t | turnCount_ |
LHC beam turn counter. More... | |
Analysis-level trigger event class.
TriggerEvent implements a container for trigger event's information within the 'pat' namespace and provides the central entry point to all trigger information in the PAT. For detailed information, consult https://twiki.cern.ch/twiki/bin/view/CMS/SWGuidePATTrigger#TriggerEvent
Definition at line 39 of file TriggerEvent.h.
TriggerEvent::TriggerEvent | ( | ) |
Constructors and Desctructor.
Default constructor
Definition at line 11 of file TriggerEvent.cc.
References objectMatchResults_.
TriggerEvent::TriggerEvent | ( | const std::string & | nameHltTable, |
bool | run = true , |
||
bool | accept = true , |
||
bool | error = false , |
||
bool | physDecl = true |
||
) |
Constructor from values, HLT only.
Definition at line 32 of file TriggerEvent.cc.
References objectMatchResults_.
TriggerEvent::TriggerEvent | ( | const std::string & | nameL1Menu, |
const std::string & | nameHltTable, | ||
bool | run = true , |
||
bool | accept = true , |
||
bool | error = false , |
||
bool | physDecl = true |
||
) |
Constructor from values, HLT and L1/GT.
Definition at line 53 of file TriggerEvent.cc.
References objectMatchResults_.
|
inlinevirtual |
TriggerAlgorithmRefVector TriggerEvent::acceptedAlgorithms | ( | ) | const |
Get a vector of references to all succeeding L1 algorithms.
Definition at line 128 of file TriggerEvent.cc.
References algorithmRef(), algorithms(), algorithms_, indexAlgorithm(), nameAlgorithm(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.
TriggerAlgorithmRefVector TriggerEvent::acceptedAlgorithmsGtl | ( | ) | const |
Get a vector of references to all L1 algorithms succeeding on the GTL board.
Definition at line 142 of file TriggerEvent.cc.
References algorithmRef(), algorithms(), algorithms_, indexAlgorithm(), nameAlgorithm(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.
TriggerConditionRefVector TriggerEvent::acceptedConditions | ( | ) | const |
Get a vector of references to all succeeding L1 condition.
Definition at line 281 of file TriggerEvent.cc.
References conditionRef(), conditions(), conditions_, indexCondition(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.
TriggerFilterRefVector TriggerEvent::acceptedFilters | ( | ) | const |
Get a vector of references to all succeeding HLT filters.
Definition at line 383 of file TriggerEvent.cc.
References filterRef(), filters(), filters_, indexFilter(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.
TriggerPathRefVector TriggerEvent::acceptedPaths | ( | ) | const |
Get a vector of references to all succeeding HLT paths.
Definition at line 332 of file TriggerEvent.cc.
References indexPath(), pathRef(), paths(), paths_, edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.
TriggerAlgorithmRefVector TriggerEvent::acceptedPhysAlgorithms | ( | ) | const |
Get a vector of references to all succeeding physics L1 algorithms.
Definition at line 212 of file TriggerEvent.cc.
References algorithmRef(), algorithms(), algorithms_, indexAlgorithm(), nameAlgorithm(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.
TriggerAlgorithmRefVector TriggerEvent::acceptedPhysAlgorithmsGtl | ( | ) | const |
Get a vector of references to all physics L1 algorithms succeeding on the GTL board.
Definition at line 226 of file TriggerEvent.cc.
References algorithmRef(), algorithms(), algorithms_, indexAlgorithm(), nameAlgorithm(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.
TriggerAlgorithmRefVector TriggerEvent::acceptedTechAlgorithms | ( | ) | const |
Get a vector of references to all succeeding technical L1 algorithms.
Definition at line 170 of file TriggerEvent.cc.
References algorithmRef(), algorithms(), algorithms_, indexAlgorithm(), nameAlgorithm(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.
TriggerAlgorithmRefVector TriggerEvent::acceptedTechAlgorithmsGtl | ( | ) | const |
Get a vector of references to all technical L1 algorithms succeeding on the GTL board.
Definition at line 184 of file TriggerEvent.cc.
References algorithmRef(), algorithms(), algorithms_, indexAlgorithm(), nameAlgorithm(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.
bool TriggerEvent::addObjectMatchResult | ( | const TriggerObjectMatchRefProd & | trigMatches, |
const std::string & | labelMatcher | ||
) |
Add a pat::TriggerObjectMatch association returns 'false', if 'matcher' alreadey exists
Definition at line 709 of file TriggerEvent.cc.
References spr::find(), objectMatchResults_, and triggerObjectMatchResults().
Referenced by addObjectMatchResult().
|
inline |
Definition at line 354 of file TriggerEvent.h.
References addObjectMatchResult().
|
inline |
Definition at line 357 of file TriggerEvent.h.
References addObjectMatchResult().
const TriggerAlgorithm * TriggerEvent::algorithm | ( | const std::string & | nameAlgorithm | ) | const |
Get a pointer to a certain L1 algorithm by name, returns 0, if algorithm is not found
Definition at line 89 of file TriggerEvent.cc.
References algorithms(), and nameAlgorithm().
Referenced by algorithmConditions().
TriggerConditionRefVector TriggerEvent::algorithmConditions | ( | const std::string & | nameAlgorithm | ) | const |
L1 x-links Get a vector of references to all conditions assigned to a certain algorithm given by name
Definition at line 418 of file TriggerEvent.cc.
References algorithm(), conditionRef(), conditions_, nameAlgorithm(), and edm::RefVector< C, T, F >::push_back().
Referenced by algorithmObjects(), conditionInAlgorithm(), and objectInAlgorithm().
TriggerObjectRefVector TriggerEvent::algorithmObjects | ( | const std::string & | nameAlgorithm | ) | const |
Get a vector of references to all objects, which were used in a certain algorithm given by name.
Definition at line 518 of file TriggerEvent.cc.
References algorithmConditions(), edm::RefVector< C, T, F >::begin(), conditionObjects(), edm::RefVector< C, T, F >::end(), nameAlgorithm(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.
const TriggerAlgorithmRef TriggerEvent::algorithmRef | ( | const std::string & | nameAlgorithm | ) | const |
Get a reference to a certain L1 algorithm by name, NULL, if algorithm is not found
Definition at line 99 of file TriggerEvent.cc.
References algorithmRefs(), edm::RefVector< C, T, F >::end(), and nameAlgorithm().
Referenced by acceptedAlgorithms(), acceptedAlgorithmsGtl(), acceptedPhysAlgorithms(), acceptedPhysAlgorithmsGtl(), acceptedTechAlgorithms(), acceptedTechAlgorithmsGtl(), algorithmRefs(), conditionAlgorithms(), objectAlgorithms(), physAlgorithms(), and techAlgorithms().
const TriggerAlgorithmRefVector TriggerEvent::algorithmRefs | ( | ) | const |
Get a vector of references to all L1 algorithms, empty, if RefProd is NULL
Definition at line 77 of file TriggerEvent.cc.
References algorithmRef(), algorithms(), algorithms_, indexAlgorithm(), nameAlgorithm(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by algorithmRef().
|
inline |
Get a pointer to all L1 algorithms, returns 0, if RefProd is NULL
Definition at line 185 of file TriggerEvent.h.
References algorithms_, and edm::RefProd< C >::get().
Referenced by acceptedAlgorithms(), acceptedAlgorithmsGtl(), acceptedPhysAlgorithms(), acceptedPhysAlgorithmsGtl(), acceptedTechAlgorithms(), acceptedTechAlgorithmsGtl(), algorithm(), algorithmRefs(), conditionAlgorithms(), indexAlgorithm(), nameAlgorithm(), objectAlgorithms(), physAlgorithms(), and techAlgorithms().
|
inline |
Get the CMS magnet current averaged over run.
Definition at line 176 of file TriggerEvent.h.
References bCurrentAvg_.
Referenced by setBCurrentAvg().
|
inline |
Get the CMS magnet current at start of run.
Definition at line 172 of file TriggerEvent.h.
References bCurrentStart_.
Referenced by setBCurrentStart().
|
inline |
Get the CMS magnet current at end of run.
Definition at line 174 of file TriggerEvent.h.
References bCurrentStop_.
Referenced by setBCurrentStop().
|
inline |
Get the LHC beam mode.
Definition at line 160 of file TriggerEvent.h.
References beamMode_.
Referenced by setBeamMode().
|
inline |
Get the LHC beam momentum.
Definition at line 162 of file TriggerEvent.h.
References beamMomentum_.
Referenced by setBeamMomentum().
|
inline |
Get the LHC master status.
Definition at line 168 of file TriggerEvent.h.
References bstMasterStatus_.
Referenced by setBstMasterStatus().
const TriggerCondition * TriggerEvent::condition | ( | const std::string & | nameCondition | ) | const |
Get a pointer to a certain L1 condition by name, returns 0, if condition is not found
Definition at line 252 of file TriggerEvent.cc.
References conditions().
Referenced by conditionCollections(), conditionObjects(), and objectInCondition().
TriggerAlgorithmRefVector TriggerEvent::conditionAlgorithms | ( | const TriggerConditionRef & | conditionRef | ) | const |
Get a vector of references to all algorithms, which have a certain condition assigned.
Definition at line 442 of file TriggerEvent.cc.
References algorithmRef(), algorithms(), algorithms_, conditionInAlgorithm(), conditionRef(), nameAlgorithm(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.
std::vector< std::string > TriggerEvent::conditionCollections | ( | const std::string & | nameAlgorithm | ) | const |
Get a list of all trigger object collections used in a certain condition given by name.
Definition at line 458 of file TriggerEvent.cc.
References universalConfigTemplate::collection, condition(), newFWLiteAna::found, objects(), and AlCaHLTBitMon_QueryRunRegistry::string.
bool TriggerEvent::conditionInAlgorithm | ( | const TriggerConditionRef & | conditionRef, |
const std::string & | nameAlgorithm | ||
) | const |
Checks, if a condition is assigned to a certain algorithm given by name.
Definition at line 430 of file TriggerEvent.cc.
References algorithmConditions(), edm::RefVector< C, T, F >::begin(), conditionRef(), edm::RefVector< C, T, F >::end(), and nameAlgorithm().
Referenced by conditionAlgorithms().
TriggerObjectRefVector TriggerEvent::conditionObjects | ( | const std::string & | nameCondition | ) | const |
Get a vector of references to all objects, which were used in a certain condition given by name.
Definition at line 483 of file TriggerEvent.cc.
References condition(), objects(), objects_, and edm::RefVector< C, T, F >::push_back().
Referenced by algorithmObjects().
const TriggerConditionRef TriggerEvent::conditionRef | ( | const std::string & | nameCondition | ) | const |
Get a reference to a certain L1 condition by name, NULL, if condition is not found
Definition at line 262 of file TriggerEvent.cc.
References conditionRefs(), and edm::RefVector< C, T, F >::end().
Referenced by acceptedConditions(), algorithmConditions(), conditionAlgorithms(), conditionInAlgorithm(), conditionRefs(), and objectConditions().
const TriggerConditionRefVector TriggerEvent::conditionRefs | ( | ) | const |
Get a vector of references to all L1 conditions, empty, if RefProd is NULL
Definition at line 240 of file TriggerEvent.cc.
References conditionRef(), conditions(), conditions_, indexCondition(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by conditionRef().
|
inline |
Get a pointer to all L1 condition, returns 0, if RefProd is NULL
Definition at line 225 of file TriggerEvent.h.
References conditions_, and edm::RefProd< C >::get().
Referenced by acceptedConditions(), condition(), conditionRefs(), indexCondition(), and objectConditions().
const TriggerFilter * TriggerEvent::filter | ( | const std::string & | labelFilter | ) | const |
Get a pointer to a certain HLT filter by label, returns 0, if algorithm is not found
Definition at line 356 of file TriggerEvent.cc.
References filters().
Referenced by filterCollections(), filterObjects(), and objectInFilter().
std::vector< std::string > TriggerEvent::filterCollections | ( | const std::string & | labelFilter | ) | const |
Get a list of all trigger object collections used in a certain filter given by name.
Definition at line 612 of file TriggerEvent.cc.
References universalConfigTemplate::collection, filter(), newFWLiteAna::found, objects(), and AlCaHLTBitMon_QueryRunRegistry::string.
bool TriggerEvent::filterInPath | ( | const TriggerFilterRef & | filterRef, |
const std::string & | namePath, | ||
bool | firing = true |
||
) | const |
Checks, if a filter is assigned to and was run in a certain path given by name.
Definition at line 587 of file TriggerEvent.cc.
References edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::end(), filterRef(), and pathFilters().
Referenced by filterPaths().
TriggerObjectRefVector TriggerEvent::filterObjects | ( | const std::string & | labelFilter | ) | const |
Get a vector of references to all objects, which were used in a certain filter given by name.
Definition at line 637 of file TriggerEvent.cc.
References filter(), objects(), objects_, and edm::RefVector< C, T, F >::push_back().
Referenced by pathObjects().
TriggerPathRefVector TriggerEvent::filterPaths | ( | const TriggerFilterRef & | filterRef, |
bool | firing = true |
||
) | const |
Get a vector of references to all paths, which have a certain filter assigned.
Definition at line 597 of file TriggerEvent.cc.
References filterInPath(), filterRef(), pathRef(), paths(), paths_, edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.
const TriggerFilterRef TriggerEvent::filterRef | ( | const std::string & | labelFilter | ) | const |
Get a reference to a certain HLT filter by label, NULL, if filter is not found
Definition at line 365 of file TriggerEvent.cc.
References edm::RefVector< C, T, F >::end(), and filterRefs().
Referenced by acceptedFilters(), filterInPath(), filterPaths(), filterRefs(), objectFilters(), pathFilters(), and pathModules().
const TriggerFilterRefVector TriggerEvent::filterRefs | ( | ) | const |
Get a vector of references to all HLT filters, empty, if RefProd is NULL
Definition at line 345 of file TriggerEvent.cc.
References filterRef(), filters(), filters_, indexFilter(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by filterRef().
|
inline |
Get a pointer to all HLT filters, returns 0, if RefProd is NULL
Definition at line 271 of file TriggerEvent.h.
References filters_, and edm::RefProd< C >::get().
Referenced by acceptedFilters(), filter(), filterRefs(), indexFilter(), and objectFilters().
unsigned TriggerEvent::indexAlgorithm | ( | const std::string & | nameAlgorithm | ) | const |
Get the index of a certain L1 algorithm in the event collection by name, returns size of algorithm collection, if algorithm is not found
Definition at line 120 of file TriggerEvent.cc.
References algorithms(), Skims_PA_cff::name, and nameAlgorithm().
Referenced by acceptedAlgorithms(), acceptedAlgorithmsGtl(), acceptedPhysAlgorithms(), acceptedPhysAlgorithmsGtl(), acceptedTechAlgorithms(), acceptedTechAlgorithmsGtl(), algorithmRefs(), objectAlgorithms(), physAlgorithms(), and techAlgorithms().
unsigned TriggerEvent::indexCondition | ( | const std::string & | nameCondition | ) | const |
Get the index of a certain L1 condition in the event collection by name, returns size of condition collection, if condition is not found
Definition at line 273 of file TriggerEvent.cc.
References conditions(), and Skims_PA_cff::name.
Referenced by acceptedConditions(), conditionRefs(), and objectConditions().
unsigned TriggerEvent::indexFilter | ( | const std::string & | labelFilter | ) | const |
Get the index of a certain HLT filter in the event collection by label, returns size of algorithm collection, if algorithm is not found
Definition at line 375 of file TriggerEvent.cc.
References filters(), and label.
Referenced by acceptedFilters(), filterRefs(), objectFilters(), and pathModules().
unsigned TriggerEvent::indexPath | ( | const std::string & | namePath | ) | const |
Get the index of a certain HLT path in the event collection by name, returns size of algorithm collection, if algorithm is not found
Definition at line 324 of file TriggerEvent.cc.
References Skims_PA_cff::name, and paths().
Referenced by acceptedPaths(), objectPaths(), and pathRefs().
|
inline |
Get the LHC beam 1 intensity.
Definition at line 164 of file TriggerEvent.h.
References intensityBeam1_.
Referenced by setIntensityBeam1().
|
inline |
Get the LHC beam 2 intensity.
Definition at line 166 of file TriggerEvent.h.
References intensityBeam2_.
Referenced by setIntensityBeam2().
|
inline |
Get the LHC fill number.
Definition at line 158 of file TriggerEvent.h.
References lhcFill_.
Referenced by setLhcFill().
std::string TriggerEvent::nameAlgorithm | ( | const unsigned | bitAlgorithm, |
const bool | techAlgorithm = true |
||
) | const |
Get the name of a certain L1 algorithm in the event collection by bit number physics or technical (default) algorithms, returns empty string, if algorithm is not found
Definition at line 110 of file TriggerEvent.cc.
References algorithms(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by acceptedAlgorithms(), acceptedAlgorithmsGtl(), acceptedPhysAlgorithms(), acceptedPhysAlgorithmsGtl(), acceptedTechAlgorithms(), acceptedTechAlgorithmsGtl(), algorithm(), algorithmConditions(), algorithmObjects(), algorithmRef(), algorithmRefs(), conditionAlgorithms(), conditionInAlgorithm(), indexAlgorithm(), objectAlgorithms(), objectInAlgorithm(), physAlgorithms(), and techAlgorithms().
|
inline |
Get the name of the HLT trigger table.
Definition at line 148 of file TriggerEvent.h.
References nameHltTable_.
|
inline |
Get the name of the L1 trigger menu.
Definition at line 146 of file TriggerEvent.h.
References nameL1Menu_.
TriggerAlgorithmRefVector TriggerEvent::objectAlgorithms | ( | const TriggerObjectRef & | objectRef | ) | const |
Get a vector of references to all algorithms, which have a certain object assigned.
Definition at line 544 of file TriggerEvent.cc.
References algorithmRef(), algorithms(), algorithms_, indexAlgorithm(), nameAlgorithm(), objectInAlgorithm(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.
TriggerConditionRefVector TriggerEvent::objectConditions | ( | const TriggerObjectRef & | objectRef | ) | const |
Get a vector of references to all conditions, which have a certain object assigned.
Definition at line 504 of file TriggerEvent.cc.
References conditionRef(), conditions(), conditions_, indexCondition(), objectInCondition(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.
TriggerFilterRefVector TriggerEvent::objectFilters | ( | const TriggerObjectRef & | objectRef, |
bool | firing = true |
||
) | const |
Get a vector of references to all filters, which have a certain object assigned.
Definition at line 658 of file TriggerEvent.cc.
References filterRef(), filters(), filters_, indexFilter(), objectInFilter(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.
bool TriggerEvent::objectInAlgorithm | ( | const TriggerObjectRef & | objectRef, |
const std::string & | nameAlgorithm | ||
) | const |
Checks, if an object was used in a certain algorithm given by name.
Definition at line 533 of file TriggerEvent.cc.
References algorithmConditions(), edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::end(), nameAlgorithm(), and objectInCondition().
Referenced by objectAlgorithms().
bool TriggerEvent::objectInCondition | ( | const TriggerObjectRef & | objectRef, |
const std::string & | nameCondition | ||
) | const |
Checks, if an object was used in a certain condition given by name.
Definition at line 497 of file TriggerEvent.cc.
References condition(), and edm::Ref< C, T, F >::key().
Referenced by objectConditions(), and objectInAlgorithm().
bool TriggerEvent::objectInFilter | ( | const TriggerObjectRef & | objectRef, |
const std::string & | labelFilter | ||
) | const |
Checks, if an object was used in a certain filter given by name.
Definition at line 651 of file TriggerEvent.cc.
References filter(), and edm::Ref< C, T, F >::key().
Referenced by objectFilters(), and objectInPath().
bool TriggerEvent::objectInPath | ( | const TriggerObjectRef & | objectRef, |
const std::string & | namePath, | ||
bool | firing = true |
||
) | const |
Checks, if an object was used in a certain path given by name.
Definition at line 686 of file TriggerEvent.cc.
References edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::end(), objectInFilter(), and pathFilters().
Referenced by objectPaths().
TriggerPathRefVector TriggerEvent::objectPaths | ( | const TriggerObjectRef & | objectRef, |
bool | firing = true |
||
) | const |
Get a vector of references to all paths, which have a certain object assigned.
Definition at line 696 of file TriggerEvent.cc.
References indexPath(), objectInPath(), pathRef(), paths(), paths_, edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.
const TriggerObjectRefVector TriggerEvent::objectRefs | ( | ) | const |
Get a vector of references to all trigger objects, empty, if RefProd is NULL
Definition at line 396 of file TriggerEvent.cc.
References objects(), objects_, and edm::RefVector< C, T, F >::push_back().
|
inline |
Get a pointer to all trigger objects, returns 0, if RefProd is NULL
Definition at line 294 of file TriggerEvent.h.
References edm::RefProd< C >::get(), and objects_.
Referenced by conditionCollections(), conditionObjects(), filterCollections(), filterObjects(), objectRefs(), and objects().
TriggerObjectRefVector TriggerEvent::objects | ( | trigger::TriggerObjectType | triggerObjectType | ) | const |
Get a vector of references to all trigger objects by trigger object type.
Definition at line 406 of file TriggerEvent.cc.
References objects(), objects_, and edm::RefVector< C, T, F >::push_back().
|
inline |
Definition at line 300 of file TriggerEvent.h.
References objects().
const TriggerPath * TriggerEvent::path | ( | const std::string & | namePath | ) | const |
Get a pointer to a certain HLT path by name, returns 0, if algorithm is not found
Definition at line 306 of file TriggerEvent.cc.
References paths().
Referenced by pathFilters(), and pathModules().
TriggerFilterRefVector TriggerEvent::pathFilters | ( | const std::string & | namePath, |
bool | firing = true |
||
) | const |
Get a vector of references to all active HLT filters assigned to a certain path given by name.
Definition at line 574 of file TriggerEvent.cc.
References filterRef(), filters_, path(), and edm::RefVector< C, T, F >::push_back().
Referenced by filterInPath(), objectInPath(), and pathObjects().
TriggerFilterRefVector TriggerEvent::pathModules | ( | const std::string & | namePath, |
bool | all = true |
||
) | const |
HLT x-links Get a vector of references to all modules assigned to a certain path given by name, setting 'all' to 'false' returns the run filters only.
Definition at line 558 of file TriggerEvent.cc.
References python.cmstools::all(), filterRef(), filters_, indexFilter(), path(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.
TriggerObjectRefVector TriggerEvent::pathObjects | ( | const std::string & | namePath, |
bool | firing = true |
||
) | const |
Get a vector of references to all objects, which were used in a certain path given by name.
Definition at line 672 of file TriggerEvent.cc.
References edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::end(), filterObjects(), pathFilters(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.
const TriggerPathRef TriggerEvent::pathRef | ( | const std::string & | namePath | ) | const |
Get a reference to a certain HLT path by name, NULL, if path is not found
Definition at line 315 of file TriggerEvent.cc.
References edm::RefVector< C, T, F >::end(), and pathRefs().
Referenced by acceptedPaths(), filterPaths(), objectPaths(), and pathRefs().
const TriggerPathRefVector TriggerEvent::pathRefs | ( | ) | const |
Get a vector of references to all HLT paths, empty, if RefProd is NULL
Definition at line 295 of file TriggerEvent.cc.
References indexPath(), pathRef(), paths(), paths_, edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by pathRef().
|
inline |
Get a pointer to all HLT paths, returns 0, if RefProd is NULL
Definition at line 248 of file TriggerEvent.h.
References edm::RefProd< C >::get(), and paths_.
Referenced by acceptedPaths(), TestProcess.TestProcess::fillProcessDesc(), filterPaths(), indexPath(), objectPaths(), path(), and pathRefs().
TriggerAlgorithmRefVector TriggerEvent::physAlgorithms | ( | ) | const |
Get a vector of references to all physics L1 algorithms.
Definition at line 198 of file TriggerEvent.cc.
References algorithmRef(), algorithms(), algorithms_, indexAlgorithm(), nameAlgorithm(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Set the success flag.
Definition at line 120 of file TriggerEvent.h.
References accept(), and accept_.
|
inline |
L1 algorithms Set the reference to the pat::TriggerAlgorithmCollection in the event
Definition at line 180 of file TriggerEvent.h.
References algorithms_.
|
inline |
Set the CMS magnet current averaged over run.
Definition at line 144 of file TriggerEvent.h.
References bCurrentAvg(), and bCurrentAvg_.
|
inline |
Set the CMS magnet current at start of run.
Definition at line 140 of file TriggerEvent.h.
References bCurrentStart(), and bCurrentStart_.
|
inline |
Set the CMS magnet current at end of run.
Definition at line 142 of file TriggerEvent.h.
References bCurrentStop(), and bCurrentStop_.
|
inline |
Set the LHC beam mode.
Definition at line 128 of file TriggerEvent.h.
References beamMode(), and beamMode_.
|
inline |
Set the LHC beam momentum.
Definition at line 130 of file TriggerEvent.h.
References beamMomentum(), and beamMomentum_.
|
inline |
Set the LHC master status.
Definition at line 136 of file TriggerEvent.h.
References bstMasterStatus(), and bstMasterStatus_.
|
inline |
L1 conditions Set the reference to the pat::TriggerConditionCollection in the event
Definition at line 220 of file TriggerEvent.h.
References conditions_.
|
inline |
Set the error flag.
Definition at line 122 of file TriggerEvent.h.
References relativeConstraints::error, and error_.
|
inline |
HLT filters Set the reference to the pat::TriggerFilterCollection in the event
Definition at line 266 of file TriggerEvent.h.
References filters_.
|
inline |
Set the LHC beam 1 intensity.
Definition at line 132 of file TriggerEvent.h.
References intensityBeam1(), and intensityBeam1_.
|
inline |
Set the LHC beam 2 intensity.
Definition at line 134 of file TriggerEvent.h.
References intensityBeam2(), and intensityBeam2_.
|
inline |
Set the LHC fill number.
Definition at line 126 of file TriggerEvent.h.
References lhcFill(), and lhcFill_.
|
inline |
Set the name of the HLT trigger table.
Definition at line 116 of file TriggerEvent.h.
References Skims_PA_cff::name, and nameHltTable_.
|
inline |
Methods.
Trigger event Set the name of the L1 trigger menu
Definition at line 114 of file TriggerEvent.h.
References Skims_PA_cff::name, and nameL1Menu_.
|
inline |
Trigger objects Set the reference to the pat::TriggerObjectCollection in the event
Definition at line 289 of file TriggerEvent.h.
References objects_.
|
inline |
HLT paths Set the reference to the pat::TriggerPathCollection in the event
Definition at line 243 of file TriggerEvent.h.
References paths_.
|
inline |
Set the PhysicsDeclared GT bit.
Definition at line 124 of file TriggerEvent.h.
References physDecl_.
|
inline |
Set the run flag.
Definition at line 118 of file TriggerEvent.h.
References writedatasetfile::run, and run_.
|
inline |
Set the LHC beam turn counter.
Definition at line 138 of file TriggerEvent.h.
References turnCount(), and turnCount_.
TriggerAlgorithmRefVector TriggerEvent::techAlgorithms | ( | ) | const |
Get a vector of references to all technical L1 algorithms.
Definition at line 156 of file TriggerEvent.cc.
References algorithmRef(), algorithms(), algorithms_, indexAlgorithm(), nameAlgorithm(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.
std::vector< std::string > TriggerEvent::triggerMatchers | ( | ) | const |
Get a list of all linked trigger matches.
Definition at line 718 of file TriggerEvent.cc.
References triggerObjectMatchResults().
const TriggerObjectMatch * TriggerEvent::triggerObjectMatchResult | ( | const std::string & | labelMatcher | ) | const |
Get a pointer to a certain trigger match given by label, performs proper "range check" (better than '(*triggerObjectMatchResults())[labelMatcher]'), returns 0, if matcher not found
Definition at line 728 of file TriggerEvent.cc.
References spr::find(), and triggerObjectMatchResults().
|
inline |
Get all trigger matches.
Definition at line 364 of file TriggerEvent.h.
References objectMatchResults_.
Referenced by addObjectMatchResult(), triggerMatchers(), and triggerObjectMatchResult().
|
inline |
Get the LHC beam turn counter.
Definition at line 170 of file TriggerEvent.h.
References turnCount_.
Referenced by setTurnCount().
|
inline |
|
inline |
|
inline |
Get the PhysicsDeclared GT bit.
Definition at line 156 of file TriggerEvent.h.
References physDecl_.
|
inline |
|
private |
Did HLT succeed?
Definition at line 49 of file TriggerEvent.h.
Referenced by setAccept(), and wasAccept().
|
private |
Member collection related data members Reference to pat::TriggerAlgorithmCollection in event
Definition at line 79 of file TriggerEvent.h.
Referenced by acceptedAlgorithms(), acceptedAlgorithmsGtl(), acceptedPhysAlgorithms(), acceptedPhysAlgorithmsGtl(), acceptedTechAlgorithms(), acceptedTechAlgorithmsGtl(), algorithmRefs(), algorithms(), conditionAlgorithms(), objectAlgorithms(), physAlgorithms(), setAlgorithms(), and techAlgorithms().
|
private |
CMS magnet current in ??? averaged over run.
Definition at line 75 of file TriggerEvent.h.
Referenced by bCurrentAvg(), and setBCurrentAvg().
|
private |
CMS magnet current in ??? at start of run.
Definition at line 71 of file TriggerEvent.h.
Referenced by bCurrentStart(), and setBCurrentStart().
|
private |
CMS magnet current in ??? at end of run.
Definition at line 73 of file TriggerEvent.h.
Referenced by bCurrentStop(), and setBCurrentStop().
|
private |
LHC beam mode as defined in http://bdidev1.cern.ch/bdisoft/operational/abbdisw_wiki/LHC/BST-config –> Beam mode.
Definition at line 58 of file TriggerEvent.h.
Referenced by beamMode(), and setBeamMode().
|
private |
LHC beam momentum in GeV.
Definition at line 60 of file TriggerEvent.h.
Referenced by beamMomentum(), and setBeamMomentum().
|
private |
LHC master status as defined in http://bdidev1.cern.ch/bdisoft/operational/abbdisw_wiki/LHC/BST-config
Definition at line 67 of file TriggerEvent.h.
Referenced by bstMasterStatus(), and setBstMasterStatus().
|
private |
Reference to pat::TriggerConditionCollection in event.
Definition at line 81 of file TriggerEvent.h.
Referenced by acceptedConditions(), algorithmConditions(), conditionRefs(), conditions(), objectConditions(), and setConditions().
|
private |
Was HLT in error?
Definition at line 51 of file TriggerEvent.h.
Referenced by setError(), and wasError().
|
private |
Reference to pat::TriggerAlgorithmCollection in event.
Definition at line 85 of file TriggerEvent.h.
Referenced by acceptedFilters(), Config.Process::dumpConfig(), Config.Process::dumpPython(), Config.Process::filterNames(), filterRefs(), filters(), objectFilters(), pathFilters(), pathModules(), Config.Process::prune(), setFilters(), and Config.Process::splitPython().
|
private |
LHC beam 1 intensity in ???
Definition at line 62 of file TriggerEvent.h.
Referenced by intensityBeam1(), and setIntensityBeam1().
|
private |
LHC beam 2 intensity in ???
Definition at line 64 of file TriggerEvent.h.
Referenced by intensityBeam2(), and setIntensityBeam2().
|
private |
LHC fill number.
Definition at line 55 of file TriggerEvent.h.
Referenced by lhcFill(), and setLhcFill().
|
private |
Name of the HLT trigger table.
Definition at line 45 of file TriggerEvent.h.
Referenced by nameHltTable(), and setNameHltTable().
|
private |
Data Members.
Name of the L1 trigger menu
Definition at line 43 of file TriggerEvent.h.
Referenced by nameL1Menu(), and setNameL1Menu().
|
private |
Table of references to pat::TriggerObjectMatch associations in event.
Definition at line 89 of file TriggerEvent.h.
Referenced by addObjectMatchResult(), TriggerEvent(), and triggerObjectMatchResults().
|
private |
Reference to pat::TriggerObjectCollection in event.
Definition at line 87 of file TriggerEvent.h.
Referenced by conditionObjects(), filterObjects(), objectRefs(), objects(), and setObjects().
|
private |
Reference to pat::TriggerPathCollection in event.
Definition at line 83 of file TriggerEvent.h.
Referenced by Config.Process::_insertPaths(), acceptedPaths(), Config.Process::dumpConfig(), Config.Process::dumpPython(), filterPaths(), objectPaths(), Config.Process::pathNames(), pathRefs(), paths(), setPaths(), and Config.Process::splitPython().
|
private |
PhysicsDeclared GT bit.
Definition at line 53 of file TriggerEvent.h.
Referenced by setPhysDecl(), and wasPhysDecl().
|
private |
|
private |
LHC beam turn counter.
Definition at line 69 of file TriggerEvent.h.
Referenced by setTurnCount(), and turnCount().