1 #ifndef DataFormats_PatCandidates_TriggerEvent_h
2 #define DataFormats_PatCandidates_TriggerEvent_h
34 #include <boost/cstdint.hpp>
190 std::string
nameAlgorithm(
const unsigned bitAlgorithm,
const bool techAlgorithm =
true )
const;
222 unsigned indexCondition(
const std::string & nameCondition )
const;
237 unsigned indexPath(
const std::string & namePath )
const;
252 unsigned indexFilter(
const std::string & labelFilter )
const;
299 std::vector< std::string >
filterCollections(
const std::string & labelFilter )
const;
const TriggerObjectMatchContainer * triggerObjectMatchResults() const
Get all trigger matches.
TriggerFilterRefVector objectFilters(const TriggerObjectRef &objectRef) const
Get a vector of references to all filters, which have a certain object assigned.
void setBeamMode(boost::uint16_t beamMode)
Set the LHC beam mode.
bool wasAccept() const
Get the success flag.
TriggerConditionRefVector algorithmConditions(const std::string &nameAlgorithm) const
edm::RefProd< TriggerObjectMatch > TriggerObjectMatchRefProd
Persistent reference to a TriggerObjectMatch product.
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.
void setBCurrentStop(float bCurrentStop)
Set the CMS magnet current at end of run.
std::string nameL1Menu() const
Get the name of the L1 trigger menu.
boost::uint16_t beamMomentum() const
Get the LHC beam momentum.
boost::uint16_t beamMode_
boost::uint16_t beamMomentum_
LHC beam momentum in GeV.
std::vector< std::string > triggerMatchers() const
Get a list of all linked trigger matches.
TriggerPathRefVector filterPaths(const TriggerFilterRef &filterRef) const
Get a vector of references to all paths, which have a certain filter assigned.
bool physDecl_
PhysicsDeclared GT bit.
std::string nameHltTable() const
Get the name of the HLT trigger table.
bool accept_
Did HLT succeed?
bool error_
Was HLT in error?
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.
TriggerFilterRefVector acceptedFilters() const
Get a vector of references to all succeeding HLT filters.
edm::RefProd< TriggerObjectCollection > TriggerObjectRefProd
Persistent reference to a TriggerObjectCollection product.
TriggerAlgorithmRefVector acceptedTechAlgorithms() const
Get a vector of references to all succeeding technical L1 algorithms.
TriggerObjectRefVector pathObjects(const std::string &namePath) const
Get a vector of references to all objects, which were used in a certain path given by name...
std::string nameL1Menu_
Data Members.
void setConditions(const edm::Handle< TriggerConditionCollection > &handleTriggerConditions)
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
void setIntensityBeam2(boost::uint32_t intensityBeam2)
Set the LHC beam 2 intensity.
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_
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...
void setLhcFill(boost::uint32_t lhcFill)
Set the LHC fill number.
std::vector< TriggerAlgorithm > TriggerAlgorithmCollection
Collection of TriggerAlgorithm.
const TriggerObjectCollection * objects() const
unsigned indexAlgorithm(const std::string &nameAlgorithm) const
Analysis-level HLTrigger filter class.
bool wasPhysDecl() const
Get the PhysicsDeclared GT bit.
boost::uint16_t bstMasterStatus_
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)
boost::uint32_t intensityBeam1() const
Get the LHC beam 1 intensity.
const TriggerPath * path(const std::string &namePath) const
boost::uint32_t intensityBeam2() const
Get the LHC beam 2 intensity.
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)
boost::uint32_t lhcFill_
LHC fill number.
TriggerPathRefVector objectPaths(const TriggerObjectRef &objectRef) const
Get a vector of references to all paths, which have a certain object assigned.
bool objectInCondition(const TriggerObjectRef &objectRef, const std::string &nameCondition) const
Checks, if an object was used in a certain condition given by name.
edm::RefProd< TriggerConditionCollection > TriggerConditionRefProd
Persistent reference to a TriggerConditionCollection product.
boost::uint16_t bstMasterStatus() const
Get the LHC master status.
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)
TriggerEvent()
Constructors and Desctructor.
const TriggerObjectMatch * triggerObjectMatchResult(const std::string &labelMatcher) const
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.
boost::uint32_t turnCount() const
Get the LHC beam turn counter.
std::vector< TriggerFilter > TriggerFilterCollection
Collection of TriggerFilter.
void setTurnCount(boost::uint32_t turnCount)
Set the LHC beam turn counter.
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.
bool filterInPath(const TriggerFilterRef &filterRef, const std::string &namePath) const
Checks, if a filter is assigned to and was run in a certain path given by name.
const TriggerFilterCollection * filters() const
TriggerFilterRefVector pathFilters(const std::string &namePath) const
Get a vector of references to all active HLT filters assigned to a certain path given by name...
bool objectInFilter(const TriggerObjectRef &objectRef, const std::string &labelFilter) const
Checks, if an object was used in a certain filter given by name.
edm::RefProd< TriggerAlgorithmCollection > TriggerAlgorithmRefProd
Persistent reference to a TriggerAlgorithmCollection product.
void setBeamMomentum(boost::uint16_t beamMomentum)
Set the LHC beam momentum.
bool wasError() const
Get the error flag.
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)
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...
product_type const * get() const
boost::uint32_t intensityBeam1_
LHC beam 1 intensity in ???
boost::uint32_t turnCount_
LHC beam turn counter.
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.
float bCurrentStop_
CMS magnet current in ??? at end of run.
void setIntensityBeam1(boost::uint32_t intensityBeam1)
Set the LHC beam 1 intensity.
TriggerObjectRefVector objects(int triggerObjectType) const
std::vector< TriggerObject > TriggerObjectCollection
Collection of TriggerObject.
const TriggerAlgorithm * algorithm(const std::string &nameAlgorithm) const
bool objectInPath(const TriggerObjectRef &objectRef, const std::string &namePath) const
Checks, if an object was used in a certain path given by name.
std::vector< TriggerCondition > TriggerConditionCollection
Collection of TriggerCondition.
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)
edm::RefProd< TriggerFilterCollection > TriggerFilterRefProd
Persistent reference to a TriggerFilterCollection product.
TriggerObjectMatchContainer objectMatchResults_
Table of references to pat::TriggerObjectMatch associations in event.
edm::RefProd< TriggerPathCollection > TriggerPathRefProd
Persistent reference to a TriggerPathCollection product.
boost::uint32_t lhcFill() const
Get the LHC fill number.
std::map< std::string, TriggerObjectMatchRefProd > TriggerObjectMatchContainer
Container to store references to matches from different producers in the trigger event.
void setPhysDecl(bool physDecl)
Set the PhysicsDeclared GT bit.
std::vector< TriggerPath > TriggerPathCollection
Collection of TriggerPath.
TriggerPathRefVector acceptedPaths() const
Get a vector of references to all succeeding HLT paths.
boost::uint16_t beamMode() const
Get the LHC beam mode.
void setError(bool error)
Set the error flag.
unsigned indexPath(const std::string &namePath) const
void setBstMasterStatus(boost::uint16_t bstMasterStatus)
Set the LHC master status.
boost::uint32_t intensityBeam2_
LHC beam 2 intensity in ???
bool wasRun() const
Get the run flag.
float bCurrentStop() const
Get the CMS magnet current at end of run.