CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
Version
Id:
TriggerEvent.h,v 1.17 2013/06/11 13:24:49 vadler Exp

Definition at line 44 of file TriggerEvent.h.

Constructor & Destructor Documentation

TriggerEvent::TriggerEvent ( )

Constructors and Desctructor.

Default constructor

Definition at line 16 of file TriggerEvent.cc.

References objectMatchResults_.

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

References objectMatchResults_.

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

References objectMatchResults_.

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

Destructor.

Definition at line 109 of file TriggerEvent.h.

109 {};

Member Function Documentation

TriggerAlgorithmRefVector TriggerEvent::acceptedAlgorithms ( ) const

Get a vector of references to all succeeding L1 algorithms.

Definition at line 140 of file TriggerEvent.cc.

References algorithmRef(), algorithms(), algorithms_, begin, indexAlgorithm(), nameAlgorithm(), and edm::RefVector< C, T, F >::push_back().

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

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

Definition at line 155 of file TriggerEvent.cc.

References algorithmRef(), algorithms(), algorithms_, begin, indexAlgorithm(), nameAlgorithm(), and edm::RefVector< C, T, F >::push_back().

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

Get a vector of references to all succeeding L1 condition.

Definition at line 302 of file TriggerEvent.cc.

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

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

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

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

Get a vector of references to all succeeding HLT paths.

Definition at line 359 of file TriggerEvent.cc.

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

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

References algorithmRef(), algorithms(), algorithms_, begin, indexAlgorithm(), nameAlgorithm(), and edm::RefVector< C, T, F >::push_back().

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

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

Definition at line 245 of file TriggerEvent.cc.

References algorithmRef(), algorithms(), algorithms_, begin, indexAlgorithm(), nameAlgorithm(), and edm::RefVector< C, T, F >::push_back().

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

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

Definition at line 185 of file TriggerEvent.cc.

References algorithmRef(), algorithms(), algorithms_, begin, indexAlgorithm(), nameAlgorithm(), and edm::RefVector< C, T, F >::push_back().

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

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

Definition at line 200 of file TriggerEvent.cc.

References algorithmRef(), algorithms(), algorithms_, begin, indexAlgorithm(), nameAlgorithm(), and edm::RefVector< C, T, F >::push_back().

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

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

Definition at line 769 of file TriggerEvent.cc.

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

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

Definition at line 343 of file TriggerEvent.h.

References addObjectMatchResult().

Referenced by addObjectMatchResult().

