CMS 3D CMS Logo

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

Analysis-level trigger event class. More...

#include "DataFormats/PatCandidates/interface/TriggerEvent.h"

Public Member Functions

TriggerAlgorithmRefVector acceptedAlgorithms () const
 Get a vector of references to all succeeding L1 algorithms. More...
 
TriggerAlgorithmRefVector acceptedAlgorithmsGtl () const
 Get a vector of references to all L1 algorithms succeeding on the GTL board. More...
 
TriggerConditionRefVector acceptedConditions () const
 Get a vector of references to all succeeding L1 condition. More...
 
TriggerFilterRefVector acceptedFilters () const
 Get a vector of references to all succeeding HLT filters. More...
 
TriggerPathRefVector acceptedPaths () const
 Get a vector of references to all succeeding HLT paths. More...
 
TriggerAlgorithmRefVector acceptedPhysAlgorithms () const
 Get a vector of references to all succeeding physics L1 algorithms. More...
 
TriggerAlgorithmRefVector acceptedPhysAlgorithmsGtl () const
 Get a vector of references to all physics L1 algorithms succeeding on the GTL board. More...
 
TriggerAlgorithmRefVector acceptedTechAlgorithms () const
 Get a vector of references to all succeeding technical L1 algorithms. More...
 
TriggerAlgorithmRefVector acceptedTechAlgorithmsGtl () const
 Get a vector of references to all technical L1 algorithms succeeding on the GTL board. More...
 
bool addObjectMatchResult (const edm::Handle< TriggerObjectMatch > &trigMatches, const std::string &labelMatcher)
 
bool addObjectMatchResult (const edm::OrphanHandle< TriggerObjectMatch > &trigMatches, const std::string &labelMatcher)
 
bool addObjectMatchResult (const TriggerObjectMatchRefProd &trigMatches, const std::string &labelMatcher)
 
const TriggerAlgorithmalgorithm (const std::string &nameAlgorithm) const
 
TriggerConditionRefVector algorithmConditions (const std::string &nameAlgorithm) const
 
TriggerObjectRefVector algorithmObjects (const std::string &nameAlgorithm) const
 Get a vector of references to all objects, which were used in a certain algorithm given by name. More...
 
const TriggerAlgorithmRef algorithmRef (const std::string &nameAlgorithm) const
 
const TriggerAlgorithmRefVector algorithmRefs () const
 
const TriggerAlgorithmCollectionalgorithms () const
 
float bCurrentAvg () const
 Get the CMS magnet current averaged over run. More...
 
float bCurrentStart () const
 Get the CMS magnet current at start of run. More...
 
float bCurrentStop () const
 Get the CMS magnet current at end of run. More...
 
uint16_t beamMode () const
 Get the LHC beam mode. More...
 
uint16_t beamMomentum () const
 Get the LHC beam momentum. More...
 
uint16_t bstMasterStatus () const
 Get the LHC master status. More...
 
const TriggerConditioncondition (const std::string &nameCondition) const
 
TriggerAlgorithmRefVector conditionAlgorithms (const TriggerConditionRef &conditionRef) const
 Get a vector of references to all algorithms, which have a certain condition assigned. More...
 
std::vector< std::string > conditionCollections (const std::string &nameAlgorithm) const
 Get a list of all trigger object collections used in a certain condition given by name. More...
 
bool conditionInAlgorithm (const TriggerConditionRef &conditionRef, const std::string &nameAlgorithm) const
 Checks, if a condition is assigned to a certain algorithm given by name. More...
 
TriggerObjectRefVector conditionObjects (const std::string &nameCondition) const
 Get a vector of references to all objects, which were used in a certain condition given by name. More...
 
const TriggerConditionRef conditionRef (const std::string &nameCondition) const
 
const TriggerConditionRefVector conditionRefs () const
 
const TriggerConditionCollectionconditions () const
 
const TriggerFilterfilter (const std::string &labelFilter) const
 
std::vector< std::string > filterCollections (const std::string &labelFilter) const
 Get a list of all trigger object collections used in a certain filter given by name. More...
 
bool filterInPath (const TriggerFilterRef &filterRef, const std::string &namePath, bool firing=true) const
 Checks, if a filter is assigned to and was run in a certain path given by name. More...
 
TriggerObjectRefVector filterObjects (const std::string &labelFilter) const
 Get a vector of references to all objects, which were used in a certain filter given by name. More...
 
TriggerPathRefVector filterPaths (const TriggerFilterRef &filterRef, bool firing=true) const
 Get a vector of references to all paths, which have a certain filter assigned. More...
 
const TriggerFilterRef filterRef (const std::string &labelFilter) const
 
const TriggerFilterRefVector filterRefs () const
 
const TriggerFilterCollectionfilters () const
 
unsigned indexAlgorithm (const std::string &nameAlgorithm) const
 
unsigned indexCondition (const std::string &nameCondition) const
 
unsigned indexFilter (const std::string &labelFilter) const
 
unsigned indexPath (const std::string &namePath) const
 
uint32_t intensityBeam1 () const
 Get the LHC beam 1 intensity. More...
 
uint32_t intensityBeam2 () const
 Get the LHC beam 2 intensity. More...
 
uint32_t lhcFill () const
 Get the LHC fill number. More...
 
std::string nameAlgorithm (const unsigned bitAlgorithm, const bool techAlgorithm=true) const
 
const std::string & nameHltTable () const
 Get the name of the HLT trigger table. More...
 
const std::string & nameL1Menu () const
 Get the name of the L1 trigger menu. More...
 
TriggerAlgorithmRefVector objectAlgorithms (const TriggerObjectRef &objectRef) const
 Get a vector of references to all algorithms, which have a certain object assigned. More...
 
TriggerConditionRefVector objectConditions (const TriggerObjectRef &objectRef) const
 Get a vector of references to all conditions, which have a certain object assigned. More...
 
TriggerFilterRefVector objectFilters (const TriggerObjectRef &objectRef, bool firing=true) const
 Get a vector of references to all filters, which have a certain object assigned. More...
 
bool objectInAlgorithm (const TriggerObjectRef &objectRef, const std::string &nameAlgorithm) const
 Checks, if an object was used in a certain algorithm given by name. More...
 
bool objectInCondition (const TriggerObjectRef &objectRef, const std::string &nameCondition) const
 Checks, if an object was used in a certain condition given by name. More...
 
bool objectInFilter (const TriggerObjectRef &objectRef, const std::string &labelFilter) const
 Checks, if an object was used in a certain filter given by name. More...
 
bool objectInPath (const TriggerObjectRef &objectRef, const std::string &namePath, bool firing=true) const
 Checks, if an object was used in a certain path given by name. More...
 
TriggerPathRefVector objectPaths (const TriggerObjectRef &objectRef, bool firing=true) const
 Get a vector of references to all paths, which have a certain object assigned. More...
 
const TriggerObjectRefVector objectRefs () const
 
const TriggerObjectCollectionobjects () const
 
TriggerObjectRefVector objects (int triggerObjectType) const
 
TriggerObjectRefVector objects (trigger::TriggerObjectType triggerObjectType) const
 Get a vector of references to all trigger objects by trigger object type. More...
 
const TriggerPathpath (const std::string &namePath) const
 
TriggerFilterRefVector pathFilters (const std::string &namePath, bool firing=true) const
 Get a vector of references to all active HLT filters assigned to a certain path given by name. More...
 
TriggerFilterRefVector pathModules (const std::string &namePath, bool all=true) const
 
TriggerObjectRefVector pathObjects (const std::string &namePath, bool firing=true) const
 Get a vector of references to all objects, which were used in a certain path given by name. More...
 
const TriggerPathRef pathRef (const std::string &namePath) const
 
const TriggerPathRefVector pathRefs () const
 
const TriggerPathCollectionpaths () const
 
TriggerAlgorithmRefVector physAlgorithms () const
 Get a vector of references to all physics L1 algorithms. More...
 
void setAccept (bool accept)
 Set the success flag. More...
 
void setAlgorithms (const edm::Handle< TriggerAlgorithmCollection > &handleTriggerAlgorithms)
 
void setBCurrentAvg (float bCurrentAvg)
 Set the CMS magnet current averaged over run. More...
 
void setBCurrentStart (float bCurrentStart)
 Set the CMS magnet current at start of run. More...
 
void setBCurrentStop (float bCurrentStop)
 Set the CMS magnet current at end of run. More...
 
void setBeamMode (uint16_t beamMode)
 Set the LHC beam mode. More...
 
void setBeamMomentum (uint16_t beamMomentum)
 Set the LHC beam momentum. More...
 
void setBstMasterStatus (uint16_t bstMasterStatus)
 Set the LHC master status. More...
 
void setConditions (const edm::Handle< TriggerConditionCollection > &handleTriggerConditions)
 
void setError (bool error)
 Set the error flag. More...
 
void setFilters (const edm::Handle< TriggerFilterCollection > &handleTriggerFilters)
 
void setIntensityBeam1 (uint32_t intensityBeam1)
 Set the LHC beam 1 intensity. More...
 
void setIntensityBeam2 (uint32_t intensityBeam2)
 Set the LHC beam 2 intensity. More...
 
void setLhcFill (uint32_t lhcFill)
 Set the LHC fill number. More...
 
