#include <TriggerSystem.h>
Public Member Functions | |
void | addDaq (const char *daq, const char *role, const char *crate) |
void | addMask (const char *id, const char *procOrRoleOrDaq) |
void | addParameter (const char *id, const char *procOrRole, const char *type, const char *value, const char *delim=",") |
void | addProcessor (const char *processor, const char *role, const char *crate, const char *slot) |
void | addTable (const char *id, const char *procOrRole, const char *columns, const char *types, const std::vector< std::string > &rows, const char *delim) |
void | configureSystemFromFiles (const char *hwCfgFile, const char *topCfgFile, const char *key) |
void | disableProcOrRoleOrDaq (const char *procOrRoleOrDaq) |
const std::map< std::string, Mask > & | getMasks (const char *processor) const |
const std::map< std::string, Parameter > & | getParameters (const char *processor) const |
const std::map< std::string, std::string > & | getProcToRoleAssignment (void) const noexcept |
const std::map< std::string, std::set< std::string > > & | getRoleToProcsAssignment (void) const noexcept |
bool | isMasked (const char *proccessor, const char *id) const |
bool | isProcEnabled (const char *proccessor) const |
void | setConfigured (bool state=true) noexcept |
void | setLogStream (std::ostream *s) const noexcept |
void | setSystemId (const char *id) noexcept |
std::string | systemId (void) const noexcept |
TriggerSystem (void) | |
~TriggerSystem (void) | |
Private Attributes | |
std::map< std::string, std::set< std::string > > | crateForProcs |
std::map< std::string, std::string > | daqttcToCrate |
std::map< std::string, std::string > | daqttcToRole |
bool | isConfigured |
std::ostream * | logs |
std::map< std::string, bool > | procEnabled |
std::map< std::string, std::map< std::string, Mask > > | procMasks |
std::map< std::string, std::map< std::string, Parameter > > | procParameters |
std::map< std::string, std::string > | procToRole |
std::map< std::string, std::string > | procToSlot |
std::map< std::string, std::set< std::string > > | roleForDaqttcs |
std::map< std::string, std::set< std::string > > | roleForProcs |
std::string | sysId |
Definition at line 14 of file TriggerSystem.h.
|
inline |
Definition at line 76 of file TriggerSystem.h.
|
inline |
Definition at line 81 of file TriggerSystem.h.
void l1t::TriggerSystem::addDaq | ( | const char * | daq, |
const char * | role, | ||
const char * | crate | ||
) |
Definition at line 43 of file TriggerSystem.cc.
Referenced by l1t::XmlConfigParser::readHwDescription().
void l1t::TriggerSystem::addMask | ( | const char * | id, |
const char * | procOrRoleOrDaq | ||
) |
Definition at line 179 of file TriggerSystem.cc.
References triggerObjects_cff::id, RecoTauDiscriminantConfiguration::mask, and proc.
Referenced by l1t::XmlConfigParser::readContext().
void l1t::TriggerSystem::addParameter | ( | const char * | id, |
const char * | procOrRole, | ||
const char * | type, | ||
const char * | value, | ||
const char * | delim = "," |
||
) |
Definition at line 54 of file TriggerSystem.cc.
References eostools::move(), proc, and tmp.
Referenced by editorTools.UserCodeTool::__init__(), metTools.AddMETCollection::__init__(), trackTools.MakeAODTrackCandidates::__init__(), HiCoreTools.RestrictInputToAOD::__init__(), coreTools.RunOnData::__init__(), runJetUncertainties.RunJetUncertainties::__init__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties::__init__(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool::__init__(), editorTools.ChangeSource::__init__(), cmsswVersionTools.PickRelValInputFiles::__init__(), HiCoreTools.RemoveMCMatching::__init__(), coreTools.RemoveMCMatching::__init__(), trackTools.MakePATTrackCandidates::__init__(), trigTools.SwitchOnTrigger::__init__(), HiCoreTools.RemoveAllPATObjectsBut::__init__(), HiCoreTools.RemoveSpecificPATObjects::__init__(), trigTools.SwitchOnTriggerStandAlone::__init__(), trackTools.MakeTrackCandidates::__init__(), tauTools.AddTauCollection::__init__(), trigTools.SwitchOnTriggerMatching::__init__(), HiCoreTools.RemoveCleaning::__init__(), HiCoreTools.AddCleaning::__init__(), trigTools.SwitchOnTriggerMatchingStandAlone::__init__(), trigTools.SwitchOnTriggerMatchEmbedding::__init__(), jetTools.AddJetCollection::__init__(), jetTools.SwitchJetCollection::__init__(), jetTools.UpdateJetCollection::__init__(), jetTools.AddJetID::__init__(), jetTools.SetTagInfos::__init__(), and l1t::XmlConfigParser::readContext().
void l1t::TriggerSystem::addProcessor | ( | const char * | processor, |
const char * | role, | ||
const char * | crate, | ||
const char * | slot | ||
) |
Definition at line 27 of file TriggerSystem.cc.
References edm::eventsetup::heterocontainer::insert().
Referenced by L1TGlobalPrescalesVetosESProducer::L1TGlobalPrescalesVetosESProducer(), L1TCaloParamsOnlineProd::newObject(), L1TGlobalPrescalesVetosOnlineProd::newObject(), and l1t::XmlConfigParser::readHwDescription().
void l1t::TriggerSystem::addTable | ( | const char * | id, |
const char * | procOrRole, | ||
const char * | columns, | ||
const char * | types, | ||
const std::vector< std::string > & | rows, | ||
const char * | delim | ||
) |
Definition at line 113 of file TriggerSystem.cc.
References eostools::move(), proc, and tmp.
Referenced by l1t::XmlConfigParser::readContext().
void l1t::TriggerSystem::configureSystemFromFiles | ( | const char * | hwCfgFile, |
const char * | topCfgFile, | ||
const char * | key | ||
) |
Definition at line 8 of file TriggerSystem.cc.
References l1t::XmlConfigParser::buildGlobalDoc(), l1t::XmlConfigParser::readContexts(), l1t::XmlConfigParser::readDOMFromFile(), and l1t::XmlConfigParser::readRootElement().
Referenced by L1TMuonBarrelParamsESProducer::L1TMuonBarrelParamsESProducer(), and L1TMuonGlobalParamsESProducer::L1TMuonGlobalParamsESProducer().
void l1t::TriggerSystem::disableProcOrRoleOrDaq | ( | const char * | procOrRoleOrDaq | ) |
Definition at line 291 of file TriggerSystem.cc.
References proc.
Referenced by l1t::XmlConfigParser::readContext(), and l1t::XmlConfigParser::readHwDescription().
const map< string, Mask > & l1t::TriggerSystem::getMasks | ( | const char * | processor | ) | const |
Definition at line 271 of file TriggerSystem.cc.
Referenced by getRoleToProcsAssignment().
const map< string, Parameter > & l1t::TriggerSystem::getParameters | ( | const char * | processor | ) | const |
Definition at line 168 of file TriggerSystem.cc.
Referenced by L1TMuonBarrelParamsHelper::configFromDB(), L1TMuonEndCapObjectKeysOnlineProd::fillObjectKeys(), getRoleToProcsAssignment(), L1TGlobalPrescalesVetosESProducer::L1TGlobalPrescalesVetosESProducer(), L1TMuonGlobalParamsHelper::loadFromOnline(), L1TMuonEndCapParamsOnlineProd::newObject(), L1TCaloParamsOnlineProd::newObject(), and L1TGlobalPrescalesVetosOnlineProd::newObject().
|
inlinenoexcept |
Definition at line 61 of file TriggerSystem.h.
References procToRole.
Referenced by L1TMuonBarrelParamsHelper::configFromDB(), and L1TMuonGlobalParamsHelper::loadFromOnline().
|
inlinenoexcept |
Definition at line 62 of file TriggerSystem.h.
References getMasks(), getParameters(), isMasked(), isProcEnabled(), and roleForProcs.
bool l1t::TriggerSystem::isMasked | ( | const char * | proccessor, |
const char * | id | ||
) | const |
Definition at line 282 of file TriggerSystem.cc.
References funct::m, and RecoTauDiscriminantConfiguration::mask.
Referenced by getRoleToProcsAssignment(), and L1TMuonGlobalParamsHelper::loadFromOnline().
bool l1t::TriggerSystem::isProcEnabled | ( | const char * | proccessor | ) | const |
Definition at line 352 of file TriggerSystem.cc.
Referenced by getRoleToProcsAssignment().
|
inlinenoexcept |
Definition at line 73 of file TriggerSystem.h.
Referenced by L1TMuonEndCapObjectKeysOnlineProd::fillObjectKeys(), L1TGlobalPrescalesVetosESProducer::L1TGlobalPrescalesVetosESProducer(), L1TMuonGlobalParamsOnlineProd::newObject(), L1TMuonEndCapParamsOnlineProd::newObject(), L1TMuonBarrelParamsOnlineProd::newObject(), L1TCaloParamsOnlineProd::newObject(), and L1TGlobalPrescalesVetosOnlineProd::newObject().
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 71 of file TriggerSystem.h.
References triggerObjects_cff::id.
Referenced by l1t::XmlConfigParser::readHwDescription().
|
inlinenoexcept |
Definition at line 70 of file TriggerSystem.h.
References sysId.
Referenced by l1t::XmlConfigParser::readContext().
|
private |
Definition at line 24 of file TriggerSystem.h.
|
private |
Definition at line 22 of file TriggerSystem.h.
|
private |
Definition at line 21 of file TriggerSystem.h.
|
private |
Definition at line 30 of file TriggerSystem.h.
|
mutableprivate |
Definition at line 31 of file TriggerSystem.h.
|
private |
Definition at line 20 of file TriggerSystem.h.
|
private |
Definition at line 28 of file TriggerSystem.h.
|
private |
Definition at line 27 of file TriggerSystem.h.
|
private |
Definition at line 18 of file TriggerSystem.h.
Referenced by getProcToRoleAssignment().
|
private |
Definition at line 19 of file TriggerSystem.h.
|
private |
Definition at line 25 of file TriggerSystem.h.
|
private |
Definition at line 23 of file TriggerSystem.h.
Referenced by getRoleToProcsAssignment().
|
private |
Definition at line 16 of file TriggerSystem.h.
Referenced by systemId().