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::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::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
const std::string & nameHltTable() const
Get the name of the HLT trigger table.
Definition: TriggerEvent.h:148
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:30
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::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
const std::string & nameHltTable() const
Get the name of the HLT trigger table.
Definition: TriggerEvent.h:148
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:30
const std::string & nameL1Menu() const
Get the name of the L1 trigger menu.
Definition: TriggerEvent.h:146
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
virtual pat::TriggerEvent::~TriggerEvent ( )
inlinevirtual

Destructor.

Definition at line 108 of file TriggerEvent.h.

108 {};

Member Function Documentation

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_, begin, indexAlgorithm(), nameAlgorithm(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by algorithms().

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
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:99
#define begin
Definition: vmac.h:32
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
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_, begin, indexAlgorithm(), nameAlgorithm(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by algorithms().

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
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:99
#define begin
Definition: vmac.h:32
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
TriggerConditionRefVector TriggerEvent::acceptedConditions ( ) const

Get a vector of references to all succeeding L1 condition.

Definition at line 281 of file TriggerEvent.cc.

References begin, conditionRef(), conditions(), conditions_, indexCondition(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by conditions().

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
const TriggerConditionCollection * conditions() const
Definition: TriggerEvent.h:225
unsigned indexCondition(const std::string &nameCondition) const
#define begin
Definition: vmac.h:32
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
TriggerFilterRefVector TriggerEvent::acceptedFilters ( ) const

Get a vector of references to all succeeding HLT filters.

Definition at line 383 of file TriggerEvent.cc.

References begin, filterRef(), filters(), filters_, indexFilter(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by filters().

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
const TriggerFilterRef filterRef(const std::string &labelFilter) const
TriggerFilterRefProd filters_
Reference to pat::TriggerAlgorithmCollection in event.
Definition: TriggerEvent.h:85
const TriggerFilterCollection * filters() const
Definition: TriggerEvent.h:271
#define begin
Definition: vmac.h:32
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
TriggerPathRefVector TriggerEvent::acceptedPaths ( ) const

Get a vector of references to all succeeding HLT paths.

Definition at line 332 of file TriggerEvent.cc.

References begin, indexPath(), pathRef(), paths(), paths_, edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by paths().

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 }
const TriggerPathRef pathRef(const std::string &namePath) const
TriggerPathRefProd paths_
Reference to pat::TriggerPathCollection in event.
Definition: TriggerEvent.h:83
const TriggerPathCollection * paths() const
Definition: TriggerEvent.h:248
#define begin
Definition: vmac.h:32
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
unsigned indexPath(const std::string &namePath) const
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_, begin, indexAlgorithm(), nameAlgorithm(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by algorithms().

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
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:99
#define begin
Definition: vmac.h:32
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
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_, begin, indexAlgorithm(), nameAlgorithm(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by algorithms().

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
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:99
#define begin
Definition: vmac.h:32
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
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_, begin, indexAlgorithm(), nameAlgorithm(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by algorithms().

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
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:99
#define begin
Definition: vmac.h:32
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
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_, begin, indexAlgorithm(), nameAlgorithm(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by algorithms().

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
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:99
#define begin
Definition: vmac.h:32
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
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 end, spr::find(), objectMatchResults_, and triggerObjectMatchResults().

Referenced by addObjectMatchResult(), and objects().

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
#define end
Definition: vmac.h:39
TriggerObjectMatchContainer objectMatchResults_
Table of references to pat::TriggerObjectMatch associations in event.
Definition: TriggerEvent.h:89
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)
bool pat::TriggerEvent::addObjectMatchResult ( const edm::OrphanHandle< TriggerObjectMatch > &  trigMatches,
const std::string &  labelMatcher 
)
inline

Definition at line 357 of file TriggerEvent.h.

References addObjectMatchResult(), and triggerMatchers().

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

Referenced by algorithmConditions(), and algorithms().

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
#define begin
Definition: vmac.h:32
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_, and edm::RefVector< C, T, F >::push_back().

Referenced by algorithmObjects(), conditionInAlgorithm(), objectInAlgorithm(), and objects().

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
const TriggerAlgorithm * algorithm(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:89
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
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(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by objects().

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
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
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) 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...
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
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(), begin, and edm::RefVector< C, T, F >::end().

Referenced by acceptedAlgorithms(), acceptedAlgorithmsGtl(), acceptedPhysAlgorithms(), acceptedPhysAlgorithmsGtl(), acceptedTechAlgorithms(), acceptedTechAlgorithmsGtl(), algorithmRefs(), algorithms(), 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
#define begin
Definition: vmac.h:32
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_, begin, indexAlgorithm(), nameAlgorithm(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by algorithmRef(), and algorithms().

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
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:99
#define begin
Definition: vmac.h:32
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
const TriggerAlgorithmCollection* pat::TriggerEvent::algorithms ( ) const
inline
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
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
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
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
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
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
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 begin, and conditions().

Referenced by conditionCollections(), conditionObjects(), conditions(), 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
#define begin
Definition: vmac.h:32
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_, begin, conditionInAlgorithm(), nameAlgorithm(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by objects().

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());
448  if (conditionInAlgorithm(conditionRef, nameAlgorithm)) {
449  const TriggerAlgorithmRef algorithmRef(algorithms_, cAlgorithms);
450  theConditionAlgorithms.push_back(algorithmRef);
451  }
452  ++cAlgorithms;
453  }
454  return theConditionAlgorithms;
455 }
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
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:99
#define begin
Definition: vmac.h:32
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
bool conditionInAlgorithm(const TriggerConditionRef &conditionRef, const std::string &nameAlgorithm) const
Checks, if a condition is assigned to a certain algorithm given by name.
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.

Referenced by objects().

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
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:294
Analysis-level L1 trigger condition class.
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(), and edm::RefVector< C, T, F >::end().

Referenced by conditionAlgorithms(), and objects().

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
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:223
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
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(), and objects().

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
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:294
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 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 begin, conditionRefs(), and edm::RefVector< C, T, F >::end().

Referenced by acceptedConditions(), algorithmConditions(), conditionRefs(), conditions(), 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
#define begin
Definition: vmac.h:32
const TriggerConditionRefVector conditionRefs() const
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 begin, conditionRef(), conditions(), conditions_, indexCondition(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by conditionRef(), and conditions().

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
const TriggerConditionCollection * conditions() const
Definition: TriggerEvent.h:225
unsigned indexCondition(const std::string &nameCondition) const
#define begin
Definition: vmac.h:32
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 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 acceptedConditions(), condition(), conditionRef(), conditionRefs(), edm::RefProd< C >::get(), indexCondition(), and AlCaHLTBitMon_QueryRunRegistry::string.

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
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 begin, and filters().

Referenced by Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::filter(), filterCollections(), filterObjects(), filters(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), objectInFilter(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::setDataAccessor(), and Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::switchCenterView().

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
#define begin
Definition: vmac.h:32
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.

Referenced by objects().

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 }
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:294
Analysis-level HLTrigger filter class.
Definition: TriggerFilter.h:33
const TriggerFilter * filter(const std::string &labelFilter) const
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(), and pathFilters().

Referenced by filterPaths(), and objects().

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_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:223
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 objects(), and 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 }
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:294
Analysis-level HLTrigger filter class.
Definition: TriggerFilter.h:33
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 TriggerFilter * filter(const std::string &labelFilter) const
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 begin, filterInPath(), pathRef(), paths(), paths_, edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by objects().

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 }
const TriggerPathRef pathRef(const std::string &namePath) const
TriggerPathRefProd paths_
Reference to pat::TriggerPathCollection in event.
Definition: TriggerEvent.h:83
const TriggerPathCollection * paths() const
Definition: TriggerEvent.h:248
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.
#define begin
Definition: vmac.h:32
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
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 begin, edm::RefVector< C, T, F >::end(), and filterRefs().

Referenced by acceptedFilters(), filterRefs(), filters(), 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 TriggerFilterRefVector filterRefs() const
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228
#define begin
Definition: vmac.h:32
edm::Ref< TriggerFilterCollection > TriggerFilterRef
Persistent reference to an item in a TriggerFilterCollection.
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 begin, filterRef(), filters(), filters_, indexFilter(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by filterRef(), and filters().

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
const TriggerFilterRef filterRef(const std::string &labelFilter) const
TriggerFilterRefProd filters_
Reference to pat::TriggerAlgorithmCollection in event.
Definition: TriggerEvent.h:85
const TriggerFilterCollection * filters() const
Definition: TriggerEvent.h:271
#define begin
Definition: vmac.h:32
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
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 acceptedFilters(), filter(), filterRef(), filterRefs(), edm::RefProd< C >::get(), indexFilter(), and AlCaHLTBitMon_QueryRunRegistry::string.

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
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 findQualityFiles::size.

Referenced by acceptedAlgorithms(), acceptedAlgorithmsGtl(), acceptedPhysAlgorithms(), acceptedPhysAlgorithmsGtl(), acceptedTechAlgorithms(), acceptedTechAlgorithmsGtl(), algorithmRefs(), algorithms(), 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
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(), Skims_PA_cff::name, and findQualityFiles::size.

Referenced by acceptedConditions(), conditionRefs(), conditions(), 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
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(), label, and findQualityFiles::size.

Referenced by acceptedFilters(), filterRefs(), filters(), 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
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, paths(), and findQualityFiles::size.

Referenced by acceptedPaths(), objectPaths(), pathRefs(), and paths().

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
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
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
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
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(), begin, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by acceptedAlgorithms(), acceptedAlgorithmsGtl(), acceptedPhysAlgorithms(), acceptedPhysAlgorithmsGtl(), acceptedTechAlgorithms(), acceptedTechAlgorithmsGtl(), algorithmRefs(), algorithms(), conditionAlgorithms(), objectAlgorithms(), 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
#define begin
Definition: vmac.h:32
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
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
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_, begin, indexAlgorithm(), nameAlgorithm(), objectInAlgorithm(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by objects().

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
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:99
#define begin
Definition: vmac.h:32
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
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 begin, conditionRef(), conditions(), conditions_, indexCondition(), objectInCondition(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by objects().

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
const TriggerConditionCollection * conditions() const
Definition: TriggerEvent.h:225
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.
#define begin
Definition: vmac.h:32
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
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 begin, filterRef(), filters(), filters_, indexFilter(), objectInFilter(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by objects().

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
const TriggerFilterRef filterRef(const std::string &labelFilter) const
TriggerFilterRefProd filters_
Reference to pat::TriggerAlgorithmCollection in event.
Definition: TriggerEvent.h:85
const TriggerFilterCollection * filters() const
Definition: TriggerEvent.h:271
bool objectInFilter(const TriggerObjectRef &objectRef, const std::string &labelFilter) const
Checks, if an object was used in a certain filter given by name.
#define begin
Definition: vmac.h:32
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
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(), and objectInCondition().

Referenced by objectAlgorithms(), and objects().

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
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:223
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
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(), objectInAlgorithm(), and objects().

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.
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(), objectInPath(), and objects().

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
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(), and objects().

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...
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
bool objectInFilter(const TriggerObjectRef &objectRef, const std::string &labelFilter) const
Checks, if an object was used in a certain filter given by name.
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 begin, indexPath(), objectInPath(), pathRef(), paths(), paths_, edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by objects().

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 }
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 TriggerPathRef pathRef(const std::string &namePath) const
TriggerPathRefProd paths_
Reference to pat::TriggerPathCollection in event.
Definition: TriggerEvent.h:83
const TriggerPathCollection * paths() const
Definition: TriggerEvent.h:248
#define begin
Definition: vmac.h:32
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
unsigned indexPath(const std::string &namePath) const
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().

Referenced by objects().

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 }
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:294
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* 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 objectRefs().

Referenced by PatTriggerAnalyzer::analyze(), 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
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 }
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:294
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
TriggerObjectRefVector pat::TriggerEvent::objects ( int  triggerObjectType) const
inline
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 begin, and paths().

Referenced by PatTriggerTagAndProbe::analyze(), WPlusJetsEventSelector::operator()(), pathFilters(), pathModules(), and paths().

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
#define begin
Definition: vmac.h:32
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(), objects(), 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 }
Analysis-level HLTrigger path class.
Definition: TriggerPath.h:36
const TriggerPath * path(const std::string &namePath) const
const TriggerFilterRef filterRef(const std::string &labelFilter) const
TriggerFilterRefProd filters_
Reference to pat::TriggerAlgorithmCollection in event.
Definition: TriggerEvent.h:85
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
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 filterRef(), filters_, indexFilter(), path(), edm::RefVector< C, T, F >::push_back(), edm::RefVector< C, T, F >::size(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by objects().

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 }
unsigned indexFilter(const std::string &labelFilter) const
Analysis-level HLTrigger path class.
Definition: TriggerPath.h:36
const TriggerPath * path(const std::string &namePath) const
const TriggerFilterRef filterRef(const std::string &labelFilter) const
TriggerFilterRefProd filters_
Reference to pat::TriggerAlgorithmCollection in event.
Definition: TriggerEvent.h:85
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
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.

Referenced by objects().

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
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:223
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 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 begin, edm::RefVector< C, T, F >::end(), and pathRefs().

Referenced by acceptedPaths(), filterPaths(), objectPaths(), pathRefs(), and paths().

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:155
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228
#define begin
Definition: vmac.h:32
const TriggerPathRefVector pathRefs() const
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 begin, indexPath(), pathRef(), paths(), paths_, edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by pathRef(), and paths().

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 }
const TriggerPathRef pathRef(const std::string &namePath) const
TriggerPathRefProd paths_
Reference to pat::TriggerPathCollection in event.
Definition: TriggerEvent.h:83
const TriggerPathCollection * paths() const
Definition: TriggerEvent.h:248
#define begin
Definition: vmac.h:32
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
unsigned indexPath(const std::string &namePath) const
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 acceptedPaths(), edm::RefProd< C >::get(), indexPath(), path(), pathRef(), pathRefs(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by acceptedPaths(), 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
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_, begin, indexAlgorithm(), nameAlgorithm(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by algorithms().

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
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:99
#define begin
Definition: vmac.h:32
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
void pat::TriggerEvent::setAccept ( bool  accept)
inline

Set the success flag.

Definition at line 120 of file TriggerEvent.h.

References 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:30
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.

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

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

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

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

Set the LHC beam mode.

Definition at line 128 of file TriggerEvent.h.

References beamMode().

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

Set the LHC beam momentum.

Definition at line 130 of file TriggerEvent.h.

References beamMomentum().

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

Set the LHC master status.

Definition at line 136 of file TriggerEvent.h.

References bstMasterStatus().

uint16_t bstMasterStatus() const
Get the LHC master status.
Definition: TriggerEvent.h:168
uint16_t bstMasterStatus_
Definition: TriggerEvent.h:67
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.

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.
void pat::TriggerEvent::setError ( bool  error)
inline

Set the error flag.

Definition at line 122 of file TriggerEvent.h.

References relativeConstraints::error.

122 { error_ = error; };
bool error_
Was HLT in error?
Definition: TriggerEvent.h:51
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.

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.
void pat::TriggerEvent::setIntensityBeam1 ( uint32_t  intensityBeam1)
inline

Set the LHC beam 1 intensity.

Definition at line 132 of file TriggerEvent.h.

References 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
void pat::TriggerEvent::setIntensityBeam2 ( uint32_t  intensityBeam2)
inline

Set the LHC beam 2 intensity.

Definition at line 134 of file TriggerEvent.h.

References intensityBeam2().

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

Set the LHC fill number.

Definition at line 126 of file TriggerEvent.h.

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

116 { nameHltTable_ = name; };
std::string nameHltTable_
Name of the HLT trigger table.
Definition: TriggerEvent.h:45
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.

114 { nameL1Menu_ = name; };
std::string nameL1Menu_
Data Members.
Definition: TriggerEvent.h:43
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.

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

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

Set the PhysicsDeclared GT bit.

Definition at line 124 of file TriggerEvent.h.

124 { physDecl_ = physDecl; };
bool physDecl_
PhysicsDeclared GT bit.
Definition: TriggerEvent.h:53
void pat::TriggerEvent::setRun ( bool  run)
inline

Set the run flag.

Definition at line 118 of file TriggerEvent.h.

References writedatasetfile::run.

118 { run_ = run; };
bool run_
Was HLT run?
Definition: TriggerEvent.h:47
void pat::TriggerEvent::setTurnCount ( uint32_t  turnCount)
inline

Set the LHC beam turn counter.

Definition at line 138 of file TriggerEvent.h.

References 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
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_, begin, indexAlgorithm(), nameAlgorithm(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by algorithms().

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
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:99
#define begin
Definition: vmac.h:32
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
std::vector< std::string > TriggerEvent::triggerMatchers ( ) const

Get a list of all linked trigger matches.

Definition at line 718 of file TriggerEvent.cc.

References begin, and triggerObjectMatchResults().

Referenced by addObjectMatchResult(), and pat::helper::TriggerMatchHelper::triggerMatchObjects().

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
#define begin
Definition: vmac.h:32
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 end, spr::find(), and triggerObjectMatchResults().

Referenced by pat::helper::TriggerMatchHelper::triggerMatchCandidates(), pat::helper::TriggerMatchHelper::triggerMatchObject(), 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
#define end
Definition: vmac.h:39
const TriggerObjectMatchContainer* pat::TriggerEvent::triggerObjectMatchResults ( ) const
inline

Get all trigger matches.

Definition at line 364 of file TriggerEvent.h.

References objectMatchResults_, AlCaHLTBitMon_QueryRunRegistry::string, and triggerObjectMatchResult().

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

364 { return &objectMatchResults_; };
TriggerObjectMatchContainer objectMatchResults_
Table of references to pat::TriggerObjectMatch associations in event.
Definition: TriggerEvent.h:89
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
bool pat::TriggerEvent::wasAccept ( ) const
inline

Get the success flag.

Definition at line 152 of file TriggerEvent.h.

References accept_.

Referenced by WPlusJetsEventSelector::operator()().

152 { return accept_; };
bool accept_
Did HLT succeed?
Definition: TriggerEvent.h:49
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
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
bool pat::TriggerEvent::wasRun ( ) const
inline

Get the run flag.

Definition at line 150 of file TriggerEvent.h.

References run_.

Referenced by WPlusJetsEventSelector::operator()().

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

Member Data Documentation

bool pat::TriggerEvent::accept_
private

Did HLT succeed?

Definition at line 49 of file TriggerEvent.h.

Referenced by wasAccept().

TriggerAlgorithmRefProd pat::TriggerEvent::algorithms_
private
float pat::TriggerEvent::bCurrentAvg_
private

CMS magnet current in ??? averaged over run.

Definition at line 75 of file TriggerEvent.h.

Referenced by bCurrentAvg().

float pat::TriggerEvent::bCurrentStart_
private

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

Definition at line 71 of file TriggerEvent.h.

Referenced by bCurrentStart().

float pat::TriggerEvent::bCurrentStop_
private

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

Definition at line 73 of file TriggerEvent.h.

Referenced by bCurrentStop().

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

uint16_t pat::TriggerEvent::beamMomentum_
private

LHC beam momentum in GeV.

Definition at line 60 of file TriggerEvent.h.

Referenced by beamMomentum().

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

TriggerConditionRefProd pat::TriggerEvent::conditions_
private

Reference to pat::TriggerConditionCollection in event.

Definition at line 81 of file TriggerEvent.h.

Referenced by acceptedConditions(), algorithmConditions(), conditionRefs(), and objectConditions().

bool pat::TriggerEvent::error_
private

Was HLT in error?

Definition at line 51 of file TriggerEvent.h.

Referenced by wasError().

TriggerFilterRefProd pat::TriggerEvent::filters_
private
uint32_t pat::TriggerEvent::intensityBeam1_
private

LHC beam 1 intensity in ???

Definition at line 62 of file TriggerEvent.h.

Referenced by intensityBeam1().

uint32_t pat::TriggerEvent::intensityBeam2_
private

LHC beam 2 intensity in ???

Definition at line 64 of file TriggerEvent.h.

Referenced by intensityBeam2().

uint32_t pat::TriggerEvent::lhcFill_
private

LHC fill number.

Definition at line 55 of file TriggerEvent.h.

Referenced by lhcFill().

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

Name of the HLT trigger table.

Definition at line 45 of file TriggerEvent.h.

Referenced by nameHltTable().

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

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

TriggerObjectRefProd pat::TriggerEvent::objects_
private

Reference to pat::TriggerObjectCollection in event.

Definition at line 87 of file TriggerEvent.h.

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

TriggerPathRefProd pat::TriggerEvent::paths_
private
bool pat::TriggerEvent::physDecl_
private

PhysicsDeclared GT bit.

Definition at line 53 of file TriggerEvent.h.

Referenced by wasPhysDecl().

bool pat::TriggerEvent::run_
private

Was HLT run?

Definition at line 47 of file TriggerEvent.h.

Referenced by wasRun().

uint32_t pat::TriggerEvent::turnCount_
private

LHC beam turn counter.

Definition at line 69 of file TriggerEvent.h.

Referenced by turnCount().