void setNameHltTable (const std::string &name)
 Set the name of the HLT trigger table. More...
 
void setNameL1Menu (const std::string &name)
 Methods. More...
 
void setObjects (const edm::Handle< TriggerObjectCollection > &handleTriggerObjects)
 
void setPaths (const edm::Handle< TriggerPathCollection > &handleTriggerPaths)
 
void setPhysDecl (bool physDecl)
 Set the PhysicsDeclared GT bit. More...
 
void setRun (bool run)
 Set the run flag. More...
 
void setTurnCount (uint32_t turnCount)
 Set the LHC beam turn counter. More...
 
TriggerAlgorithmRefVector techAlgorithms () const
 Get a vector of references to all technical L1 algorithms. More...
 
 TriggerEvent ()
 Constructors and Desctructor. More...
 
 TriggerEvent (const std::string &nameHltTable, bool run=true, bool accept=true, bool error=false, bool physDecl=true)
 Constructor from values, HLT only. More...
 
 TriggerEvent (const std::string &nameL1Menu, const std::string &nameHltTable, bool run=true, bool accept=true, bool error=false, bool physDecl=true)
 Constructor from values, HLT and L1/GT. More...
 
std::vector< std::string > triggerMatchers () const
 Get a list of all linked trigger matches. More...
 
const TriggerObjectMatchtriggerObjectMatchResult (const std::string &labelMatcher) const
 
const TriggerObjectMatchContainertriggerObjectMatchResults () const
 Get all trigger matches. More...
 
uint32_t turnCount () const
 Get the LHC beam turn counter. More...
 
bool wasAccept () const
 Get the success flag. More...
 
bool wasError () const
 Get the error flag. More...
 
bool wasPhysDecl () const
 Get the PhysicsDeclared GT bit. More...
 
bool wasRun () const
 Get the run flag. More...
 
virtual ~TriggerEvent ()
 Destructor. More...
 

Private Attributes

bool accept_
 Did HLT succeed? More...
 
TriggerAlgorithmRefProd algorithms_
 
float bCurrentAvg_
 CMS magnet current in ??? averaged over run. More...
 
float bCurrentStart_
 CMS magnet current in ??? at start of run. More...
 
float bCurrentStop_
 CMS magnet current in ??? at end of run. More...
 
uint16_t beamMode_
 
uint16_t beamMomentum_
 LHC beam momentum in GeV. More...
 
uint16_t bstMasterStatus_
 
TriggerConditionRefProd conditions_
 Reference to pat::TriggerConditionCollection in event. More...
 
bool error_
 Was HLT in error? More...
 
TriggerFilterRefProd filters_
 Reference to pat::TriggerAlgorithmCollection in event. More...
 
uint32_t intensityBeam1_
 LHC beam 1 intensity in ??? More...
 
uint32_t intensityBeam2_
 LHC beam 2 intensity in ??? More...
 
uint32_t lhcFill_
 LHC fill number. More...
 
std::string nameHltTable_
 Name of the HLT trigger table. More...
 
std::string nameL1Menu_
 Data Members. More...
 
TriggerObjectMatchContainer objectMatchResults_
 Table of references to pat::TriggerObjectMatch associations in event. More...
 
TriggerObjectRefProd objects_
 Reference to pat::TriggerObjectCollection in event. More...
 
TriggerPathRefProd paths_
 Reference to pat::TriggerPathCollection in event. More...
 
bool physDecl_
 PhysicsDeclared GT bit. More...
 
bool run_
 Was HLT run? More...
 
uint32_t turnCount_
 LHC beam turn counter. More...
 

Detailed Description

Analysis-level trigger event class.

TriggerEvent implements a container for trigger event's information within the 'pat' namespace and provides the central entry point to all trigger information in the PAT. For detailed information, consult https://twiki.cern.ch/twiki/bin/view/CMS/SWGuidePATTrigger#TriggerEvent

Author
Volker Adler

Definition at line 39 of file TriggerEvent.h.

Constructor & Destructor Documentation

◆ TriggerEvent() [1/3]

TriggerEvent::TriggerEvent ( )

Constructors and Desctructor.

Default constructor

Definition at line 11 of file TriggerEvent.cc.

12  : nameL1Menu_(),
13  nameHltTable_(),
14  run_(),
15  accept_(),
16  error_(),
17  physDecl_(),
18  lhcFill_(),
19  beamMode_(),
20  beamMomentum_(),
24  turnCount_(),
26  bCurrentStop_(),
27  bCurrentAvg_() {
28  objectMatchResults_.clear();
29 }

References objectMatchResults_.

◆ TriggerEvent() [2/3]

TriggerEvent::TriggerEvent ( const std::string &  nameHltTable,
bool  run = true,
bool  accept = true,
bool  error = false,
bool  physDecl = true 
)

Constructor from values, HLT only.

Definition at line 32 of file TriggerEvent.cc.

33  : nameL1Menu_(),
35  run_(run),
36  accept_(accept),
37  error_(error),
38  physDecl_(physDecl),
39  lhcFill_(),
40  beamMode_(),
41  beamMomentum_(),
45  turnCount_(),
47  bCurrentStop_(),
48  bCurrentAvg_() {
49  objectMatchResults_.clear();
50 }

References objectMatchResults_.

◆ TriggerEvent() [3/3]

TriggerEvent::TriggerEvent ( const std::string &  nameL1Menu,
const std::string &  nameHltTable,
bool  run = true,
bool  accept = true,
bool  error = false,
bool  physDecl = true 
)

Constructor from values, HLT and L1/GT.

Definition at line 53 of file TriggerEvent.cc.

57  run_(run),
58  accept_(accept),
59  error_(error),
60  physDecl_(physDecl),
61  lhcFill_(),
62  beamMode_(),
63  beamMomentum_(),
67  turnCount_(),
69  bCurrentStop_(),
70  bCurrentAvg_() {
71  objectMatchResults_.clear();
72 }

References objectMatchResults_.

◆ ~TriggerEvent()

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

Destructor.

Definition at line 108 of file TriggerEvent.h.

108 {};

Member Function Documentation

◆ acceptedAlgorithms()

TriggerAlgorithmRefVector TriggerEvent::acceptedAlgorithms ( ) const

Get a vector of references to all succeeding L1 algorithms.

Definition at line 128 of file TriggerEvent.cc.

128  {
129  TriggerAlgorithmRefVector theAcceptedAlgorithms;
130  for (TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end();
131  ++iAlgorithm) {
132  if (iAlgorithm->decision()) {
133  const std::string nameAlgorithm(iAlgorithm->name());
135  theAcceptedAlgorithms.push_back(algorithmRef);
136  }
137  }
138  return theAcceptedAlgorithms;
139 }

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

◆ acceptedAlgorithmsGtl()

TriggerAlgorithmRefVector TriggerEvent::acceptedAlgorithmsGtl ( ) const

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

Definition at line 142 of file TriggerEvent.cc.

142  {
143  TriggerAlgorithmRefVector theAcceptedAlgorithms;
144  for (TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end();
145  ++iAlgorithm) {
146  if (iAlgorithm->gtlResult()) {
147  const std::string nameAlgorithm(iAlgorithm->name());
149  theAcceptedAlgorithms.push_back(algorithmRef);
150  }
151  }
152  return theAcceptedAlgorithms;
153 }

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

◆ acceptedConditions()

TriggerConditionRefVector TriggerEvent::acceptedConditions ( ) const

Get a vector of references to all succeeding L1 condition.

Definition at line 281 of file TriggerEvent.cc.

281  {
282  TriggerConditionRefVector theAcceptedConditions;
283  for (TriggerConditionCollection::const_iterator iCondition = conditions()->begin(); iCondition != conditions()->end();
284  ++iCondition) {
285  if (iCondition->wasAccept()) {
286  const std::string nameCondition(iCondition->name());
288  theAcceptedConditions.push_back(conditionRef);
289  }
290  }
291  return theAcceptedConditions;
292 }

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

◆ acceptedFilters()

TriggerFilterRefVector TriggerEvent::acceptedFilters ( ) const

Get a vector of references to all succeeding HLT filters.

Definition at line 383 of file TriggerEvent.cc.

383  {
384  TriggerFilterRefVector theAcceptedFilters;
385  for (TriggerFilterCollection::const_iterator iFilter = filters()->begin(); iFilter != filters()->end(); ++iFilter) {
386  if (iFilter->status() == 1) {
387  const std::string labelFilter(iFilter->label());
388  const TriggerFilterRef filterRef(filters_, indexFilter(labelFilter));
389  theAcceptedFilters.push_back(filterRef);
390  }
391  }
392  return theAcceptedFilters;
393 }

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

◆ acceptedPaths()

TriggerPathRefVector TriggerEvent::acceptedPaths ( ) const

Get a vector of references to all succeeding HLT paths.

Definition at line 332 of file TriggerEvent.cc.

332  {
333  TriggerPathRefVector theAcceptedPaths;
334  for (TriggerPathCollection::const_iterator iPath = paths()->begin(); iPath != paths()->end(); ++iPath) {
335  if (iPath->wasAccept()) {
336  const std::string namePath(iPath->name());
337  const TriggerPathRef pathRef(paths_, indexPath(namePath));
338  theAcceptedPaths.push_back(pathRef);
339  }
340  }
341  return theAcceptedPaths;
342 }

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

