CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
pat::TriggerEvent Class Reference

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 TriggerAlgorithmalgorithm (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 TriggerAlgorithmCollectionalgorithms () 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 TriggerConditioncondition (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 TriggerConditionCollectionconditions () const
 
const TriggerFilterfilter (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 TriggerFilterCollectionfilters () 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 TriggerObjectCollectionobjects () 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 TriggerPathpath (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 TriggerPathCollectionpaths () 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 TriggerObjectMatchtriggerObjectMatchResult (const std::string &labelMatcher) const
 
const TriggerObjectMatchContainertriggerObjectMatchResults () 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...
 

Detailed Description

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

Author
Volker Adler

Definition at line 39 of file TriggerEvent.h.

Constructor & Destructor Documentation

◆ TriggerEvent() [1/3]

TriggerEvent::TriggerEvent ( )

Constructors and Desctructor.

Default constructor

Definition at line 11 of file TriggerEvent.cc.

References objectMatchResults_.

12  : nameL1Menu_(),
13  nameHltTable_(),
14  run_(),
15  accept_(),
16  error_(),
17  physDecl_(),
18  lhcFill_(),
19  beamMode_(),
20  beamMomentum_(),
24  turnCount_(),
26  bCurrentStop_(),
27  bCurrentAvg_() {
28  objectMatchResults_.clear();
29 }
std::string nameHltTable_
Name of the HLT trigger table.
Definition: TriggerEvent.h:45
bool physDecl_
PhysicsDeclared GT bit.
Definition: TriggerEvent.h:53
bool accept_
Did HLT succeed?
Definition: TriggerEvent.h:49
bool error_
Was HLT in error?
Definition: TriggerEvent.h:51
std::string nameL1Menu_
Data Members.
Definition: TriggerEvent.h:43
float bCurrentStart_
CMS magnet current in ??? at start of run.
Definition: TriggerEvent.h:71
uint32_t lhcFill_
LHC fill number.
Definition: TriggerEvent.h:55
float bCurrentAvg_
CMS magnet current in ??? averaged over run.
Definition: TriggerEvent.h:75
uint32_t intensityBeam1_
LHC beam 1 intensity in ???
Definition: TriggerEvent.h:62
uint32_t intensityBeam2_
LHC beam 2 intensity in ???
Definition: TriggerEvent.h:64
uint16_t beamMomentum_
LHC beam momentum in GeV.
Definition: TriggerEvent.h:60
uint16_t bstMasterStatus_
Definition: TriggerEvent.h:67
uint16_t beamMode_
Definition: TriggerEvent.h:58
float bCurrentStop_
CMS magnet current in ??? at end of run.
Definition: TriggerEvent.h:73
uint32_t turnCount_
LHC beam turn counter.
Definition: TriggerEvent.h:69
TriggerObjectMatchContainer objectMatchResults_
Table of references to pat::TriggerObjectMatch associations in event.
Definition: TriggerEvent.h:89
bool run_
Was HLT run?
Definition: TriggerEvent.h:47

◆ TriggerEvent() [2/3]

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

33  : nameL1Menu_(),
35  run_(run),
36  accept_(accept),
37  error_(error),
38  physDecl_(physDecl),
39  lhcFill_(),
40  beamMode_(),
41  beamMomentum_(),
45  turnCount_(),
47  bCurrentStop_(),
48  bCurrentAvg_() {
49  objectMatchResults_.clear();
50 }
std::string nameHltTable_
Name of the HLT trigger table.
Definition: TriggerEvent.h:45
bool physDecl_
PhysicsDeclared GT bit.
Definition: TriggerEvent.h:53
bool accept_
Did HLT succeed?
Definition: TriggerEvent.h:49
bool error_
Was HLT in error?
Definition: TriggerEvent.h:51
std::string nameL1Menu_
Data Members.
Definition: TriggerEvent.h:43
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Definition: TopDQMHelpers.h:31
float bCurrentStart_
CMS magnet current in ??? at start of run.
Definition: TriggerEvent.h:71
uint32_t lhcFill_
LHC fill number.
Definition: TriggerEvent.h:55
float bCurrentAvg_
CMS magnet current in ??? averaged over run.
Definition: TriggerEvent.h:75
uint32_t intensityBeam1_
LHC beam 1 intensity in ???
Definition: TriggerEvent.h:62
uint32_t intensityBeam2_
LHC beam 2 intensity in ???
Definition: TriggerEvent.h:64
uint16_t beamMomentum_
LHC beam momentum in GeV.
Definition: TriggerEvent.h:60
uint16_t bstMasterStatus_
Definition: TriggerEvent.h:67
uint16_t beamMode_
Definition: TriggerEvent.h:58
float bCurrentStop_
CMS magnet current in ??? at end of run.
Definition: TriggerEvent.h:73
uint32_t turnCount_
LHC beam turn counter.
Definition: TriggerEvent.h:69
TriggerObjectMatchContainer objectMatchResults_
Table of references to pat::TriggerObjectMatch associations in event.
Definition: TriggerEvent.h:89
bool run_
Was HLT run?
Definition: TriggerEvent.h:47
const std::string & nameHltTable() const
Get the name of the HLT trigger table.
Definition: TriggerEvent.h:148

◆ TriggerEvent() [3/3]

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

57  run_(run),
58  accept_(accept),
59  error_(error),
60  physDecl_(physDecl),
61  lhcFill_(),
62  beamMode_(),
63  beamMomentum_(),
67  turnCount_(),
69  bCurrentStop_(),
70  bCurrentAvg_() {
71  objectMatchResults_.clear();
72 }
std::string nameHltTable_
Name of the HLT trigger table.
Definition: TriggerEvent.h:45
bool physDecl_
PhysicsDeclared GT bit.
Definition: TriggerEvent.h:53
bool accept_
Did HLT succeed?
Definition: TriggerEvent.h:49
bool error_
Was HLT in error?
Definition: TriggerEvent.h:51
std::string nameL1Menu_
Data Members.
Definition: TriggerEvent.h:43
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Definition: TopDQMHelpers.h:31
float bCurrentStart_
CMS magnet current in ??? at start of run.
Definition: TriggerEvent.h:71
uint32_t lhcFill_
LHC fill number.
Definition: TriggerEvent.h:55
const std::string & nameL1Menu() const
Get the name of the L1 trigger menu.
Definition: TriggerEvent.h:146
float bCurrentAvg_
CMS magnet current in ??? averaged over run.
Definition: TriggerEvent.h:75
uint32_t intensityBeam1_
LHC beam 1 intensity in ???
Definition: TriggerEvent.h:62
uint32_t intensityBeam2_
LHC beam 2 intensity in ???
Definition: TriggerEvent.h:64
uint16_t beamMomentum_
LHC beam momentum in GeV.
Definition: TriggerEvent.h:60
uint16_t bstMasterStatus_
Definition: TriggerEvent.h:67
uint16_t beamMode_
Definition: TriggerEvent.h:58
float bCurrentStop_
CMS magnet current in ??? at end of run.
Definition: TriggerEvent.h:73
uint32_t turnCount_
LHC beam turn counter.
Definition: TriggerEvent.h:69
TriggerObjectMatchContainer objectMatchResults_
Table of references to pat::TriggerObjectMatch associations in event.
Definition: TriggerEvent.h:89
bool run_
Was HLT run?
Definition: TriggerEvent.h:47
const std::string & nameHltTable() const
Get the name of the HLT trigger table.
Definition: TriggerEvent.h:148

◆ ~TriggerEvent()

virtual pat::TriggerEvent::~TriggerEvent ( )
inlinevirtual

Destructor.

Definition at line 108 of file TriggerEvent.h.

108 {};

Member Function Documentation

◆ acceptedAlgorithms()

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.

128  {
129  TriggerAlgorithmRefVector theAcceptedAlgorithms;
130  for (TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end();
131  ++iAlgorithm) {
132  if (iAlgorithm->decision()) {
133  const std::string nameAlgorithm(iAlgorithm->name());
135  theAcceptedAlgorithms.push_back(algorithmRef);
136  }
137  }
138  return theAcceptedAlgorithms;
139 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:79
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:185
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:99

◆ acceptedAlgorithmsGtl()

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.

142  {
143  TriggerAlgorithmRefVector theAcceptedAlgorithms;
144  for (TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end();
145  ++iAlgorithm) {
146  if (iAlgorithm->gtlResult()) {
147  const std::string nameAlgorithm(iAlgorithm->name());
149  theAcceptedAlgorithms.push_back(algorithmRef);
150  }
151  }
152  return theAcceptedAlgorithms;
153 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:79
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:185
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:99

◆ acceptedConditions()

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.

281  {
282  TriggerConditionRefVector theAcceptedConditions;
283  for (TriggerConditionCollection::const_iterator iCondition = conditions()->begin(); iCondition != conditions()->end();
284  ++iCondition) {
285  if (iCondition->wasAccept()) {
286  const std::string nameCondition(iCondition->name());
288  theAcceptedConditions.push_back(conditionRef);
289  }
290  }
291  return theAcceptedConditions;
292 }
TriggerConditionRefProd conditions_
Reference to pat::TriggerConditionCollection in event.
Definition: TriggerEvent.h:81
unsigned indexCondition(const std::string &nameCondition) const
const TriggerConditionCollection * conditions() const
Definition: TriggerEvent.h:225
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
const TriggerConditionRef conditionRef(const std::string &nameCondition) const

◆ acceptedFilters()

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.

383  {
384  TriggerFilterRefVector theAcceptedFilters;
385  for (TriggerFilterCollection::const_iterator iFilter = filters()->begin(); iFilter != filters()->end(); ++iFilter) {
386  if (iFilter->status() == 1) {
387  const std::string labelFilter(iFilter->label());
388  const TriggerFilterRef filterRef(filters_, indexFilter(labelFilter));
389  theAcceptedFilters.push_back(filterRef);
390  }
391  }
392  return theAcceptedFilters;
393 }
unsigned indexFilter(const std::string &labelFilter) const
TriggerFilterRefProd filters_
Reference to pat::TriggerAlgorithmCollection in event.
Definition: TriggerEvent.h:85
const TriggerFilterRef filterRef(const std::string &labelFilter) const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
const TriggerFilterCollection * filters() const
Definition: TriggerEvent.h:271

◆ acceptedPaths()

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.

332  {
333  TriggerPathRefVector theAcceptedPaths;
334  for (TriggerPathCollection::const_iterator iPath = paths()->begin(); iPath != paths()->end(); ++iPath) {
335  if (iPath->wasAccept()) {
336  const std::string namePath(iPath->name());
337  const TriggerPathRef pathRef(paths_, indexPath(namePath));
338  theAcceptedPaths.push_back(pathRef);
339  }
340  }
341  return theAcceptedPaths;
342 }
TriggerPathRefProd paths_
Reference to pat::TriggerPathCollection in event.
Definition: TriggerEvent.h:83
const TriggerPathRef pathRef(const std::string &namePath) const
unsigned indexPath(const std::string &namePath) const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
const TriggerPathCollection * paths() const
Definition: TriggerEvent.h:248

◆ acceptedPhysAlgorithms()

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.

212  {
213  TriggerAlgorithmRefVector theAcceptedPhysAlgorithms;
214  for (TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end();
215  ++iAlgorithm) {
216  if (!iAlgorithm->techTrigger() && iAlgorithm->decision()) {
217  const std::string nameAlgorithm(iAlgorithm->name());
219  theAcceptedPhysAlgorithms.push_back(algorithmRef);
220  }
221  }
222  return theAcceptedPhysAlgorithms;
223 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:79
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:185
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:99

◆ acceptedPhysAlgorithmsGtl()

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.

226  {
227  TriggerAlgorithmRefVector theAcceptedPhysAlgorithms;
228  for (TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end();
229  ++iAlgorithm) {
230  if (!iAlgorithm->techTrigger() && iAlgorithm->gtlResult()) {
231  const std::string nameAlgorithm(iAlgorithm->name());
233  theAcceptedPhysAlgorithms.push_back(algorithmRef);
234  }
235  }
236  return theAcceptedPhysAlgorithms;
237 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:79
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:185
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:99

◆ acceptedTechAlgorithms()

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.

170  {
171  TriggerAlgorithmRefVector theAcceptedTechAlgorithms;
172  for (TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end();
173  ++iAlgorithm) {
174  if (iAlgorithm->techTrigger() && iAlgorithm->decision()) {
175  const std::string nameAlgorithm(iAlgorithm->name());
177  theAcceptedTechAlgorithms.push_back(algorithmRef);
178  }
179  }
180  return theAcceptedTechAlgorithms;
181 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:79
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:185
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:99

◆ acceptedTechAlgorithmsGtl()

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.

184  {
185  TriggerAlgorithmRefVector theAcceptedTechAlgorithms;
186  for (TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end();
187  ++iAlgorithm) {
188  if (iAlgorithm->techTrigger() && iAlgorithm->gtlResult()) {
189  const std::string nameAlgorithm(iAlgorithm->name());
191  theAcceptedTechAlgorithms.push_back(algorithmRef);
192  }
193  }
194  return theAcceptedTechAlgorithms;
195 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:79
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:185
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:99

◆ addObjectMatchResult() [1/3]

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

709  {
710  if (triggerObjectMatchResults()->find(labelMatcher) == triggerObjectMatchResults()->end()) {
711  objectMatchResults_[labelMatcher] = trigMatches;
712  return true;
713  }
714  return false;
715 }
const TriggerObjectMatchContainer * triggerObjectMatchResults() const
Get all trigger matches.
Definition: TriggerEvent.h:364
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
TriggerObjectMatchContainer objectMatchResults_
Table of references to pat::TriggerObjectMatch associations in event.
Definition: TriggerEvent.h:89

◆ addObjectMatchResult() [2/3]

bool pat::TriggerEvent::addObjectMatchResult ( const edm::Handle< TriggerObjectMatch > &  trigMatches,
const std::string &  labelMatcher 
)
inline

Definition at line 354 of file TriggerEvent.h.

References addObjectMatchResult().

354  {
355  return addObjectMatchResult(TriggerObjectMatchRefProd(trigMatches), labelMatcher);
356  };
edm::RefProd< TriggerObjectMatch > TriggerObjectMatchRefProd
Persistent reference to a TriggerObjectMatch product.
bool addObjectMatchResult(const TriggerObjectMatchRefProd &trigMatches, const std::string &labelMatcher)

◆ addObjectMatchResult() [3/3]

bool pat::TriggerEvent::addObjectMatchResult ( const edm::OrphanHandle< TriggerObjectMatch > &  trigMatches,
const std::string &  labelMatcher 
)
inline

Definition at line 357 of file TriggerEvent.h.

References addObjectMatchResult().

358  {
359  return addObjectMatchResult(TriggerObjectMatchRefProd(trigMatches), labelMatcher);
360  };
edm::RefProd< TriggerObjectMatch > TriggerObjectMatchRefProd
Persistent reference to a TriggerObjectMatch product.
bool addObjectMatchResult(const TriggerObjectMatchRefProd &trigMatches, const std::string &labelMatcher)

◆ algorithm()

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

89  {
90  for (TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end();
91  ++iAlgorithm) {
92  if (nameAlgorithm == iAlgorithm->name())
93  return &*iAlgorithm;
94  }
95  return nullptr;
96 }
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:185
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const

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

418  {
419  TriggerConditionRefVector theAlgorithmConditions;
420  if (const TriggerAlgorithm* algorithmPtr = algorithm(nameAlgorithm)) {
421  for (unsigned iC = 0; iC < algorithmPtr->conditionKeys().size(); ++iC) {
422  const TriggerConditionRef conditionRef(conditions_, algorithmPtr->conditionKeys().at(iC));
423  theAlgorithmConditions.push_back(conditionRef);
424  }
425  }
426  return theAlgorithmConditions;
427 }
Analysis-level L1 trigger algorithm class.
TriggerConditionRefProd conditions_
Reference to pat::TriggerConditionCollection in event.
Definition: TriggerEvent.h:81
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
const TriggerConditionRef conditionRef(const std::string &nameCondition) const
const TriggerAlgorithm * algorithm(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:89

◆ algorithmObjects()

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.

518  {
519  TriggerObjectRefVector theAlgorithmObjects;
521  for (TriggerConditionRefVectorIterator iCondition = theConditions.begin(); iCondition != theConditions.end();
522  ++iCondition) {
523  const std::string nameCondition((*iCondition)->name());
524  TriggerObjectRefVector theObjects = conditionObjects(nameCondition);
525  for (TriggerObjectRefVectorIterator iObject = theObjects.begin(); iObject != theObjects.end(); ++iObject) {
526  theAlgorithmObjects.push_back(*iObject);
527  }
528  }
529  return theAlgorithmObjects;
530 }
TriggerConditionRefVector algorithmConditions(const std::string &nameAlgorithm) const
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...
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:223

◆ algorithmRef()

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

99  {
101  iAlgorithm != algorithmRefs().end();
102  ++iAlgorithm) {
103  if (nameAlgorithm == (*iAlgorithm)->name())
104  return *iAlgorithm;
105  }
106  return TriggerAlgorithmRef();
107 }
edm::Ref< TriggerAlgorithmCollection > TriggerAlgorithmRef
Persistent reference to an item in a TriggerAlgorithmCollection.
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
const TriggerAlgorithmRefVector algorithmRefs() const
Definition: TriggerEvent.cc:77

◆ algorithmRefs()

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

77  {
78  TriggerAlgorithmRefVector theAlgorithms;
79  for (TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end();
80  ++iAlgorithm) {
81  const std::string nameAlgorithm(iAlgorithm->name());
83  theAlgorithms.push_back(algorithmRef);
84  }
85  return theAlgorithms;
86 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:79
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:185
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:99

◆ algorithms()

const TriggerAlgorithmCollection* pat::TriggerEvent::algorithms ( ) const
inline

◆ bCurrentAvg()

float pat::TriggerEvent::bCurrentAvg ( ) const
inline

Get the CMS magnet current averaged over run.

Definition at line 176 of file TriggerEvent.h.

References bCurrentAvg_.

Referenced by setBCurrentAvg().

176 { return bCurrentAvg_; };
float bCurrentAvg_
CMS magnet current in ??? averaged over run.
Definition: TriggerEvent.h:75

◆ bCurrentStart()

float pat::TriggerEvent::bCurrentStart ( ) const
inline

Get the CMS magnet current at start of run.

Definition at line 172 of file TriggerEvent.h.

References bCurrentStart_.

Referenced by setBCurrentStart().

172 { return bCurrentStart_; };
float bCurrentStart_
CMS magnet current in ??? at start of run.
Definition: TriggerEvent.h:71

◆ bCurrentStop()

float pat::TriggerEvent::bCurrentStop ( ) const
inline

Get the CMS magnet current at end of run.

Definition at line 174 of file TriggerEvent.h.

References bCurrentStop_.

Referenced by setBCurrentStop().

174 { return bCurrentStop_; };
float bCurrentStop_
CMS magnet current in ??? at end of run.
Definition: TriggerEvent.h:73

◆ beamMode()

uint16_t pat::TriggerEvent::beamMode ( ) const
inline

Get the LHC beam mode.

Definition at line 160 of file TriggerEvent.h.

References beamMode_.

Referenced by setBeamMode().

160 { return beamMode_; };
uint16_t beamMode_
Definition: TriggerEvent.h:58

◆ beamMomentum()

uint16_t pat::TriggerEvent::beamMomentum ( ) const
inline

Get the LHC beam momentum.

Definition at line 162 of file TriggerEvent.h.

References beamMomentum_.

Referenced by setBeamMomentum().

162 { return beamMomentum_; };
uint16_t beamMomentum_
LHC beam momentum in GeV.
Definition: TriggerEvent.h:60

◆ bstMasterStatus()

uint16_t pat::TriggerEvent::bstMasterStatus ( ) const
inline

Get the LHC master status.

Definition at line 168 of file TriggerEvent.h.

References bstMasterStatus_.

Referenced by setBstMasterStatus().

168 { return bstMasterStatus_; };
uint16_t bstMasterStatus_
Definition: TriggerEvent.h:67

◆ condition()

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

252  {
253  for (TriggerConditionCollection::const_iterator iCondition = conditions()->begin(); iCondition != conditions()->end();
254  ++iCondition) {
255  if (nameCondition == iCondition->name())
256  return &*iCondition;
257  }
258  return nullptr;
259 }
const TriggerConditionCollection * conditions() const
Definition: TriggerEvent.h:225

◆ conditionAlgorithms()

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.

442  {
443  TriggerAlgorithmRefVector theConditionAlgorithms;
444  size_t cAlgorithms(0);
445  for (TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end();
446  ++iAlgorithm) {
447  const std::string nameAlgorithm(iAlgorithm->name());
449  const TriggerAlgorithmRef algorithmRef(algorithms_, cAlgorithms);
450  theConditionAlgorithms.push_back(algorithmRef);
451  }
452  ++cAlgorithms;
453  }
454  return theConditionAlgorithms;
455 }
bool conditionInAlgorithm(const TriggerConditionRef &conditionRef, const std::string &nameAlgorithm) const
Checks, if a condition is assigned to a certain algorithm given by name.
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:79
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:185
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
const TriggerConditionRef conditionRef(const std::string &nameCondition) const
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:99

◆ conditionCollections()

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.

458  {
459  std::vector<std::string> theConditionCollections;
460  if (const TriggerCondition* conditionPtr = condition(nameCondition)) {
461  for (unsigned iObject = 0; iObject < objects()->size(); ++iObject) {
462  if (conditionPtr->hasObjectKey(iObject)) {
463  bool found(false);
464  std::string objectCollection(objects()->at(iObject).collection());
465  for (std::vector<std::string>::const_iterator iC = theConditionCollections.begin();
466  iC != theConditionCollections.end();
467  ++iC) {
468  if (*iC == objectCollection) {
469  found = true;
470  break;
471  }
472  }
473  if (!found) {
474  theConditionCollections.push_back(objectCollection);
475  }
476  }
477  }
478  }
479  return theConditionCollections;
480 }
const TriggerCondition * condition(const std::string &nameCondition) const
Analysis-level L1 trigger condition class.
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:294

◆ conditionInAlgorithm()

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

431  {
433  for (TriggerConditionRefVectorIterator iCondition = theConditions.begin(); iCondition != theConditions.end();
434  ++iCondition) {
435  if (conditionRef == *iCondition)
436  return true;
437  }
438  return false;
439 }
TriggerConditionRefVector algorithmConditions(const std::string &nameAlgorithm) const
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
const TriggerConditionRef conditionRef(const std::string &nameCondition) const
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:223

◆ conditionObjects()

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

483  {
484  TriggerObjectRefVector theConditionObjects;
485  if (const TriggerCondition* conditionPtr = condition(nameCondition)) {
486  for (unsigned iObject = 0; iObject < objects()->size(); ++iObject) {
487  if (conditionPtr->hasObjectKey(iObject)) {
488  const TriggerObjectRef objectRef(objects_, iObject);
489  theConditionObjects.push_back(objectRef);
490  }
491  }
492  }
493  return theConditionObjects;
494 }
const TriggerCondition * condition(const std::string &nameCondition) const
Analysis-level L1 trigger condition class.
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
TriggerObjectRefProd objects_
Reference to pat::TriggerObjectCollection in event.
Definition: TriggerEvent.h:87
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:294

◆ conditionRef()

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

262  {
264  iCondition != conditionRefs().end();
265  ++iCondition) {
266  if (nameCondition == (*iCondition)->name())
267  return *iCondition;
268  }
269  return TriggerConditionRef();
270 }
edm::Ref< TriggerConditionCollection > TriggerConditionRef
Persistent reference to an item in a TriggerConditionCollection.
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228
const TriggerConditionRefVector conditionRefs() const

◆ conditionRefs()

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

240  {
241  TriggerConditionRefVector theConditions;
242  for (TriggerConditionCollection::const_iterator iCondition = conditions()->begin(); iCondition != conditions()->end();
243  ++iCondition) {
244  const std::string nameCondition(iCondition->name());
246  theConditions.push_back(conditionRef);
247  }
248  return theConditions;
249 }
TriggerConditionRefProd conditions_
Reference to pat::TriggerConditionCollection in event.
Definition: TriggerEvent.h:81
unsigned indexCondition(const std::string &nameCondition) const
const TriggerConditionCollection * conditions() const
Definition: TriggerEvent.h:225
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
const TriggerConditionRef conditionRef(const std::string &nameCondition) const

◆ conditions()

const TriggerConditionCollection* pat::TriggerEvent::conditions ( ) const
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().

225 { return conditions_.get(); };
TriggerConditionRefProd conditions_
Reference to pat::TriggerConditionCollection in event.
Definition: TriggerEvent.h:81
product_type const * get() const
Definition: RefProd.h:106

◆ filter()

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

356  {
357  for (TriggerFilterCollection::const_iterator iFilter = filters()->begin(); iFilter != filters()->end(); ++iFilter) {
358  if (labelFilter == iFilter->label())
359  return &*iFilter;
360  }
361  return nullptr;
362 }
const TriggerFilterCollection * filters() const
Definition: TriggerEvent.h:271

◆ filterCollections()

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.

612  {
613  std::vector<std::string> theFilterCollections;
614  if (const TriggerFilter* filterPtr = filter(labelFilter)) {
615  for (unsigned iObject = 0; iObject < objects()->size(); ++iObject) {
616  if (filterPtr->hasObjectKey(iObject)) {
617  bool found(false);
618  const std::string objectCollection(objects()->at(iObject).collection());
619  for (std::vector<std::string>::const_iterator iC = theFilterCollections.begin();
620  iC != theFilterCollections.end();
621  ++iC) {
622  if (*iC == objectCollection) {
623  found = true;
624  break;
625  }
626  }
627  if (!found) {
628  theFilterCollections.push_back(objectCollection);
629  }
630  }
631  }
632  }
633  return theFilterCollections;
634 }
Analysis-level HLTrigger filter class.
Definition: TriggerFilter.h:33
const TriggerFilter * filter(const std::string &labelFilter) const
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:294

◆ filterInPath()

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

587  {
588  TriggerFilterRefVector theFilters = pathFilters(namePath, firing);
589  for (TriggerFilterRefVectorIterator iFilter = theFilters.begin(); iFilter != theFilters.end(); ++iFilter) {
590  if (filterRef == *iFilter)
591  return true;
592  }
593  return false;
594 }
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...
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228
const TriggerFilterRef filterRef(const std::string &labelFilter) const
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:223

◆ filterObjects()

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

637  {
638  TriggerObjectRefVector theFilterObjects;
639  if (const TriggerFilter* filterPtr = filter(labelFilter)) {
640  for (unsigned iObject = 0; iObject < objects()->size(); ++iObject) {
641  if (filterPtr->hasObjectKey(iObject)) {
642  const TriggerObjectRef objectRef(objects_, iObject);
643  theFilterObjects.push_back(objectRef);
644  }
645  }
646  }
647  return theFilterObjects;
648 }
Analysis-level HLTrigger filter class.
Definition: TriggerFilter.h:33
const TriggerFilter * filter(const std::string &labelFilter) const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
TriggerObjectRefProd objects_
Reference to pat::TriggerObjectCollection in event.
Definition: TriggerEvent.h:87
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:294

◆ filterPaths()

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.

597  {
598  TriggerPathRefVector theFilterPaths;
599  size_t cPaths(0);
600  for (TriggerPathCollection::const_iterator iPath = paths()->begin(); iPath != paths()->end(); ++iPath) {
601  const std::string namePath(iPath->name());
602  if (filterInPath(filterRef, namePath, firing)) {
603  const TriggerPathRef pathRef(paths_, cPaths);
604  theFilterPaths.push_back(pathRef);
605  }
606  ++cPaths;
607  }
608  return theFilterPaths;
609 }
TriggerPathRefProd paths_
Reference to pat::TriggerPathCollection in event.
Definition: TriggerEvent.h:83
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.
const TriggerPathRef pathRef(const std::string &namePath) const
const TriggerFilterRef filterRef(const std::string &labelFilter) const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
const TriggerPathCollection * paths() const
Definition: TriggerEvent.h:248

◆ filterRef()

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

365  {
366  for (TriggerFilterRefVector::const_iterator iFilter = filterRefs().begin(); iFilter != filterRefs().end();
367  ++iFilter) {
368  if (labelFilter == (*iFilter)->label())
369  return *iFilter;
370  }
371  return TriggerFilterRef();
372 }
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228
edm::Ref< TriggerFilterCollection > TriggerFilterRef
Persistent reference to an item in a TriggerFilterCollection.
const TriggerFilterRefVector filterRefs() const

◆ filterRefs()

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

345  {
346  TriggerFilterRefVector theFilters;
347  for (TriggerFilterCollection::const_iterator iFilter = filters()->begin(); iFilter != filters()->end(); ++iFilter) {
348  const std::string labelFilter(iFilter->label());
349  const TriggerFilterRef filterRef(filters_, indexFilter(labelFilter));
350  theFilters.push_back(filterRef);
351  }
352  return theFilters;
353 }
unsigned indexFilter(const std::string &labelFilter) const
TriggerFilterRefProd filters_
Reference to pat::TriggerAlgorithmCollection in event.
Definition: TriggerEvent.h:85
const TriggerFilterRef filterRef(const std::string &labelFilter) const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
const TriggerFilterCollection * filters() const
Definition: TriggerEvent.h:271

◆ filters()

const TriggerFilterCollection* pat::TriggerEvent::filters ( ) const
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().

271 { return filters_.get(); };
TriggerFilterRefProd filters_
Reference to pat::TriggerAlgorithmCollection in event.
Definition: TriggerEvent.h:85
product_type const * get() const
Definition: RefProd.h:106

◆ indexAlgorithm()

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

120  {
121  unsigned iAlgorithm(0);
122  while (iAlgorithm < algorithms()->size() && algorithms()->at(iAlgorithm).name() != nameAlgorithm)
123  ++iAlgorithm;
124  return iAlgorithm;
125 }
size
Write out results.
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:185
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const

◆ indexCondition()

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

273  {
274  unsigned iCondition(0);
275  while (iCondition < conditions()->size() && conditions()->at(iCondition).name() != nameCondition)
276  ++iCondition;
277  return iCondition;
278 }
size
Write out results.
const TriggerConditionCollection * conditions() const
Definition: TriggerEvent.h:225

◆ indexFilter()

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

375  {
376  unsigned iFilter(0);
377  while (iFilter < filters()->size() && filters()->at(iFilter).label() != labelFilter)
378  ++iFilter;
379  return iFilter;
380 }
size
Write out results.
char const * label
const TriggerFilterCollection * filters() const
Definition: TriggerEvent.h:271

◆ indexPath()

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

324  {
325  unsigned iPath(0);
326  while (iPath < paths()->size() && paths()->at(iPath).name() != namePath)
327  ++iPath;
328  return iPath;
329 }
size
Write out results.
const TriggerPathCollection * paths() const
Definition: TriggerEvent.h:248

◆ intensityBeam1()

uint32_t pat::TriggerEvent::intensityBeam1 ( ) const
inline

Get the LHC beam 1 intensity.

Definition at line 164 of file TriggerEvent.h.

References intensityBeam1_.

Referenced by setIntensityBeam1().

164 { return intensityBeam1_; };
uint32_t intensityBeam1_
LHC beam 1 intensity in ???
Definition: TriggerEvent.h:62

◆ intensityBeam2()

uint32_t pat::TriggerEvent::intensityBeam2 ( ) const
inline

Get the LHC beam 2 intensity.

Definition at line 166 of file TriggerEvent.h.

References intensityBeam2_.

Referenced by setIntensityBeam2().

166 { return intensityBeam2_; };
uint32_t intensityBeam2_
LHC beam 2 intensity in ???
Definition: TriggerEvent.h:64

◆ lhcFill()

uint32_t pat::TriggerEvent::lhcFill ( ) const
inline

Get the LHC fill number.

Definition at line 158 of file TriggerEvent.h.

References lhcFill_.

Referenced by setLhcFill().

158 { return lhcFill_; };
uint32_t lhcFill_
LHC fill number.
Definition: TriggerEvent.h:55

◆ nameAlgorithm()

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

110  {
111  for (TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end();
112  ++iAlgorithm) {
113  if (bitAlgorithm == iAlgorithm->bit() && techAlgorithm == iAlgorithm->techTrigger())
114  return iAlgorithm->name();
115  }
116  return std::string("");
117 }
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:185

◆ nameHltTable()

const std::string& pat::TriggerEvent::nameHltTable ( ) const
inline

Get the name of the HLT trigger table.

Definition at line 148 of file TriggerEvent.h.

References nameHltTable_.

148 { return nameHltTable_; };
std::string nameHltTable_
Name of the HLT trigger table.
Definition: TriggerEvent.h:45

◆ nameL1Menu()

const std::string& pat::TriggerEvent::nameL1Menu ( ) const
inline

Get the name of the L1 trigger menu.

Definition at line 146 of file TriggerEvent.h.

References nameL1Menu_.

146 { return nameL1Menu_; };
std::string nameL1Menu_
Data Members.
Definition: TriggerEvent.h:43

◆ objectAlgorithms()

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.

544  {
545  TriggerAlgorithmRefVector theObjectAlgorithms;
546  for (TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end();
547  ++iAlgorithm) {
548  const std::string nameAlgorithm(iAlgorithm->name());
549  if (objectInAlgorithm(objectRef, nameAlgorithm)) {
551  theObjectAlgorithms.push_back(algorithmRef);
552  }
553  }
554  return theObjectAlgorithms;
555 }
bool objectInAlgorithm(const TriggerObjectRef &objectRef, const std::string &nameAlgorithm) const
Checks, if an object was used in a certain algorithm given by name.
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:79
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:185
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:99

◆ objectConditions()

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.

504  {
505  TriggerConditionRefVector theObjectConditions;
506  for (TriggerConditionCollection::const_iterator iCondition = conditions()->begin(); iCondition != conditions()->end();
507  ++iCondition) {
508  const std::string nameCondition(iCondition->name());
509  if (objectInCondition(objectRef, nameCondition)) {
511  theObjectConditions.push_back(conditionRef);
512  }
513  }
514  return theObjectConditions;
515 }
TriggerConditionRefProd conditions_
Reference to pat::TriggerConditionCollection in event.
Definition: TriggerEvent.h:81
unsigned indexCondition(const std::string &nameCondition) const
bool objectInCondition(const TriggerObjectRef &objectRef, const std::string &nameCondition) const
Checks, if an object was used in a certain condition given by name.
const TriggerConditionCollection * conditions() const
Definition: TriggerEvent.h:225
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
const TriggerConditionRef conditionRef(const std::string &nameCondition) const

◆ objectFilters()

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.

658  {
659  TriggerFilterRefVector theObjectFilters;
660  for (TriggerFilterCollection::const_iterator iFilter = filters()->begin(); iFilter != filters()->end(); ++iFilter) {
661  const std::string labelFilter(iFilter->label());
662  if (objectInFilter(objectRef, labelFilter)) {
663  const TriggerFilterRef filterRef(filters_, indexFilter(labelFilter));
664  if ((!firing) || iFilter->isFiring())
665  theObjectFilters.push_back(filterRef);
666  }
667  }
668  return theObjectFilters;
669 }
unsigned indexFilter(const std::string &labelFilter) const
TriggerFilterRefProd filters_
Reference to pat::TriggerAlgorithmCollection in event.
Definition: TriggerEvent.h:85
bool objectInFilter(const TriggerObjectRef &objectRef, const std::string &labelFilter) const
Checks, if an object was used in a certain filter given by name.
const TriggerFilterRef filterRef(const std::string &labelFilter) const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
const TriggerFilterCollection * filters() const
Definition: TriggerEvent.h:271

◆ objectInAlgorithm()

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

533  {
535  for (TriggerConditionRefVectorIterator iCondition = theConditions.begin(); iCondition != theConditions.end();
536  ++iCondition) {
537  if (objectInCondition(objectRef, (*iCondition)->name()))
538  return true;
539  }
540  return false;
541 }
TriggerConditionRefVector algorithmConditions(const std::string &nameAlgorithm) const
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228
bool objectInCondition(const TriggerObjectRef &objectRef, const std::string &nameCondition) const
Checks, if an object was used in a certain condition given by name.
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:223

◆ objectInCondition()

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

497  {
498  if (const TriggerCondition* conditionPtr = condition(nameCondition))
499  return conditionPtr->hasObjectKey(objectRef.key());
500  return false;
501 }
const TriggerCondition * condition(const std::string &nameCondition) const
key_type key() const
Accessor for product key.
Definition: Ref.h:250
Analysis-level L1 trigger condition class.

◆ objectInFilter()

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

651  {
652  if (const TriggerFilter* filterPtr = filter(labelFilter))
653  return filterPtr->hasObjectKey(objectRef.key());
654  return false;
655 }
key_type key() const
Accessor for product key.
Definition: Ref.h:250
Analysis-level HLTrigger filter class.
Definition: TriggerFilter.h:33
const TriggerFilter * filter(const std::string &labelFilter) const

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

686  {
687  TriggerFilterRefVector theFilters = pathFilters(namePath, firing);
688  for (TriggerFilterRefVectorIterator iFilter = theFilters.begin(); iFilter != theFilters.end(); ++iFilter) {
689  if (objectInFilter(objectRef, (*iFilter)->label()))
690  return true;
691  }
692  return false;
693 }
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...
bool objectInFilter(const TriggerObjectRef &objectRef, const std::string &labelFilter) const
Checks, if an object was used in a certain filter given by name.
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:223

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

696  {
697  TriggerPathRefVector theObjectPaths;
698  for (TriggerPathCollection::const_iterator iPath = paths()->begin(); iPath != paths()->end(); ++iPath) {
699  const std::string namePath(iPath->name());
700  if (objectInPath(objectRef, namePath, firing)) {
701  const TriggerPathRef pathRef(paths_, indexPath(namePath));
702  theObjectPaths.push_back(pathRef);
703  }
704  }
705  return theObjectPaths;
706 }
TriggerPathRefProd paths_
Reference to pat::TriggerPathCollection in event.
Definition: TriggerEvent.h:83
const TriggerPathRef pathRef(const std::string &namePath) const
unsigned indexPath(const std::string &namePath) const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
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.
const TriggerPathCollection * paths() const
Definition: TriggerEvent.h:248

◆ objectRefs()

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

396  {
397  TriggerObjectRefVector theObjects;
398  for (unsigned iObject = 0; iObject < objects()->size(); ++iObject) {
399  const TriggerObjectRef objectRef(objects_, iObject);
400  theObjects.push_back(objectRef);
401  }
402  return theObjects;
403 }
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
TriggerObjectRefProd objects_
Reference to pat::TriggerObjectCollection in event.
Definition: TriggerEvent.h:87
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:294

◆ objects() [1/3]

const TriggerObjectCollection* pat::TriggerEvent::objects ( ) const
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().

294 { return objects_.get(); };
product_type const * get() const
Definition: RefProd.h:106
TriggerObjectRefProd objects_
Reference to pat::TriggerObjectCollection in event.
Definition: TriggerEvent.h:87

◆ objects() [2/3]

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

406  {
407  TriggerObjectRefVector theObjects;
408  for (unsigned iObject = 0; iObject < objects()->size(); ++iObject) {
409  if (objects()->at(iObject).hasTriggerObjectType(triggerObjectType)) {
410  const TriggerObjectRef objectRef(objects_, iObject);
411  theObjects.push_back(objectRef);
412  }
413  }
414  return theObjects;
415 }
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
TriggerObjectRefProd objects_
Reference to pat::TriggerObjectCollection in event.
Definition: TriggerEvent.h:87
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:294

◆ objects() [3/3]

TriggerObjectRefVector pat::TriggerEvent::objects ( int  triggerObjectType) const
inline

Definition at line 300 of file TriggerEvent.h.

References objects().

300  {
301  return objects(trigger::TriggerObjectType(triggerObjectType));
302  }; // for backward compatibility
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:294

◆ path()

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

306  {
307  for (TriggerPathCollection::const_iterator iPath = paths()->begin(); iPath != paths()->end(); ++iPath) {
308  if (namePath == iPath->name())
309  return &*iPath;
310  }
311  return nullptr;
312 }
const TriggerPathCollection * paths() const
Definition: TriggerEvent.h:248

◆ pathFilters()

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

574  {
575  TriggerFilterRefVector thePathFilters;
576  if (const TriggerPath* pathPtr = path(namePath)) {
577  for (unsigned iF = 0; iF < pathPtr->filterIndices().size(); ++iF) {
578  const TriggerFilterRef filterRef(filters_, pathPtr->filterIndices().at(iF));
579  if ((!firing) || filterRef->isFiring())
580  thePathFilters.push_back(filterRef);
581  }
582  }
583  return thePathFilters;
584 }
const TriggerPath * path(const std::string &namePath) const
TriggerFilterRefProd filters_
Reference to pat::TriggerAlgorithmCollection in event.
Definition: TriggerEvent.h:85
const TriggerFilterRef filterRef(const std::string &labelFilter) const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67

◆ pathModules()

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.

558  {
559  TriggerFilterRefVector thePathFilters;
560  if (const TriggerPath* pathPtr = path(namePath)) {
561  if (!pathPtr->modules().empty()) {
562  const unsigned onePastLastFilter = all ? pathPtr->modules().size() : pathPtr->lastActiveFilterSlot() + 1;
563  for (unsigned iM = 0; iM < onePastLastFilter; ++iM) {
564  const std::string labelFilter(pathPtr->modules().at(iM));
565  const TriggerFilterRef filterRef(filters_, indexFilter(labelFilter));
566  thePathFilters.push_back(filterRef);
567  }
568  }
569  }
570  return thePathFilters;
571 }
const TriggerPath * path(const std::string &namePath) const
def all(container)
workaround iterator generators for ROOT classes
Definition: cmstools.py:25
unsigned indexFilter(const std::string &labelFilter) const
TriggerFilterRefProd filters_
Reference to pat::TriggerAlgorithmCollection in event.
Definition: TriggerEvent.h:85
const TriggerFilterRef filterRef(const std::string &labelFilter) const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67

◆ pathObjects()

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.

672  {
673  TriggerObjectRefVector thePathObjects;
674  TriggerFilterRefVector theFilters = pathFilters(namePath, firing);
675  for (TriggerFilterRefVectorIterator iFilter = theFilters.begin(); iFilter != theFilters.end(); ++iFilter) {
676  const std::string labelFilter((*iFilter)->label());
677  TriggerObjectRefVector theObjects = filterObjects(labelFilter);
678  for (TriggerObjectRefVectorIterator iObject = theObjects.begin(); iObject != theObjects.end(); ++iObject) {
679  thePathObjects.push_back(*iObject);
680  }
681  }
682  return thePathObjects;
683 }
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...
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228
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...
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:223

◆ pathRef()

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

315  {
316  for (TriggerPathRefVector::const_iterator iPath = pathRefs().begin(); iPath != pathRefs().end(); ++iPath) {
317  if (namePath == (*iPath)->name())
318  return *iPath;
319  }
320  return TriggerPathRef();
321 }
edm::Ref< TriggerPathCollection > TriggerPathRef
Persistent reference to an item in a TriggerPathCollection.
Definition: TriggerPath.h:162
const TriggerPathRefVector pathRefs() const
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228

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

295  {
296  TriggerPathRefVector thePaths;
297  for (TriggerPathCollection::const_iterator iPath = paths()->begin(); iPath != paths()->end(); ++iPath) {
298  const std::string namePath(iPath->name());
299  const TriggerPathRef pathRef(paths_, indexPath(namePath));
300  thePaths.push_back(pathRef);
301  }
302  return thePaths;
303 }
TriggerPathRefProd paths_
Reference to pat::TriggerPathCollection in event.
Definition: TriggerEvent.h:83
const TriggerPathRef pathRef(const std::string &namePath) const
unsigned indexPath(const std::string &namePath) const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
const TriggerPathCollection * paths() const
Definition: TriggerEvent.h:248

◆ paths()

const TriggerPathCollection* pat::TriggerEvent::paths ( ) const
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().

248 { return paths_.get(); };
TriggerPathRefProd paths_
Reference to pat::TriggerPathCollection in event.
Definition: TriggerEvent.h:83
product_type const * get() const
Definition: RefProd.h:106

◆ physAlgorithms()

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.

198  {
199  TriggerAlgorithmRefVector thePhysAlgorithms;
200  for (TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end();
201  ++iAlgorithm) {
202  if (!iAlgorithm->techTrigger()) {
203  const std::string nameAlgorithm(iAlgorithm->name());
205  thePhysAlgorithms.push_back(algorithmRef);
206  }
207  }
208  return thePhysAlgorithms;
209 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:79
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:185
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:99

◆ setAccept()

void pat::TriggerEvent::setAccept ( bool  accept)
inline

Set the success flag.

Definition at line 120 of file TriggerEvent.h.

References accept(), and accept_.

120 { accept_ = accept; };
bool accept_
Did HLT succeed?
Definition: TriggerEvent.h:49
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Definition: TopDQMHelpers.h:31

◆ setAlgorithms()

void pat::TriggerEvent::setAlgorithms ( const edm::Handle< TriggerAlgorithmCollection > &  handleTriggerAlgorithms)
inline

L1 algorithms Set the reference to the pat::TriggerAlgorithmCollection in the event

Definition at line 180 of file TriggerEvent.h.

References algorithms_.

180  {
181  algorithms_ = TriggerAlgorithmRefProd(handleTriggerAlgorithms);
182  };
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:79
edm::RefProd< TriggerAlgorithmCollection > TriggerAlgorithmRefProd
Persistent reference to a TriggerAlgorithmCollection product.

◆ setBCurrentAvg()

void pat::TriggerEvent::setBCurrentAvg ( float  bCurrentAvg)
inline

Set the CMS magnet current averaged over run.

Definition at line 144 of file TriggerEvent.h.

References bCurrentAvg(), and bCurrentAvg_.

float bCurrentAvg_
CMS magnet current in ??? averaged over run.
Definition: TriggerEvent.h:75
float bCurrentAvg() const
Get the CMS magnet current averaged over run.
Definition: TriggerEvent.h:176

◆ setBCurrentStart()

void pat::TriggerEvent::setBCurrentStart ( float  bCurrentStart)
inline

Set the CMS magnet current at start of run.

Definition at line 140 of file TriggerEvent.h.

References bCurrentStart(), and bCurrentStart_.

float bCurrentStart_
CMS magnet current in ??? at start of run.
Definition: TriggerEvent.h:71
float bCurrentStart() const
Get the CMS magnet current at start of run.
Definition: TriggerEvent.h:172

◆ setBCurrentStop()

void pat::TriggerEvent::setBCurrentStop ( float  bCurrentStop)
inline

Set the CMS magnet current at end of run.

Definition at line 142 of file TriggerEvent.h.

References bCurrentStop(), and bCurrentStop_.

float bCurrentStop() const
Get the CMS magnet current at end of run.
Definition: TriggerEvent.h:174
float bCurrentStop_
CMS magnet current in ??? at end of run.
Definition: TriggerEvent.h:73

◆ setBeamMode()

void pat::TriggerEvent::setBeamMode ( uint16_t  beamMode)
inline

Set the LHC beam mode.

Definition at line 128 of file TriggerEvent.h.

References beamMode(), and beamMode_.

128 { beamMode_ = beamMode; };
uint16_t beamMode() const
Get the LHC beam mode.
Definition: TriggerEvent.h:160
uint16_t beamMode_
Definition: TriggerEvent.h:58

◆ setBeamMomentum()

void pat::TriggerEvent::setBeamMomentum ( uint16_t  beamMomentum)
inline

Set the LHC beam momentum.

Definition at line 130 of file TriggerEvent.h.

References beamMomentum(), and beamMomentum_.

uint16_t beamMomentum() const
Get the LHC beam momentum.
Definition: TriggerEvent.h:162
uint16_t beamMomentum_
LHC beam momentum in GeV.
Definition: TriggerEvent.h:60

◆ setBstMasterStatus()

void pat::TriggerEvent::setBstMasterStatus ( uint16_t  bstMasterStatus)
inline

Set the LHC master status.

Definition at line 136 of file TriggerEvent.h.

References bstMasterStatus(), and bstMasterStatus_.

uint16_t bstMasterStatus() const
Get the LHC master status.
Definition: TriggerEvent.h:168
uint16_t bstMasterStatus_
Definition: TriggerEvent.h:67

◆ setConditions()

void pat::TriggerEvent::setConditions ( const edm::Handle< TriggerConditionCollection > &  handleTriggerConditions)
inline

L1 conditions Set the reference to the pat::TriggerConditionCollection in the event

Definition at line 220 of file TriggerEvent.h.

References conditions_.

220  {
221  conditions_ = TriggerConditionRefProd(handleTriggerConditions);
222  };
TriggerConditionRefProd conditions_
Reference to pat::TriggerConditionCollection in event.
Definition: TriggerEvent.h:81
edm::RefProd< TriggerConditionCollection > TriggerConditionRefProd
Persistent reference to a TriggerConditionCollection product.

◆ setError()

void pat::TriggerEvent::setError ( bool  error)
inline

Set the error flag.

Definition at line 122 of file TriggerEvent.h.

References relativeConstraints::error, and error_.

122 { error_ = error; };
bool error_
Was HLT in error?
Definition: TriggerEvent.h:51

◆ setFilters()

void pat::TriggerEvent::setFilters ( const edm::Handle< TriggerFilterCollection > &  handleTriggerFilters)
inline

HLT filters Set the reference to the pat::TriggerFilterCollection in the event

Definition at line 266 of file TriggerEvent.h.

References filters_.

266  {
267  filters_ = TriggerFilterRefProd(handleTriggerFilters);
268  };
TriggerFilterRefProd filters_
Reference to pat::TriggerAlgorithmCollection in event.
Definition: TriggerEvent.h:85
edm::RefProd< TriggerFilterCollection > TriggerFilterRefProd
Persistent reference to a TriggerFilterCollection product.

◆ setIntensityBeam1()

void pat::TriggerEvent::setIntensityBeam1 ( uint32_t  intensityBeam1)
inline

Set the LHC beam 1 intensity.

Definition at line 132 of file TriggerEvent.h.

References intensityBeam1(), and intensityBeam1_.

uint32_t intensityBeam1() const
Get the LHC beam 1 intensity.
Definition: TriggerEvent.h:164
uint32_t intensityBeam1_
LHC beam 1 intensity in ???
Definition: TriggerEvent.h:62

◆ setIntensityBeam2()

void pat::TriggerEvent::setIntensityBeam2 ( uint32_t  intensityBeam2)
inline

Set the LHC beam 2 intensity.

Definition at line 134 of file TriggerEvent.h.

References intensityBeam2(), and intensityBeam2_.

uint32_t intensityBeam2() const
Get the LHC beam 2 intensity.
Definition: TriggerEvent.h:166
uint32_t intensityBeam2_
LHC beam 2 intensity in ???
Definition: TriggerEvent.h:64

◆ setLhcFill()

void pat::TriggerEvent::setLhcFill ( uint32_t  lhcFill)
inline

Set the LHC fill number.

Definition at line 126 of file TriggerEvent.h.

References lhcFill(), and lhcFill_.

126 { lhcFill_ = lhcFill; };
uint32_t lhcFill_
LHC fill number.
Definition: TriggerEvent.h:55
uint32_t lhcFill() const
Get the LHC fill number.
Definition: TriggerEvent.h:158

◆ setNameHltTable()

void pat::TriggerEvent::setNameHltTable ( const std::string &  name)
inline

Set the name of the HLT trigger table.

Definition at line 116 of file TriggerEvent.h.

References Skims_PA_cff::name, and nameHltTable_.

116 { nameHltTable_ = name; };
std::string nameHltTable_
Name of the HLT trigger table.
Definition: TriggerEvent.h:45

◆ setNameL1Menu()

void pat::TriggerEvent::setNameL1Menu ( const std::string &  name)
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_.

114 { nameL1Menu_ = name; };
std::string nameL1Menu_
Data Members.
Definition: TriggerEvent.h:43

◆ setObjects()

void pat::TriggerEvent::setObjects ( const edm::Handle< TriggerObjectCollection > &  handleTriggerObjects)
inline

Trigger objects Set the reference to the pat::TriggerObjectCollection in the event

Definition at line 289 of file TriggerEvent.h.

References objects_.

289  {
290  objects_ = TriggerObjectRefProd(handleTriggerObjects);
291  };
edm::RefProd< TriggerObjectCollection > TriggerObjectRefProd
Persistent reference to a TriggerObjectCollection product.
TriggerObjectRefProd objects_
Reference to pat::TriggerObjectCollection in event.
Definition: TriggerEvent.h:87

◆ setPaths()

void pat::TriggerEvent::setPaths ( const edm::Handle< TriggerPathCollection > &  handleTriggerPaths)
inline

HLT paths Set the reference to the pat::TriggerPathCollection in the event

Definition at line 243 of file TriggerEvent.h.

References paths_.

243  {
244  paths_ = TriggerPathRefProd(handleTriggerPaths);
245  };
edm::RefProd< TriggerPathCollection > TriggerPathRefProd
Persistent reference to a TriggerPathCollection product.
Definition: TriggerPath.h:164
TriggerPathRefProd paths_
Reference to pat::TriggerPathCollection in event.
Definition: TriggerEvent.h:83

◆ setPhysDecl()

void pat::TriggerEvent::setPhysDecl ( bool  physDecl)
inline

Set the PhysicsDeclared GT bit.

Definition at line 124 of file TriggerEvent.h.

References physDecl_.

124 { physDecl_ = physDecl; };
bool physDecl_
PhysicsDeclared GT bit.
Definition: TriggerEvent.h:53

◆ setRun()

void pat::TriggerEvent::setRun ( bool  run)
inline

Set the run flag.

Definition at line 118 of file TriggerEvent.h.

References writedatasetfile::run, and run_.

118 { run_ = run; };
bool run_
Was HLT run?
Definition: TriggerEvent.h:47

◆ setTurnCount()

void pat::TriggerEvent::setTurnCount ( uint32_t  turnCount)
inline

Set the LHC beam turn counter.

Definition at line 138 of file TriggerEvent.h.

References turnCount(), and turnCount_.

138 { turnCount_ = turnCount; };
uint32_t turnCount() const
Get the LHC beam turn counter.
Definition: TriggerEvent.h:170
uint32_t turnCount_
LHC beam turn counter.
Definition: TriggerEvent.h:69

◆ techAlgorithms()

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.

156  {
157  TriggerAlgorithmRefVector theTechAlgorithms;
158  for (TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end();
159  ++iAlgorithm) {
160  if (iAlgorithm->techTrigger()) {
161  const std::string nameAlgorithm(iAlgorithm->name());
163  theTechAlgorithms.push_back(algorithmRef);
164  }
165  }
166  return theTechAlgorithms;
167 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:79
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:185
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:99

◆ triggerMatchers()

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

718  {
719  std::vector<std::string> theMatchers;
720  for (TriggerObjectMatchContainer::const_iterator iMatch = triggerObjectMatchResults()->begin();
721  iMatch != triggerObjectMatchResults()->end();
722  ++iMatch)
723  theMatchers.push_back(iMatch->first);
724  return theMatchers;
725 }
const TriggerObjectMatchContainer * triggerObjectMatchResults() const
Get all trigger matches.
Definition: TriggerEvent.h:364

◆ triggerObjectMatchResult()

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

728  {
729  const TriggerObjectMatchContainer::const_iterator iMatch(triggerObjectMatchResults()->find(labelMatcher));
730  if (iMatch != triggerObjectMatchResults()->end())
731  return iMatch->second.get();
732  return nullptr;
733 }
const TriggerObjectMatchContainer * triggerObjectMatchResults() const
Get all trigger matches.
Definition: TriggerEvent.h:364
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19

◆ triggerObjectMatchResults()

const TriggerObjectMatchContainer* pat::TriggerEvent::triggerObjectMatchResults ( ) const
inline

Get all trigger matches.

Definition at line 364 of file TriggerEvent.h.

References objectMatchResults_.

Referenced by addObjectMatchResult(), triggerMatchers(), and triggerObjectMatchResult().

364 { return &objectMatchResults_; };
TriggerObjectMatchContainer objectMatchResults_
Table of references to pat::TriggerObjectMatch associations in event.
Definition: TriggerEvent.h:89

◆ turnCount()

uint32_t pat::TriggerEvent::turnCount ( ) const
inline

Get the LHC beam turn counter.

Definition at line 170 of file TriggerEvent.h.

References turnCount_.

Referenced by setTurnCount().

170 { return turnCount_; };
uint32_t turnCount_
LHC beam turn counter.
Definition: TriggerEvent.h:69

◆ wasAccept()

bool pat::TriggerEvent::wasAccept ( ) const
inline

Get the success flag.

Definition at line 152 of file TriggerEvent.h.

References accept_.

152 { return accept_; };
bool accept_
Did HLT succeed?
Definition: TriggerEvent.h:49

◆ wasError()

bool pat::TriggerEvent::wasError ( ) const
inline

Get the error flag.

Definition at line 154 of file TriggerEvent.h.

References error_.

154 { return error_; };
bool error_
Was HLT in error?
Definition: TriggerEvent.h:51

◆ wasPhysDecl()

bool pat::TriggerEvent::wasPhysDecl ( ) const
inline

Get the PhysicsDeclared GT bit.

Definition at line 156 of file TriggerEvent.h.

References physDecl_.

156 { return physDecl_; };
bool physDecl_
PhysicsDeclared GT bit.
Definition: TriggerEvent.h:53

◆ wasRun()

bool pat::TriggerEvent::wasRun ( ) const
inline

Get the run flag.

Definition at line 150 of file TriggerEvent.h.

References run_.

150 { return run_; };
bool run_
Was HLT run?
Definition: TriggerEvent.h:47

Member Data Documentation

◆ accept_

bool pat::TriggerEvent::accept_
private

Did HLT succeed?

Definition at line 49 of file TriggerEvent.h.

Referenced by setAccept(), and wasAccept().

◆ algorithms_

TriggerAlgorithmRefProd pat::TriggerEvent::algorithms_
private

◆ bCurrentAvg_

float pat::TriggerEvent::bCurrentAvg_
private

CMS magnet current in ??? averaged over run.

Definition at line 75 of file TriggerEvent.h.

Referenced by bCurrentAvg(), and setBCurrentAvg().

◆ bCurrentStart_

float pat::TriggerEvent::bCurrentStart_
private

CMS magnet current in ??? at start of run.

Definition at line 71 of file TriggerEvent.h.

Referenced by bCurrentStart(), and setBCurrentStart().

◆ bCurrentStop_

float pat::TriggerEvent::bCurrentStop_
private

CMS magnet current in ??? at end of run.

Definition at line 73 of file TriggerEvent.h.

Referenced by bCurrentStop(), and setBCurrentStop().

◆ beamMode_

uint16_t pat::TriggerEvent::beamMode_
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().

◆ beamMomentum_

uint16_t pat::TriggerEvent::beamMomentum_
private

LHC beam momentum in GeV.

Definition at line 60 of file TriggerEvent.h.

Referenced by beamMomentum(), and setBeamMomentum().

◆ bstMasterStatus_

uint16_t pat::TriggerEvent::bstMasterStatus_
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().

◆ conditions_

TriggerConditionRefProd pat::TriggerEvent::conditions_
private

◆ error_

bool pat::TriggerEvent::error_
private

Was HLT in error?

Definition at line 51 of file TriggerEvent.h.

Referenced by setError(), and wasError().

◆ filters_

TriggerFilterRefProd pat::TriggerEvent::filters_
private

◆ intensityBeam1_

uint32_t pat::TriggerEvent::intensityBeam1_
private

LHC beam 1 intensity in ???

Definition at line 62 of file TriggerEvent.h.

Referenced by intensityBeam1(), and setIntensityBeam1().

◆ intensityBeam2_

uint32_t pat::TriggerEvent::intensityBeam2_
private

LHC beam 2 intensity in ???

Definition at line 64 of file TriggerEvent.h.

Referenced by intensityBeam2(), and setIntensityBeam2().

◆ lhcFill_

uint32_t pat::TriggerEvent::lhcFill_
private

LHC fill number.

Definition at line 55 of file TriggerEvent.h.

Referenced by lhcFill(), and setLhcFill().

◆ nameHltTable_

std::string pat::TriggerEvent::nameHltTable_
private

Name of the HLT trigger table.

Definition at line 45 of file TriggerEvent.h.

Referenced by nameHltTable(), and setNameHltTable().

◆ nameL1Menu_

std::string pat::TriggerEvent::nameL1Menu_
private

Data Members.

Name of the L1 trigger menu

Definition at line 43 of file TriggerEvent.h.

Referenced by nameL1Menu(), and setNameL1Menu().

◆ objectMatchResults_

TriggerObjectMatchContainer pat::TriggerEvent::objectMatchResults_
private

Table of references to pat::TriggerObjectMatch associations in event.

Definition at line 89 of file TriggerEvent.h.

Referenced by addObjectMatchResult(), TriggerEvent(), and triggerObjectMatchResults().

◆ objects_

TriggerObjectRefProd pat::TriggerEvent::objects_
private

Reference to pat::TriggerObjectCollection in event.

Definition at line 87 of file TriggerEvent.h.

Referenced by conditionObjects(), filterObjects(), objectRefs(), objects(), and setObjects().

◆ paths_

TriggerPathRefProd pat::TriggerEvent::paths_
private

◆ physDecl_

bool pat::TriggerEvent::physDecl_
private

PhysicsDeclared GT bit.

Definition at line 53 of file TriggerEvent.h.

Referenced by setPhysDecl(), and wasPhysDecl().

◆ run_

bool pat::TriggerEvent::run_
private

Was HLT run?

Definition at line 47 of file TriggerEvent.h.

Referenced by setRun(), and wasRun().

◆ turnCount_

uint32_t pat::TriggerEvent::turnCount_
private

LHC beam turn counter.

Definition at line 69 of file TriggerEvent.h.

Referenced by setTurnCount(), and turnCount().