1 #ifndef DataFormats_PatCandidates_TriggerEvent_h 2 #define DataFormats_PatCandidates_TriggerEvent_h 32 #include <boost/cstdint.hpp> const TriggerObjectMatchContainer * triggerObjectMatchResults() const
Get all trigger matches.
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.
const TriggerObjectRefVector objectRefs() const
void setBCurrentStop(float bCurrentStop)
Set the CMS magnet current at end of run.
boost::uint16_t beamMomentum() const
Get the LHC beam momentum.
boost::uint16_t beamMode_
const std::string & nameHltTable() const
Get the name of the HLT trigger table.
boost::uint16_t beamMomentum_
LHC beam momentum in GeV.
std::vector< std::string > triggerMatchers() const
Get a list of all linked trigger matches.
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?
bool error_
Was HLT in error?
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.
TriggerFilterRefVector acceptedFilters() const
Get a vector of references to all succeeding HLT filters.
edm::RefProd< TriggerObjectCollection > TriggerObjectRefProd
Persistent reference to a TriggerObjectCollection product.
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.
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 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.
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)
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...
boost::uint32_t intensityBeam1() const
Get the LHC beam 1 intensity.
const TriggerPath * path(const std::string &namePath) const
const TriggerFilterRef filterRef(const std::string &labelFilter) 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.
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)
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.
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.
const TriggerAlgorithmRef algorithmRef(const std::string &nameAlgorithm) const
std::vector< TriggerFilter > TriggerFilterCollection
Collection of TriggerFilter.
void setTurnCount(boost::uint32_t turnCount)
Set the LHC beam turn counter.
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.
const TriggerFilterCollection * filters() const
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.
const TriggerAlgorithmRefVector algorithmRefs() const
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...
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.
const TriggerConditionRefVector conditionRefs() const
float bCurrentStop_
CMS magnet current in ??? at end of run.
product_type const * get() const
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
TriggerPathRefVector filterPaths(const TriggerFilterRef &filterRef, bool firing=true) const
Get a vector of references to all paths, which have a certain filter assigned.
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.
const TriggerConditionRef conditionRef(const std::string &nameCondition) const
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.
const TriggerPathRefVector pathRefs() const
float bCurrentStop() const
Get the CMS magnet current at end of run.