CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
l1t::TrigSystem Class Reference

#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, MaskgetMasks (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, SettinggetSettings (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_
 

Detailed Description

Definition at line 14 of file TrigSystem.h.

Constructor & Destructor Documentation

l1t::TrigSystem::TrigSystem ( )

Definition at line 5 of file TrigSystem.cc.

l1t::TrigSystem::~TrigSystem ( )

Definition at line 10 of file TrigSystem.cc.

Member Function Documentation

void l1t::TrigSystem::addDaqCrate ( const std::string &  daq,
const std::string &  crate 
)

Definition at line 77 of file TrigSystem.cc.

void l1t::TrigSystem::addDaqRole ( const std::string &  daq,
const std::string &  role 
)

Definition at line 65 of file TrigSystem.cc.

void l1t::TrigSystem::addMask ( const std::string &  id,
const std::string &  procRole 
)

Definition at line 231 of file TrigSystem.cc.

void l1t::TrigSystem::addProcCrate ( const std::string &  processor,
const std::string &  crate 
)

Definition at line 60 of file TrigSystem.cc.

void l1t::TrigSystem::addProcRole ( const std::string &  processor,
const std::string &  role 
)

Definition at line 39 of file TrigSystem.cc.

void l1t::TrigSystem::addProcSlot ( const std::string &  processor,
const std::string &  slot 
)

Definition at line 55 of file TrigSystem.cc.

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.

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.

bool l1t::TrigSystem::checkIdExistsAndSetSetting_ ( std::vector< Setting > &  vec,
const std::string &  id,
const std::string &  value,
const std::string &  procRole 
)
private

Definition at line 194 of file TrigSystem.cc.

bool l1t::TrigSystem::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

Definition at line 210 of file TrigSystem.cc.

void l1t::TrigSystem::configureSystemFromFiles ( const std::string &  hwCfgFile,
const std::string &  topCfgFile,
const std::string &  key 
)

Definition at line 19 of file TrigSystem.cc.

void l1t::TrigSystem::disableDaqProc ( const std::string &  daqProc)

Definition at line 340 of file TrigSystem.cc.

std::map< std::string, Mask > l1t::TrigSystem::getMasks ( const std::string &  proccessor)

Definition at line 304 of file TrigSystem.cc.

const std::map<std::string, std::string>& l1t::TrigSystem::getProcRole ( )
inline

Definition at line 31 of file TrigSystem.h.

References procRole_.

31 { return procRole_; };
std::map< std::string, std::string > procRole_
Definition: TrigSystem.h:41
const std::map<std::string, std::vector<std::string> >& l1t::TrigSystem::getRoleProcs ( )
inline

Definition at line 32 of file TrigSystem.h.

References roleProcs_.

32 { return roleProcs_; };
std::map< std::string, std::vector< std::string > > roleProcs_
Definition: TrigSystem.h:45
std::map< std::string, Setting > l1t::TrigSystem::getSettings ( const std::string &  processor)

Definition at line 179 of file TrigSystem.cc.

bool l1t::TrigSystem::isMasked ( const std::string &  proccessor,
const std::string &  id 
)

Definition at line 319 of file TrigSystem.cc.

bool l1t::TrigSystem::isProcEnabled ( const std::string &  proccessor)

Definition at line 367 of file TrigSystem.cc.

void l1t::TrigSystem::setConfigured ( const bool  state = true)
inline

Definition at line 39 of file TrigSystem.h.

References isConfigured_.

39 { isConfigured_=state; };
bool isConfigured_
Definition: TrigSystem.h:55
void l1t::TrigSystem::setHwInfo ( )
void l1t::TrigSystem::setPrintAllLogs ( )
inline

Definition at line 41 of file TrigSystem.h.

References logText_, and AlCaHLTBitMon_QueryRunRegistry::string.

void l1t::TrigSystem::setSystemId ( const std::string  id)
inline

Definition at line 38 of file TrigSystem.h.

References sysId_.

38 { sysId_=id; };
std::string sysId_
Definition: TrigSystem.h:56
std::string l1t::TrigSystem::systemId ( )
inline

Definition at line 37 of file TrigSystem.h.

References sysId_.

37 { return sysId_; };
std::string sysId_
Definition: TrigSystem.h:56

Member Data Documentation

std::map<std::string, std::vector<std::string> > l1t::TrigSystem::crateProcs_
private

Definition at line 46 of file TrigSystem.h.

std::map<std::string, std::string> l1t::TrigSystem::daqttcCrate_
private

Definition at line 49 of file TrigSystem.h.

std::map<std::string, std::string> l1t::TrigSystem::daqttcRole_
private

Definition at line 48 of file TrigSystem.h.

bool l1t::TrigSystem::isConfigured_
private

Definition at line 55 of file TrigSystem.h.

Referenced by setConfigured().

std::string* l1t::TrigSystem::logText_
private

Definition at line 58 of file TrigSystem.h.

Referenced by setPrintAllLogs().

std::map<std::string, bool> l1t::TrigSystem::procEnabled_
private

Definition at line 53 of file TrigSystem.h.

std::map<std::string, std::vector<Mask> > l1t::TrigSystem::procMasks_
private

Definition at line 52 of file TrigSystem.h.

std::map<std::string, std::string> l1t::TrigSystem::procRole_
private

Definition at line 41 of file TrigSystem.h.

Referenced by getProcRole().

std::map<std::string, std::vector<Setting> > l1t::TrigSystem::procSettings_
private

Definition at line 51 of file TrigSystem.h.

std::map<std::string, int> l1t::TrigSystem::procSlot_
private

Definition at line 44 of file TrigSystem.h.

std::map<std::string, std::vector<std::string> > l1t::TrigSystem::roleDaqttcs_
private

Definition at line 47 of file TrigSystem.h.

std::map<std::string, std::vector<std::string> > l1t::TrigSystem::roleProcs_
private

Definition at line 45 of file TrigSystem.h.

Referenced by getRoleProcs().

std::string l1t::TrigSystem::sysId_
private

Definition at line 56 of file TrigSystem.h.

Referenced by setSystemId(), and systemId().