CMS 3D CMS Logo

TriggerEvent.h
Go to the documentation of this file.
1 #ifndef DataFormats_PatCandidates_TriggerEvent_h
2 #define DataFormats_PatCandidates_TriggerEvent_h
3 
4 // -*- C++ -*-
5 //
6 // Package: PatCandidates
7 // Class: pat::TriggerEvent
8 //
9 //
27 
28 #include <string>
29 #include <vector>
30 
35 #include <cstdint>
36 
37 namespace pat {
38 
39  class TriggerEvent {
41 
47  bool run_;
49  bool accept_;
51  bool error_;
53  bool physDecl_;
55  uint32_t lhcFill_;
58  uint16_t beamMode_;
60  uint16_t beamMomentum_;
62  uint32_t intensityBeam1_;
64  uint32_t intensityBeam2_;
67  uint16_t bstMasterStatus_;
69  uint32_t turnCount_;
75  float bCurrentAvg_;
76 
90 
91  public:
93 
95  TriggerEvent();
98  const std::string& nameHltTable, bool run = true, bool accept = true, bool error = false, bool physDecl = true);
101  const std::string& nameHltTable,
102  bool run = true,
103  bool accept = true,
104  bool error = false,
105  bool physDecl = true);
106 
108  virtual ~TriggerEvent(){};
109 
111 
118  void setRun(bool run) { run_ = run; };
120  void setAccept(bool accept) { accept_ = accept; };
122  void setError(bool error) { error_ = error; };
124  void setPhysDecl(bool physDecl) { physDecl_ = physDecl; };
126  void setLhcFill(uint32_t lhcFill) { lhcFill_ = lhcFill; };
128  void setBeamMode(uint16_t beamMode) { beamMode_ = beamMode; };
146  const std::string& nameL1Menu() const { return nameL1Menu_; };
148  const std::string& nameHltTable() const { return nameHltTable_; };
150  bool wasRun() const { return run_; };
152  bool wasAccept() const { return accept_; };
154  bool wasError() const { return error_; };
156  bool wasPhysDecl() const { return physDecl_; };
158  uint32_t lhcFill() const { return lhcFill_; };
160  uint16_t beamMode() const { return beamMode_; };
162  uint16_t beamMomentum() const { return beamMomentum_; };
164  uint32_t intensityBeam1() const { return intensityBeam1_; };
166  uint32_t intensityBeam2() const { return intensityBeam2_; };
168  uint16_t bstMasterStatus() const { return bstMasterStatus_; };
170  uint32_t turnCount() const { return turnCount_; };
172  float bCurrentStart() const { return bCurrentStart_; };
174  float bCurrentStop() const { return bCurrentStop_; };
176  float bCurrentAvg() const { return bCurrentAvg_; };
177 
180  void setAlgorithms(const edm::Handle<TriggerAlgorithmCollection>& handleTriggerAlgorithms) {
181  algorithms_ = TriggerAlgorithmRefProd(handleTriggerAlgorithms);
182  };
185  const TriggerAlgorithmCollection* algorithms() const { return algorithms_.get(); };
197  std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm = true) const;
200  unsigned indexAlgorithm(const std::string& nameAlgorithm) const;
217 
220  void setConditions(const edm::Handle<TriggerConditionCollection>& handleTriggerConditions) {
221  conditions_ = TriggerConditionRefProd(handleTriggerConditions);
222  };
225  const TriggerConditionCollection* conditions() const { return conditions_.get(); };
231  const TriggerCondition* condition(const std::string& nameCondition) const;
234  const TriggerConditionRef conditionRef(const std::string& nameCondition) const;
237  unsigned indexCondition(const std::string& nameCondition) const;
240 
243  void setPaths(const edm::Handle<TriggerPathCollection>& handleTriggerPaths) {
244  paths_ = TriggerPathRefProd(handleTriggerPaths);
245  };
248  const TriggerPathCollection* paths() const { return paths_.get(); };
251  const TriggerPathRefVector pathRefs() const;
254  const TriggerPath* path(const std::string& namePath) const;
257  const TriggerPathRef pathRef(const std::string& namePath) const;
260  unsigned indexPath(const std::string& namePath) const;
263 
266  void setFilters(const edm::Handle<TriggerFilterCollection>& handleTriggerFilters) {
267  filters_ = TriggerFilterRefProd(handleTriggerFilters);
268  };
271  const TriggerFilterCollection* filters() const { return filters_.get(); };
274  const TriggerFilterRefVector filterRefs() const;
277  const TriggerFilter* filter(const std::string& labelFilter) const;
280  const TriggerFilterRef filterRef(const std::string& labelFilter) const;
283  unsigned indexFilter(const std::string& labelFilter) const;
286 
289  void setObjects(const edm::Handle<TriggerObjectCollection>& handleTriggerObjects) {
290  objects_ = TriggerObjectRefProd(handleTriggerObjects);
291  };
294  const TriggerObjectCollection* objects() const { return objects_.get(); };
297  const TriggerObjectRefVector objectRefs() const;
300  TriggerObjectRefVector objects(int triggerObjectType) const {
301  return objects(trigger::TriggerObjectType(triggerObjectType));
302  }; // for backward compatibility
303 
312  std::vector<std::string> conditionCollections(const std::string& nameAlgorithm) const;
314  TriggerObjectRefVector conditionObjects(const std::string& nameCondition) const;
316  bool objectInCondition(const TriggerObjectRef& objectRef, const std::string& nameCondition) const;
322  bool objectInAlgorithm(const TriggerObjectRef& objectRef, const std::string& nameAlgorithm) const;
325 
329  TriggerFilterRefVector pathModules(const std::string& namePath, bool all = true) const;
331  TriggerFilterRefVector pathFilters(const std::string& namePath, bool firing = true) const;
333  bool filterInPath(const TriggerFilterRef& filterRef, const std::string& namePath, bool firing = true) const;
335  TriggerPathRefVector filterPaths(const TriggerFilterRef& filterRef, bool firing = true) const;
337  std::vector<std::string> filterCollections(const std::string& labelFilter) const;
339  TriggerObjectRefVector filterObjects(const std::string& labelFilter) const;
341  bool objectInFilter(const TriggerObjectRef& objectRef, const std::string& labelFilter) const;
343  TriggerFilterRefVector objectFilters(const TriggerObjectRef& objectRef, bool firing = true) const;
345  TriggerObjectRefVector pathObjects(const std::string& namePath, bool firing = true) const;
347  bool objectInPath(const TriggerObjectRef& objectRef, const std::string& namePath, bool firing = true) const;
349  TriggerPathRefVector objectPaths(const TriggerObjectRef& objectRef, bool firing = true) const;
350 
353  bool addObjectMatchResult(const TriggerObjectMatchRefProd& trigMatches, const std::string& labelMatcher);
354  bool addObjectMatchResult(const edm::Handle<TriggerObjectMatch>& trigMatches, const std::string& labelMatcher) {
355  return addObjectMatchResult(TriggerObjectMatchRefProd(trigMatches), labelMatcher);
356  };
358  const std::string& labelMatcher) {
359  return addObjectMatchResult(TriggerObjectMatchRefProd(trigMatches), labelMatcher);
360  };
362  std::vector<std::string> triggerMatchers() const;
368  const TriggerObjectMatch* triggerObjectMatchResult(const std::string& labelMatcher) const;
369 
371  };
372 
373 } // namespace pat
374 
375 #endif
trigger::TriggerObjectType
TriggerObjectType
Definition: TriggerTypeDefs.h:23
pat::TriggerEvent::addObjectMatchResult
bool addObjectMatchResult(const edm::OrphanHandle< TriggerObjectMatch > &trigMatches, const std::string &labelMatcher)
Definition: TriggerEvent.h:357
pat::TriggerEvent::bCurrentAvg
float bCurrentAvg() const
Get the CMS magnet current averaged over run.
Definition: TriggerEvent.h:176
pat::TriggerEvent::wasRun
bool wasRun() const
Get the run flag.
Definition: TriggerEvent.h:150
edm::RefProd< TriggerAlgorithmCollection >
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::setPaths
void setPaths(const edm::Handle< TriggerPathCollection > &handleTriggerPaths)
Definition: TriggerEvent.h:243
pat::TriggerEvent::setError
void setError(bool error)
Set the error flag.
Definition: TriggerEvent.h:122
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
Handle.h
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::acceptedTechAlgorithmsGtl
TriggerAlgorithmRefVector acceptedTechAlgorithmsGtl() const
Get a vector of references to all technical L1 algorithms succeeding on the GTL board.
Definition: TriggerEvent.cc:184
pat::TriggerEvent::setIntensityBeam2
void setIntensityBeam2(uint32_t intensityBeam2)
Set the LHC beam 2 intensity.
Definition: TriggerEvent.h:134
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::wasAccept
bool wasAccept() const
Get the success flag.
Definition: TriggerEvent.h:152
pat::TriggerEvent::setNameHltTable
void setNameHltTable(const std::string &name)
Set the name of the HLT trigger table.
Definition: TriggerEvent.h:116
pat::TriggerEvent
Analysis-level trigger event class.
Definition: TriggerEvent.h:39
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::TriggerConditionCollection
std::vector< TriggerCondition > TriggerConditionCollection
Collection of TriggerCondition.
Definition: TriggerCondition.h:112
pat::TriggerEvent::acceptedAlgorithmsGtl
TriggerAlgorithmRefVector acceptedAlgorithmsGtl() const
Get a vector of references to all L1 algorithms succeeding on the GTL board.
Definition: TriggerEvent.cc:142
pat::TriggerEvent::run_
bool run_
Was HLT run?
Definition: TriggerEvent.h:47
pat::TriggerEvent::pathRef
const TriggerPathRef pathRef(const std::string &namePath) const
Definition: TriggerEvent.cc:315
pat::TriggerEvent::wasError
bool wasError() const
Get the error flag.
Definition: TriggerEvent.h:154
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
pat::TriggerEvent::setPhysDecl
void setPhysDecl(bool physDecl)
Set the PhysicsDeclared GT bit.
Definition: TriggerEvent.h:124
edm::RefVector
Definition: EDProductfwd.h:27
pat::TriggerEvent::setTurnCount
void setTurnCount(uint32_t turnCount)
Set the LHC beam turn counter.
Definition: TriggerEvent.h:138
pat::TriggerEvent::acceptedPaths
TriggerPathRefVector acceptedPaths() const
Get a vector of references to all succeeding HLT paths.
Definition: TriggerEvent.cc:332
pat::TriggerEvent::bCurrentStop_
float bCurrentStop_
CMS magnet current in ??? at end of run.
Definition: TriggerEvent.h:73
pat::TriggerObjectCollection
std::vector< TriggerObject > TriggerObjectCollection
Collection of TriggerObject.
Definition: TriggerObject.h:173
pat::TriggerEvent::addObjectMatchResult
bool addObjectMatchResult(const edm::Handle< TriggerObjectMatch > &trigMatches, const std::string &labelMatcher)
Definition: TriggerEvent.h:354
pat::TriggerFilterCollection
std::vector< TriggerFilter > TriggerFilterCollection
Collection of TriggerFilter.
Definition: TriggerFilter.h:129
edm::Handle
Definition: AssociativeIterator.h:50
relativeConstraints.error
error
Definition: relativeConstraints.py:53
pat::TriggerEvent::conditionRefs
const TriggerConditionRefVector conditionRefs() const
Definition: TriggerEvent.cc:240
pat::TriggerEvent::pathModules
TriggerFilterRefVector pathModules(const std::string &namePath, bool all=true) const
Definition: TriggerEvent.cc:558
pat::TriggerEvent::setBCurrentStart
void setBCurrentStart(float bCurrentStart)
Set the CMS magnet current at start of run.
Definition: TriggerEvent.h:140
python.cmstools.all
def all(container)
workaround iterator generators for ROOT classes
Definition: cmstools.py:26
pat::TriggerEvent::conditionAlgorithms
TriggerAlgorithmRefVector conditionAlgorithms(const TriggerConditionRef &conditionRef) const
Get a vector of references to all algorithms, which have a certain condition assigned.
Definition: TriggerEvent.cc:442
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
TriggerFilter.h
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::filterPaths
TriggerPathRefVector filterPaths(const TriggerFilterRef &filterRef, bool firing=true) const
Get a vector of references to all paths, which have a certain filter assigned.
Definition: TriggerEvent.cc:597
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::objectRefs
const TriggerObjectRefVector objectRefs() const
Definition: TriggerEvent.cc:396
pat::TriggerEvent::intensityBeam1_
uint32_t intensityBeam1_
LHC beam 1 intensity in ???
Definition: TriggerEvent.h:62
pat::TriggerEvent::setRun
void setRun(bool run)
Set the run flag.
Definition: TriggerEvent.h:118
pat::TriggerEvent::filterRefs
const TriggerFilterRefVector filterRefs() const
Definition: TriggerEvent.cc:345
pat::TriggerPathCollection
std::vector< TriggerPath > TriggerPathCollection
Collection of TriggerPath.
Definition: TriggerPath.h:153
accept
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Definition: TopDQMHelpers.h:30
pat::TriggerEvent::algorithmObjects
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.
Definition: TriggerEvent.cc:518
pat::TriggerEvent::nameHltTable_
std::string nameHltTable_
Name of the HLT trigger table.
Definition: TriggerEvent.h:45
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
TriggerAlgorithm.h
OrphanHandle.h
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
pat::TriggerEvent::objects
const TriggerObjectCollection * objects() const
Definition: TriggerEvent.h:294
pat::TriggerEvent::setIntensityBeam1
void setIntensityBeam1(uint32_t intensityBeam1)
Set the LHC beam 1 intensity.
Definition: TriggerEvent.h:132
pat::TriggerEvent::filters
const TriggerFilterCollection * filters() const
Definition: TriggerEvent.h:271
pat::TriggerEvent::acceptedFilters
TriggerFilterRefVector acceptedFilters() const
Get a vector of references to all succeeding HLT filters.
Definition: TriggerEvent.cc:383
pat::TriggerObjectMatchContainer
std::map< std::string, TriggerObjectMatchRefProd > TriggerObjectMatchContainer
Container to store references to matches from different producers in the trigger event.
Definition: TriggerObject.h:189
pat::TriggerFilterRefProd
edm::RefProd< TriggerFilterCollection > TriggerFilterRefProd
Persistent reference to a TriggerFilterCollection product.
Definition: TriggerFilter.h:133
pat::TriggerEvent::acceptedTechAlgorithms
TriggerAlgorithmRefVector acceptedTechAlgorithms() const
Get a vector of references to all succeeding technical L1 algorithms.
Definition: TriggerEvent.cc:170
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::TriggerEvent::wasPhysDecl
bool wasPhysDecl() const
Get the PhysicsDeclared GT bit.
Definition: TriggerEvent.h:156
pat::TriggerObjectMatchRefProd
edm::RefProd< TriggerObjectMatch > TriggerObjectMatchRefProd
Persistent reference to a TriggerObjectMatch product.
Definition: TriggerObject.h:187
pat::TriggerEvent::setBstMasterStatus
void setBstMasterStatus(uint16_t bstMasterStatus)
Set the LHC master status.
Definition: TriggerEvent.h:136
pat::TriggerEvent::indexCondition
unsigned indexCondition(const std::string &nameCondition) const
Definition: TriggerEvent.cc:273
pat::TriggerEvent::objects
TriggerObjectRefVector objects(int triggerObjectType) const
Definition: TriggerEvent.h:300
pat::TriggerEvent::setBeamMomentum
void setBeamMomentum(uint16_t beamMomentum)
Set the LHC beam momentum.
Definition: TriggerEvent.h:130
pat::TriggerEvent::pathRefs
const TriggerPathRefVector pathRefs() const
Definition: TriggerEvent.cc:295
pat::TriggerEvent::setObjects
void setObjects(const edm::Handle< TriggerObjectCollection > &handleTriggerObjects)
Definition: TriggerEvent.h:289
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::~TriggerEvent
virtual ~TriggerEvent()
Destructor.
Definition: TriggerEvent.h:108
pat::TriggerEvent::objectMatchResults_
TriggerObjectMatchContainer objectMatchResults_
Table of references to pat::TriggerObjectMatch associations in event.
Definition: TriggerEvent.h:89
pat::TriggerEvent::setBCurrentAvg
void setBCurrentAvg(float bCurrentAvg)
Set the CMS magnet current averaged over run.
Definition: TriggerEvent.h:144
pat::TriggerEvent::triggerMatchers
std::vector< std::string > triggerMatchers() const
Get a list of all linked trigger matches.
Definition: TriggerEvent.cc:718
pat::TriggerEvent::paths_
TriggerPathRefProd paths_
Reference to pat::TriggerPathCollection in event.
Definition: TriggerEvent.h:83
pat::TriggerEvent::physAlgorithms
TriggerAlgorithmRefVector physAlgorithms() const
Get a vector of references to all physics L1 algorithms.
Definition: TriggerEvent.cc:198
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
edm::Association
Definition: Association.h:18
pat::TriggerEvent::setBeamMode
void setBeamMode(uint16_t beamMode)
Set the LHC beam mode.
Definition: TriggerEvent.h:128
pat::TriggerPathRefProd
edm::RefProd< TriggerPathCollection > TriggerPathRefProd
Persistent reference to a TriggerPathCollection product.
Definition: TriggerPath.h:157
pat::TriggerEvent::setLhcFill
void setLhcFill(uint32_t lhcFill)
Set the LHC fill number.
Definition: TriggerEvent.h:126
pat
Definition: HeavyIon.h:7
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::triggerObjectMatchResult
const TriggerObjectMatch * triggerObjectMatchResult(const std::string &labelMatcher) const
Definition: TriggerEvent.cc:728
pat::TriggerAlgorithmCollection
std::vector< TriggerAlgorithm > TriggerAlgorithmCollection
Collection of TriggerAlgorithm.
Definition: TriggerAlgorithm.h:144
pat::TriggerEvent::objectFilters
TriggerFilterRefVector objectFilters(const TriggerObjectRef &objectRef, bool firing=true) const
Get a vector of references to all filters, which have a certain object assigned.
Definition: TriggerEvent.cc:658
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
pat::TriggerEvent::setAccept
void setAccept(bool accept)
Set the success flag.
Definition: TriggerEvent.h:120
InputTag.h
pat::TriggerEvent::setConditions
void setConditions(const edm::Handle< TriggerConditionCollection > &handleTriggerConditions)
Definition: TriggerEvent.h:220
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::setFilters
void setFilters(const edm::Handle< TriggerFilterCollection > &handleTriggerFilters)
Definition: TriggerEvent.h:266
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
pat::TriggerEvent::setAlgorithms
void setAlgorithms(const edm::Handle< TriggerAlgorithmCollection > &handleTriggerAlgorithms)
Definition: TriggerEvent.h:180
writedatasetfile.run
run
Definition: writedatasetfile.py:27
pat::TriggerEvent::TriggerEvent
TriggerEvent()
Constructors and Desctructor.
Definition: TriggerEvent.cc:11
edm::OrphanHandle
Definition: EDProductfwd.h:39
pat::TriggerEvent::acceptedPhysAlgorithms
TriggerAlgorithmRefVector acceptedPhysAlgorithms() const
Get a vector of references to all succeeding physics L1 algorithms.
Definition: TriggerEvent.cc:212
pat::TriggerEvent::acceptedPhysAlgorithmsGtl
TriggerAlgorithmRefVector acceptedPhysAlgorithmsGtl() const
Get a vector of references to all physics L1 algorithms succeeding on the GTL board.
Definition: TriggerEvent.cc:226
pat::TriggerEvent::algorithmConditions
TriggerConditionRefVector algorithmConditions(const std::string &nameAlgorithm) const
Definition: TriggerEvent.cc:418
pat::TriggerEvent::conditionCollections
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.
Definition: TriggerEvent.cc:458
pat::TriggerEvent::algorithms_
TriggerAlgorithmRefProd algorithms_
Definition: TriggerEvent.h:79
pat::TriggerEvent::acceptedConditions
TriggerConditionRefVector acceptedConditions() const
Get a vector of references to all succeeding L1 condition.
Definition: TriggerEvent.cc:281
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::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::objectPaths
TriggerPathRefVector objectPaths(const TriggerObjectRef &objectRef, bool firing=true) const
Get a vector of references to all paths, which have a certain object assigned.
Definition: TriggerEvent.cc:696
pat::TriggerEvent::error_
bool error_
Was HLT in error?
Definition: TriggerEvent.h:51
pat::TriggerEvent::setBCurrentStop
void setBCurrentStop(float bCurrentStop)
Set the CMS magnet current at end of run.
Definition: TriggerEvent.h:142
pat::TriggerEvent::lhcFill
uint32_t lhcFill() const
Get the LHC fill number.
Definition: TriggerEvent.h:158
pat::TriggerEvent::techAlgorithms
TriggerAlgorithmRefVector techAlgorithms() const
Get a vector of references to all technical L1 algorithms.
Definition: TriggerEvent.cc:156
pat::TriggerEvent::beamMode_
uint16_t beamMode_
Definition: TriggerEvent.h:58
pat::TriggerEvent::objectConditions
TriggerConditionRefVector objectConditions(const TriggerObjectRef &objectRef) const
Get a vector of references to all conditions, which have a certain object assigned.
Definition: TriggerEvent.cc:504
Candidate.h
pat::TriggerEvent::filterCollections
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.
Definition: TriggerEvent.cc:612
pat::TriggerEvent::setNameL1Menu
void setNameL1Menu(const std::string &name)
Methods.
Definition: TriggerEvent.h:114
pat::TriggerEvent::objectAlgorithms
TriggerAlgorithmRefVector objectAlgorithms(const TriggerObjectRef &objectRef) const
Get a vector of references to all algorithms, which have a certain object assigned.
Definition: TriggerEvent.cc:544
pat::TriggerEvent::filter
const TriggerFilter * filter(const std::string &labelFilter) const
Definition: TriggerEvent.cc:356
TriggerCondition.h
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
pat::TriggerEvent::acceptedAlgorithms
TriggerAlgorithmRefVector acceptedAlgorithms() const
Get a vector of references to all succeeding L1 algorithms.
Definition: TriggerEvent.cc:128
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
pat::TriggerEvent::pathObjects
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.
Definition: TriggerEvent.cc:672
TriggerPath.h
pat::TriggerEvent::nameAlgorithm
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
Definition: TriggerEvent.cc:110
TriggerObject.h