343 { 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 344 of file TriggerEvent.h.

References addObjectMatchResult().

Referenced by addObjectMatchResult().

344 { 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 101 of file TriggerEvent.cc.

References algorithms(), and begin.

Referenced by algorithmConditions().

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

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

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

458 {
459  TriggerConditionRefVector theAlgorithmConditions;
460  if ( const TriggerAlgorithm * algorithmPtr = algorithm( nameAlgorithm ) ) {
461  for ( unsigned iC = 0; iC < algorithmPtr->conditionKeys().size(); ++iC ) {
462  const TriggerConditionRef conditionRef( conditions_, algorithmPtr->conditionKeys().at( iC ) );
463  theAlgorithmConditions.push_back( conditionRef );
464  }
465  }
466  return theAlgorithmConditions;
467 }
Analysis-level L1 trigger algorithm class.
TriggerConditionRefProd conditions_
Reference to pat::TriggerConditionCollection in event.
Definition: TriggerEvent.h:87
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&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:64
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 562 of file TriggerEvent.cc.

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

563 {
564  TriggerObjectRefVector theAlgorithmObjects;
566  for ( TriggerConditionRefVectorIterator iCondition = theConditions.begin(); iCondition != theConditions.end(); ++iCondition ) {
567  const std::string nameCondition( ( *iCondition )->name() );
568  TriggerObjectRefVector theObjects = conditionObjects( nameCondition );
569  for ( TriggerObjectRefVectorIterator iObject = theObjects.begin(); iObject != theObjects.end(); ++iObject ) {
570  theAlgorithmObjects.push_back( *iObject );
571  }
572  }
573  return theAlgorithmObjects;
574 }
TriggerConditionRefVector algorithmConditions(const std::string &nameAlgorithm) const
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:249
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:244
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&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:64
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 111 of file TriggerEvent.cc.

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

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

112 {
113  for ( TriggerAlgorithmRefVector::const_iterator iAlgorithm = algorithmRefs().begin(); iAlgorithm != algorithmRefs().end(); ++iAlgorithm ) {
114  if ( nameAlgorithm == ( *iAlgorithm )->name() ) return *iAlgorithm;
115  }
116  return TriggerAlgorithmRef();
117 }
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:249
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:88
#define begin
Definition: vmac.h:31
const TriggerAlgorithmRefVector TriggerEvent::algorithmRefs ( ) const

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

Definition at line 88 of file TriggerEvent.cc.

References algorithmRef(), algorithms(), algorithms_, begin, indexAlgorithm(), nameAlgorithm(), and edm::RefVector< C, T, F >::push_back().

Referenced by algorithmRef().

89 {
90  TriggerAlgorithmRefVector theAlgorithms;
91  for ( TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end(); ++iAlgorithm ) {
92  const std::string nameAlgorithm( iAlgorithm->name() );
94  theAlgorithms.push_back( algorithmRef );
95  }
96  return theAlgorithms;
97 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:85
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:184
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
#define begin
Definition: vmac.h:31
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:64
const TriggerAlgorithmCollection* pat::TriggerEvent::algorithms ( ) const
inline

Get a pointer to all L1 algorithms, returns 0, if RefProd is NULL

Definition at line 184 of file TriggerEvent.h.

References algorithms_, and edm::RefProd< T >::get().

Referenced by acceptedAlgorithms(), acceptedAlgorithmsGtl(), acceptedPhysAlgorithms(), acceptedPhysAlgorithmsGtl(), acceptedTechAlgorithms(), acceptedTechAlgorithmsGtl(), algorithm(), algorithmRefs(), conditionAlgorithms(), indexAlgorithm(), nameAlgorithm(), objectAlgorithms(), physAlgorithms(), and techAlgorithms().

184 { return algorithms_.get(); };
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:85
product_type const * get() const
Definition: RefProd.h:116
float pat::TriggerEvent::bCurrentAvg ( ) const
inline

Get the CMS magnet current averaged over run.

Definition at line 177 of file TriggerEvent.h.

References bCurrentAvg_.

Referenced by setBCurrentAvg().

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

Get the CMS magnet current at start of run.

Definition at line 173 of file TriggerEvent.h.

References bCurrentStart_.

Referenced by setBCurrentStart().

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

Get the CMS magnet current at end of run.

Definition at line 175 of file TriggerEvent.h.

References bCurrentStop_.

Referenced by setBCurrentStop().

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

Get the LHC beam mode.

Definition at line 161 of file TriggerEvent.h.

References beamMode_.

Referenced by setBeamMode().

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

Get the LHC beam momentum.

Definition at line 163 of file TriggerEvent.h.

References beamMomentum_.

Referenced by setBeamMomentum().

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

Get the LHC master status.

Definition at line 169 of file TriggerEvent.h.

References bstMasterStatus_.

Referenced by setBstMasterStatus().

169 { return bstMasterStatus_; };
boost::uint16_t bstMasterStatus_
Definition: TriggerEvent.h:73
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 273 of file TriggerEvent.cc.

References begin, and conditions().

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

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

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

Definition at line 482 of file TriggerEvent.cc.

References algorithmRef(), algorithms(), algorithms_, begin, conditionInAlgorithm(), nameAlgorithm(), and edm::RefVector< C, T, F >::push_back().

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

References asciidump::at, runEdmFileComparison::collection, condition(), newFWLiteAna::found, and objects().

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

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

Referenced by conditionAlgorithms().

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

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

Referenced by algorithmObjects().

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

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

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

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

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

Referenced by conditionRef().

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

References conditions_, and edm::RefProd< T >::get().

Referenced by acceptedConditions(), condition(), conditionRefs(), indexCondition(), and objectConditions().

222 { return conditions_.get(); };
TriggerConditionRefProd conditions_
Reference to pat::TriggerConditionCollection in event.
Definition: TriggerEvent.h:87
product_type const * get() const
Definition: RefProd.h:116
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 387 of file TriggerEvent.cc.

References begin, and filters().

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

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

References asciidump::at, runEdmFileComparison::collection, filter(), newFWLiteAna::found, and objects().

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

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

Referenced by filterPaths().

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

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

Referenced by pathObjects().

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

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

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

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

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

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

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

Definition at line 374 of file TriggerEvent.cc.

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

Referenced by filterRef().

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

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

Definition at line 264 of file TriggerEvent.h.

References filters_, and edm::RefProd< T >::get().

Referenced by acceptedFilters(), filter(), filterRefs(), indexFilter(), and objectFilters().

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

References algorithms(), asciidump::at, mergeVDriftHistosByStation::name, and findQualityFiles::size.

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

132 {
133  unsigned iAlgorithm( 0 );
134  while ( iAlgorithm < algorithms()->size() && algorithms()->at( iAlgorithm ).name() != nameAlgorithm ) ++iAlgorithm;
135  return iAlgorithm;
136 }
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:184
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
tuple size
Write out results.
list at
Definition: asciidump.py:428
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 293 of file TriggerEvent.cc.

References asciidump::at, conditions(), mergeVDriftHistosByStation::name, and findQualityFiles::size.

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

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

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

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

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

References asciidump::at, mergeVDriftHistosByStation::name, paths(), and findQualityFiles::size.

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

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

Get the LHC beam 1 intensity.

Definition at line 165 of file TriggerEvent.h.

References intensityBeam1_.

Referenced by setIntensityBeam1().

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

Get the LHC beam 2 intensity.

Definition at line 167 of file TriggerEvent.h.

References intensityBeam2_.

Referenced by setIntensityBeam2().

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

Get the LHC fill number.

Definition at line 159 of file TriggerEvent.h.

References lhcFill_.

Referenced by setLhcFill().

159 { return lhcFill_; };
boost::uint32_t lhcFill_
LHC fill number.
Definition: TriggerEvent.h:61
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 121 of file TriggerEvent.cc.

References algorithms(), and begin.

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

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

Get the name of the HLT trigger table.

Definition at line 149 of file TriggerEvent.h.

References nameHltTable_.

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

Get the name of the L1 trigger menu.

Definition at line 147 of file TriggerEvent.h.

References nameL1Menu_.

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

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

Definition at line 589 of file TriggerEvent.cc.

References algorithmRef(), algorithms(), algorithms_, begin, indexAlgorithm(), nameAlgorithm(), objectInAlgorithm(), and edm::RefVector< C, T, F >::push_back().

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

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

Definition at line 547 of file TriggerEvent.cc.

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

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

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

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

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

Referenced by objectAlgorithms().

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

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

Referenced by objectConditions(), and objectInAlgorithm().

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

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

Referenced by objectFilters(), and objectInPath().

705  {
706  if ( const TriggerFilter * filterPtr = filter( labelFilter ) ) return filterPtr->hasObjectKey( objectRef.key() );
707  return false;
708 }
Analysis-level HLTrigger filter class.
Definition: TriggerFilter.h:37
key_type key() const
Accessor for product key.
Definition: Ref.h:266
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 743 of file TriggerEvent.cc.

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

Referenced by objectPaths().

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

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

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

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

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

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

Definition at line 285 of file TriggerEvent.h.

References edm::RefProd< T >::get(), and objects_.

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

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

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

Definition at line 443 of file TriggerEvent.cc.

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

444 {
445  TriggerObjectRefVector theObjects;
446  for ( unsigned iObject = 0; iObject < objects()->size(); ++iObject ) {
447  if ( objects()->at( iObject ).hasTriggerObjectType( triggerObjectType ) ) {
448  const TriggerObjectRef objectRef( objects_, iObject );
449  theObjects.push_back( objectRef );
450  }
451  }
452  return theObjects;
453 }
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:285
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:64
TriggerObjectRefProd objects_
Reference to pat::TriggerObjectCollection in event.
Definition: TriggerEvent.h:93
TriggerObjectRefVector pat::TriggerEvent::objects ( int  triggerObjectType) const
inline

Definition at line 291 of file TriggerEvent.h.

References objects().

Referenced by objects().

291 { return objects( trigger::TriggerObjectType( triggerObjectType ) ); }; // for backward compatibility
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:285
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 330 of file TriggerEvent.cc.

References begin, and paths().

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

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

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

Referenced by filterInPath(), objectInPath(), and pathObjects().

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

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

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

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

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

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

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

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

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

Referenced by pathRef().

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

References edm::RefProd< T >::get(), and paths_.

Referenced by acceptedPaths(), filterPaths(), indexPath(), objectPaths(), path(), and pathRefs().

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

Get a vector of references to all physics L1 algorithms.

Definition at line 215 of file TriggerEvent.cc.

References algorithmRef(), algorithms(), algorithms_, begin, indexAlgorithm(), nameAlgorithm(), and edm::RefVector< C, T, F >::push_back().

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

Set the success flag.

Definition at line 121 of file TriggerEvent.h.

References accept(), and accept_.

121 { accept_ = accept; };
bool accept_
Did HLT succeed?
Definition: TriggerEvent.h:55
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Definition: TopDQMHelpers.h:22
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 181 of file TriggerEvent.h.

References algorithms_.

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

References bCurrentAvg(), and bCurrentAvg_.

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

Set the CMS magnet current at start of run.

Definition at line 141 of file TriggerEvent.h.

References bCurrentStart(), and bCurrentStart_.

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

Set the CMS magnet current at end of run.

Definition at line 143 of file TriggerEvent.h.

References bCurrentStop(), and bCurrentStop_.

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

Set the LHC beam mode.

Definition at line 129 of file TriggerEvent.h.

References beamMode(), and beamMode_.

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

Set the LHC beam momentum.

Definition at line 131 of file TriggerEvent.h.

References beamMomentum(), and beamMomentum_.

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

Set the LHC master status.

Definition at line 137 of file TriggerEvent.h.

References bstMasterStatus(), and bstMasterStatus_.

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

References conditions_.

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

Set the error flag.

Definition at line 123 of file TriggerEvent.h.

References error.

123 { error = error; };
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 261 of file TriggerEvent.h.

References filters_.

261 { filters_ = TriggerFilterRefProd( handleTriggerFilters ); };
TriggerFilterRefProd filters_
Reference to pat::TriggerAlgorithmCollection in event.
Definition: TriggerEvent.h:91
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 133 of file TriggerEvent.h.

References intensityBeam1(), and intensityBeam1_.

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

Set the LHC beam 2 intensity.

Definition at line 135 of file TriggerEvent.h.

References intensityBeam2(), and intensityBeam2_.

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

Set the LHC fill number.

Definition at line 127 of file TriggerEvent.h.

References lhcFill(), and lhcFill_.

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

Set the name of the HLT trigger table.

Definition at line 117 of file TriggerEvent.h.

References mergeVDriftHistosByStation::name, and nameHltTable_.

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

Methods.

Trigger event Set the name of the L1 trigger menu

Definition at line 115 of file TriggerEvent.h.

References mergeVDriftHistosByStation::name, and nameL1Menu_.

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

References objects_.

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

References paths_.

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

Set the PhysicsDeclared GT bit.

Definition at line 125 of file TriggerEvent.h.

References physDecl_.

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

Set the run flag.

Definition at line 119 of file TriggerEvent.h.

References DTTTrigCorrFirst::run, and run_.

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

Set the LHC beam turn counter.

Definition at line 139 of file TriggerEvent.h.

References turnCount(), and turnCount_.

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

Get a vector of references to all technical L1 algorithms.

Definition at line 170 of file TriggerEvent.cc.

References algorithmRef(), algorithms(), algorithms_, begin, indexAlgorithm(), nameAlgorithm(), and edm::RefVector< C, T, F >::push_back().

171 {
172  TriggerAlgorithmRefVector theTechAlgorithms;
173  for ( TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end(); ++iAlgorithm ) {
174  if ( iAlgorithm->techTrigger() ) {
175  const std::string nameAlgorithm( iAlgorithm->name() );
177  theTechAlgorithms.push_back( algorithmRef );
178  }
179  }
180  return theTechAlgorithms;
181 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:85
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:184
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
#define begin
Definition: vmac.h:31
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:64
std::vector< std::string > TriggerEvent::triggerMatchers ( ) const

Get a list of all linked trigger matches.

Definition at line 780 of file TriggerEvent.cc.

References begin, and triggerObjectMatchResults().

Referenced by pat::helper::TriggerMatchHelper::triggerMatchObjects().

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

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

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

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

Get all trigger matches.

Definition at line 348 of file TriggerEvent.h.

References objectMatchResults_.

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

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

Get the LHC beam turn counter.

Definition at line 171 of file TriggerEvent.h.

References turnCount_.

Referenced by setTurnCount().

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

Get the success flag.

Definition at line 153 of file TriggerEvent.h.

References accept_.

Referenced by WPlusJetsEventSelector::operator()().

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

Get the error flag.

Definition at line 155 of file TriggerEvent.h.

References error_.

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

Get the PhysicsDeclared GT bit.

Definition at line 157 of file TriggerEvent.h.

References physDecl_.

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

Get the run flag.

Definition at line 151 of file TriggerEvent.h.

References run_.

Referenced by WPlusJetsEventSelector::operator()().

151 { return run_; };
bool run_
Was HLT run?
Definition: TriggerEvent.h:53

Member Data Documentation

bool pat::TriggerEvent::accept_
private

Did HLT succeed?

Definition at line 55 of file TriggerEvent.h.

Referenced by setAccept(), and wasAccept().

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

CMS magnet current in ??? averaged over run.

Definition at line 81 of file TriggerEvent.h.

Referenced by bCurrentAvg(), and setBCurrentAvg().

float pat::TriggerEvent::bCurrentStart_
private

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

Definition at line 77 of file TriggerEvent.h.

Referenced by bCurrentStart(), and setBCurrentStart().

float pat::TriggerEvent::bCurrentStop_
private

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

Definition at line 79 of file TriggerEvent.h.

Referenced by bCurrentStop(), and setBCurrentStop().

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 64 of file TriggerEvent.h.

Referenced by beamMode(), and setBeamMode().

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

LHC beam momentum in GeV.

Definition at line 66 of file TriggerEvent.h.

Referenced by beamMomentum(), and setBeamMomentum().

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 73 of file TriggerEvent.h.

Referenced by bstMasterStatus(), and setBstMasterStatus().

TriggerConditionRefProd pat::TriggerEvent::conditions_
private
bool pat::TriggerEvent::error_
private

Was HLT in error?

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

Referenced by intensityBeam1(), and setIntensityBeam1().

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

LHC beam 2 intensity in ???

Definition at line 70 of file TriggerEvent.h.

Referenced by intensityBeam2(), and setIntensityBeam2().

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

LHC fill number.

Definition at line 61 of file TriggerEvent.h.

Referenced by lhcFill(), and setLhcFill().

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

Name of the HLT trigger table.

Definition at line 51 of file TriggerEvent.h.

Referenced by nameHltTable(), and setNameHltTable().

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

Data Members.

Name of the L1 trigger menu

Definition at line 49 of file TriggerEvent.h.

Referenced by nameL1Menu(), and setNameL1Menu().

TriggerObjectMatchContainer pat::TriggerEvent::objectMatchResults_
private

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

Definition at line 95 of file TriggerEvent.h.

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

TriggerObjectRefProd pat::TriggerEvent::objects_
private

Reference to pat::TriggerObjectCollection in event.

Definition at line 93 of file TriggerEvent.h.

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

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

PhysicsDeclared GT bit.

Definition at line 59 of file TriggerEvent.h.

Referenced by setPhysDecl(), and wasPhysDecl().

bool pat::TriggerEvent::run_
private

Was HLT run?

Definition at line 53 of file TriggerEvent.h.

Referenced by setRun(), and wasRun().

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

LHC beam turn counter.

Definition at line 75 of file TriggerEvent.h.

Referenced by setTurnCount(), and turnCount().