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 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 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) 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) const
 Get a vector of references to all paths, which have a certain filter assigned. More...
 
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
 
std::string nameHltTable () const
 Get the name of the HLT trigger table. More...
 
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) 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) const
 Checks, if an object was used in a certain path given by name. More...
 
TriggerPathRefVector objectPaths (const TriggerObjectRef &objectRef) const
 Get a vector of references to all paths, which have a certain object assigned. More...
 
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) 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) const
 Get a vector of references to all objects, which were used in a certain path given by name. More...
 
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.19 2011/03/08 10:48:45 vadler Exp

Definition at line 44 of file TriggerEvent.h.

Constructor & Destructor Documentation

pat::TriggerEvent::TriggerEvent ( )
inline

Constructors and Desctructor.

Default constructor

Definition at line 102 of file TriggerEvent.h.

References objectMatchResults_.

102 { objectMatchResults_.clear(); };
TriggerObjectMatchContainer objectMatchResults_
Table of references to pat::TriggerObjectMatch associations in event.
Definition: TriggerEvent.h:95
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 16 of file TriggerEvent.cc.

References objectMatchResults_.

16  :
18  run_( run ),
19  accept_( accept ),
20  error_( error ),
21  physDecl_( physDecl )
22 {
23  objectMatchResults_.clear();
24 }
std::string nameHltTable_
Name of the HLT trigger table.
Definition: TriggerEvent.h:51
bool physDecl_
PhysicsDeclared GT bit.
Definition: TriggerEvent.h:59
std::string nameHltTable() const
Get the name of the HLT trigger table.
Definition: TriggerEvent.h:149
bool accept_
Did HLT succeed?
Definition: TriggerEvent.h:55
bool error_
Was HLT in error?
Definition: TriggerEvent.h:57
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Definition: TopDQMHelpers.h:21
TriggerObjectMatchContainer objectMatchResults_
Table of references to pat::TriggerObjectMatch associations in event.
Definition: TriggerEvent.h:95
bool run_
Was HLT run?
Definition: TriggerEvent.h:53
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 28 of file TriggerEvent.cc.

References objectMatchResults_.

28  :
31  run_( run ),
32  accept_( accept ),
33  error_( error ),
34  physDecl_( physDecl )
35 {
36  objectMatchResults_.clear();
37 }
std::string nameHltTable_
Name of the HLT trigger table.
Definition: TriggerEvent.h:51
std::string nameL1Menu() const
Get the name of the L1 trigger menu.
Definition: TriggerEvent.h:147
bool physDecl_
PhysicsDeclared GT bit.
Definition: TriggerEvent.h:59
std::string nameHltTable() const
Get the name of the HLT trigger table.
Definition: TriggerEvent.h:149
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:21
TriggerObjectMatchContainer objectMatchResults_
Table of references to pat::TriggerObjectMatch associations in event.
Definition: TriggerEvent.h:95
bool run_
Was HLT run?
Definition: TriggerEvent.h:53
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 73 of file TriggerEvent.cc.

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

