#include <TrigSystem.h>
Public Member Functions | |
void | addDaqCrate (const std::string &daq, const std::string &crate) |
void | addDaqRole (const std::string &daq, const std::string &role) |
void | addMask (const std::string &id, const std::string &procRole) |
void | addProcCrate (const std::string &processor, const std::string &crate) |
void | addProcRole (const std::string &processor, const std::string &role) |
void | addProcSlot (const std::string &processor, const std::string &slot) |
void | addSetting (const std::string &type, const std::string &id, const std::string &value, const std::string &procRole, const std::string &delim="") |
void | addSettingTable (const std::string &id, const std::string &columns, const std::string &types, const std::vector< std::string > &rows, const std::string &procRole, const std::string &delim) |
void | configureSystemFromFiles (const std::string &hwCfgFile, const std::string &topCfgFile, const std::string &key) |
void | disableDaqProc (const std::string &daqProc) |
std::map< std::string, Mask > | getMasks (const std::string &proccessor) |
const std::map< std::string, std::string > & | getProcRole () |
const std::map< std::string, std::vector< std::string > > & | getRoleProcs () |
std::map< std::string, Setting > | getSettings (const std::string &processor) |
bool | isMasked (const std::string &proccessor, const std::string &id) |
bool | isProcEnabled (const std::string &proccessor) |
void | setConfigured (const bool state=true) |
void | setHwInfo () |
void | setPrintAllLogs () |
void | setSystemId (const std::string id) |
std::string | systemId () |
TrigSystem () | |
~TrigSystem () | |
Private Member Functions | |
bool | checkIdExistsAndSetSetting_ (std::vector< Setting > &vec, const std::string &id, const std::string &value, const std::string &procRole) |
bool | checkIdExistsAndSetSetting_ (std::vector< Setting > &vec, const std::string &id, const std::string &columns, const std::string &types, const std::vector< std::string > &rows, const std::string &procRole, const std::string &delim) |
Private Attributes | |
std::map< std::string, std::vector< std::string > > | crateProcs_ |
std::map< std::string, std::string > | daqttcCrate_ |
std::map< std::string, std::string > | daqttcRole_ |
bool | isConfigured_ |
std::string * | logText_ |
std::map< std::string, bool > | procEnabled_ |
std::map< std::string, std::vector< Mask > > | procMasks_ |
std::map< std::string, std::string > | procRole_ |
std::map< std::string, std::vector< Setting > > | procSettings_ |
std::map< std::string, int > | procSlot_ |
std::map< std::string, std::vector< std::string > > | roleDaqttcs_ |
std::map< std::string, std::vector< std::string > > | roleProcs_ |
std::string | sysId_ |
Definition at line 14 of file TrigSystem.h.
l1t::TrigSystem::TrigSystem | ( | ) |
l1t::TrigSystem::~TrigSystem | ( | ) |
void l1t::TrigSystem::addDaqCrate | ( | const std::string & | daq, |
const std::string & | crate | ||
) |
Definition at line 77 of file TrigSystem.cc.
References daqttcCrate_.
Referenced by l1t::XmlConfigReader::readHwDescription().
void l1t::TrigSystem::addDaqRole | ( | const std::string & | daq, |
const std::string & | role | ||
) |
Definition at line 65 of file TrigSystem.cc.
References daqttcRole_, and roleDaqttcs_.
Referenced by l1t::XmlConfigReader::readHwDescription().
void l1t::TrigSystem::addMask | ( | const std::string & | id, |
const std::string & | procRole | ||
) |
Definition at line 231 of file TrigSystem.cc.
References begin, crateProcs_, daqttcCrate_, daqttcRole_, procEnabled_, procMasks_, procRole_, procSlot_, roleDaqttcs_, and roleProcs_.
Referenced by l1t::XmlConfigReader::readContext().
void l1t::TrigSystem::addProcCrate | ( | const std::string & | processor, |
const std::string & | crate | ||
) |
Definition at line 60 of file TrigSystem.cc.
References crateProcs_.
Referenced by l1t::XmlConfigReader::readHwDescription().
void l1t::TrigSystem::addProcRole | ( | const std::string & | processor, |
const std::string & | role | ||
) |
Definition at line 39 of file TrigSystem.cc.
References procEnabled_, procRole_, and roleProcs_.
Referenced by L1TGlobalPrescalesVetosESProducer::L1TGlobalPrescalesVetosESProducer(), L1TGlobalPrescalesVetosOnlineProd::newObject(), L1TCaloParamsOnlineProd::newObject(), and l1t::XmlConfigReader::readHwDescription().
void l1t::TrigSystem::addProcSlot | ( | const std::string & | processor, |
const std::string & | slot | ||
) |
Definition at line 55 of file TrigSystem.cc.
References procSlot_.
Referenced by l1t::XmlConfigReader::readHwDescription().
void l1t::TrigSystem::addSetting | ( | const std::string & | type, |
const std::string & | id, | ||
const std::string & | value, | ||
const std::string & | procRole, | ||
const std::string & | delim = "" |
||
) |
Definition at line 82 of file TrigSystem.cc.
References begin, checkIdExistsAndSetSetting_(), logText_, procRole_, procSettings_, and roleProcs_.
Referenced by l1t::XmlConfigReader::readContext().
void l1t::TrigSystem::addSettingTable | ( | const std::string & | id, |
const std::string & | columns, | ||
const std::string & | types, | ||
const std::vector< std::string > & | rows, | ||
const std::string & | procRole, | ||
const std::string & | delim | ||
) |
Definition at line 131 of file TrigSystem.cc.
References begin, checkIdExistsAndSetSetting_(), logText_, procRole_, procSettings_, and roleProcs_.
Referenced by l1t::XmlConfigReader::readContext().
|
private |
Definition at line 194 of file TrigSystem.cc.
References newFWLiteAna::found.
Referenced by addSetting(), and addSettingTable().
|
private |
Definition at line 210 of file TrigSystem.cc.
References newFWLiteAna::found, and l1t::str2VecStr_().
void l1t::TrigSystem::configureSystemFromFiles | ( | const std::string & | hwCfgFile, |
const std::string & | topCfgFile, | ||
const std::string & | key | ||
) |
Definition at line 19 of file TrigSystem.cc.
References l1t::XmlConfigReader::buildGlobalDoc(), isConfigured_, l1t::XmlConfigReader::readContexts(), l1t::XmlConfigReader::readDOMFromFile(), l1t::XmlConfigReader::readRootElement(), and sysId_.
Referenced by L1TMuonBarrelParamsESProducer::L1TMuonBarrelParamsESProducer(), and L1TMuonGlobalParamsESProducer::L1TMuonGlobalParamsESProducer().
void l1t::TrigSystem::disableDaqProc | ( | const std::string & | daqProc | ) |
Definition at line 340 of file TrigSystem.cc.
References begin, crateProcs_, daqttcCrate_, daqttcRole_, procEnabled_, procRole_, roleDaqttcs_, and roleProcs_.
Referenced by l1t::XmlConfigReader::readContext(), and l1t::XmlConfigReader::readHwDescription().
std::map< std::string, Mask > l1t::TrigSystem::getMasks | ( | const std::string & | proccessor | ) |
Definition at line 304 of file TrigSystem.cc.
References isConfigured_, procMasks_, and procRole_.
Referenced by L1TMuonGlobalParamsHelper::loadFromOnline().
|
inline |
Definition at line 31 of file TrigSystem.h.
References procRole_.
Referenced by L1TMuonBarrelParamsHelper::configFromDB(), and L1TMuonGlobalParamsHelper::loadFromOnline().
|
inline |
Definition at line 32 of file TrigSystem.h.
References roleProcs_.
std::map< std::string, Setting > l1t::TrigSystem::getSettings | ( | const std::string & | processor | ) |
Definition at line 179 of file TrigSystem.cc.
References isConfigured_, procRole_, and procSettings_.
Referenced by L1TMuonBarrelParamsHelper::configFromDB(), L1TGlobalPrescalesVetosESProducer::L1TGlobalPrescalesVetosESProducer(), and L1TMuonGlobalParamsHelper::loadFromOnline().
bool l1t::TrigSystem::isMasked | ( | const std::string & | proccessor, |
const std::string & | id | ||
) |
Definition at line 319 of file TrigSystem.cc.
References isConfigured_, and procMasks_.
Referenced by L1TMuonGlobalParamsHelper::loadFromOnline().
bool l1t::TrigSystem::isProcEnabled | ( | const std::string & | proccessor | ) |
Definition at line 367 of file TrigSystem.cc.
References isConfigured_, and procEnabled_.
|
inline |
Definition at line 39 of file TrigSystem.h.
References isConfigured_.
Referenced by L1TGlobalPrescalesVetosESProducer::L1TGlobalPrescalesVetosESProducer(), L1TMuonGlobalParamsOnlineProd::newObject(), L1TMuonBarrelParamsOnlineProd::newObject(), and L1TMuonEndcapParamsOnlineProd::newObject().
void l1t::TrigSystem::setHwInfo | ( | ) |
|
inline |
Definition at line 41 of file TrigSystem.h.
References logText_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 38 of file TrigSystem.h.
References sysId_.
Referenced by l1t::XmlConfigReader::readHwDescription().
|
inline |
Definition at line 37 of file TrigSystem.h.
References sysId_.
Referenced by l1t::XmlConfigReader::readContext().
|
private |
Definition at line 46 of file TrigSystem.h.
Referenced by addMask(), addProcCrate(), and disableDaqProc().
|
private |
Definition at line 49 of file TrigSystem.h.
Referenced by addDaqCrate(), addMask(), and disableDaqProc().
|
private |
Definition at line 48 of file TrigSystem.h.
Referenced by addDaqRole(), addMask(), and disableDaqProc().
|
private |
Definition at line 55 of file TrigSystem.h.
Referenced by configureSystemFromFiles(), getMasks(), getSettings(), isMasked(), isProcEnabled(), and setConfigured().
|
private |
Definition at line 58 of file TrigSystem.h.
Referenced by addSetting(), addSettingTable(), setPrintAllLogs(), TrigSystem(), and ~TrigSystem().
|
private |
Definition at line 53 of file TrigSystem.h.
Referenced by addMask(), addProcRole(), disableDaqProc(), and isProcEnabled().
|
private |
Definition at line 52 of file TrigSystem.h.
Referenced by addMask(), getMasks(), and isMasked().
|
private |
Definition at line 41 of file TrigSystem.h.
Referenced by addMask(), addProcRole(), addSetting(), addSettingTable(), disableDaqProc(), getMasks(), getProcRole(), and getSettings().
|
private |
Definition at line 51 of file TrigSystem.h.
Referenced by addSetting(), addSettingTable(), and getSettings().
|
private |
Definition at line 44 of file TrigSystem.h.
Referenced by addMask(), and addProcSlot().
|
private |
Definition at line 47 of file TrigSystem.h.
Referenced by addDaqRole(), addMask(), and disableDaqProc().
|
private |
Definition at line 45 of file TrigSystem.h.
Referenced by addMask(), addProcRole(), addSetting(), addSettingTable(), disableDaqProc(), and getRoleProcs().
|
private |
Definition at line 56 of file TrigSystem.h.
Referenced by configureSystemFromFiles(), setSystemId(), and systemId().