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...
 
boost::uint16_t beamMode () const
 Get the LHC beam mode. More...
 
boost::uint16_t beamMomentum () const
 Get the LHC beam momentum. More...
 
boost::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
 
boost::uint32_t intensityBeam1 () const
 Get the LHC beam 1 intensity. More...
 
boost::uint32_t intensityBeam2 () const
 Get the LHC beam 2 intensity. More...
 
boost::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 (boost::uint16_t beamMode)
 Set the LHC beam mode. More...
 
void setBeamMomentum (boost::uint16_t beamMomentum)
 Set the LHC beam momentum. More...
 
void setBstMasterStatus (boost::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 (boost::uint32_t intensityBeam1)
 Set the LHC beam 1 intensity. More...
 
void setIntensityBeam2 (boost::uint32_t intensityBeam2)
 Set the LHC beam 2 intensity. More...
 
void setLhcFill (boost::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 (boost::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...
 
boost::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...
 
boost::uint16_t beamMode_
 
boost::uint16_t beamMomentum_
 LHC beam momentum in GeV. More...
 
boost::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...
 
boost::uint32_t intensityBeam1_
 LHC beam 1 intensity in ??? More...
 
boost::uint32_t intensityBeam2_
 LHC beam 2 intensity in ??? More...
 
boost::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...
 
boost::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 42 of file TriggerEvent.h.

Constructor & Destructor Documentation

TriggerEvent::TriggerEvent ( )

Constructors and Desctructor.

Default constructor

Definition at line 15 of file TriggerEvent.cc.

References objectMatchResults_.

15  :
16  nameL1Menu_(),
17  nameHltTable_(),
18  run_(),
19  accept_(),
20  error_(),
21  physDecl_(),
22  lhcFill_(),
23  beamMode_(),
24  beamMomentum_(),
28  turnCount_(),
30  bCurrentStop_(),
31  bCurrentAvg_()
32 {
33  objectMatchResults_.clear();
34 }
std::string nameHltTable_
Name of the HLT trigger table.
Definition: TriggerEvent.h:49
boost::uint16_t beamMode_
Definition: TriggerEvent.h:62
boost::uint16_t beamMomentum_
LHC beam momentum in GeV.
Definition: TriggerEvent.h:64
bool physDecl_
PhysicsDeclared GT bit.
Definition: TriggerEvent.h:57
bool accept_
Did HLT succeed?
Definition: TriggerEvent.h:53
bool error_
Was HLT in error?
Definition: TriggerEvent.h:55
std::string nameL1Menu_
Data Members.
Definition: TriggerEvent.h:47
float bCurrentStart_
CMS magnet current in ??? at start of run.
Definition: TriggerEvent.h:75
boost::uint16_t bstMasterStatus_
Definition: TriggerEvent.h:71
float bCurrentAvg_
CMS magnet current in ??? averaged over run.
Definition: TriggerEvent.h:79
boost::uint32_t lhcFill_
LHC fill number.
Definition: TriggerEvent.h:59
boost::uint32_t intensityBeam1_
LHC beam 1 intensity in ???
Definition: TriggerEvent.h:66
boost::uint32_t turnCount_
LHC beam turn counter.
Definition: TriggerEvent.h:73
float bCurrentStop_
CMS magnet current in ??? at end of run.
Definition: TriggerEvent.h:77
TriggerObjectMatchContainer objectMatchResults_
Table of references to pat::TriggerObjectMatch associations in event.
Definition: TriggerEvent.h:93
bool run_
Was HLT run?
Definition: TriggerEvent.h:51
boost::uint32_t intensityBeam2_
LHC beam 2 intensity in ???
Definition: TriggerEvent.h:68
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 38 of file TriggerEvent.cc.

References objectMatchResults_.

38  :
39  nameL1Menu_(),
41  run_( run ),
42  accept_( accept ),
43  error_( error ),
44  physDecl_( physDecl ) ,
45  lhcFill_(),
46  beamMode_(),
47  beamMomentum_(),
51  turnCount_(),
53  bCurrentStop_(),
54  bCurrentAvg_()
55 {
56  objectMatchResults_.clear();
57 }
std::string nameHltTable_
Name of the HLT trigger table.
Definition: TriggerEvent.h:49
boost::uint16_t beamMode_
Definition: TriggerEvent.h:62
const std::string & nameHltTable() const
Get the name of the HLT trigger table.
Definition: TriggerEvent.h:147
boost::uint16_t beamMomentum_
LHC beam momentum in GeV.
Definition: TriggerEvent.h:64
bool physDecl_
PhysicsDeclared GT bit.
Definition: TriggerEvent.h:57
bool accept_
Did HLT succeed?
Definition: TriggerEvent.h:53
bool error_
Was HLT in error?
Definition: TriggerEvent.h:55
std::string nameL1Menu_
Data Members.
Definition: TriggerEvent.h:47
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:75
boost::uint16_t bstMasterStatus_
Definition: TriggerEvent.h:71
float bCurrentAvg_
CMS magnet current in ??? averaged over run.
Definition: TriggerEvent.h:79
boost::uint32_t lhcFill_
LHC fill number.
Definition: TriggerEvent.h:59
boost::uint32_t intensityBeam1_
LHC beam 1 intensity in ???
Definition: TriggerEvent.h:66
boost::uint32_t turnCount_
LHC beam turn counter.
Definition: TriggerEvent.h:73
float bCurrentStop_
CMS magnet current in ??? at end of run.
Definition: TriggerEvent.h:77
TriggerObjectMatchContainer objectMatchResults_
Table of references to pat::TriggerObjectMatch associations in event.
Definition: TriggerEvent.h:93
bool run_
Was HLT run?
Definition: TriggerEvent.h:51
boost::uint32_t intensityBeam2_
LHC beam 2 intensity in ???
Definition: TriggerEvent.h:68
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 61 of file TriggerEvent.cc.

References objectMatchResults_.

61  :
64  run_( run ),
65  accept_( accept ),
66  error_( error ),
67  physDecl_( physDecl ) ,
68  lhcFill_(),
69  beamMode_(),
70  beamMomentum_(),
74  turnCount_(),
76  bCurrentStop_(),
77  bCurrentAvg_()
78 {
79  objectMatchResults_.clear();
80 }
std::string nameHltTable_
Name of the HLT trigger table.
Definition: TriggerEvent.h:49
boost::uint16_t beamMode_
Definition: TriggerEvent.h:62
const std::string & nameHltTable() const
Get the name of the HLT trigger table.
Definition: TriggerEvent.h:147
boost::uint16_t beamMomentum_
LHC beam momentum in GeV.
Definition: TriggerEvent.h:64
bool physDecl_
PhysicsDeclared GT bit.
Definition: TriggerEvent.h:57
bool accept_
Did HLT succeed?
Definition: TriggerEvent.h:53
bool error_
Was HLT in error?
Definition: TriggerEvent.h:55
std::string nameL1Menu_
Data Members.
Definition: TriggerEvent.h:47
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:145
float bCurrentStart_
CMS magnet current in ??? at start of run.
Definition: TriggerEvent.h:75
boost::uint16_t bstMasterStatus_
Definition: TriggerEvent.h:71
float bCurrentAvg_
CMS magnet current in ??? averaged over run.
Definition: TriggerEvent.h:79
boost::uint32_t lhcFill_
LHC fill number.
Definition: TriggerEvent.h:59
boost::uint32_t intensityBeam1_
LHC beam 1 intensity in ???
Definition: TriggerEvent.h:66
boost::uint32_t turnCount_
LHC beam turn counter.
Definition: TriggerEvent.h:73
float bCurrentStop_
CMS magnet current in ??? at end of run.
Definition: TriggerEvent.h:77
TriggerObjectMatchContainer objectMatchResults_
Table of references to pat::TriggerObjectMatch associations in event.
Definition: TriggerEvent.h:93
bool run_
Was HLT run?
Definition: TriggerEvent.h:51
boost::uint32_t intensityBeam2_
LHC beam 2 intensity in ???
Definition: TriggerEvent.h:68
virtual pat::TriggerEvent::~TriggerEvent ( )
inlinevirtual

Destructor.

Definition at line 107 of file TriggerEvent.h.

107 {};

Member Function Documentation

TriggerAlgorithmRefVector TriggerEvent::acceptedAlgorithms ( ) const

Get a vector of references to all succeeding L1 algorithms.

Definition at line 139 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().

140 {
141  TriggerAlgorithmRefVector theAcceptedAlgorithms;
142  for ( TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end(); ++iAlgorithm ) {
143  if ( iAlgorithm->decision() ) {
144  const std::string nameAlgorithm( iAlgorithm->name() );
146  theAcceptedAlgorithms.push_back( algorithmRef );
147  }
148  }
149  return theAcceptedAlgorithms;
150 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:83
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:182
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
#define begin
Definition: vmac.h:30
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
TriggerAlgorithmRefVector TriggerEvent::acceptedAlgorithmsGtl ( ) const

Get a vector of references to all L1 algorithms succeeding on the GTL board.

Definition at line 154 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().

155 {
156  TriggerAlgorithmRefVector theAcceptedAlgorithms;
157  for ( TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end(); ++iAlgorithm ) {
158  if ( iAlgorithm->gtlResult() ) {
159  const std::string nameAlgorithm( iAlgorithm->name() );
161  theAcceptedAlgorithms.push_back( algorithmRef );
162  }
163  }
164  return theAcceptedAlgorithms;
165 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:83
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:182
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
#define begin
Definition: vmac.h:30
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
TriggerConditionRefVector TriggerEvent::acceptedConditions ( ) const

Get a vector of references to all succeeding L1 condition.

Definition at line 301 of file TriggerEvent.cc.

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

Referenced by conditions().

302 {
303  TriggerConditionRefVector theAcceptedConditions;
304  for ( TriggerConditionCollection::const_iterator iCondition = conditions()->begin(); iCondition != conditions()->end(); ++iCondition ) {
305  if ( iCondition->wasAccept() ) {
306  const std::string nameCondition( iCondition->name() );
307  const TriggerConditionRef conditionRef( conditions_, indexCondition( nameCondition ) );
308  theAcceptedConditions.push_back( conditionRef );
309  }
310  }
311  return theAcceptedConditions;
312 }
TriggerConditionRefProd conditions_
Reference to pat::TriggerConditionCollection in event.
Definition: TriggerEvent.h:85
const TriggerConditionCollection * conditions() const
Definition: TriggerEvent.h:220
unsigned indexCondition(const std::string &nameCondition) const
#define begin
Definition: vmac.h:30
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
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 415 of file TriggerEvent.cc.

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

Referenced by filters().

416 {
417  TriggerFilterRefVector theAcceptedFilters;
418  for ( TriggerFilterCollection::const_iterator iFilter = filters()->begin(); iFilter != filters()->end(); ++iFilter ) {
419  if ( iFilter->status() == 1 ) {
420  const std::string labelFilter( iFilter->label() );
421  const TriggerFilterRef filterRef( filters_, indexFilter( labelFilter ) );
422  theAcceptedFilters.push_back( filterRef );
423  }
424  }
425  return theAcceptedFilters;
426 }
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:89
const TriggerFilterCollection * filters() const
Definition: TriggerEvent.h:262
#define begin
Definition: vmac.h:30
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
TriggerPathRefVector TriggerEvent::acceptedPaths ( ) const

Get a vector of references to all succeeding HLT paths.

Definition at line 358 of file TriggerEvent.cc.

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

Referenced by paths().

359 {
360  TriggerPathRefVector theAcceptedPaths;
361  for ( TriggerPathCollection::const_iterator iPath = paths()->begin(); iPath != paths()->end(); ++iPath ) {
362  if ( iPath->wasAccept() ) {
363  const std::string namePath( iPath->name() );
364  const TriggerPathRef pathRef( paths_, indexPath( namePath ) );
365  theAcceptedPaths.push_back( pathRef );
366  }
367  }
368  return theAcceptedPaths;
369 }
const TriggerPathRef pathRef(const std::string &namePath) const
TriggerPathRefProd paths_
Reference to pat::TriggerPathCollection in event.
Definition: TriggerEvent.h:87
const TriggerPathCollection * paths() const
Definition: TriggerEvent.h:241
#define begin
Definition: vmac.h:30
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
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 229 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().

230 {
231  TriggerAlgorithmRefVector theAcceptedPhysAlgorithms;
232  for ( TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end(); ++iAlgorithm ) {
233  if ( ! iAlgorithm->techTrigger() && iAlgorithm->decision() ) {
234  const std::string nameAlgorithm( iAlgorithm->name() );
236  theAcceptedPhysAlgorithms.push_back( algorithmRef );
237  }
238  }
239  return theAcceptedPhysAlgorithms;
240 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:83
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:182
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
#define begin
Definition: vmac.h:30
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
TriggerAlgorithmRefVector TriggerEvent::acceptedPhysAlgorithmsGtl ( ) const

Get a vector of references to all physics L1 algorithms succeeding on the GTL board.

Definition at line 244 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().

245 {
246  TriggerAlgorithmRefVector theAcceptedPhysAlgorithms;
247  for ( TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end(); ++iAlgorithm ) {
248  if ( ! iAlgorithm->techTrigger() && iAlgorithm->gtlResult() ) {
249  const std::string nameAlgorithm( iAlgorithm->name() );
251  theAcceptedPhysAlgorithms.push_back( algorithmRef );
252  }
253  }
254  return theAcceptedPhysAlgorithms;
255 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:83
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:182
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
#define begin
Definition: vmac.h:30
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
TriggerAlgorithmRefVector TriggerEvent::acceptedTechAlgorithms ( ) const

Get a vector of references to all succeeding technical L1 algorithms.

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

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

Get a vector of references to all technical L1 algorithms succeeding on the GTL board.

Definition at line 199 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().

200 {
201  TriggerAlgorithmRefVector theAcceptedTechAlgorithms;
202  for ( TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end(); ++iAlgorithm ) {
203  if ( iAlgorithm->techTrigger() && iAlgorithm->gtlResult() ) {
204  const std::string nameAlgorithm( iAlgorithm->name() );
206  theAcceptedTechAlgorithms.push_back( algorithmRef );
207  }
208  }
209  return theAcceptedTechAlgorithms;
210 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:83
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:182
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
#define begin
Definition: vmac.h:30
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
bool TriggerEvent::addObjectMatchResult ( const TriggerObjectMatchRefProd trigMatches,
const std::string &  labelMatcher 
)

Add a pat::TriggerObjectMatch association returns 'false', if 'matcher' alreadey exists

Definition at line 768 of file TriggerEvent.cc.

References end, spr::find(), objectMatchResults_, and triggerObjectMatchResults().

Referenced by objects().

769 {
770  if ( triggerObjectMatchResults()->find( labelMatcher ) == triggerObjectMatchResults()->end() ) {
771  objectMatchResults_[ labelMatcher ] = trigMatches;
772  return true;
773  }
774  return false;
775 }
const TriggerObjectMatchContainer * triggerObjectMatchResults() const
Get all trigger matches.
Definition: TriggerEvent.h:346
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
#define end
Definition: vmac.h:37
TriggerObjectMatchContainer objectMatchResults_
Table of references to pat::TriggerObjectMatch associations in event.
Definition: TriggerEvent.h:93
bool pat::TriggerEvent::addObjectMatchResult ( const edm::Handle< TriggerObjectMatch > &  trigMatches,
const std::string &  labelMatcher 
)
inline

Definition at line 341 of file TriggerEvent.h.

References addObjectMatchResult().

Referenced by addObjectMatchResult().

341 { return addObjectMatchResult( TriggerObjectMatchRefProd( trigMatches ), labelMatcher ); };
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 342 of file TriggerEvent.h.

References addObjectMatchResult(), and triggerMatchers().

Referenced by addObjectMatchResult().

342 { return addObjectMatchResult( TriggerObjectMatchRefProd( trigMatches ), labelMatcher ); };
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 100 of file TriggerEvent.cc.

References algorithms(), and begin.

Referenced by algorithmConditions(), and algorithms().

101 {
102  for ( TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end(); ++iAlgorithm ) {
103  if ( nameAlgorithm == iAlgorithm->name() ) return &*iAlgorithm;
104  }
105  return nullptr;
106 }
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:182
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
#define begin
Definition: vmac.h:30
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 456 of file TriggerEvent.cc.

References algorithm(), conditionRef(), conditions_, and edm::RefVector< C, T, F >::push_back().

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

457 {
458  TriggerConditionRefVector theAlgorithmConditions;
459  if ( const TriggerAlgorithm * algorithmPtr = algorithm( nameAlgorithm ) ) {
460  for ( unsigned iC = 0; iC < algorithmPtr->conditionKeys().size(); ++iC ) {
461  const TriggerConditionRef conditionRef( conditions_, algorithmPtr->conditionKeys().at( iC ) );
462  theAlgorithmConditions.push_back( conditionRef );
463  }
464  }
465  return theAlgorithmConditions;
466 }
Analysis-level L1 trigger algorithm class.
TriggerConditionRefProd conditions_
Reference to pat::TriggerConditionCollection in event.
Definition: TriggerEvent.h:85
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
const TriggerAlgorithm * algorithm(const std::string &nameAlgorithm) const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
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 561 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().

562 {
563  TriggerObjectRefVector theAlgorithmObjects;
565  for ( TriggerConditionRefVectorIterator iCondition = theConditions.begin(); iCondition != theConditions.end(); ++iCondition ) {
566  const std::string nameCondition( ( *iCondition )->name() );
567  TriggerObjectRefVector theObjects = conditionObjects( nameCondition );
568  for ( TriggerObjectRefVectorIterator iObject = theObjects.begin(); iObject != theObjects.end(); ++iObject ) {
569  theAlgorithmObjects.push_back( *iObject );
570  }
571  }
572  return theAlgorithmObjects;
573 }
TriggerConditionRefVector algorithmConditions(const std::string &nameAlgorithm) const
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:253
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:248
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:69
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 110 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().

111 {
112  for ( TriggerAlgorithmRefVector::const_iterator iAlgorithm = algorithmRefs().begin(); iAlgorithm != algorithmRefs().end(); ++iAlgorithm ) {
113  if ( nameAlgorithm == ( *iAlgorithm )->name() ) return *iAlgorithm;
114  }
115  return TriggerAlgorithmRef();
116 }
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:253
edm::Ref< TriggerAlgorithmCollection > TriggerAlgorithmRef
Persistent reference to an item in a TriggerAlgorithmCollection.
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
const TriggerAlgorithmRefVector algorithmRefs() const
Definition: TriggerEvent.cc:87
#define begin
Definition: vmac.h:30
const TriggerAlgorithmRefVector TriggerEvent::algorithmRefs ( ) const

Get a vector of references to all L1 algorithms, empty, if RefProd is NULL

Definition at line 87 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().

88 {
89  TriggerAlgorithmRefVector theAlgorithms;
90  for ( TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end(); ++iAlgorithm ) {
91  const std::string nameAlgorithm( iAlgorithm->name() );
93  theAlgorithms.push_back( algorithmRef );
94  }
95  return theAlgorithms;
96 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:83
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:182
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
#define begin
Definition: vmac.h:30
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
const TriggerAlgorithmCollection* pat::TriggerEvent::algorithms ( ) const
inline
float pat::TriggerEvent::bCurrentAvg ( ) const
inline

Get the CMS magnet current averaged over run.

Definition at line 175 of file TriggerEvent.h.

References bCurrentAvg_.

Referenced by setBCurrentAvg().

175 { return bCurrentAvg_; };
float bCurrentAvg_
CMS magnet current in ??? averaged over run.
Definition: TriggerEvent.h:79
float pat::TriggerEvent::bCurrentStart ( ) const
inline

Get the CMS magnet current at start of run.

Definition at line 171 of file TriggerEvent.h.

References bCurrentStart_.

Referenced by setBCurrentStart().

171 { return bCurrentStart_; };
float bCurrentStart_
CMS magnet current in ??? at start of run.
Definition: TriggerEvent.h:75
float pat::TriggerEvent::bCurrentStop ( ) const
inline

Get the CMS magnet current at end of run.

Definition at line 173 of file TriggerEvent.h.

References bCurrentStop_.

Referenced by setBCurrentStop().

173 { return bCurrentStop_; };
float bCurrentStop_
CMS magnet current in ??? at end of run.
Definition: TriggerEvent.h:77
boost::uint16_t pat::TriggerEvent::beamMode ( ) const
inline

Get the LHC beam mode.

Definition at line 159 of file TriggerEvent.h.

References beamMode_.

Referenced by setBeamMode().

159 { return beamMode_; };
boost::uint16_t beamMode_
Definition: TriggerEvent.h:62
boost::uint16_t pat::TriggerEvent::beamMomentum ( ) const
inline

Get the LHC beam momentum.

Definition at line 161 of file TriggerEvent.h.

References beamMomentum_.

Referenced by setBeamMomentum().

161 { return beamMomentum_; };
boost::uint16_t beamMomentum_
LHC beam momentum in GeV.
Definition: TriggerEvent.h:64
boost::uint16_t pat::TriggerEvent::bstMasterStatus ( ) const
inline

Get the LHC master status.

Definition at line 167 of file TriggerEvent.h.

References bstMasterStatus_.

Referenced by setBstMasterStatus().

167 { return bstMasterStatus_; };
boost::uint16_t bstMasterStatus_
Definition: TriggerEvent.h:71
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 272 of file TriggerEvent.cc.

References begin, and conditions().

Referenced by conditionCollections(), conditionObjects(), conditions(), and objectInCondition().

273 {
274  for ( TriggerConditionCollection::const_iterator iCondition = conditions()->begin(); iCondition != conditions()->end(); ++iCondition ) {
275  if ( nameCondition == iCondition->name() ) return &*iCondition;
276  }
277  return nullptr;
278 }
const TriggerConditionCollection * conditions() const
Definition: TriggerEvent.h:220
#define begin
Definition: vmac.h:30
TriggerAlgorithmRefVector TriggerEvent::conditionAlgorithms ( const TriggerConditionRef conditionRef) const

Get a vector of references to all algorithms, which have a certain condition assigned.

Definition at line 481 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().

482 {
483  TriggerAlgorithmRefVector theConditionAlgorithms;
484  size_t cAlgorithms( 0 );
485  for ( TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end(); ++iAlgorithm ) {
486  const std::string nameAlgorithm( iAlgorithm->name() );
487  if ( conditionInAlgorithm( conditionRef, nameAlgorithm ) ) {
488  const TriggerAlgorithmRef algorithmRef( algorithms_, cAlgorithms );
489  theConditionAlgorithms.push_back( algorithmRef );
490  }
491  ++cAlgorithms;
492  }
493  return theConditionAlgorithms;
494 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:83
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:182
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
#define begin
Definition: vmac.h:30
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
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 498 of file TriggerEvent.cc.

References universalConfigTemplate::collection, condition(), runEdmFileComparison::found, objects(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by objects().

499 {
500  std::vector< std::string > theConditionCollections;
501  if ( const TriggerCondition * conditionPtr = condition( nameCondition ) ) {
502  for ( unsigned iObject = 0; iObject < objects()->size(); ++iObject ) {
503  if ( conditionPtr->hasObjectKey( iObject ) ) {
504  bool found( false );
505  std::string objectCollection( objects()->at( iObject ).collection() );
506  for ( std::vector< std::string >::const_iterator iC = theConditionCollections.begin(); iC != theConditionCollections.end(); ++iC ) {
507  if ( *iC == objectCollection ) {
508  found = true;
509  break;
510  }
511  }
512  if ( ! found ) {
513  theConditionCollections.push_back( objectCollection );
514  }
515  }
516  }
517  }
518  return theConditionCollections;
519 }
const TriggerCondition * condition(const std::string &nameCondition) const
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:283
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 470 of file TriggerEvent.cc.

References algorithmConditions(), edm::RefVector< C, T, F >::begin(), and edm::RefVector< C, T, F >::end().

Referenced by conditionAlgorithms(), and objects().

471 {
473  for ( TriggerConditionRefVectorIterator iCondition = theConditions.begin(); iCondition != theConditions.end(); ++iCondition ) {
474  if ( conditionRef == *iCondition ) return true;
475  }
476  return false;
477 }
TriggerConditionRefVector algorithmConditions(const std::string &nameAlgorithm) const
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:253
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:248
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 523 of file TriggerEvent.cc.

References condition(), objects(), objects_, and edm::RefVector< C, T, F >::push_back().

Referenced by algorithmObjects(), and objects().

524 {
525  TriggerObjectRefVector theConditionObjects;
526  if ( const TriggerCondition * conditionPtr = condition( nameCondition ) ) {
527  for ( unsigned iObject = 0; iObject < objects()->size(); ++iObject ) {
528  if ( conditionPtr->hasObjectKey( iObject ) ) {
529  const TriggerObjectRef objectRef( objects_, iObject );
530  theConditionObjects.push_back( objectRef );
531  }
532  }
533  }
534  return theConditionObjects;
535 }
const TriggerCondition * condition(const std::string &nameCondition) const
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:283
Analysis-level L1 trigger condition class.
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
TriggerObjectRefProd objects_
Reference to pat::TriggerObjectCollection in event.
Definition: TriggerEvent.h:91
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 282 of file TriggerEvent.cc.

References begin, conditionRefs(), and edm::RefVector< C, T, F >::end().

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

283 {
284  for ( TriggerConditionRefVector::const_iterator iCondition = conditionRefs().begin(); iCondition != conditionRefs().end(); ++iCondition ) {
285  if ( nameCondition == ( *iCondition )->name() ) return *iCondition;
286  }
287  return TriggerConditionRef();
288 }
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:253
edm::Ref< TriggerConditionCollection > TriggerConditionRef
Persistent reference to an item in a TriggerConditionCollection.
#define begin
Definition: vmac.h:30
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 259 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().

260 {
261  TriggerConditionRefVector theConditions;
262  for ( TriggerConditionCollection::const_iterator iCondition = conditions()->begin(); iCondition != conditions()->end(); ++iCondition ) {
263  const std::string nameCondition( iCondition->name() );
264  const TriggerConditionRef conditionRef( conditions_, indexCondition( nameCondition ) );
265  theConditions.push_back( conditionRef );
266  }
267  return theConditions;
268 }
TriggerConditionRefProd conditions_
Reference to pat::TriggerConditionCollection in event.
Definition: TriggerEvent.h:85
const TriggerConditionCollection * conditions() const
Definition: TriggerEvent.h:220
unsigned indexCondition(const std::string &nameCondition) const
#define begin
Definition: vmac.h:30
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
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 220 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().

220 { return conditions_.get(); };
TriggerConditionRefProd conditions_
Reference to pat::TriggerConditionCollection in event.
Definition: TriggerEvent.h:85
product_type const * get() const
Definition: RefProd.h:113
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 386 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().

387 {
388  for ( TriggerFilterCollection::const_iterator iFilter = filters()->begin(); iFilter != filters()->end(); ++iFilter ) {
389  if ( labelFilter == iFilter->label() ) return &*iFilter;
390  }
391  return nullptr;
392 }
const TriggerFilterCollection * filters() const
Definition: TriggerEvent.h:262
#define begin
Definition: vmac.h:30
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 663 of file TriggerEvent.cc.

References universalConfigTemplate::collection, filter(), runEdmFileComparison::found, objects(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by objects().

664 {
665  std::vector< std::string > theFilterCollections;
666  if ( const TriggerFilter * filterPtr = filter( labelFilter ) ) {
667  for ( unsigned iObject = 0; iObject < objects()->size(); ++iObject ) {
668  if ( filterPtr->hasObjectKey( iObject ) ) {
669  bool found( false );
670  const std::string objectCollection( objects()->at( iObject ).collection() );
671  for ( std::vector< std::string >::const_iterator iC = theFilterCollections.begin(); iC != theFilterCollections.end(); ++iC ) {
672  if ( *iC == objectCollection ) {
673  found = true;
674  break;
675  }
676  }
677  if ( ! found ) {
678  theFilterCollections.push_back( objectCollection );
679  }
680  }
681  }
682  }
683  return theFilterCollections;
684 }
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:283
Analysis-level HLTrigger filter class.
Definition: TriggerFilter.h:35
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 635 of file TriggerEvent.cc.

References edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::end(), and pathFilters().

Referenced by filterPaths(), and objects().

636 {
637  TriggerFilterRefVector theFilters = pathFilters( namePath, firing );
638  for ( TriggerFilterRefVectorIterator iFilter = theFilters.begin(); iFilter != theFilters.end(); ++iFilter ) {
639  if ( filterRef == *iFilter ) return true;
640  }
641  return false;
642 }
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:253
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:248
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 688 of file TriggerEvent.cc.

References filter(), objects(), objects_, and edm::RefVector< C, T, F >::push_back().

Referenced by AdHocNTupler::fill(), objects(), and pathObjects().

689 {
690  TriggerObjectRefVector theFilterObjects;
691  if ( const TriggerFilter * filterPtr = filter( labelFilter ) ) {
692  for ( unsigned iObject = 0; iObject < objects()->size(); ++iObject ) {
693  if ( filterPtr->hasObjectKey( iObject ) ) {
694  const TriggerObjectRef objectRef( objects_, iObject );
695  theFilterObjects.push_back( objectRef );
696  }
697  }
698  }
699  return theFilterObjects;
700 }
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:283
Analysis-level HLTrigger filter class.
Definition: TriggerFilter.h:35
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
TriggerObjectRefProd objects_
Reference to pat::TriggerObjectCollection in event.
Definition: TriggerEvent.h:91
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 646 of file TriggerEvent.cc.

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

Referenced by objects().

647 {
648  TriggerPathRefVector theFilterPaths;
649  size_t cPaths( 0 );
650  for ( TriggerPathCollection::const_iterator iPath = paths()->begin(); iPath != paths()->end(); ++iPath ) {
651  const std::string namePath( iPath->name() );
652  if ( filterInPath( filterRef, namePath, firing ) ) {
653  const TriggerPathRef pathRef( paths_, cPaths );
654  theFilterPaths.push_back( pathRef );
655  }
656  ++cPaths;
657  }
658  return theFilterPaths;
659 }
const TriggerPathRef pathRef(const std::string &namePath) const
TriggerPathRefProd paths_
Reference to pat::TriggerPathCollection in event.
Definition: TriggerEvent.h:87
const TriggerPathCollection * paths() const
Definition: TriggerEvent.h:241
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:30
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
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 396 of file TriggerEvent.cc.

References begin, edm::RefVector< C, T, F >::end(), and filterRefs().

Referenced by acceptedFilters(), filterRefs(), filters(), objectFilters(), pathFilters(), and pathModules().

397 {
398  for ( TriggerFilterRefVector::const_iterator iFilter = filterRefs().begin(); iFilter != filterRefs().end(); ++iFilter ) {
399  if ( labelFilter == ( *iFilter )->label() ) return *iFilter;
400  }
401  return TriggerFilterRef();
402 }
const TriggerFilterRefVector filterRefs() const
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:253
edm::Ref< TriggerFilterCollection > TriggerFilterRef
Persistent reference to an item in a TriggerFilterCollection.
#define begin
Definition: vmac.h:30
const TriggerFilterRefVector TriggerEvent::filterRefs ( ) const

Get a vector of references to all HLT filters, empty, if RefProd is NULL

Definition at line 373 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().

374 {
375  TriggerFilterRefVector theFilters;
376  for ( TriggerFilterCollection::const_iterator iFilter = filters()->begin(); iFilter != filters()->end(); ++iFilter ) {
377  const std::string labelFilter( iFilter->label() );
378  const TriggerFilterRef filterRef( filters_, indexFilter( labelFilter ) );
379  theFilters.push_back( filterRef );
380  }
381  return theFilters;
382 }
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:89
const TriggerFilterCollection * filters() const
Definition: TriggerEvent.h:262
#define begin
Definition: vmac.h:30
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
const TriggerFilterCollection* pat::TriggerEvent::filters ( ) const
inline

Get a pointer to all HLT filters, returns 0, if RefProd is NULL

Definition at line 262 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().

262 { return filters_.get(); };
TriggerFilterRefProd filters_
Reference to pat::TriggerAlgorithmCollection in event.
Definition: TriggerEvent.h:89
product_type const * get() const
Definition: RefProd.h:113
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 130 of file TriggerEvent.cc.

References algorithms(), dataset::name, and findQualityFiles::size.

Referenced by acceptedAlgorithms(), acceptedAlgorithmsGtl(), acceptedPhysAlgorithms(), acceptedPhysAlgorithmsGtl(), acceptedTechAlgorithms(), acceptedTechAlgorithmsGtl(), algorithmRefs(), algorithms(), objectAlgorithms(), physAlgorithms(), and techAlgorithms().

131 {
132  unsigned iAlgorithm( 0 );
133  while ( iAlgorithm < algorithms()->size() && algorithms()->at( iAlgorithm ).name() != nameAlgorithm ) ++iAlgorithm;
134  return iAlgorithm;
135 }
size
Write out results.
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:182
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 292 of file TriggerEvent.cc.

References conditions(), dataset::name, and findQualityFiles::size.

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

293 {
294  unsigned iCondition( 0 );
295  while ( iCondition < conditions()->size() && conditions()->at( iCondition ).name() != nameCondition ) ++iCondition;
296  return iCondition;
297 }
size
Write out results.
const TriggerConditionCollection * conditions() const
Definition: TriggerEvent.h:220
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 406 of file TriggerEvent.cc.

References filters(), diffTwoXMLs::label, and findQualityFiles::size.

Referenced by acceptedFilters(), filterRefs(), filters(), objectFilters(), and pathModules().

407 {
408  unsigned iFilter( 0 );
409  while ( iFilter < filters()->size() && filters()->at( iFilter ).label() != labelFilter ) ++iFilter;
410  return iFilter;
411 }
size
Write out results.
const TriggerFilterCollection * filters() const
Definition: TriggerEvent.h:262
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 349 of file TriggerEvent.cc.

References dataset::name, paths(), and findQualityFiles::size.

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

350 {
351  unsigned iPath( 0 );
352  while ( iPath < paths()->size() && paths()->at( iPath ).name() != namePath ) ++iPath;
353  return iPath;
354 }
size
Write out results.
const TriggerPathCollection * paths() const
Definition: TriggerEvent.h:241
boost::uint32_t pat::TriggerEvent::intensityBeam1 ( ) const
inline

Get the LHC beam 1 intensity.

Definition at line 163 of file TriggerEvent.h.

References intensityBeam1_.

Referenced by setIntensityBeam1().

163 { return intensityBeam1_; };
boost::uint32_t intensityBeam1_
LHC beam 1 intensity in ???
Definition: TriggerEvent.h:66
boost::uint32_t pat::TriggerEvent::intensityBeam2 ( ) const
inline

Get the LHC beam 2 intensity.

Definition at line 165 of file TriggerEvent.h.

References intensityBeam2_.

Referenced by setIntensityBeam2().

165 { return intensityBeam2_; };
boost::uint32_t intensityBeam2_
LHC beam 2 intensity in ???
Definition: TriggerEvent.h:68
boost::uint32_t pat::TriggerEvent::lhcFill ( ) const
inline

Get the LHC fill number.

Definition at line 157 of file TriggerEvent.h.

References lhcFill_.

Referenced by setLhcFill().

157 { return lhcFill_; };
boost::uint32_t lhcFill_
LHC fill number.
Definition: TriggerEvent.h:59
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 120 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().

121 {
122  for ( TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end(); ++iAlgorithm ) {
123  if ( bitAlgorithm == iAlgorithm->bit() && techAlgorithm == iAlgorithm->techTrigger() ) return iAlgorithm->name();
124  }
125  return std::string( "" );
126 }
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:182
#define begin
Definition: vmac.h:30
const std::string& pat::TriggerEvent::nameHltTable ( ) const
inline

Get the name of the HLT trigger table.

Definition at line 147 of file TriggerEvent.h.

References nameHltTable_.

147 { return nameHltTable_; };
std::string nameHltTable_
Name of the HLT trigger table.
Definition: TriggerEvent.h:49
const std::string& pat::TriggerEvent::nameL1Menu ( ) const
inline

Get the name of the L1 trigger menu.

Definition at line 145 of file TriggerEvent.h.

References nameL1Menu_.

145 { return nameL1Menu_; };
std::string nameL1Menu_
Data Members.
Definition: TriggerEvent.h:47
TriggerAlgorithmRefVector TriggerEvent::objectAlgorithms ( const TriggerObjectRef objectRef) const

Get a vector of references to all algorithms, which have a certain object assigned.

Definition at line 588 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().

589 {
590  TriggerAlgorithmRefVector theObjectAlgorithms;
591  for ( TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end(); ++iAlgorithm ) {
592  const std::string nameAlgorithm( iAlgorithm->name() );
593  if ( objectInAlgorithm( objectRef, nameAlgorithm ) ) {
595  theObjectAlgorithms.push_back( algorithmRef );
596  }
597  }
598  return theObjectAlgorithms;
599 }
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:83
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:182
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
#define begin
Definition: vmac.h:30
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
TriggerConditionRefVector TriggerEvent::objectConditions ( const TriggerObjectRef objectRef) const

Get a vector of references to all conditions, which have a certain object assigned.

Definition at line 546 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().

547 {
548  TriggerConditionRefVector theObjectConditions;
549  for ( TriggerConditionCollection::const_iterator iCondition = conditions()->begin(); iCondition != conditions()->end(); ++iCondition ) {
550  const std::string nameCondition( iCondition->name() );
551  if ( objectInCondition( objectRef, nameCondition ) ) {
552  const TriggerConditionRef conditionRef( conditions_, indexCondition( nameCondition ) );
553  theObjectConditions.push_back( conditionRef );
554  }
555  }
556  return theObjectConditions;
557 }
TriggerConditionRefProd conditions_
Reference to pat::TriggerConditionCollection in event.
Definition: TriggerEvent.h:85
const TriggerConditionCollection * conditions() const
Definition: TriggerEvent.h:220
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:30
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
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 711 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().

712 {
713  TriggerFilterRefVector theObjectFilters;
714  for ( TriggerFilterCollection::const_iterator iFilter = filters()->begin(); iFilter != filters()->end(); ++iFilter ) {
715  const std::string labelFilter( iFilter->label() );
716  if ( objectInFilter( objectRef, labelFilter ) ) {
717  const TriggerFilterRef filterRef( filters_, indexFilter( labelFilter ) );
718  if ( ( ! firing ) || iFilter->isFiring() ) theObjectFilters.push_back( filterRef );
719  }
720  }
721  return theObjectFilters;
722 }
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:89
const TriggerFilterCollection * filters() const
Definition: TriggerEvent.h:262
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:30
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
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 577 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().

578 {
580  for ( TriggerConditionRefVectorIterator iCondition = theConditions.begin(); iCondition != theConditions.end(); ++iCondition ) {
581  if ( objectInCondition( objectRef, ( *iCondition )->name() ) ) return true;
582  }
583  return false;
584 }
TriggerConditionRefVector algorithmConditions(const std::string &nameAlgorithm) const
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:253
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:248
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 539 of file TriggerEvent.cc.

References condition(), and edm::Ref< C, T, F >::key().

Referenced by objectConditions(), objectInAlgorithm(), and objects().

539  {
540  if ( const TriggerCondition * conditionPtr = condition( nameCondition ) ) return conditionPtr->hasObjectKey( objectRef.key() );
541  return false;
542 }
const TriggerCondition * condition(const std::string &nameCondition) const
key_type key() const
Accessor for product key.
Definition: Ref.h:265
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 704 of file TriggerEvent.cc.

References filter(), and edm::Ref< C, T, F >::key().

Referenced by objectFilters(), objectInPath(), and objects().

704  {
705  if ( const TriggerFilter * filterPtr = filter( labelFilter ) ) return filterPtr->hasObjectKey( objectRef.key() );
706  return false;
707 }
key_type key() const
Accessor for product key.
Definition: Ref.h:265
Analysis-level HLTrigger filter class.
Definition: TriggerFilter.h:35
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 742 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().

743 {
744  TriggerFilterRefVector theFilters = pathFilters( namePath, firing );
745  for ( TriggerFilterRefVectorIterator iFilter = theFilters.begin(); iFilter != theFilters.end(); ++iFilter ) {
746  if ( objectInFilter( objectRef, ( *iFilter )->label() ) ) return true;
747  }
748  return false;
749 }
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:253
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:248
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 753 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().

754 {
755  TriggerPathRefVector theObjectPaths;
756  for ( TriggerPathCollection::const_iterator iPath = paths()->begin(); iPath != paths()->end(); ++iPath ) {
757  const std::string namePath( iPath->name() );
758  if ( objectInPath( objectRef, namePath, firing ) ) {
759  const TriggerPathRef pathRef( paths_, indexPath( namePath ) );
760  theObjectPaths.push_back( pathRef );
761  }
762  }
763  return theObjectPaths;
764 }
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:87
const TriggerPathCollection * paths() const
Definition: TriggerEvent.h:241
#define begin
Definition: vmac.h:30
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
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 430 of file TriggerEvent.cc.

References objects(), objects_, and edm::RefVector< C, T, F >::push_back().

Referenced by objects().

431 {
432  TriggerObjectRefVector theObjects;
433  for ( unsigned iObject = 0; iObject < objects()->size(); ++iObject ) {
434  const TriggerObjectRef objectRef( objects_, iObject );
435  theObjects.push_back( objectRef );
436  }
437  return theObjects;
438 }
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:283
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
TriggerObjectRefProd objects_
Reference to pat::TriggerObjectCollection in event.
Definition: TriggerEvent.h:91
const TriggerObjectCollection* pat::TriggerEvent::objects ( ) const
inline

Get a pointer to all trigger objects, returns 0, if RefProd is NULL

Definition at line 283 of file TriggerEvent.h.

References edm::RefProd< C >::get(), and objectRefs().

Referenced by PatTriggerAnalyzer::analyze(), conditionCollections(), conditionObjects(), filterCollections(), filterObjects(), objectRefs(), and objects().

283 { return objects_.get(); };
product_type const * get() const
Definition: RefProd.h:113
TriggerObjectRefProd objects_
Reference to pat::TriggerObjectCollection in event.
Definition: TriggerEvent.h:91
TriggerObjectRefVector TriggerEvent::objects ( trigger::TriggerObjectType  triggerObjectType) const

Get a vector of references to all trigger objects by trigger object type.

Definition at line 442 of file TriggerEvent.cc.

References objects(), objects_, and edm::RefVector< C, T, F >::push_back().

443 {
444  TriggerObjectRefVector theObjects;
445  for ( unsigned iObject = 0; iObject < objects()->size(); ++iObject ) {
446  if ( objects()->at( iObject ).hasTriggerObjectType( triggerObjectType ) ) {
447  const TriggerObjectRef objectRef( objects_, iObject );
448  theObjects.push_back( objectRef );
449  }
450  }
451  return theObjects;
452 }
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:283
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
TriggerObjectRefProd objects_
Reference to pat::TriggerObjectCollection in event.
Definition: TriggerEvent.h:91
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 329 of file TriggerEvent.cc.

References begin, and paths().

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

330 {
331  for ( TriggerPathCollection::const_iterator iPath = paths()->begin(); iPath != paths()->end(); ++iPath ) {
332  if ( namePath == iPath->name() ) return &*iPath;
333  }
334  return nullptr;
335 }
const TriggerPathCollection * paths() const
Definition: TriggerEvent.h:241
#define begin
Definition: vmac.h:30
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 621 of file TriggerEvent.cc.

References filterRef(), filters_, path(), and edm::RefVector< C, T, F >::push_back().

Referenced by AdHocNTupler::fill(), filterInPath(), objectInPath(), objects(), and pathObjects().

622 {
623  TriggerFilterRefVector thePathFilters;
624  if ( const TriggerPath * pathPtr = path( namePath ) ) {
625  for ( unsigned iF = 0; iF < pathPtr->filterIndices().size(); ++iF ) {
626  const TriggerFilterRef filterRef( filters_, pathPtr->filterIndices().at( iF ) );
627  if ( ( ! firing ) || filterRef->isFiring() ) thePathFilters.push_back( filterRef );
628  }
629  }
630  return thePathFilters;
631 }
Analysis-level HLTrigger path class.
Definition: TriggerPath.h:39
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:89
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
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 603 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().

604 {
605  TriggerFilterRefVector thePathFilters;
606  if ( const TriggerPath * pathPtr = path( namePath ) ) {
607  if ( !pathPtr->modules().empty() ) {
608  const unsigned onePastLastFilter = all ? pathPtr->modules().size() : pathPtr->lastActiveFilterSlot() + 1;
609  for ( unsigned iM = 0; iM < onePastLastFilter; ++iM ) {
610  const std::string labelFilter( pathPtr->modules().at( iM ) );
611  const TriggerFilterRef filterRef( filters_, indexFilter( labelFilter ) );
612  thePathFilters.push_back( filterRef );
613  }
614  }
615  }
616  return thePathFilters;
617 }
unsigned indexFilter(const std::string &labelFilter) const
Analysis-level HLTrigger path class.
Definition: TriggerPath.h:39
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:89
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
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 726 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().

727 {
728  TriggerObjectRefVector thePathObjects;
729  TriggerFilterRefVector theFilters = pathFilters( namePath, firing );
730  for ( TriggerFilterRefVectorIterator iFilter = theFilters.begin(); iFilter != theFilters.end(); ++iFilter ) {
731  const std::string labelFilter( ( *iFilter )->label() );
732  TriggerObjectRefVector theObjects = filterObjects( labelFilter );
733  for ( TriggerObjectRefVectorIterator iObject = theObjects.begin(); iObject != theObjects.end(); ++iObject ) {
734  thePathObjects.push_back( *iObject );
735  }
736  }
737  return thePathObjects;
738 }
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:253
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:248
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:69
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 339 of file TriggerEvent.cc.

References begin, edm::RefVector< C, T, F >::end(), and pathRefs().

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

340 {
341  for ( TriggerPathRefVector::const_iterator iPath = pathRefs().begin(); iPath != pathRefs().end(); ++iPath ) {
342  if ( namePath == ( *iPath )->name() ) return *iPath;
343  }
344  return TriggerPathRef();
345 }
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:253
edm::Ref< TriggerPathCollection > TriggerPathRef
Persistent reference to an item in a TriggerPathCollection.
Definition: TriggerPath.h:155
#define begin
Definition: vmac.h:30
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 316 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().

317 {
318  TriggerPathRefVector thePaths;
319  for ( TriggerPathCollection::const_iterator iPath = paths()->begin(); iPath != paths()->end(); ++iPath ) {
320  const std::string namePath( iPath->name() );
321  const TriggerPathRef pathRef( paths_, indexPath( namePath ) );
322  thePaths.push_back( pathRef );
323  }
324  return thePaths;
325 }
const TriggerPathRef pathRef(const std::string &namePath) const
TriggerPathRefProd paths_
Reference to pat::TriggerPathCollection in event.
Definition: TriggerEvent.h:87
const TriggerPathCollection * paths() const
Definition: TriggerEvent.h:241
#define begin
Definition: vmac.h:30
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
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 241 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().

241 { return paths_.get(); };
TriggerPathRefProd paths_
Reference to pat::TriggerPathCollection in event.
Definition: TriggerEvent.h:87
product_type const * get() const
Definition: RefProd.h:113
TriggerAlgorithmRefVector TriggerEvent::physAlgorithms ( ) const

Get a vector of references to all physics L1 algorithms.

Definition at line 214 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().

215 {
216  TriggerAlgorithmRefVector thePhysAlgorithms;
217  for ( TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end(); ++iAlgorithm ) {
218  if ( ! iAlgorithm->techTrigger() ) {
219  const std::string nameAlgorithm( iAlgorithm->name() );
221  thePhysAlgorithms.push_back( algorithmRef );
222  }
223  }
224  return thePhysAlgorithms;
225 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:83
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:182
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
#define begin
Definition: vmac.h:30
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
void pat::TriggerEvent::setAccept ( bool  accept)
inline

Set the success flag.

Definition at line 119 of file TriggerEvent.h.

References accept().

119 { accept_ = accept; };
bool accept_
Did HLT succeed?
Definition: TriggerEvent.h:53
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 179 of file TriggerEvent.h.

179 { algorithms_ = TriggerAlgorithmRefProd( handleTriggerAlgorithms ); };
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:83
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 143 of file TriggerEvent.h.

References bCurrentAvg().

float bCurrentAvg_
CMS magnet current in ??? averaged over run.
Definition: TriggerEvent.h:79
float bCurrentAvg() const
Get the CMS magnet current averaged over run.
Definition: TriggerEvent.h:175
void pat::TriggerEvent::setBCurrentStart ( float  bCurrentStart)
inline

Set the CMS magnet current at start of run.

Definition at line 139 of file TriggerEvent.h.

References bCurrentStart().

float bCurrentStart_
CMS magnet current in ??? at start of run.
Definition: TriggerEvent.h:75
float bCurrentStart() const
Get the CMS magnet current at start of run.
Definition: TriggerEvent.h:171
void pat::TriggerEvent::setBCurrentStop ( float  bCurrentStop)
inline

Set the CMS magnet current at end of run.

Definition at line 141 of file TriggerEvent.h.

References bCurrentStop().

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

Set the LHC beam mode.

Definition at line 127 of file TriggerEvent.h.

References beamMode().

127 { beamMode_ = beamMode; };
boost::uint16_t beamMode_
Definition: TriggerEvent.h:62
boost::uint16_t beamMode() const
Get the LHC beam mode.
Definition: TriggerEvent.h:159
void pat::TriggerEvent::setBeamMomentum ( boost::uint16_t  beamMomentum)
inline

Set the LHC beam momentum.

Definition at line 129 of file TriggerEvent.h.

References beamMomentum().

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

Set the LHC master status.

Definition at line 135 of file TriggerEvent.h.

References bstMasterStatus().

boost::uint16_t bstMasterStatus_
Definition: TriggerEvent.h:71
boost::uint16_t bstMasterStatus() const
Get the LHC master status.
Definition: TriggerEvent.h:167
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 217 of file TriggerEvent.h.

217 { conditions_ = TriggerConditionRefProd( handleTriggerConditions ); };
TriggerConditionRefProd conditions_
Reference to pat::TriggerConditionCollection in event.
Definition: TriggerEvent.h:85
edm::RefProd< TriggerConditionCollection > TriggerConditionRefProd
Persistent reference to a TriggerConditionCollection product.
void pat::TriggerEvent::setError ( bool  error)
inline

Set the error flag.

Definition at line 121 of file TriggerEvent.h.

References relativeConstraints::error.

121 { error_ = error; };
bool error_
Was HLT in error?
Definition: TriggerEvent.h:55
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 259 of file TriggerEvent.h.

259 { filters_ = TriggerFilterRefProd( handleTriggerFilters ); };
TriggerFilterRefProd filters_
Reference to pat::TriggerAlgorithmCollection in event.
Definition: TriggerEvent.h:89
edm::RefProd< TriggerFilterCollection > TriggerFilterRefProd
Persistent reference to a TriggerFilterCollection product.
void pat::TriggerEvent::setIntensityBeam1 ( boost::uint32_t  intensityBeam1)
inline

Set the LHC beam 1 intensity.

Definition at line 131 of file TriggerEvent.h.

References intensityBeam1().

boost::uint32_t intensityBeam1() const
Get the LHC beam 1 intensity.
Definition: TriggerEvent.h:163
boost::uint32_t intensityBeam1_
LHC beam 1 intensity in ???
Definition: TriggerEvent.h:66
void pat::TriggerEvent::setIntensityBeam2 ( boost::uint32_t  intensityBeam2)
inline

Set the LHC beam 2 intensity.

Definition at line 133 of file TriggerEvent.h.

References intensityBeam2().

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

Set the LHC fill number.

Definition at line 125 of file TriggerEvent.h.

References lhcFill().

125 { lhcFill_ = lhcFill; };
boost::uint32_t lhcFill_
LHC fill number.
Definition: TriggerEvent.h:59
boost::uint32_t lhcFill() const
Get the LHC fill number.
Definition: TriggerEvent.h:157
void pat::TriggerEvent::setNameHltTable ( const std::string &  name)
inline

Set the name of the HLT trigger table.

Definition at line 115 of file TriggerEvent.h.

References dataset::name.

115 { nameHltTable_ = name; };
std::string nameHltTable_
Name of the HLT trigger table.
Definition: TriggerEvent.h:49
void pat::TriggerEvent::setNameL1Menu ( const std::string &  name)
inline

Methods.

Trigger event Set the name of the L1 trigger menu

Definition at line 113 of file TriggerEvent.h.

References dataset::name.

113 { nameL1Menu_ = name; };
std::string nameL1Menu_
Data Members.
Definition: TriggerEvent.h:47
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 280 of file TriggerEvent.h.

280 { objects_ = TriggerObjectRefProd( handleTriggerObjects ); };
edm::RefProd< TriggerObjectCollection > TriggerObjectRefProd
Persistent reference to a TriggerObjectCollection product.
TriggerObjectRefProd objects_
Reference to pat::TriggerObjectCollection in event.
Definition: TriggerEvent.h:91
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 238 of file TriggerEvent.h.

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

Set the PhysicsDeclared GT bit.

Definition at line 123 of file TriggerEvent.h.

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

Set the run flag.

Definition at line 117 of file TriggerEvent.h.

References findQualityFiles::run.

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

Set the LHC beam turn counter.

Definition at line 137 of file TriggerEvent.h.

References turnCount().

137 { turnCount_ = turnCount; };
boost::uint32_t turnCount() const
Get the LHC beam turn counter.
Definition: TriggerEvent.h:169
boost::uint32_t turnCount_
LHC beam turn counter.
Definition: TriggerEvent.h:73
TriggerAlgorithmRefVector TriggerEvent::techAlgorithms ( ) const

Get a vector of references to all technical L1 algorithms.

Definition at line 169 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 theTechAlgorithms;
172  for ( TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end(); ++iAlgorithm ) {
173  if ( iAlgorithm->techTrigger() ) {
174  const std::string nameAlgorithm( iAlgorithm->name() );
176  theTechAlgorithms.push_back( algorithmRef );
177  }
178  }
179  return theTechAlgorithms;
180 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:83
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:182
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
#define begin
Definition: vmac.h:30
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
std::vector< std::string > TriggerEvent::triggerMatchers ( ) const

Get a list of all linked trigger matches.

Definition at line 779 of file TriggerEvent.cc.

References begin, and triggerObjectMatchResults().

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

780 {
781  std::vector< std::string > theMatchers;
782  for ( TriggerObjectMatchContainer::const_iterator iMatch = triggerObjectMatchResults()->begin(); iMatch != triggerObjectMatchResults()->end(); ++iMatch ) theMatchers.push_back( iMatch->first );
783  return theMatchers;
784 }
const TriggerObjectMatchContainer * triggerObjectMatchResults() const
Get all trigger matches.
Definition: TriggerEvent.h:346
#define begin
Definition: vmac.h:30
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 788 of file TriggerEvent.cc.

References end, spr::find(), and triggerObjectMatchResults().

Referenced by pat::helper::TriggerMatchHelper::triggerMatchCandidates(), pat::helper::TriggerMatchHelper::triggerMatchObject(), and triggerObjectMatchResults().

789 {
790  const TriggerObjectMatchContainer::const_iterator iMatch( triggerObjectMatchResults()->find( labelMatcher ) );
791  if ( iMatch != triggerObjectMatchResults()->end() ) return iMatch->second.get();
792  return nullptr;
793 }
const TriggerObjectMatchContainer * triggerObjectMatchResults() const
Get all trigger matches.
Definition: TriggerEvent.h:346
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
#define end
Definition: vmac.h:37
const TriggerObjectMatchContainer* pat::TriggerEvent::triggerObjectMatchResults ( ) const
inline

Get all trigger matches.

Definition at line 346 of file TriggerEvent.h.

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

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

346 { return &objectMatchResults_; };
TriggerObjectMatchContainer objectMatchResults_
Table of references to pat::TriggerObjectMatch associations in event.
Definition: TriggerEvent.h:93
boost::uint32_t pat::TriggerEvent::turnCount ( ) const
inline

Get the LHC beam turn counter.

Definition at line 169 of file TriggerEvent.h.

References turnCount_.

Referenced by setTurnCount().

169 { return turnCount_; };
boost::uint32_t turnCount_
LHC beam turn counter.
Definition: TriggerEvent.h:73
bool pat::TriggerEvent::wasAccept ( ) const
inline

Get the success flag.

Definition at line 151 of file TriggerEvent.h.

References accept_.

Referenced by WPlusJetsEventSelector::operator()().

151 { return accept_; };
bool accept_
Did HLT succeed?
Definition: TriggerEvent.h:53
bool pat::TriggerEvent::wasError ( ) const
inline

Get the error flag.

Definition at line 153 of file TriggerEvent.h.

References error_.

153 { return error_; };
bool error_
Was HLT in error?
Definition: TriggerEvent.h:55
bool pat::TriggerEvent::wasPhysDecl ( ) const
inline

Get the PhysicsDeclared GT bit.

Definition at line 155 of file TriggerEvent.h.

References physDecl_.

155 { return physDecl_; };
bool physDecl_
PhysicsDeclared GT bit.
Definition: TriggerEvent.h:57
bool pat::TriggerEvent::wasRun ( ) const
inline

Get the run flag.

Definition at line 149 of file TriggerEvent.h.

References run_.

Referenced by WPlusJetsEventSelector::operator()().

149 { return run_; };
bool run_
Was HLT run?
Definition: TriggerEvent.h:51

Member Data Documentation

bool pat::TriggerEvent::accept_
private

Did HLT succeed?

Definition at line 53 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 79 of file TriggerEvent.h.

Referenced by bCurrentAvg().

float pat::TriggerEvent::bCurrentStart_
private

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

Definition at line 75 of file TriggerEvent.h.

Referenced by bCurrentStart().

float pat::TriggerEvent::bCurrentStop_
private

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

Definition at line 77 of file TriggerEvent.h.

Referenced by bCurrentStop().

boost::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 62 of file TriggerEvent.h.

Referenced by beamMode().

boost::uint16_t pat::TriggerEvent::beamMomentum_
private

LHC beam momentum in GeV.

Definition at line 64 of file TriggerEvent.h.

Referenced by beamMomentum().

boost::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 71 of file TriggerEvent.h.

Referenced by bstMasterStatus().

TriggerConditionRefProd pat::TriggerEvent::conditions_
private

Reference to pat::TriggerConditionCollection in event.

Definition at line 85 of file TriggerEvent.h.

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

bool pat::TriggerEvent::error_
private

Was HLT in error?

Definition at line 55 of file TriggerEvent.h.

Referenced by wasError().

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

LHC beam 1 intensity in ???

Definition at line 66 of file TriggerEvent.h.

Referenced by intensityBeam1().

boost::uint32_t pat::TriggerEvent::intensityBeam2_
private

LHC beam 2 intensity in ???

Definition at line 68 of file TriggerEvent.h.

Referenced by intensityBeam2().

boost::uint32_t pat::TriggerEvent::lhcFill_
private

LHC fill number.

Definition at line 59 of file TriggerEvent.h.

Referenced by lhcFill().

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

Name of the HLT trigger table.

Definition at line 49 of file TriggerEvent.h.

Referenced by nameHltTable().

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

Data Members.

Name of the L1 trigger menu

Definition at line 47 of file TriggerEvent.h.

Referenced by nameL1Menu().

TriggerObjectMatchContainer pat::TriggerEvent::objectMatchResults_
private

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

Definition at line 93 of file TriggerEvent.h.

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

TriggerObjectRefProd pat::TriggerEvent::objects_
private

Reference to pat::TriggerObjectCollection in event.

Definition at line 91 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 57 of file TriggerEvent.h.

Referenced by wasPhysDecl().

bool pat::TriggerEvent::run_
private

Was HLT run?

Definition at line 51 of file TriggerEvent.h.

Referenced by wasRun().

boost::uint32_t pat::TriggerEvent::turnCount_
private

LHC beam turn counter.

Definition at line 73 of file TriggerEvent.h.

Referenced by turnCount().