74 {
75  TriggerAlgorithmRefVector theAcceptedAlgorithms;
76  for ( TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end(); ++iAlgorithm ) {
77  if ( iAlgorithm->decision() ) {
78  const std::string nameAlgorithm( iAlgorithm->name() );
80  theAcceptedAlgorithms.push_back( algorithmRef );
81  }
82  }
83  return theAcceptedAlgorithms;
84 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:85
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:64
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:184
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
Definition: TriggerEvent.cc:54
#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:61
TriggerAlgorithmRefVector TriggerEvent::acceptedAlgorithmsGtl ( ) const

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

Definition at line 88 of file TriggerEvent.cc.

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

89 {
90  TriggerAlgorithmRefVector theAcceptedAlgorithms;
91  for ( TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end(); ++iAlgorithm ) {
92  if ( iAlgorithm->gtlResult() ) {
93  const std::string nameAlgorithm( iAlgorithm->name() );
95  theAcceptedAlgorithms.push_back( algorithmRef );
96  }
97  }
98  return theAcceptedAlgorithms;
99 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:85
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:64
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:184
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
Definition: TriggerEvent.cc:54
#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:61
TriggerConditionRefVector TriggerEvent::acceptedConditions ( ) const

Get a vector of references to all succeeding L1 condition.

Definition at line 212 of file TriggerEvent.cc.

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

213 {
214  TriggerConditionRefVector theAcceptedConditions;
215  for ( TriggerConditionCollection::const_iterator iCondition = conditions()->begin(); iCondition != conditions()->end(); ++iCondition ) {
216  if ( iCondition->wasAccept() ) {
217  const std::string nameCondition( iCondition->name() );
218  const TriggerConditionRef conditionRef( conditions_, indexCondition( nameCondition ) );
219  theAcceptedConditions.push_back( conditionRef );
220  }
221  }
222  return theAcceptedConditions;
223 }
TriggerConditionRefProd conditions_
Reference to pat::TriggerConditionCollection in event.
Definition: TriggerEvent.h:87
const TriggerConditionCollection * conditions() const
Definition: TriggerEvent.h:216
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:61
TriggerFilterRefVector TriggerEvent::acceptedFilters ( ) const

Get a vector of references to all succeeding HLT filters.

Definition at line 280 of file TriggerEvent.cc.

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

281 {
282  TriggerFilterRefVector theAcceptedFilters;
283  for ( TriggerFilterCollection::const_iterator iFilter = filters()->begin(); iFilter != filters()->end(); ++iFilter ) {
284  if ( iFilter->status() == 1 ) {
285  const std::string labelFilter( iFilter->label() );
286  const TriggerFilterRef filterRef( filters_, indexFilter( labelFilter ) );
287  theAcceptedFilters.push_back( filterRef );
288  }
289  }
290  return theAcceptedFilters;
291 }
unsigned indexFilter(const std::string &labelFilter) const
TriggerFilterRefProd filters_
Reference to pat::TriggerAlgorithmCollection in event.
Definition: TriggerEvent.h:91
const TriggerFilterCollection * filters() const
Definition: TriggerEvent.h:246
#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:61
TriggerPathRefVector TriggerEvent::acceptedPaths ( ) const

Get a vector of references to all succeeding HLT paths.

Definition at line 246 of file TriggerEvent.cc.

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

247 {
248  TriggerPathRefVector theAcceptedPaths;
249  for ( TriggerPathCollection::const_iterator iPath = paths()->begin(); iPath != paths()->end(); ++iPath ) {
250  if ( iPath->wasAccept() ) {
251  const std::string namePath( iPath->name() );
252  const TriggerPathRef pathRef( paths_, indexPath( namePath ) );
253  theAcceptedPaths.push_back( pathRef );
254  }
255  }
256  return theAcceptedPaths;
257 }
TriggerPathRefProd paths_
Reference to pat::TriggerPathCollection in event.
Definition: TriggerEvent.h:89
const TriggerPathCollection * paths() const
Definition: TriggerEvent.h:231
#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:61
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 163 of file TriggerEvent.cc.

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

164 {
165  TriggerAlgorithmRefVector theAcceptedPhysAlgorithms;
166  for ( TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end(); ++iAlgorithm ) {
167  if ( ! iAlgorithm->techTrigger() && iAlgorithm->decision() ) {
168  const std::string nameAlgorithm( iAlgorithm->name() );
170  theAcceptedPhysAlgorithms.push_back( algorithmRef );
171  }
172  }
173  return theAcceptedPhysAlgorithms;
174 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:85
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:64
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:184
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
Definition: TriggerEvent.cc:54
#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:61
TriggerAlgorithmRefVector TriggerEvent::acceptedPhysAlgorithmsGtl ( ) const

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

Definition at line 178 of file TriggerEvent.cc.

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

179 {
180  TriggerAlgorithmRefVector theAcceptedPhysAlgorithms;
181  for ( TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end(); ++iAlgorithm ) {
182  if ( ! iAlgorithm->techTrigger() && iAlgorithm->gtlResult() ) {
183  const std::string nameAlgorithm( iAlgorithm->name() );
185  theAcceptedPhysAlgorithms.push_back( algorithmRef );
186  }
187  }
188  return theAcceptedPhysAlgorithms;
189 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:85
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:64
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:184
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
Definition: TriggerEvent.cc:54
#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:61
TriggerAlgorithmRefVector TriggerEvent::acceptedTechAlgorithms ( ) const

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

Definition at line 118 of file TriggerEvent.cc.

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

119 {
120  TriggerAlgorithmRefVector theAcceptedTechAlgorithms;
121  for ( TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end(); ++iAlgorithm ) {
122  if ( iAlgorithm->techTrigger() && iAlgorithm->decision() ) {
123  const std::string nameAlgorithm( iAlgorithm->name() );
125  theAcceptedTechAlgorithms.push_back( algorithmRef );
126  }
127  }
128  return theAcceptedTechAlgorithms;
129 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:85
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:64
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:184
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
Definition: TriggerEvent.cc:54
#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:61
TriggerAlgorithmRefVector TriggerEvent::acceptedTechAlgorithmsGtl ( ) const

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

Definition at line 133 of file TriggerEvent.cc.

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

134 {
135  TriggerAlgorithmRefVector theAcceptedTechAlgorithms;
136  for ( TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end(); ++iAlgorithm ) {
137  if ( iAlgorithm->techTrigger() && iAlgorithm->gtlResult() ) {
138  const std::string nameAlgorithm( iAlgorithm->name() );
140  theAcceptedTechAlgorithms.push_back( algorithmRef );
141  }
142  }
143  return theAcceptedTechAlgorithms;
144 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:85
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:64
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:184
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
Definition: TriggerEvent.cc:54
#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:61
bool TriggerEvent::addObjectMatchResult ( const TriggerObjectMatchRefProd trigMatches,
const std::string &  labelMatcher 
)

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

Definition at line 619 of file TriggerEvent.cc.

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

620 {
621  if ( triggerObjectMatchResults()->find( labelMatcher ) == triggerObjectMatchResults()->end() ) {
622  objectMatchResults_[ labelMatcher ] = trigMatches;
623  return true;
624  }
625  return false;
626 }
const TriggerObjectMatchContainer * triggerObjectMatchResults() const
Get all trigger matches.
Definition: TriggerEvent.h:321
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 316 of file TriggerEvent.h.

References addObjectMatchResult().

Referenced by addObjectMatchResult().

316 { 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 317 of file TriggerEvent.h.

References addObjectMatchResult().

Referenced by addObjectMatchResult().

317 { 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 44 of file TriggerEvent.cc.

References algorithms(), and begin.

Referenced by algorithmConditions().

45 {
46  for ( TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end(); ++iAlgorithm ) {
47  if ( nameAlgorithm == iAlgorithm->name() ) return &*iAlgorithm;
48  }
49  return 0;
50 }
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:184
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
Definition: TriggerEvent.cc:54
#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 309 of file TriggerEvent.cc.

References algorithm(), asciidump::at, pat::TriggerAlgorithm::conditionKeys(), conditions_, and edm::RefVector< C, T, F >::push_back().

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

310 {
311  TriggerConditionRefVector theAlgorithmConditions;
312  if ( algorithm( nameAlgorithm ) ) {
313  for ( unsigned iC = 0; iC < algorithm( nameAlgorithm )->conditionKeys().size(); ++iC ) {
314  const TriggerConditionRef conditionRef( conditions_, algorithm( nameAlgorithm )->conditionKeys().at( iC ) );
315  theAlgorithmConditions.push_back( conditionRef );
316  }
317  }
318  return theAlgorithmConditions;
319 }
TriggerConditionRefProd conditions_
Reference to pat::TriggerConditionCollection in event.
Definition: TriggerEvent.h:87
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
Definition: TriggerEvent.cc:54
const TriggerAlgorithm * algorithm(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:44
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:61
std::vector< unsigned > conditionKeys() const
Get all trigger condition collection indeces.
list at
Definition: asciidump.py:428
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 414 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().

415 {
416  TriggerObjectRefVector theAlgorithmObjects;
418  for ( TriggerConditionRefVectorIterator iCondition = theConditions.begin(); iCondition != theConditions.end(); ++iCondition ) {
419  const std::string nameCondition( ( *iCondition )->name() );
420  TriggerObjectRefVector theObjects = conditionObjects( nameCondition );
421  for ( TriggerObjectRefVectorIterator iObject = theObjects.begin(); iObject != theObjects.end(); ++iObject ) {
422  theAlgorithmObjects.push_back( *iObject );
423  }
424  }
425  return theAlgorithmObjects;
426 }
TriggerConditionRefVector algorithmConditions(const std::string &nameAlgorithm) const
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:242
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:237
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
Definition: TriggerEvent.cc:54
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:61
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(), 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:117
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 193 of file TriggerEvent.cc.

References begin, and conditions().

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

194 {
195  for ( TriggerConditionCollection::const_iterator iCondition = conditions()->begin(); iCondition != conditions()->end(); ++iCondition ) {
196  if ( nameCondition == iCondition->name() ) return &*iCondition;
197  }
198  return 0;
199 }
const TriggerConditionCollection * conditions() const
Definition: TriggerEvent.h:216
#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 334 of file TriggerEvent.cc.

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

335 {
336  TriggerAlgorithmRefVector theConditionAlgorithms;
337  size_t cAlgorithms( 0 );
338  for ( TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end(); ++iAlgorithm ) {
339  const std::string nameAlgorithm( iAlgorithm->name() );
340  if ( conditionInAlgorithm( conditionRef, nameAlgorithm ) ) {
341  const TriggerAlgorithmRef algorithmRef( algorithms_, cAlgorithms );
342  theConditionAlgorithms.push_back( algorithmRef );
343  }
344  ++cAlgorithms;
345  }
346  return theConditionAlgorithms;
347 }
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
Definition: TriggerEvent.cc:54
#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:61
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 351 of file TriggerEvent.cc.

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

352 {
353  std::vector< std::string > theConditionCollections;
354  if ( condition( nameCondition ) ) {
355  for ( unsigned iObject = 0; iObject < objects()->size(); ++iObject ) {
356  if ( condition( nameCondition )->hasObjectKey( iObject ) ) {
357  bool found( false );
358  std::string objectCollection( objects()->at( iObject ).collection() );
359  for ( std::vector< std::string >::const_iterator iC = theConditionCollections.begin(); iC != theConditionCollections.end(); ++iC ) {
360  if ( *iC == objectCollection ) {
361  found = true;
362  break;
363  }
364  }
365  if ( ! found ) {
366  theConditionCollections.push_back( objectCollection );
367  }
368  }
369  }
370  }
371  return theConditionCollections;
372 }
bool hasObjectKey(unsigned objectKey) const
Checks, if a certain trigger object collection index is assigned.
const TriggerCondition * condition(const std::string &nameCondition) const
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:261
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 323 of file TriggerEvent.cc.

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

Referenced by conditionAlgorithms().

324 {
326  for ( TriggerConditionRefVectorIterator iCondition = theConditions.begin(); iCondition != theConditions.end(); ++iCondition ) {
327  if ( conditionRef == *iCondition ) return true;
328  }
329  return false;
330 }
TriggerConditionRefVector algorithmConditions(const std::string &nameAlgorithm) const
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:242
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:237
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
Definition: TriggerEvent.cc:54
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 376 of file TriggerEvent.cc.

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

Referenced by algorithmObjects().

377 {
378  TriggerObjectRefVector theConditionObjects;
379  if ( condition( nameCondition ) ) {
380  for ( unsigned iObject = 0; iObject < objects()->size(); ++iObject ) {
381  if ( condition( nameCondition )->hasObjectKey( iObject ) ) {
382  const TriggerObjectRef objectRef( objects_, iObject );
383  theConditionObjects.push_back( objectRef );
384  }
385  }
386  }
387  return theConditionObjects;
388 }
bool hasObjectKey(unsigned objectKey) const
Checks, if a certain trigger object collection index is assigned.
const TriggerCondition * condition(const std::string &nameCondition) const
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:261
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:61
TriggerObjectRefProd objects_
Reference to pat::TriggerObjectCollection in event.
Definition: TriggerEvent.h:93
const TriggerConditionCollection* pat::TriggerEvent::conditions ( ) const
inline

Get a pointer to all L1 condition, returns 0 if RefProd is null

Definition at line 216 of file TriggerEvent.h.

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

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

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

References begin, and filters().

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

262 {
263  for ( TriggerFilterCollection::const_iterator iFilter = filters()->begin(); iFilter != filters()->end(); ++iFilter ) {
264  if ( iFilter->label() == labelFilter ) return &*iFilter;
265  }
266  return 0;
267 }
const TriggerFilterCollection * filters() const
Definition: TriggerEvent.h:246
#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 514 of file TriggerEvent.cc.

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

515 {
516  std::vector< std::string > theFilterCollections;
517  if ( filter( labelFilter ) ) {
518  for ( unsigned iObject = 0; iObject < objects()->size(); ++iObject ) {
519  if ( filter( labelFilter )->hasObjectKey( iObject ) ) {
520  bool found( false );
521  std::string objectCollection( objects()->at( iObject ).collection() );
522  for ( std::vector< std::string >::const_iterator iC = theFilterCollections.begin(); iC != theFilterCollections.end(); ++iC ) {
523  if ( *iC == objectCollection ) {
524  found = true;
525  break;
526  }
527  }
528  if ( ! found ) {
529  theFilterCollections.push_back( objectCollection );
530  }
531  }
532  }
533  }
534  return theFilterCollections;
535 }
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:261
bool hasObjectKey(unsigned objectKey) const
Checks, if a certain trigger object collection index is assigned.
const TriggerFilter * filter(const std::string &labelFilter) const
list at
Definition: asciidump.py:428
bool TriggerEvent::filterInPath ( const TriggerFilterRef filterRef,
const std::string &  namePath 
) const

Checks, if a filter is assigned to and was run in a certain path given by name.

Definition at line 486 of file TriggerEvent.cc.

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

Referenced by filterPaths().

487 {
488  TriggerFilterRefVector theFilters = pathFilters( namePath );
489  for ( TriggerFilterRefVectorIterator iFilter = theFilters.begin(); iFilter != theFilters.end(); ++iFilter ) {
490  if ( filterRef == *iFilter ) return true;
491  }
492  return false;
493 }
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:242
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:237
TriggerFilterRefVector pathFilters(const std::string &namePath) const
Get a vector of references to all active HLT filters assigned to a certain path given by name...
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 539 of file TriggerEvent.cc.

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

Referenced by pathObjects().

540 {
541  TriggerObjectRefVector theFilterObjects;
542  if ( filter( labelFilter ) ) {
543  for ( unsigned iObject = 0; iObject < objects()->size(); ++iObject ) {
544  if ( filter( labelFilter )->hasObjectKey( iObject ) ) {
545  const TriggerObjectRef objectRef( objects_, iObject );
546  theFilterObjects.push_back( objectRef );
547  }
548  }
549  }
550  return theFilterObjects;
551 }
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:261
bool hasObjectKey(unsigned objectKey) const
Checks, if a certain trigger object collection index is assigned.
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:61
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) const

Get a vector of references to all paths, which have a certain filter assigned.

Definition at line 497 of file TriggerEvent.cc.

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

498 {
499  TriggerPathRefVector theFilterPaths;
500  size_t cPaths( 0 );
501  for ( TriggerPathCollection::const_iterator iPath = paths()->begin(); iPath != paths()->end(); ++iPath ) {
502  const std::string namePath( iPath->name() );
503  if ( filterInPath( filterRef, namePath ) ) {
504  const TriggerPathRef pathRef( paths_, cPaths );
505  theFilterPaths.push_back( pathRef );
506  }
507  ++cPaths;
508  }
509  return theFilterPaths;
510 }
TriggerPathRefProd paths_
Reference to pat::TriggerPathCollection in event.
Definition: TriggerEvent.h:89
const TriggerPathCollection * paths() const
Definition: TriggerEvent.h:231
bool filterInPath(const TriggerFilterRef &filterRef, const std::string &namePath) 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:61
const TriggerFilterCollection* pat::TriggerEvent::filters ( ) const
inline

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

Definition at line 246 of file TriggerEvent.h.

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

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

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

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

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

65 {
66  unsigned iAlgorithm( 0 );
67  while ( iAlgorithm < algorithms()->size() && algorithms()->at( iAlgorithm ).name() != nameAlgorithm ) ++iAlgorithm;
68  return iAlgorithm;
69 }
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:184
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
Definition: TriggerEvent.cc:54
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 203 of file TriggerEvent.cc.

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

Referenced by acceptedConditions(), and objectConditions().

204 {
205  unsigned iCondition( 0 );
206  while ( iCondition < conditions()->size() && conditions()->at( iCondition ).name() != nameCondition ) ++iCondition;
207  return iCondition;
208 }
const TriggerConditionCollection * conditions() const
Definition: TriggerEvent.h:216
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 271 of file TriggerEvent.cc.

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

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

272 {
273  unsigned iFilter( 0 );
274  while ( iFilter < filters()->size() && filters()->at( iFilter ).label() != labelFilter ) ++iFilter;
275  return iFilter;
276 }
const std::string & label
Definition: MVAComputer.cc:186
const TriggerFilterCollection * filters() const
Definition: TriggerEvent.h:246
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 237 of file TriggerEvent.cc.

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

Referenced by acceptedPaths(), and objectPaths().

238 {
239  unsigned iPath( 0 );
240  while ( iPath < paths()->size() && paths()->at( iPath ).name() != namePath ) ++iPath;
241  return iPath;
242 }
const TriggerPathCollection * paths() const
Definition: TriggerEvent.h:231
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 54 of file TriggerEvent.cc.

References algorithms(), and begin.

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

55 {
56  for ( TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end(); ++iAlgorithm ) {
57  if ( bitAlgorithm == iAlgorithm->bit() && techAlgorithm == iAlgorithm->techTrigger() ) return iAlgorithm->name();
58  }
59  return std::string( "" );
60 }
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:184
#define begin
Definition: vmac.h:31
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
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 441 of file TriggerEvent.cc.

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

442 {
443  TriggerAlgorithmRefVector theObjectAlgorithms;
444  for ( TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end(); ++iAlgorithm ) {
445  const std::string nameAlgorithm( iAlgorithm->name() );
446  if ( objectInAlgorithm( objectRef, nameAlgorithm ) ) {
448  theObjectAlgorithms.push_back( algorithmRef );
449  }
450  }
451  return theObjectAlgorithms;
452 }
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
Definition: TriggerEvent.cc:64
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:184
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
Definition: TriggerEvent.cc:54
#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:61
TriggerConditionRefVector TriggerEvent::objectConditions ( const TriggerObjectRef objectRef) const

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

Definition at line 399 of file TriggerEvent.cc.

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

400 {
401  TriggerConditionRefVector theObjectConditions;
402  for ( TriggerConditionCollection::const_iterator iCondition = conditions()->begin(); iCondition != conditions()->end(); ++iCondition ) {
403  const std::string nameCondition( iCondition->name() );
404  if ( objectInCondition( objectRef, nameCondition ) ) {
405  const TriggerConditionRef conditionRef( conditions_, indexCondition( nameCondition ) );
406  theObjectConditions.push_back( conditionRef );
407  }
408  }
409  return theObjectConditions;
410 }
TriggerConditionRefProd conditions_
Reference to pat::TriggerConditionCollection in event.
Definition: TriggerEvent.h:87
const TriggerConditionCollection * conditions() const
Definition: TriggerEvent.h:216
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:61
TriggerFilterRefVector TriggerEvent::objectFilters ( const TriggerObjectRef objectRef) const

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

Definition at line 562 of file TriggerEvent.cc.

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

563 {
564  TriggerFilterRefVector theObjectFilters;
565  for ( TriggerFilterCollection::const_iterator iFilter = filters()->begin(); iFilter != filters()->end(); ++iFilter ) {
566  const std::string labelFilter( iFilter->label() );
567  if ( objectInFilter( objectRef, labelFilter ) ) {
568  const TriggerFilterRef filterRef( filters_, indexFilter( labelFilter ) );
569  theObjectFilters.push_back( filterRef );
570  }
571  }
572  return theObjectFilters;
573 }
unsigned indexFilter(const std::string &labelFilter) const
TriggerFilterRefProd filters_
Reference to pat::TriggerAlgorithmCollection in event.
Definition: TriggerEvent.h:91
const TriggerFilterCollection * filters() const
Definition: TriggerEvent.h:246
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:61
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 430 of file TriggerEvent.cc.

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

Referenced by objectAlgorithms().

431 {
433  for ( TriggerConditionRefVectorIterator iCondition = theConditions.begin(); iCondition != theConditions.end(); ++iCondition ) {
434  if ( objectInCondition( objectRef, ( *iCondition )->name() ) ) return true;
435  }
436  return false;
437 }
TriggerConditionRefVector algorithmConditions(const std::string &nameAlgorithm) const
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:242
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:237
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
Definition: TriggerEvent.cc:54
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 392 of file TriggerEvent.cc.

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

Referenced by objectConditions(), and objectInAlgorithm().

392  {
393  if ( condition( nameCondition ) ) return condition( nameCondition )->hasObjectKey( objectRef.key() );
394  return false;
395 }
bool hasObjectKey(unsigned objectKey) const
Checks, if a certain trigger object collection index is assigned.
const TriggerCondition * condition(const std::string &nameCondition) const
key_type key() const
Accessor for product key.
Definition: Ref.h:264
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 555 of file TriggerEvent.cc.

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

Referenced by objectFilters(), and objectInPath().

555  {
556  if ( filter( labelFilter ) ) return filter( labelFilter )->hasObjectKey( objectRef.key() );
557  return false;
558 }
bool hasObjectKey(unsigned objectKey) const
Checks, if a certain trigger object collection index is assigned.
key_type key() const
Accessor for product key.
Definition: Ref.h:264
const TriggerFilter * filter(const std::string &labelFilter) const
bool TriggerEvent::objectInPath ( const TriggerObjectRef objectRef,
const std::string &  namePath 
) const

Checks, if an object was used in a certain path given by name.

Definition at line 593 of file TriggerEvent.cc.

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

Referenced by objectPaths().

594 {
595  TriggerFilterRefVector theFilters = pathFilters( namePath );
596  for ( TriggerFilterRefVectorIterator iFilter = theFilters.begin(); iFilter != theFilters.end(); ++iFilter ) {
597  if ( objectInFilter( objectRef, ( *iFilter )->label() ) ) return true;
598  }
599  return false;
600 }
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:242
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:237
TriggerFilterRefVector pathFilters(const std::string &namePath) const
Get a vector of references to all active HLT filters assigned to a certain path given by name...
bool objectInFilter(const TriggerObjectRef &objectRef, const std::string &labelFilter) const
Checks, if an object was used in a certain filter given by name.
TriggerPathRefVector TriggerEvent::objectPaths ( const TriggerObjectRef objectRef) const

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

Definition at line 604 of file TriggerEvent.cc.

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

605 {
606  TriggerPathRefVector theObjectPaths;
607  for ( TriggerPathCollection::const_iterator iPath = paths()->begin(); iPath != paths()->end(); ++iPath ) {
608  const std::string namePath( iPath->name() );
609  if ( objectInPath( objectRef, namePath ) ) {
610  const TriggerPathRef pathRef( paths_, indexPath( namePath ) );
611  theObjectPaths.push_back( pathRef );
612  }
613  }
614  return theObjectPaths;
615 }
TriggerPathRefProd paths_
Reference to pat::TriggerPathCollection in event.
Definition: TriggerEvent.h:89
const TriggerPathCollection * paths() const
Definition: TriggerEvent.h:231
#define begin
Definition: vmac.h:31
bool objectInPath(const TriggerObjectRef &objectRef, const std::string &namePath) const
Checks, if an object was used in a certain path given by name.
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:61
unsigned indexPath(const std::string &namePath) const
const TriggerObjectCollection* pat::TriggerEvent::objects ( ) const
inline

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

Definition at line 261 of file TriggerEvent.h.

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

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

261 { return objects_.get(); };
product_type const * get() const
Definition: RefProd.h:117
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 295 of file TriggerEvent.cc.

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

296 {
297  TriggerObjectRefVector theObjects;
298  for ( unsigned iObject = 0; iObject < objects()->size(); ++iObject ) {
299  if ( objects()->at( iObject ).hasTriggerObjectType( triggerObjectType ) ) {
300  const TriggerObjectRef objectRef( objects_, iObject );
301  theObjects.push_back( objectRef );
302  }
303  }
304  return theObjects;
305 }
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:261
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:61
TriggerObjectRefProd objects_
Reference to pat::TriggerObjectCollection in event.
Definition: TriggerEvent.h:93
TriggerObjectRefVector pat::TriggerEvent::objects ( int  triggerObjectType) const
inline

Definition at line 264 of file TriggerEvent.h.

References objects().

Referenced by objects().

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

References begin, and paths().

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

228 {
229  for ( TriggerPathCollection::const_iterator iPath = paths()->begin(); iPath != paths()->end(); ++iPath ) {
230  if ( namePath == iPath->name() ) return &*iPath;
231  }
232  return 0;
233 }
const TriggerPathCollection * paths() const
Definition: TriggerEvent.h:231
#define begin
Definition: vmac.h:31
TriggerFilterRefVector TriggerEvent::pathFilters ( const std::string &  namePath) const

Get a vector of references to all active HLT filters assigned to a certain path given by name.

Definition at line 472 of file TriggerEvent.cc.

References asciidump::at, pat::TriggerPath::filterIndices(), filters_, path(), and edm::RefVector< C, T, F >::push_back().

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

473 {
474  TriggerFilterRefVector thePathFilters;
475  if ( path( namePath ) ) {
476  for ( unsigned iF = 0; iF < path( namePath )->filterIndices().size(); ++iF ) {
477  const TriggerFilterRef filterRef( filters_, path( namePath )->filterIndices().at( iF ) );
478  thePathFilters.push_back( filterRef );
479  }
480  }
481  return thePathFilters;
482 }
std::vector< unsigned > filterIndices() const
Get all trigger fillter collection indeces.
Definition: TriggerPath.h:126
const TriggerPath * path(const std::string &namePath) 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:61
list at
Definition: asciidump.py:428
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 456 of file TriggerEvent.cc.

References asciidump::at, filters_, indexFilter(), pat::TriggerPath::lastActiveFilterSlot(), pat::TriggerPath::modules(), path(), edm::RefVector< C, T, F >::push_back(), and findQualityFiles::size.

457 {
458  TriggerFilterRefVector thePathFilters;
459  if ( path( namePath ) && path( namePath )->modules().size() > 0 ) {
460  const unsigned onePastLastFilter = all ? path( namePath )->modules().size() : path( namePath )->lastActiveFilterSlot() + 1;
461  for ( unsigned iM = 0; iM < onePastLastFilter; ++iM ) {
462  const std::string labelFilter( path( namePath )->modules().at( iM ) );
463  const TriggerFilterRef filterRef( filters_, indexFilter( labelFilter ) );
464  thePathFilters.push_back( filterRef );
465  }
466  }
467  return thePathFilters;
468 }
unsigned indexFilter(const std::string &labelFilter) const
const TriggerPath * path(const std::string &namePath) const
TriggerFilterRefProd filters_
Reference to pat::TriggerAlgorithmCollection in event.
Definition: TriggerEvent.h:91
std::vector< std::string > modules() const
Get all module labels.
Definition: TriggerPath.h:124
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:61
unsigned lastActiveFilterSlot() const
Get the index of the last active filter.
Definition: TriggerPath.h:122
tuple size
Write out results.
list at
Definition: asciidump.py:428
TriggerObjectRefVector TriggerEvent::pathObjects ( const std::string &  namePath) const

Get a vector of references to all objects, which were used in a certain path given by name.

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

578 {
579  TriggerObjectRefVector thePathObjects;
580  TriggerFilterRefVector theFilters = pathFilters( namePath );
581  for ( TriggerFilterRefVectorIterator iFilter = theFilters.begin(); iFilter != theFilters.end(); ++iFilter ) {
582  const std::string labelFilter( ( *iFilter )->label() );
583  TriggerObjectRefVector theObjects = filterObjects( labelFilter );
584  for ( TriggerObjectRefVectorIterator iObject = theObjects.begin(); iObject != theObjects.end(); ++iObject ) {
585  thePathObjects.push_back( *iObject );
586  }
587  }
588  return thePathObjects;
589 }
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:242
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:237
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...
TriggerFilterRefVector pathFilters(const std::string &namePath) const
Get a vector of references to all active HLT filters assigned to a certain path given by name...
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:61
const TriggerPathCollection* pat::TriggerEvent::paths ( ) const
inline

Get a pointer to all HLT paths, returns 0 if RefProd is null

Definition at line 231 of file TriggerEvent.h.

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

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

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

Get a vector of references to all physics L1 algorithms.

Definition at line 148 of file TriggerEvent.cc.

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

149 {
150  TriggerAlgorithmRefVector thePhysAlgorithms;
151  for ( TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end(); ++iAlgorithm ) {
152  if ( ! iAlgorithm->techTrigger() ) {
153  const std::string nameAlgorithm( iAlgorithm->name() );
155  thePhysAlgorithms.push_back( algorithmRef );
156  }
157  }
158  return thePhysAlgorithms;
159 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:85
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:64
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:184
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
Definition: TriggerEvent.cc:54
#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:61
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:21
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 213 of file TriggerEvent.h.

References conditions_.

213 { 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 243 of file TriggerEvent.h.

References filters_.

243 { 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 AlCaRecoCosmics_cfg::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 AlCaRecoCosmics_cfg::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 258 of file TriggerEvent.h.

References objects_.

258 { 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 228 of file TriggerEvent.h.

References paths_.

228 { 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:148
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 CrabTask::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 103 of file TriggerEvent.cc.

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

104 {
105  TriggerAlgorithmRefVector theTechAlgorithms;
106  for ( TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end(); ++iAlgorithm ) {
107  if ( iAlgorithm->techTrigger() ) {
108  const std::string nameAlgorithm( iAlgorithm->name() );
110  theTechAlgorithms.push_back( algorithmRef );
111  }
112  }
113  return theTechAlgorithms;
114 }
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:85
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:64
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:184
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
Definition: TriggerEvent.cc:54
#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:61
std::vector< std::string > TriggerEvent::triggerMatchers ( ) const

Get a list of all linked trigger matches.

Definition at line 630 of file TriggerEvent.cc.

References begin, and triggerObjectMatchResults().

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

631 {
632  std::vector< std::string > theMatchers;
633  for ( TriggerObjectMatchContainer::const_iterator iMatch = triggerObjectMatchResults()->begin(); iMatch != triggerObjectMatchResults()->end(); ++iMatch ) theMatchers.push_back( iMatch->first );
634  return theMatchers;
635 }
const TriggerObjectMatchContainer * triggerObjectMatchResults() const
Get all trigger matches.
Definition: TriggerEvent.h:321
#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 639 of file TriggerEvent.cc.

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

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

640 {
641  const TriggerObjectMatchContainer::const_iterator iMatch( triggerObjectMatchResults()->find( labelMatcher ) );
642  if ( iMatch != triggerObjectMatchResults()->end() ) return iMatch->second.get();
643  return 0;
644 }
const TriggerObjectMatchContainer * triggerObjectMatchResults() const
Get all trigger matches.
Definition: TriggerEvent.h:321
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 321 of file TriggerEvent.h.

References objectMatchResults_.

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

321 { 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(), 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().