◆ acceptedPhysAlgorithms()

TriggerAlgorithmRefVector TriggerEvent::acceptedPhysAlgorithms ( ) const

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

Definition at line 212 of file TriggerEvent.cc.

212  {
213  TriggerAlgorithmRefVector theAcceptedPhysAlgorithms;
214  for (TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end();
215  ++iAlgorithm) {
216  if (!iAlgorithm->techTrigger() && iAlgorithm->decision()) {
217  const std::string nameAlgorithm(iAlgorithm->name());
219  theAcceptedPhysAlgorithms.push_back(algorithmRef);
220  }
221  }
222  return theAcceptedPhysAlgorithms;
223 }

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

◆ acceptedPhysAlgorithmsGtl()

TriggerAlgorithmRefVector TriggerEvent::acceptedPhysAlgorithmsGtl ( ) const

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

Definition at line 226 of file TriggerEvent.cc.

226  {
227  TriggerAlgorithmRefVector theAcceptedPhysAlgorithms;
228  for (TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end();
229  ++iAlgorithm) {
230  if (!iAlgorithm->techTrigger() && iAlgorithm->gtlResult()) {
231  const std::string nameAlgorithm(iAlgorithm->name());
233  theAcceptedPhysAlgorithms.push_back(algorithmRef);
234  }
235  }
236  return theAcceptedPhysAlgorithms;
237 }

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

◆ acceptedTechAlgorithms()

TriggerAlgorithmRefVector TriggerEvent::acceptedTechAlgorithms ( ) const

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

Definition at line 170 of file TriggerEvent.cc.

170  {
171  TriggerAlgorithmRefVector theAcceptedTechAlgorithms;
172  for (TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end();
173  ++iAlgorithm) {
174  if (iAlgorithm->techTrigger() && iAlgorithm->decision()) {
175  const std::string nameAlgorithm(iAlgorithm->name());
177  theAcceptedTechAlgorithms.push_back(algorithmRef);
178  }
179  }
180  return theAcceptedTechAlgorithms;
181 }

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

◆ acceptedTechAlgorithmsGtl()

TriggerAlgorithmRefVector TriggerEvent::acceptedTechAlgorithmsGtl ( ) const

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

Definition at line 184 of file TriggerEvent.cc.

184  {
185  TriggerAlgorithmRefVector theAcceptedTechAlgorithms;
186  for (TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end();
187  ++iAlgorithm) {
188  if (iAlgorithm->techTrigger() && iAlgorithm->gtlResult()) {
189  const std::string nameAlgorithm(iAlgorithm->name());
191  theAcceptedTechAlgorithms.push_back(algorithmRef);
192  }
193  }
194  return theAcceptedTechAlgorithms;
195 }

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

◆ addObjectMatchResult() [1/3]

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

Definition at line 354 of file TriggerEvent.h.

354  {
355  return addObjectMatchResult(TriggerObjectMatchRefProd(trigMatches), labelMatcher);
356  };

References addObjectMatchResult().

◆ addObjectMatchResult() [2/3]

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

Definition at line 357 of file TriggerEvent.h.

358  {
359  return addObjectMatchResult(TriggerObjectMatchRefProd(trigMatches), labelMatcher);
360  };

References addObjectMatchResult().

◆ addObjectMatchResult() [3/3]

bool TriggerEvent::addObjectMatchResult ( const TriggerObjectMatchRefProd trigMatches,
const std::string &  labelMatcher 
)

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

Definition at line 709 of file TriggerEvent.cc.

709  {
710  if (triggerObjectMatchResults()->find(labelMatcher) == triggerObjectMatchResults()->end()) {
711  objectMatchResults_[labelMatcher] = trigMatches;
712  return true;
713  }
714  return false;
715 }

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

Referenced by addObjectMatchResult().

◆ algorithm()

const TriggerAlgorithm * TriggerEvent::algorithm ( const std::string &  nameAlgorithm) const

Get a pointer to a certain L1 algorithm by name, returns 0, if algorithm is not found

Definition at line 89 of file TriggerEvent.cc.

89  {
90  for (TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end();
91  ++iAlgorithm) {
92  if (nameAlgorithm == iAlgorithm->name())
93  return &*iAlgorithm;
94  }
95  return nullptr;
96 }

References algorithms(), and nameAlgorithm().

Referenced by algorithmConditions().

◆ algorithmConditions()

TriggerConditionRefVector TriggerEvent::algorithmConditions ( const std::string &  nameAlgorithm) const

L1 x-links Get a vector of references to all conditions assigned to a certain algorithm given by name

Definition at line 418 of file TriggerEvent.cc.

418  {
419  TriggerConditionRefVector theAlgorithmConditions;
420  if (const TriggerAlgorithm* algorithmPtr = algorithm(nameAlgorithm)) {
421  for (unsigned iC = 0; iC < algorithmPtr->conditionKeys().size(); ++iC) {
422  const TriggerConditionRef conditionRef(conditions_, algorithmPtr->conditionKeys().at(iC));
423  theAlgorithmConditions.push_back(conditionRef);
424  }
425  }
426  return theAlgorithmConditions;
427 }

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

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

◆ algorithmObjects()

TriggerObjectRefVector TriggerEvent::algorithmObjects ( const std::string &  nameAlgorithm) const

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

Definition at line 518 of file TriggerEvent.cc.

518  {
519  TriggerObjectRefVector theAlgorithmObjects;
521  for (TriggerConditionRefVectorIterator iCondition = theConditions.begin(); iCondition != theConditions.end();
522  ++iCondition) {
523  const std::string nameCondition((*iCondition)->name());
524  TriggerObjectRefVector theObjects = conditionObjects(nameCondition);
525  for (TriggerObjectRefVectorIterator iObject = theObjects.begin(); iObject != theObjects.end(); ++iObject) {
526  theAlgorithmObjects.push_back(*iObject);
527  }
528  }
529  return theAlgorithmObjects;
530 }

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

◆ algorithmRef()

const TriggerAlgorithmRef TriggerEvent::algorithmRef ( const std::string &  nameAlgorithm) const

Get a reference to a certain L1 algorithm by name, NULL, if algorithm is not found

Definition at line 99 of file TriggerEvent.cc.

99  {
100  for (TriggerAlgorithmRefVector::const_iterator iAlgorithm = algorithmRefs().begin();
101  iAlgorithm != algorithmRefs().end();
102  ++iAlgorithm) {
103  if (nameAlgorithm == (*iAlgorithm)->name())
104  return *iAlgorithm;
105  }
106  return TriggerAlgorithmRef();
107 }

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

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

◆ algorithmRefs()

const TriggerAlgorithmRefVector TriggerEvent::algorithmRefs ( ) const

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

Definition at line 77 of file TriggerEvent.cc.

77  {
78  TriggerAlgorithmRefVector theAlgorithms;
79  for (TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end();
80  ++iAlgorithm) {
81  const std::string nameAlgorithm(iAlgorithm->name());
83  theAlgorithms.push_back(algorithmRef);
84  }
85  return theAlgorithms;
86 }

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

Referenced by algorithmRef().

◆ algorithms()

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

◆ bCurrentAvg()

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

Get the CMS magnet current averaged over run.

Definition at line 176 of file TriggerEvent.h.

176 { return bCurrentAvg_; };

References bCurrentAvg_.

Referenced by setBCurrentAvg().

◆ bCurrentStart()

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

Get the CMS magnet current at start of run.

Definition at line 172 of file TriggerEvent.h.

172 { return bCurrentStart_; };

References bCurrentStart_.

Referenced by setBCurrentStart().

◆ bCurrentStop()

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

Get the CMS magnet current at end of run.

Definition at line 174 of file TriggerEvent.h.

174 { return bCurrentStop_; };

References bCurrentStop_.

Referenced by setBCurrentStop().

◆ beamMode()

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

Get the LHC beam mode.

Definition at line 160 of file TriggerEvent.h.

160 { return beamMode_; };

References beamMode_.

Referenced by setBeamMode().

◆ beamMomentum()

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

Get the LHC beam momentum.

Definition at line 162 of file TriggerEvent.h.

162 { return beamMomentum_; };

References beamMomentum_.

Referenced by setBeamMomentum().

◆ bstMasterStatus()

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

Get the LHC master status.

Definition at line 168 of file TriggerEvent.h.

168 { return bstMasterStatus_; };

References bstMasterStatus_.

Referenced by setBstMasterStatus().

◆ condition()

const TriggerCondition * TriggerEvent::condition ( const std::string &  nameCondition) const

Get a pointer to a certain L1 condition by name, returns 0, if condition is not found

Definition at line 252 of file TriggerEvent.cc.

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

References conditions().

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

◆ conditionAlgorithms()

TriggerAlgorithmRefVector TriggerEvent::conditionAlgorithms ( const TriggerConditionRef conditionRef) const

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

Definition at line 442 of file TriggerEvent.cc.

442  {
443  TriggerAlgorithmRefVector theConditionAlgorithms;
444  size_t cAlgorithms(0);
445  for (TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end();
446  ++iAlgorithm) {
447  const std::string nameAlgorithm(iAlgorithm->name());
449  const TriggerAlgorithmRef algorithmRef(algorithms_, cAlgorithms);
450  theConditionAlgorithms.push_back(algorithmRef);
451  }
452  ++cAlgorithms;
453  }
454  return theConditionAlgorithms;
455 }

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

