1 #ifndef DataFormats_PatCandidates_TriggerEvent_h
2 #define DataFormats_PatCandidates_TriggerEvent_h
105 bool physDecl =
true);
const TriggerObjectMatchContainer * triggerObjectMatchResults() const
Get all trigger matches.
bool wasAccept() const
Get the success flag.
TriggerConditionRefVector algorithmConditions(const std::string &nameAlgorithm) const
void setBCurrentAvg(float bCurrentAvg)
Set the CMS magnet current averaged over run.
Analysis-level L1 trigger algorithm class.
TriggerAlgorithmRefVector physAlgorithms() const
Get a vector of references to all physics L1 algorithms.
TriggerAlgorithmRefVector acceptedAlgorithmsGtl() const
Get a vector of references to all L1 algorithms succeeding on the GTL board.
std::string nameHltTable_
Name of the HLT trigger table.
TriggerConditionRefVector objectConditions(const TriggerObjectRef &objectRef) const
Get a vector of references to all conditions, which have a certain object assigned.
virtual ~TriggerEvent()
Destructor.
TriggerConditionRefProd conditions_
Reference to pat::TriggerConditionCollection in event.
const TriggerObjectRefVector objectRefs() const
void setBCurrentStop(float bCurrentStop)
Set the CMS magnet current at end of run.
const std::string & nameHltTable() const
Get the name of the HLT trigger table.
void setBeamMode(uint16_t beamMode)
Set the LHC beam mode.
void setBeamMomentum(uint16_t beamMomentum)
Set the LHC beam momentum.
std::vector< std::string > triggerMatchers() const
Get a list of all linked trigger matches.
edm::RefProd< TriggerObjectCollection > TriggerObjectRefProd
Persistent reference to a TriggerObjectCollection product.
std::map< std::string, TriggerObjectMatchRefProd > TriggerObjectMatchContainer
Container to store references to matches from different producers in the trigger event.
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.
bool physDecl_
PhysicsDeclared GT bit.
bool accept_
Did HLT succeed?
edm::RefProd< TriggerPathCollection > TriggerPathRefProd
Persistent reference to a TriggerPathCollection product.
bool error_
Was HLT in error?
std::vector< TriggerAlgorithm > TriggerAlgorithmCollection
Collection of TriggerAlgorithm.
const TriggerPathRef pathRef(const std::string &namePath) const
const TriggerCondition * condition(const std::string &nameCondition) const
const TriggerConditionCollection * conditions() const
void setRun(bool run)
Set the run flag.
void setAccept(bool accept)
Set the success flag.
void setIntensityBeam2(uint32_t intensityBeam2)
Set the LHC beam 2 intensity.
edm::RefProd< TriggerObjectMatch > TriggerObjectMatchRefProd
Persistent reference to a TriggerObjectMatch product.
TriggerFilterRefVector acceptedFilters() const
Get a vector of references to all succeeding HLT filters.
const TriggerFilterRefVector filterRefs() const
TriggerAlgorithmRefVector acceptedTechAlgorithms() const
Get a vector of references to all succeeding technical L1 algorithms.
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...
std::string nameL1Menu_
Data Members.
void setConditions(const edm::Handle< TriggerConditionCollection > &handleTriggerConditions)
TriggerEvent()
Constructors and Desctructor.
TriggerPathRefProd paths_
Reference to pat::TriggerPathCollection in event.
TriggerAlgorithmRefVector objectAlgorithms(const TriggerObjectRef &objectRef) const
Get a vector of references to all algorithms, which have a certain object assigned.
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
const TriggerPathCollection * paths() const
unsigned indexFilter(const std::string &labelFilter) const
const std::string & nameL1Menu() const
Get the name of the L1 trigger menu.
TriggerFilterRefVector pathModules(const std::string &namePath, bool all=true) const
void setAlgorithms(const edm::Handle< TriggerAlgorithmCollection > &handleTriggerAlgorithms)
void setNameL1Menu(const std::string &name)
Methods.
bool objectInAlgorithm(const TriggerObjectRef &objectRef, const std::string &nameAlgorithm) const
Checks, if an object was used in a certain algorithm given by name.
float bCurrentStart_
CMS magnet current in ??? at start of run.
TriggerConditionRefVector acceptedConditions() const
Get a vector of references to all succeeding L1 condition.
TriggerAlgorithmRefProd algorithms_
uint32_t lhcFill_
LHC fill number.
void setFilters(const edm::Handle< TriggerFilterCollection > &handleTriggerFilters)
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...
const TriggerObjectCollection * objects() const
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
Analysis-level HLTrigger filter class.
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.
bool wasPhysDecl() const
Get the PhysicsDeclared GT bit.
unsigned indexCondition(const std::string &nameCondition) const
Analysis-level L1 trigger condition class.
Analysis-level HLTrigger path class.
bool addObjectMatchResult(const TriggerObjectMatchRefProd &trigMatches, const std::string &labelMatcher)
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...
std::vector< TriggerCondition > TriggerConditionCollection
Collection of TriggerCondition.
const TriggerPath * path(const std::string &namePath) const
const TriggerFilterRef filterRef(const std::string &labelFilter) const
TriggerAlgorithmRefVector techAlgorithms() const
Get a vector of references to all technical L1 algorithms.
float bCurrentAvg_
CMS magnet current in ??? averaged over run.
void setPaths(const edm::Handle< TriggerPathCollection > &handleTriggerPaths)
bool objectInCondition(const TriggerObjectRef &objectRef, const std::string &nameCondition) const
Checks, if an object was used in a certain condition given by name.
TriggerAlgorithmRefVector acceptedPhysAlgorithms() const
Get a vector of references to all succeeding physics L1 algorithms.
const TriggerAlgorithmCollection * algorithms() const
void setNameHltTable(const std::string &name)
Set the name of the HLT trigger table.
float bCurrentAvg() const
Get the CMS magnet current averaged over run.
TriggerAlgorithmRefVector acceptedAlgorithms() const
Get a vector of references to all succeeding L1 algorithms.
bool addObjectMatchResult(const edm::Handle< TriggerObjectMatch > &trigMatches, const std::string &labelMatcher)
const TriggerObjectMatch * triggerObjectMatchResult(const std::string &labelMatcher) const
TriggerFilterRefVector objectFilters(const TriggerObjectRef &objectRef, bool firing=true) const
Get a vector of references to all filters, which have a certain object assigned.
uint32_t intensityBeam1() const
Get the LHC beam 1 intensity.
uint32_t intensityBeam1_
LHC beam 1 intensity in ???
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...
TriggerAlgorithmRefVector conditionAlgorithms(const TriggerConditionRef &conditionRef) const
Get a vector of references to all algorithms, which have a certain condition assigned.
TriggerFilterRefProd filters_
Reference to pat::TriggerAlgorithmCollection in event.
std::string nameAlgorithm(const unsigned bitAlgorithm, const bool techAlgorithm=true) const
Analysis-level trigger event class.
void setBstMasterStatus(uint16_t bstMasterStatus)
Set the LHC master status.
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
std::vector< TriggerPath > TriggerPathCollection
Collection of TriggerPath.
TriggerPathRefVector objectPaths(const TriggerObjectRef &objectRef, bool firing=true) const
Get a vector of references to all paths, which have a certain object assigned.
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.
uint32_t intensityBeam2_
LHC beam 2 intensity in ???
const TriggerFilterCollection * filters() const
uint16_t beamMomentum_
LHC beam momentum in GeV.
bool objectInFilter(const TriggerObjectRef &objectRef, const std::string &labelFilter) const
Checks, if an object was used in a certain filter given by name.
uint32_t turnCount() const
Get the LHC beam turn counter.
uint16_t bstMasterStatus() const
Get the LHC master status.
bool wasError() const
Get the error flag.
const TriggerAlgorithmRefVector algorithmRefs() const
edm::RefProd< TriggerAlgorithmCollection > TriggerAlgorithmRefProd
Persistent reference to a TriggerAlgorithmCollection product.
float bCurrentStart() const
Get the CMS magnet current at start of run.
TriggerObjectRefVector conditionObjects(const std::string &nameCondition) const
Get a vector of references to all objects, which were used in a certain condition given by name...
void setBCurrentStart(float bCurrentStart)
Set the CMS magnet current at start of run.
bool addObjectMatchResult(const edm::OrphanHandle< TriggerObjectMatch > &trigMatches, const std::string &labelMatcher)
uint32_t lhcFill() const
Get the LHC fill number.
void setLhcFill(uint32_t lhcFill)
Set the LHC fill number.
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...
uint16_t bstMasterStatus_
product_type const * get() const
uint16_t beamMomentum() const
Get the LHC beam momentum.
TriggerAlgorithmRefVector acceptedPhysAlgorithmsGtl() const
Get a vector of references to all physics L1 algorithms succeeding on the GTL board.
TriggerAlgorithmRefVector acceptedTechAlgorithmsGtl() const
Get a vector of references to all technical L1 algorithms succeeding on the GTL board.
const TriggerConditionRefVector conditionRefs() const
float bCurrentStop_
CMS magnet current in ??? at end of run.
void setTurnCount(uint32_t turnCount)
Set the LHC beam turn counter.
TriggerObjectRefVector objects(int triggerObjectType) const
const TriggerAlgorithm * algorithm(const std::string &nameAlgorithm) const
TriggerPathRefVector filterPaths(const TriggerFilterRef &filterRef, bool firing=true) const
Get a vector of references to all paths, which have a certain filter assigned.
TriggerObjectRefProd objects_
Reference to pat::TriggerObjectCollection in event.
const TriggerFilter * filter(const std::string &labelFilter) const
bool conditionInAlgorithm(const TriggerConditionRef &conditionRef, const std::string &nameAlgorithm) const
Checks, if a condition is assigned to a certain algorithm given by name.
void setObjects(const edm::Handle< TriggerObjectCollection > &handleTriggerObjects)
uint32_t turnCount_
LHC beam turn counter.
TriggerObjectMatchContainer objectMatchResults_
Table of references to pat::TriggerObjectMatch associations in event.
uint16_t beamMode() const
Get the LHC beam mode.
void setPhysDecl(bool physDecl)
Set the PhysicsDeclared GT bit.
uint32_t intensityBeam2() const
Get the LHC beam 2 intensity.
const TriggerConditionRef conditionRef(const std::string &nameCondition) const
std::vector< TriggerObject > TriggerObjectCollection
Collection of TriggerObject.
TriggerPathRefVector acceptedPaths() const
Get a vector of references to all succeeding HLT paths.
std::vector< TriggerFilter > TriggerFilterCollection
Collection of TriggerFilter.
void setError(bool error)
Set the error flag.
unsigned indexPath(const std::string &namePath) const
bool wasRun() const
Get the run flag.
edm::RefProd< TriggerFilterCollection > TriggerFilterRefProd
Persistent reference to a TriggerFilterCollection product.
void setIntensityBeam1(uint32_t intensityBeam1)
Set the LHC beam 1 intensity.
const TriggerPathRefVector pathRefs() const
edm::RefProd< TriggerConditionCollection > TriggerConditionRefProd
Persistent reference to a TriggerConditionCollection product.
float bCurrentStop() const
Get the CMS magnet current at end of run.