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