◆ conditionCollections()

std::vector< std::string > TriggerEvent::conditionCollections ( const std::string &  nameAlgorithm) const

Get a list of all trigger object collections used in a certain condition given by name.

Definition at line 458 of file TriggerEvent.cc.

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

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

◆ conditionInAlgorithm()

bool TriggerEvent::conditionInAlgorithm ( const TriggerConditionRef conditionRef,
const std::string &  nameAlgorithm 
) const

Checks, if a condition is assigned to a certain algorithm given by name.

Definition at line 430 of file TriggerEvent.cc.

431  {
433  for (TriggerConditionRefVectorIterator iCondition = theConditions.begin(); iCondition != theConditions.end();
434  ++iCondition) {
435  if (conditionRef == *iCondition)
436  return true;
437  }
438  return false;
439 }

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

Referenced by conditionAlgorithms().

◆ conditionObjects()

TriggerObjectRefVector TriggerEvent::conditionObjects ( const std::string &  nameCondition) const

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

Definition at line 483 of file TriggerEvent.cc.

483  {
484  TriggerObjectRefVector theConditionObjects;
485  if (const TriggerCondition* conditionPtr = condition(nameCondition)) {
486  for (unsigned iObject = 0; iObject < objects()->size(); ++iObject) {
487  if (conditionPtr->hasObjectKey(iObject)) {
488  const TriggerObjectRef objectRef(objects_, iObject);
489  theConditionObjects.push_back(objectRef);
490  }
491  }
492  }
493  return theConditionObjects;
494 }

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

Referenced by algorithmObjects().

◆ conditionRef()

const TriggerConditionRef TriggerEvent::conditionRef ( const std::string &  nameCondition) const

Get a reference to a certain L1 condition by name, NULL, if condition is not found

Definition at line 262 of file TriggerEvent.cc.

262  {
263  for (TriggerConditionRefVector::const_iterator iCondition = conditionRefs().begin();
264  iCondition != conditionRefs().end();
265  ++iCondition) {
266  if (nameCondition == (*iCondition)->name())
267  return *iCondition;
268  }
269  return TriggerConditionRef();
270 }

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

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

◆ conditionRefs()

const TriggerConditionRefVector TriggerEvent::conditionRefs ( ) const

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

Definition at line 240 of file TriggerEvent.cc.

240  {
241  TriggerConditionRefVector theConditions;
242  for (TriggerConditionCollection::const_iterator iCondition = conditions()->begin(); iCondition != conditions()->end();
243  ++iCondition) {
244  const std::string nameCondition(iCondition->name());
246  theConditions.push_back(conditionRef);
247  }
248  return theConditions;
249 }

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

Referenced by conditionRef().

◆ conditions()

const TriggerConditionCollection* pat::TriggerEvent::conditions ( ) const
inline

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

Definition at line 225 of file TriggerEvent.h.

225 { return conditions_.get(); };

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

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

◆ filter()

const TriggerFilter * TriggerEvent::filter ( const std::string &  labelFilter) const

Get a pointer to a certain HLT filter by label, returns 0, if algorithm is not found

Definition at line 356 of file TriggerEvent.cc.

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

References filters().

Referenced by filterCollections(), filterObjects(), and objectInFilter().

◆ filterCollections()

std::vector< std::string > TriggerEvent::filterCollections ( const std::string &  labelFilter) const

Get a list of all trigger object collections used in a certain filter given by name.

Definition at line 612 of file TriggerEvent.cc.

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

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

◆ filterInPath()

bool TriggerEvent::filterInPath ( const TriggerFilterRef filterRef,
const std::string &  namePath,
bool  firing = true 
) const

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

Definition at line 587 of file TriggerEvent.cc.

587  {
588  TriggerFilterRefVector theFilters = pathFilters(namePath, firing);
589  for (TriggerFilterRefVectorIterator iFilter = theFilters.begin(); iFilter != theFilters.end(); ++iFilter) {
590  if (filterRef == *iFilter)
591  return true;
592  }
593  return false;
594 }

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

Referenced by filterPaths().

◆ filterObjects()

TriggerObjectRefVector TriggerEvent::filterObjects ( const std::string &  labelFilter) const

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

Definition at line 637 of file TriggerEvent.cc.

637  {
638  TriggerObjectRefVector theFilterObjects;
639  if (const TriggerFilter* filterPtr = filter(labelFilter)) {
640  for (unsigned iObject = 0; iObject < objects()->size(); ++iObject) {
641  if (filterPtr->hasObjectKey(iObject)) {
642  const TriggerObjectRef objectRef(objects_, iObject);
643  theFilterObjects.push_back(objectRef);
644  }
645  }
646  }
647  return theFilterObjects;
648 }

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

Referenced by pathObjects().

◆ filterPaths()

TriggerPathRefVector TriggerEvent::filterPaths ( const TriggerFilterRef filterRef,
bool  firing = true 
) const

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

Definition at line 597 of file TriggerEvent.cc.

597  {
598  TriggerPathRefVector theFilterPaths;
599  size_t cPaths(0);
600  for (TriggerPathCollection::const_iterator iPath = paths()->begin(); iPath != paths()->end(); ++iPath) {
601  const std::string namePath(iPath->name());
602  if (filterInPath(filterRef, namePath, firing)) {
603  const TriggerPathRef pathRef(paths_, cPaths);
604  theFilterPaths.push_back(pathRef);
605  }
606  ++cPaths;
607  }
608  return theFilterPaths;
609 }

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

◆ filterRef()

const TriggerFilterRef TriggerEvent::filterRef ( const std::string &  labelFilter) const

Get a reference to a certain HLT filter by label, NULL, if filter is not found

Definition at line 365 of file TriggerEvent.cc.

365  {
366  for (TriggerFilterRefVector::const_iterator iFilter = filterRefs().begin(); iFilter != filterRefs().end();
367  ++iFilter) {
368  if (labelFilter == (*iFilter)->label())
369  return *iFilter;
370  }
371  return TriggerFilterRef();
372 }

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

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

◆ filterRefs()

const TriggerFilterRefVector TriggerEvent::filterRefs ( ) const

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

Definition at line 345 of file TriggerEvent.cc.

345  {
346  TriggerFilterRefVector theFilters;
347  for (TriggerFilterCollection::const_iterator iFilter = filters()->begin(); iFilter != filters()->end(); ++iFilter) {
348  const std::string labelFilter(iFilter->label());
349  const TriggerFilterRef filterRef(filters_, indexFilter(labelFilter));
350  theFilters.push_back(filterRef);
351  }
352  return theFilters;
353 }

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

Referenced by filterRef().

◆ filters()

const TriggerFilterCollection* pat::TriggerEvent::filters ( ) const
inline

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

Definition at line 271 of file TriggerEvent.h.

271 { return filters_.get(); };

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

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

◆ indexAlgorithm()

unsigned TriggerEvent::indexAlgorithm ( const std::string &  nameAlgorithm) const

Get the index of a certain L1 algorithm in the event collection by name, returns size of algorithm collection, if algorithm is not found

Definition at line 120 of file TriggerEvent.cc.

120  {
121  unsigned iAlgorithm(0);
122  while (iAlgorithm < algorithms()->size() && algorithms()->at(iAlgorithm).name() != nameAlgorithm)
123  ++iAlgorithm;
124  return iAlgorithm;
125 }

References algorithms(), Skims_PA_cff::name, nameAlgorithm(), and findQualityFiles::size.

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

◆ indexCondition()

unsigned TriggerEvent::indexCondition ( const std::string &  nameCondition) const

Get the index of a certain L1 condition in the event collection by name, returns size of condition collection, if condition is not found

Definition at line 273 of file TriggerEvent.cc.

273  {
274  unsigned iCondition(0);
275  while (iCondition < conditions()->size() && conditions()->at(iCondition).name() != nameCondition)
276  ++iCondition;
277  return iCondition;
278 }

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

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

◆ indexFilter()

unsigned TriggerEvent::indexFilter ( const std::string &  labelFilter) const

Get the index of a certain HLT filter in the event collection by label, returns size of algorithm collection, if algorithm is not found

Definition at line 375 of file TriggerEvent.cc.

375  {
376  unsigned iFilter(0);
377  while (iFilter < filters()->size() && filters()->at(iFilter).label() != labelFilter)
378  ++iFilter;
379  return iFilter;
380 }

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

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

◆ indexPath()

unsigned TriggerEvent::indexPath ( const std::string &  namePath) const

Get the index of a certain HLT path in the event collection by name, returns size of algorithm collection, if algorithm is not found

Definition at line 324 of file TriggerEvent.cc.

324  {
325  unsigned iPath(0);
326  while (iPath < paths()->size() && paths()->at(iPath).name() != namePath)
327  ++iPath;
328  return iPath;
329 }

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

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

◆ intensityBeam1()

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

Get the LHC beam 1 intensity.

Definition at line 164 of file TriggerEvent.h.

164 { return intensityBeam1_; };

References intensityBeam1_.

Referenced by setIntensityBeam1().

◆ intensityBeam2()

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

Get the LHC beam 2 intensity.

Definition at line 166 of file TriggerEvent.h.

166 { return intensityBeam2_; };

References intensityBeam2_.

Referenced by setIntensityBeam2().

◆ lhcFill()

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

Get the LHC fill number.

Definition at line 158 of file TriggerEvent.h.

158 { return lhcFill_; };

References lhcFill_.

Referenced by setLhcFill().

◆ nameAlgorithm()

std::string TriggerEvent::nameAlgorithm ( const unsigned  bitAlgorithm,
const bool  techAlgorithm = true 
) const

Get the name of a certain L1 algorithm in the event collection by bit number physics or technical (default) algorithms, returns empty string, if algorithm is not found

Definition at line 110 of file TriggerEvent.cc.

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

References algorithms(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by acceptedAlgorithms(), acceptedAlgorithmsGtl(), acceptedPhysAlgorithms(), acceptedPhysAlgorithmsGtl(), acceptedTechAlgorithms(), acceptedTechAlgorithmsGtl(), algorithm(), algorithmConditions(), algorithmObjects(), algorithmRef(), algorithmRefs(), conditionAlgorithms(), conditionInAlgorithm(), indexAlgorithm(), objectAlgorithms(), objectInAlgorithm(), physAlgorithms(), and techAlgorithms().

◆ nameHltTable()

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

Get the name of the HLT trigger table.

Definition at line 148 of file TriggerEvent.h.

148 { return nameHltTable_; };

References nameHltTable_.

◆ nameL1Menu()

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

Get the name of the L1 trigger menu.

Definition at line 146 of file TriggerEvent.h.

146 { return nameL1Menu_; };

References nameL1Menu_.

◆ objectAlgorithms()

TriggerAlgorithmRefVector TriggerEvent::objectAlgorithms ( const TriggerObjectRef objectRef) const

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

Definition at line 544 of file TriggerEvent.cc.

544  {
545  TriggerAlgorithmRefVector theObjectAlgorithms;
546  for (TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end();
547  ++iAlgorithm) {
548  const std::string nameAlgorithm(iAlgorithm->name());
549  if (objectInAlgorithm(objectRef, nameAlgorithm)) {
551  theObjectAlgorithms.push_back(algorithmRef);
552  }
553  }
554  return theObjectAlgorithms;
555 }

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

◆ objectConditions()

TriggerConditionRefVector TriggerEvent::objectConditions ( const TriggerObjectRef objectRef) const

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

Definition at line 504 of file TriggerEvent.cc.

504  {
505  TriggerConditionRefVector theObjectConditions;
506  for (TriggerConditionCollection::const_iterator iCondition = conditions()->begin(); iCondition != conditions()->end();
507  ++iCondition) {
508  const std::string nameCondition(iCondition->name());
509  if (objectInCondition(objectRef, nameCondition)) {
511  theObjectConditions.push_back(conditionRef);
512  }
513  }
514  return theObjectConditions;
515 }

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

◆ objectFilters()

TriggerFilterRefVector TriggerEvent::objectFilters ( const TriggerObjectRef objectRef,
bool  firing = true 
) const

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

Definition at line 658 of file TriggerEvent.cc.

658  {
659  TriggerFilterRefVector theObjectFilters;
660  for (TriggerFilterCollection::const_iterator iFilter = filters()->begin(); iFilter != filters()->end(); ++iFilter) {
661  const std::string labelFilter(iFilter->label());
662  if (objectInFilter(objectRef, labelFilter)) {
663  const TriggerFilterRef filterRef(filters_, indexFilter(labelFilter));
664  if ((!firing) || iFilter->isFiring())
665  theObjectFilters.push_back(filterRef);
666  }
667  }
668  return theObjectFilters;
669 }

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

◆ objectInAlgorithm()

bool TriggerEvent::objectInAlgorithm ( const TriggerObjectRef objectRef,
const std::string &  nameAlgorithm 
) const

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

Definition at line 533 of file TriggerEvent.cc.

533  {
535  for (TriggerConditionRefVectorIterator iCondition = theConditions.begin(); iCondition != theConditions.end();
536  ++iCondition) {
537  if (objectInCondition(objectRef, (*iCondition)->name()))
538  return true;
539  }
540  return false;
541 }

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

Referenced by objectAlgorithms().

◆ objectInCondition()

bool TriggerEvent::objectInCondition ( const TriggerObjectRef objectRef,
const std::string &  nameCondition 
) const

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

Definition at line 497 of file TriggerEvent.cc.

497  {
498  if (const TriggerCondition* conditionPtr = condition(nameCondition))
499  return conditionPtr->hasObjectKey(objectRef.key());
500  return false;
501 }

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

Referenced by objectConditions(), and objectInAlgorithm().

◆ objectInFilter()

bool TriggerEvent::objectInFilter ( const TriggerObjectRef objectRef,
const std::string &  labelFilter 
) const

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

Definition at line 651 of file TriggerEvent.cc.

651  {
652  if (const TriggerFilter* filterPtr = filter(labelFilter))
653  return filterPtr->hasObjectKey(objectRef.key());
654  return false;
655 }

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

Referenced by objectFilters(), and objectInPath().

◆ objectInPath()

bool TriggerEvent::objectInPath ( const TriggerObjectRef objectRef,
const std::string &  namePath,
bool  firing = true 
) const

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

Definition at line 686 of file TriggerEvent.cc.

686  {
687  TriggerFilterRefVector theFilters = pathFilters(namePath, firing);
688  for (TriggerFilterRefVectorIterator iFilter = theFilters.begin(); iFilter != theFilters.end(); ++iFilter) {
689  if (objectInFilter(objectRef, (*iFilter)->label()))
690  return true;
691  }
692  return false;
693 }

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

Referenced by objectPaths().

◆ objectPaths()

TriggerPathRefVector TriggerEvent::objectPaths ( const TriggerObjectRef objectRef,
bool  firing = true 
) const

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

Definition at line 696 of file TriggerEvent.cc.

696  {
697  TriggerPathRefVector theObjectPaths;
698  for (TriggerPathCollection::const_iterator iPath = paths()->begin(); iPath != paths()->end(); ++iPath) {
699  const std::string namePath(iPath->name());
700  if (objectInPath(objectRef, namePath, firing)) {
701  const TriggerPathRef pathRef(paths_, indexPath(namePath));
702  theObjectPaths.push_back(pathRef);
703  }
704  }
705  return theObjectPaths;
706 }

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

◆ objectRefs()

const TriggerObjectRefVector TriggerEvent::objectRefs ( ) const

Get a vector of references to all trigger objects, empty, if RefProd is NULL

Definition at line 396 of file TriggerEvent.cc.

396  {
397  TriggerObjectRefVector theObjects;
398  for (unsigned iObject = 0; iObject < objects()->size(); ++iObject) {
399  const TriggerObjectRef objectRef(objects_, iObject);
400  theObjects.push_back(objectRef);
401  }
402  return theObjects;
403 }

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

◆ objects() [1/3]

const TriggerObjectCollection* pat::TriggerEvent::objects ( ) const
inline

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

Definition at line 294 of file TriggerEvent.h.

294 { return objects_.get(); };

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

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

◆ objects() [2/3]

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

Definition at line 300 of file TriggerEvent.h.

300  {
301  return objects(trigger::TriggerObjectType(triggerObjectType));
302  }; // for backward compatibility

References objects().

◆ objects() [3/3]

TriggerObjectRefVector TriggerEvent::objects ( trigger::TriggerObjectType  triggerObjectType) const

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

Definition at line 406 of file TriggerEvent.cc.

406  {
407  TriggerObjectRefVector theObjects;
408  for (unsigned iObject = 0; iObject < objects()->size(); ++iObject) {
409  if (objects()->at(iObject).hasTriggerObjectType(triggerObjectType)) {
410  const TriggerObjectRef objectRef(objects_, iObject);
411  theObjects.push_back(objectRef);
412  }
413  }
414  return theObjects;
415 }

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

◆ path()

const TriggerPath * TriggerEvent::path ( const std::string &  namePath) const

Get a pointer to a certain HLT path by name, returns 0, if algorithm is not found

Definition at line 306 of file TriggerEvent.cc.

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

References paths().

Referenced by pathFilters(), and pathModules().

◆ pathFilters()

TriggerFilterRefVector TriggerEvent::pathFilters ( const std::string &  namePath,
bool  firing = true 
) const

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

Definition at line 574 of file TriggerEvent.cc.

574  {
575  TriggerFilterRefVector thePathFilters;
576  if (const TriggerPath* pathPtr = path(namePath)) {
577  for (unsigned iF = 0; iF < pathPtr->filterIndices().size(); ++iF) {
578  const TriggerFilterRef filterRef(filters_, pathPtr->filterIndices().at(iF));
579  if ((!firing) || filterRef->isFiring())
580  thePathFilters.push_back(filterRef);
581  }
582  }
583  return thePathFilters;
584 }

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

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

◆ pathModules()

TriggerFilterRefVector TriggerEvent::pathModules ( const std::string &  namePath,
bool  all = true 
) const

HLT x-links Get a vector of references to all modules assigned to a certain path given by name, setting 'all' to 'false' returns the run filters only.

Definition at line 558 of file TriggerEvent.cc.

558  {
559  TriggerFilterRefVector thePathFilters;
560  if (const TriggerPath* pathPtr = path(namePath)) {
561  if (!pathPtr->modules().empty()) {
562  const unsigned onePastLastFilter = all ? pathPtr->modules().size() : pathPtr->lastActiveFilterSlot() + 1;
563  for (unsigned iM = 0; iM < onePastLastFilter; ++iM) {
564  const std::string labelFilter(pathPtr->modules().at(iM));
565  const TriggerFilterRef filterRef(filters_, indexFilter(labelFilter));
566  thePathFilters.push_back(filterRef);
567  }
568  }
569  }
570  return thePathFilters;
571 }

References python.cmstools::all(), filterRef(), filters_, indexFilter(), path(), edm::RefVector< C, T, F >::push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.

◆ pathObjects()

TriggerObjectRefVector TriggerEvent::pathObjects ( const std::string &  namePath,
bool  firing = true 
) const

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

Definition at line 672 of file TriggerEvent.cc.

672  {
673  TriggerObjectRefVector thePathObjects;
674  TriggerFilterRefVector theFilters = pathFilters(namePath, firing);
675  for (TriggerFilterRefVectorIterator iFilter = theFilters.begin(); iFilter != theFilters.end(); ++iFilter) {
676  const std::string labelFilter((*iFilter)->label());
677  TriggerObjectRefVector theObjects = filterObjects(labelFilter);
678  for (TriggerObjectRefVectorIterator iObject = theObjects.begin(); iObject != theObjects.end(); ++iObject) {
679  thePathObjects.push_back(*iObject);
680  }
681  }
682  return thePathObjects;
683 }

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

◆ pathRef()

const TriggerPathRef TriggerEvent::pathRef ( const std::string &  namePath) const

Get a reference to a certain HLT path by name, NULL, if path is not found

Definition at line 315 of file TriggerEvent.cc.

315  {
316  for (TriggerPathRefVector::const_iterator iPath = pathRefs().begin(); iPath != pathRefs().end(); ++iPath) {
317  if (namePath == (*iPath)->name())
318  return *iPath;
319  }
320  return TriggerPathRef();
321 }

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

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

◆ pathRefs()

const TriggerPathRefVector TriggerEvent::pathRefs ( ) const

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

Definition at line 295 of file TriggerEvent.cc.

295  {
296  TriggerPathRefVector thePaths;
297  for (TriggerPathCollection::const_iterator iPath = paths()->begin(); iPath != paths()->end(); ++iPath) {
298  const std::string namePath(iPath->name());
299  const TriggerPathRef pathRef(paths_, indexPath(namePath));
300  thePaths.push_back(pathRef);
301  }
302  return thePaths;
303 }

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

Referenced by pathRef().

◆ paths()

const TriggerPathCollection* pat::TriggerEvent::paths ( ) const
inline

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

Definition at line 248 of file TriggerEvent.h.

248 { return paths_.get(); };

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

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

◆ physAlgorithms()

TriggerAlgorithmRefVector TriggerEvent::physAlgorithms ( ) const

Get a vector of references to all physics L1 algorithms.

Definition at line 198 of file TriggerEvent.cc.

198  {
199  TriggerAlgorithmRefVector thePhysAlgorithms;
200  for (TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end();
201  ++iAlgorithm) {
202  if (!iAlgorithm->techTrigger()) {
203  const std::string nameAlgorithm(iAlgorithm->name());
205  thePhysAlgorithms.push_back(algorithmRef);
206  }
207  }
208  return thePhysAlgorithms;
209 }

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

◆ setAccept()

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

Set the success flag.

Definition at line 120 of file TriggerEvent.h.

120 { accept_ = accept; };

References accept(), and accept_.

◆ setAlgorithms()

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

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

Definition at line 180 of file TriggerEvent.h.

180  {
181  algorithms_ = TriggerAlgorithmRefProd(handleTriggerAlgorithms);
182  };

References algorithms_.

◆ setBCurrentAvg()

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

Set the CMS magnet current averaged over run.

Definition at line 144 of file TriggerEvent.h.

References bCurrentAvg(), and bCurrentAvg_.

◆ setBCurrentStart()

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

Set the CMS magnet current at start of run.

Definition at line 140 of file TriggerEvent.h.

References bCurrentStart(), and bCurrentStart_.

◆ setBCurrentStop()

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

Set the CMS magnet current at end of run.

Definition at line 142 of file TriggerEvent.h.

References bCurrentStop(), and bCurrentStop_.

◆ setBeamMode()

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

Set the LHC beam mode.

Definition at line 128 of file TriggerEvent.h.

128 { beamMode_ = beamMode; };

References beamMode(), and beamMode_.

◆ setBeamMomentum()

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

Set the LHC beam momentum.

Definition at line 130 of file TriggerEvent.h.

References beamMomentum(), and beamMomentum_.

◆ setBstMasterStatus()

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

Set the LHC master status.

Definition at line 136 of file TriggerEvent.h.

References bstMasterStatus(), and bstMasterStatus_.

◆ setConditions()

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

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

Definition at line 220 of file TriggerEvent.h.

220  {
221  conditions_ = TriggerConditionRefProd(handleTriggerConditions);
222  };

References conditions_.

◆ setError()

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

Set the error flag.

Definition at line 122 of file TriggerEvent.h.

122 { error_ = error; };

References relativeConstraints::error, and error_.

◆ setFilters()

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

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

Definition at line 266 of file TriggerEvent.h.

266  {
267  filters_ = TriggerFilterRefProd(handleTriggerFilters);
268  };

References filters_.

◆ setIntensityBeam1()

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

Set the LHC beam 1 intensity.

Definition at line 132 of file TriggerEvent.h.

References intensityBeam1(), and intensityBeam1_.

◆ setIntensityBeam2()

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

Set the LHC beam 2 intensity.

Definition at line 134 of file TriggerEvent.h.

References intensityBeam2(), and intensityBeam2_.

◆ setLhcFill()

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

Set the LHC fill number.

Definition at line 126 of file TriggerEvent.h.

126 { lhcFill_ = lhcFill; };

References lhcFill(), and lhcFill_.

◆ setNameHltTable()

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

Set the name of the HLT trigger table.

Definition at line 116 of file TriggerEvent.h.

116 { nameHltTable_ = name; };

References Skims_PA_cff::name, and nameHltTable_.

◆ setNameL1Menu()

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

Methods.

Trigger event Set the name of the L1 trigger menu

Definition at line 114 of file TriggerEvent.h.

114 { nameL1Menu_ = name; };

References Skims_PA_cff::name, and nameL1Menu_.

◆ setObjects()

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

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

Definition at line 289 of file TriggerEvent.h.

289  {
290  objects_ = TriggerObjectRefProd(handleTriggerObjects);
291  };

References objects_.

◆ setPaths()

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

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

Definition at line 243 of file TriggerEvent.h.

243  {
244  paths_ = TriggerPathRefProd(handleTriggerPaths);
245  };

References paths_.

◆ setPhysDecl()

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

Set the PhysicsDeclared GT bit.

Definition at line 124 of file TriggerEvent.h.

124 { physDecl_ = physDecl; };

References physDecl_.

◆ setRun()

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

Set the run flag.

Definition at line 118 of file TriggerEvent.h.

118 { run_ = run; };

References writedatasetfile::run, and run_.

◆ setTurnCount()

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

Set the LHC beam turn counter.

Definition at line 138 of file TriggerEvent.h.

138 { turnCount_ = turnCount; };

References turnCount(), and turnCount_.

◆ techAlgorithms()

TriggerAlgorithmRefVector TriggerEvent::techAlgorithms ( ) const

Get a vector of references to all technical L1 algorithms.

Definition at line 156 of file TriggerEvent.cc.

156  {
157  TriggerAlgorithmRefVector theTechAlgorithms;
158  for (TriggerAlgorithmCollection::const_iterator iAlgorithm = algorithms()->begin(); iAlgorithm != algorithms()->end();
159  ++iAlgorithm) {
160  if (iAlgorithm->techTrigger()) {
161  const std::string nameAlgorithm(iAlgorithm->name());
163  theTechAlgorithms.push_back(algorithmRef);
164  }
165  }
166  return theTechAlgorithms;
167 }

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

◆ triggerMatchers()

std::vector< std::string > TriggerEvent::triggerMatchers ( ) const

Get a list of all linked trigger matches.

Definition at line 718 of file TriggerEvent.cc.

718  {
719  std::vector<std::string> theMatchers;
720  for (TriggerObjectMatchContainer::const_iterator iMatch = triggerObjectMatchResults()->begin();
721  iMatch != triggerObjectMatchResults()->end();
722  ++iMatch)
723  theMatchers.push_back(iMatch->first);
724  return theMatchers;
725 }

References triggerObjectMatchResults().

◆ triggerObjectMatchResult()

const TriggerObjectMatch * TriggerEvent::triggerObjectMatchResult ( const std::string &  labelMatcher) const

Get a pointer to a certain trigger match given by label, performs proper "range check" (better than '(*triggerObjectMatchResults())[labelMatcher]'), returns 0, if matcher not found

Definition at line 728 of file TriggerEvent.cc.

728  {
729  const TriggerObjectMatchContainer::const_iterator iMatch(triggerObjectMatchResults()->find(labelMatcher));
730  if (iMatch != triggerObjectMatchResults()->end())
731  return iMatch->second.get();
732  return nullptr;
733 }

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

◆ triggerObjectMatchResults()

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

Get all trigger matches.

Definition at line 364 of file TriggerEvent.h.

364 { return &objectMatchResults_; };

References objectMatchResults_.

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

◆ turnCount()

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

Get the LHC beam turn counter.

Definition at line 170 of file TriggerEvent.h.

170 { return turnCount_; };

References turnCount_.

Referenced by setTurnCount().

◆ wasAccept()

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

Get the success flag.

Definition at line 152 of file TriggerEvent.h.

152 { return accept_; };

References accept_.

◆ wasError()

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

Get the error flag.

Definition at line 154 of file TriggerEvent.h.

154 { return error_; };

References error_.

◆ wasPhysDecl()

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

Get the PhysicsDeclared GT bit.

Definition at line 156 of file TriggerEvent.h.

156 { return physDecl_; };

References physDecl_.

◆ wasRun()

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

Get the run flag.

Definition at line 150 of file TriggerEvent.h.

150 { return run_; };

References run_.

Member Data Documentation

◆ accept_

bool pat::TriggerEvent::accept_
private

Did HLT succeed?

Definition at line 49 of file TriggerEvent.h.

Referenced by setAccept(), and wasAccept().

◆ algorithms_

TriggerAlgorithmRefProd pat::TriggerEvent::algorithms_
private

◆ bCurrentAvg_

float pat::TriggerEvent::bCurrentAvg_
private

CMS magnet current in ??? averaged over run.

Definition at line 75 of file TriggerEvent.h.

Referenced by bCurrentAvg(), and setBCurrentAvg().

◆ bCurrentStart_

float pat::TriggerEvent::bCurrentStart_
private

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

Definition at line 71 of file TriggerEvent.h.

Referenced by bCurrentStart(), and setBCurrentStart().

◆ bCurrentStop_

float pat::TriggerEvent::bCurrentStop_
private

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

Definition at line 73 of file TriggerEvent.h.

Referenced by bCurrentStop(), and setBCurrentStop().

◆ beamMode_

uint16_t pat::TriggerEvent::beamMode_
private

LHC beam mode as defined in http://bdidev1.cern.ch/bdisoft/operational/abbdisw_wiki/LHC/BST-config --> Beam mode.

Definition at line 58 of file TriggerEvent.h.

Referenced by beamMode(), and setBeamMode().

◆ beamMomentum_

uint16_t pat::TriggerEvent::beamMomentum_
private

LHC beam momentum in GeV.

Definition at line 60 of file TriggerEvent.h.

Referenced by beamMomentum(), and setBeamMomentum().

◆ bstMasterStatus_

uint16_t pat::TriggerEvent::bstMasterStatus_
private

LHC master status as defined in http://bdidev1.cern.ch/bdisoft/operational/abbdisw_wiki/LHC/BST-config

Definition at line 67 of file TriggerEvent.h.

Referenced by bstMasterStatus(), and setBstMasterStatus().

◆ conditions_

TriggerConditionRefProd pat::TriggerEvent::conditions_
private

◆ error_

bool pat::TriggerEvent::error_
private

Was HLT in error?

Definition at line 51 of file TriggerEvent.h.

Referenced by setError(), and wasError().

◆ filters_

TriggerFilterRefProd pat::TriggerEvent::filters_
private

◆ intensityBeam1_

uint32_t pat::TriggerEvent::intensityBeam1_
private

LHC beam 1 intensity in ???

Definition at line 62 of file TriggerEvent.h.

Referenced by intensityBeam1(), and setIntensityBeam1().

◆ intensityBeam2_

uint32_t pat::TriggerEvent::intensityBeam2_
private

LHC beam 2 intensity in ???

Definition at line 64 of file TriggerEvent.h.

Referenced by intensityBeam2(), and setIntensityBeam2().

◆ lhcFill_

uint32_t pat::TriggerEvent::lhcFill_
private

LHC fill number.

Definition at line 55 of file TriggerEvent.h.

Referenced by lhcFill(), and setLhcFill().

◆ nameHltTable_

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

Name of the HLT trigger table.

Definition at line 45 of file TriggerEvent.h.

Referenced by nameHltTable(), and setNameHltTable().

◆ nameL1Menu_

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

Data Members.

Name of the L1 trigger menu

Definition at line 43 of file TriggerEvent.h.

Referenced by nameL1Menu(), and setNameL1Menu().

◆ objectMatchResults_

TriggerObjectMatchContainer pat::TriggerEvent::objectMatchResults_
private

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

Definition at line 89 of file TriggerEvent.h.

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

◆ objects_

TriggerObjectRefProd pat::TriggerEvent::objects_
private

Reference to pat::TriggerObjectCollection in event.

Definition at line 87 of file TriggerEvent.h.

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

◆ paths_

TriggerPathRefProd pat::TriggerEvent::paths_
private

◆ physDecl_

bool pat::TriggerEvent::physDecl_
private

PhysicsDeclared GT bit.

Definition at line 53 of file TriggerEvent.h.

Referenced by setPhysDecl(), and wasPhysDecl().

◆ run_

bool pat::TriggerEvent::run_
private

Was HLT run?

Definition at line 47 of file TriggerEvent.h.

Referenced by setRun(), and wasRun().

◆ turnCount_

uint32_t pat::TriggerEvent::turnCount_
private

LHC beam turn counter.

Definition at line 69 of file TriggerEvent.h.

Referenced by setTurnCount(), and turnCount().

trigger::TriggerObjectType
TriggerObjectType
Definition: TriggerTypeDefs.h:23
pat::TriggerEvent::bCurrentAvg
float bCurrentAvg() const
Get the CMS magnet current averaged over run.
Definition: TriggerEvent.h:176
pat::TriggerAlgorithmRefProd
edm::RefProd< TriggerAlgorithmCollection > TriggerAlgorithmRefProd
Persistent reference to a TriggerAlgorithmCollection product.
Definition: TriggerAlgorithm.h:148
pat::TriggerEvent::nameL1Menu
const std::string & nameL1Menu() const
Get the name of the L1 trigger menu.
Definition: TriggerEvent.h:146
pat::TriggerEvent::objectInAlgorithm
bool objectInAlgorithm(const TriggerObjectRef &objectRef, const std::string &nameAlgorithm) const
Checks, if an object was used in a certain algorithm given by name.
Definition: TriggerEvent.cc:533
pat::TriggerEvent::conditionInAlgorithm
bool conditionInAlgorithm(const TriggerConditionRef &conditionRef, const std::string &nameAlgorithm) const
Checks, if a condition is assigned to a certain algorithm given by name.
Definition: TriggerEvent.cc:430
pat::TriggerEvent::accept_
bool accept_
Did HLT succeed?
Definition: TriggerEvent.h:49
pat::TriggerEvent::filterRef
const TriggerFilterRef filterRef(const std::string &labelFilter) const
Definition: TriggerEvent.cc:365
pat::TriggerEvent::algorithmRefs
const TriggerAlgorithmRefVector algorithmRefs() const
Definition: TriggerEvent.cc:77
pat::TriggerEvent::pathFilters
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.
Definition: TriggerEvent.cc:574
pat::TriggerEvent::intensityBeam2_
uint32_t intensityBeam2_
LHC beam 2 intensity in ???
Definition: TriggerEvent.h:64
pat::TriggerEvent::bstMasterStatus
uint16_t bstMasterStatus() const
Get the LHC master status.
Definition: TriggerEvent.h:168
pat::TriggerEvent::turnCount
uint32_t turnCount() const
Get the LHC beam turn counter.
Definition: TriggerEvent.h:170
pat::TriggerEvent::run_
bool run_
Was HLT run?
Definition: TriggerEvent.h:47
edm::RefVector::begin
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:223
pat::TriggerEvent::pathRef
const TriggerPathRef pathRef(const std::string &namePath) const
Definition: TriggerEvent.cc:315
pat::TriggerEvent::beamMode
uint16_t beamMode() const
Get the LHC beam mode.
Definition: TriggerEvent.h:160
pat::TriggerEvent::paths
const TriggerPathCollection * paths() const
Definition: TriggerEvent.h:248
edm::RefVector
Definition: EDProductfwd.h:27
pat::TriggerEvent::bCurrentStop_
float bCurrentStop_
CMS magnet current in ??? at end of run.
Definition: TriggerEvent.h:73
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
newFWLiteAna.found
found
Definition: newFWLiteAna.py:118
relativeConstraints.error
error
Definition: relativeConstraints.py:53
pat::TriggerEvent::conditionRefs
const TriggerConditionRefVector conditionRefs() const
Definition: TriggerEvent.cc:240
python.cmstools.all
def all(container)
workaround iterator generators for ROOT classes
Definition: cmstools.py:26
pat::TriggerEvent::condition
const TriggerCondition * condition(const std::string &nameCondition) const
Definition: TriggerEvent.cc:252
pat::TriggerConditionRefProd
edm::RefProd< TriggerConditionCollection > TriggerConditionRefProd
Persistent reference to a TriggerConditionCollection product.
Definition: TriggerCondition.h:116
pat::TriggerCondition
Analysis-level L1 trigger condition class.
Definition: TriggerCondition.h:34
pat::TriggerEvent::objectInPath
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.
Definition: TriggerEvent.cc:686
pat::TriggerEvent::path
const TriggerPath * path(const std::string &namePath) const
Definition: TriggerEvent.cc:306
edm::Ref
Definition: AssociativeIterator.h:58
edm::RefProd::get
product_type const * get() const
Definition: RefProd.h:106
pat::TriggerEvent::intensityBeam1_
uint32_t intensityBeam1_
LHC beam 1 intensity in ???
Definition: TriggerEvent.h:62
pat::TriggerEvent::filterRefs
const TriggerFilterRefVector filterRefs() const
Definition: TriggerEvent.cc:345
accept
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Definition: TopDQMHelpers.h:30
pat::TriggerEvent::nameHltTable_
std::string nameHltTable_
Name of the HLT trigger table.
Definition: TriggerEvent.h:45
edm::RefVector::end
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228
pat::TriggerAlgorithm
Analysis-level L1 trigger algorithm class.
Definition: TriggerAlgorithm.h:31
pat::TriggerEvent::indexFilter
unsigned indexFilter(const std::string &labelFilter) const
Definition: TriggerEvent.cc:375
pat::TriggerEvent::conditions
const TriggerConditionCollection * conditions() const
Definition: TriggerEvent.h:225
pat::TriggerEvent::beamMomentum_
uint16_t beamMomentum_
LHC beam momentum in GeV.
Definition: TriggerEvent.h:60
pat::TriggerEvent::beamMomentum
uint16_t beamMomentum() const
Get the LHC beam momentum.
Definition: TriggerEvent.h:162
pat::TriggerEvent::bstMasterStatus_
uint16_t bstMasterStatus_
Definition: TriggerEvent.h:67
pat::TriggerEvent::conditionRef
const TriggerConditionRef conditionRef(const std::string &nameCondition) const
Definition: TriggerEvent.cc:262
pat::TriggerEvent::physDecl_
bool physDecl_
PhysicsDeclared GT bit.
Definition: TriggerEvent.h:53
mps_fire.end
end
Definition: mps_fire.py:242
pat::TriggerEvent::objects
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:294
pat::TriggerEvent::filters
const TriggerFilterCollection * filters() const
Definition: TriggerEvent.h:271
pat::TriggerFilterRefProd
edm::RefProd< TriggerFilterCollection > TriggerFilterRefProd
Persistent reference to a TriggerFilterCollection product.
Definition: TriggerFilter.h:133
pat::TriggerFilterRef
edm::Ref< TriggerFilterCollection > TriggerFilterRef
Persistent reference to an item in a TriggerFilterCollection.
Definition: TriggerFilter.h:131
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
pat::TriggerEvent::turnCount_
uint32_t turnCount_
LHC beam turn counter.
Definition: TriggerEvent.h:69
pat::TriggerEvent::addObjectMatchResult
bool addObjectMatchResult(const TriggerObjectMatchRefProd &trigMatches, const std::string &labelMatcher)
Definition: TriggerEvent.cc:709
pat::TriggerEvent::filters_
TriggerFilterRefProd filters_
Reference to pat::TriggerAlgorithmCollection in event.
Definition: TriggerEvent.h:85
pat::TriggerObjectMatchRefProd
edm::RefProd< TriggerObjectMatch > TriggerObjectMatchRefProd
Persistent reference to a TriggerObjectMatch product.
Definition: TriggerObject.h:187
pat::TriggerEvent::indexCondition
unsigned indexCondition(const std::string &nameCondition) const
Definition: TriggerEvent.cc:273
pat::TriggerEvent::pathRefs
const TriggerPathRefVector pathRefs() const
Definition: TriggerEvent.cc:295
pat::TriggerPath
Analysis-level HLTrigger path class.
Definition: TriggerPath.h:36
pat::TriggerEvent::nameHltTable
const std::string & nameHltTable() const
Get the name of the HLT trigger table.
Definition: TriggerEvent.h:148
pat::TriggerEvent::bCurrentStart_
float bCurrentStart_
CMS magnet current in ??? at start of run.
Definition: TriggerEvent.h:71
pat::TriggerEvent::objectMatchResults_
TriggerObjectMatchContainer objectMatchResults_
Table of references to pat::TriggerObjectMatch associations in event.
Definition: TriggerEvent.h:89
universalConfigTemplate.collection
collection
Definition: universalConfigTemplate.py:81
pat::TriggerEvent::paths_
TriggerPathRefProd paths_
Reference to pat::TriggerPathCollection in event.
Definition: TriggerEvent.h:83
pat::TriggerAlgorithmRef
edm::Ref< TriggerAlgorithmCollection > TriggerAlgorithmRef
Persistent reference to an item in a TriggerAlgorithmCollection.
Definition: TriggerAlgorithm.h:146
pat::TriggerObjectRefProd
edm::RefProd< TriggerObjectCollection > TriggerObjectRefProd
Persistent reference to a TriggerObjectCollection product.
Definition: TriggerObject.h:179
pat::TriggerEvent::algorithms
const TriggerAlgorithmCollection * algorithms() const
Definition: TriggerEvent.h:185
pat::TriggerPathRefProd
edm::RefProd< TriggerPathCollection > TriggerPathRefProd
Persistent reference to a TriggerPathCollection product.
Definition: TriggerPath.h:157
pat::TriggerEvent::algorithm
const TriggerAlgorithm * algorithm(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:89
pat::TriggerEvent::conditions_
TriggerConditionRefProd conditions_
Reference to pat::TriggerConditionCollection in event.
Definition: TriggerEvent.h:81
pat::TriggerEvent::filterObjects
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.
Definition: TriggerEvent.cc:637
edm::RefVector::push_back
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
pat::TriggerConditionRef
edm::Ref< TriggerConditionCollection > TriggerConditionRef
Persistent reference to an item in a TriggerConditionCollection.
Definition: TriggerCondition.h:114
pat::TriggerEvent::algorithmRef
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:99
pat::TriggerEvent::conditionObjects
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.
Definition: TriggerEvent.cc:483
pat::TriggerEvent::filterInPath
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.
Definition: TriggerEvent.cc:587
pat::TriggerEvent::indexAlgorithm
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:120
writedatasetfile.run
run
Definition: writedatasetfile.py:27
pat::TriggerEvent::algorithmConditions
TriggerConditionRefVector algorithmConditions(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:418
pat::TriggerEvent::algorithms_
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:79
edm::RefVectorIterator
Definition: EDProductfwd.h:33
pat::TriggerEvent::lhcFill_
uint32_t lhcFill_
LHC fill number.
Definition: TriggerEvent.h:55
pat::TriggerEvent::objectInCondition
bool objectInCondition(const TriggerObjectRef &objectRef, const std::string &nameCondition) const
Checks, if an object was used in a certain condition given by name.
Definition: TriggerEvent.cc:497
pat::TriggerPathRef
edm::Ref< TriggerPathCollection > TriggerPathRef
Persistent reference to an item in a TriggerPathCollection.
Definition: TriggerPath.h:155
pat::TriggerEvent::bCurrentStart
float bCurrentStart() const
Get the CMS magnet current at start of run.
Definition: TriggerEvent.h:172
pat::TriggerEvent::nameL1Menu_
std::string nameL1Menu_
Data Members.
Definition: TriggerEvent.h:43
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
pat::TriggerEvent::error_
bool error_
Was HLT in error?
Definition: TriggerEvent.h:51
pat::TriggerEvent::lhcFill
uint32_t lhcFill() const
Get the LHC fill number.
Definition: TriggerEvent.h:158
edm::Ref::key
key_type key() const
Accessor for product key.
Definition: Ref.h:250
pat::TriggerEvent::beamMode_
uint16_t beamMode_
Definition: TriggerEvent.h:58
pat::TriggerEvent::filter
const TriggerFilter * filter(const std::string &labelFilter) const
Definition: TriggerEvent.cc:356
pat::TriggerEvent::objectInFilter
bool objectInFilter(const TriggerObjectRef &objectRef, const std::string &labelFilter) const
Checks, if an object was used in a certain filter given by name.
Definition: TriggerEvent.cc:651
pat::TriggerEvent::triggerObjectMatchResults
const TriggerObjectMatchContainer * triggerObjectMatchResults() const
Get all trigger matches.
Definition: TriggerEvent.h:364
pat::TriggerEvent::bCurrentStop
float bCurrentStop() const
Get the CMS magnet current at end of run.
Definition: TriggerEvent.h:174
pat::TriggerEvent::objects_
TriggerObjectRefProd objects_
Reference to pat::TriggerObjectCollection in event.
Definition: TriggerEvent.h:87
pat::TriggerFilter
Analysis-level HLTrigger filter class.
Definition: TriggerFilter.h:33
pat::TriggerEvent::bCurrentAvg_
float bCurrentAvg_
CMS magnet current in ??? averaged over run.
Definition: TriggerEvent.h:75
pat::TriggerEvent::intensityBeam2
uint32_t intensityBeam2() const
Get the LHC beam 2 intensity.
Definition: TriggerEvent.h:166
label
const char * label
Definition: PFTauDecayModeTools.cc:11
pat::TriggerEvent::indexPath
unsigned indexPath(const std::string &namePath) const
Definition: TriggerEvent.cc:324
pat::TriggerEvent::intensityBeam1
uint32_t intensityBeam1() const
Get the LHC beam 1 intensity.
Definition: TriggerEvent.h:164
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443
pat::TriggerEvent::nameAlgorithm
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
Definition: TriggerEvent.cc:110