#include <Menu.h>
|
| Menu () |
|
virtual | ~Menu () override |
|
item_by_ctpid_t & | item_by_ctpid () |
|
const item_by_ctpid_t & | item_by_ctpid () const |
|
item_by_name_t & | item_by_name () |
|
const item_by_name_t & | item_by_name () const |
|
void | addTriggerItem (TriggerItem *ti) |
|
const ItemContainer & | itemVector () const |
|
const ItemContainer & | items () const |
|
TriggerItem * | findTriggerItem (int ctpid) const |
|
TriggerItem * | item (int ctpid) const |
|
TriggerItem * | item (const std::string &name) const |
|
const std::vector< ThresholdMonitor * > & | moncountVector () const |
|
const std::vector< PIT * > & | pitVector () const |
|
const std::vector< TIP * > & | tipVector () const |
|
const std::map< unsigned int, std::string > & | lutOutputNames () const |
|
const ThresholdConfig & | thresholdConfig () const |
|
const CaloInfo & | caloInfo () const |
|
ThresholdConfig & | thresholdConfig () |
|
std::vector< uint16_t > | bunchgroupMask () const |
|
void | setCaloInfo (const CaloInfo &ci) |
|
const std::vector< TriggerThreshold * > & | thresholdVector () const |
|
void | addTriggerThreshold (TriggerThreshold *tt) |
|
void | addThresholdMonitor (ThresholdMonitor *thrm) |
|
ThresholdMonitor * | findThresholdMonitor (unsigned int id) |
|
void | addLutOutputName (unsigned int, const std::string &) |
|
void | setLutOutputNames (const std::map< unsigned int, std::string > &lut) |
|
void | addPit (PIT *pit) |
|
PIT * | findPIT (unsigned int id) |
|
void | addTip (TIP *tip) |
|
TIP * | findTIP (unsigned int id) |
|
int | size () const |
|
virtual void | print (const std::string &indent="", unsigned int detail=1) const override |
|
void | writeXMLItems (std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const |
|
void | writeXMLThresholds (std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const |
|
void | writeXMLMonCounters (std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const |
|
DiffStruct * | compareTo (const Menu *o) const |
|
void | clear () |
|
std::vector< TrigConf::TriggerItem * > | itemsV () const |
|
unsigned int | lvl1MasterTableId () const |
|
void | setLvl1MasterTableId (unsigned int id) |
|
int | superMasterTableId () const |
|
unsigned int | smk () const |
|
unsigned int | id () const |
|
const std::string & | name () const |
|
const std::string & | comment () const |
|
unsigned int | version () const |
|
void | setSuperMasterTableId (int id) |
|
void | setSMK (int id) |
|
void | setId (unsigned int id) |
|
void | setName (const std::string &name) |
|
void | setVersion (unsigned int version) |
|
void | setComment (const std::string &c) |
|
void | printNameIdV (const std::string &indent="") const |
|
virtual std::string | __str__ () const |
|
Definition at line 49 of file Menu.h.
◆ Menu()
◆ ~Menu()
TrigConf::Menu::~Menu |
( |
| ) |
|
|
overridevirtual |
◆ __str__()
string TrigConfData::__str__ |
( |
| ) |
const |
|
virtualinherited |
◆ addLutOutputName()
void TrigConf::Menu::addLutOutputName |
( |
unsigned int |
lutCounter, |
|
|
const std::string & |
lutCondition |
|
) |
| |
Definition at line 74 of file Menu.cxx.
76 cerr <<
"WARNING Menu: insertion of LUT output (counter " << lutCounter <<
", name " << lutCounter <<
") failed, uniqueness constraint violated." << endl;
79 m_LUT[lutCounter] = lutCondition;
◆ addPit()
void TrigConf::Menu::addPit |
( |
PIT * |
pit | ) |
|
◆ addThresholdMonitor()
◆ addTip()
void TrigConf::Menu::addTip |
( |
TIP * |
tip | ) |
|
◆ addTriggerItem()
void TrigConf::Menu::addTriggerItem |
( |
TriggerItem * |
ti | ) |
|
Definition at line 48 of file Menu.cxx.
54 cerr <<
"FATAL Menu: insertion of TriggerItem (" << ti->
name() <<
", ctp ID=" << ti->
ctpId() <<
") failed, uniqueness constraint violated." << endl;
55 throw runtime_error(
"Menu insertion of TriggerItem failed");
◆ addTriggerThreshold()
◆ bunchgroupMask()
std::vector< uint16_t > TrigConf::Menu::bunchgroupMask |
( |
| ) |
const |
Definition at line 40 of file Menu.cxx.
41 std::vector<uint16_t> bgmask(512);
43 bgmask[
item->ctpId()] =
item->bunchgroupMask();
◆ caloInfo()
◆ clear()
void TrigConf::Menu::clear |
( |
| ) |
|
◆ comment()
const std::string& TrigConf::TrigConfData::comment |
( |
| ) |
const |
|
inlineinherited |
◆ compareTo()
Definition at line 134 of file Menu.cxx.
140 ds->addSub(
item->compareTo(o_item) );
142 ds->addLeftOnlySub(
"TriggerItem",
item->name() );
148 ds->addRightOnlySub(
"TriggerItem", o_item->name() );
◆ findPIT()
Definition at line 107 of file Menu.cxx.
109 if( pit->id()==
id )
return pit;
◆ findThresholdMonitor()
Definition at line 100 of file Menu.cxx.
102 if( thrm->id()==
id )
return thrm;
◆ findTIP()
Definition at line 114 of file Menu.cxx.
116 if( tip->id()==
id )
return tip;
◆ findTriggerItem()
TriggerItem* TrigConf::Menu::findTriggerItem |
( |
int |
ctpid | ) |
const |
|
inline |
Definition at line 64 of file Menu.h.
64 {
return item(ctpid); }
◆ id()
unsigned int TrigConf::TrigConfData::id |
( |
| ) |
const |
|
inlineinherited |
◆ indent()
std::ostream & TrigConfData::indent |
( |
std::ostream & |
o, |
|
|
int |
lvl, |
|
|
int |
size |
|
) |
| const |
|
protectedinherited |
◆ item() [1/2]
Definition at line 92 of file Menu.cxx.
95 if(
item == byname.end())
return 0;
◆ item() [2/2]
Definition at line 84 of file Menu.cxx.
87 if(
item == byctpid.end())
return 0;
◆ item_by_ctpid() [1/2]
◆ item_by_ctpid() [2/2]
◆ item_by_name() [1/2]
◆ item_by_name() [2/2]
◆ items()
◆ itemsV()
◆ itemVector()
◆ lutOutputNames()
const std::map<unsigned int, std::string>& TrigConf::Menu::lutOutputNames |
( |
| ) |
const |
|
inline |
◆ lvl1MasterTableId()
unsigned int TrigConf::L1DataBaseclass::lvl1MasterTableId |
( |
| ) |
const |
|
inlineinherited |
◆ moncountVector()
◆ name()
const std::string& TrigConf::TrigConfData::name |
( |
| ) |
const |
|
inlineinherited |
◆ pitVector()
const std::vector<PIT*>& TrigConf::Menu::pitVector |
( |
| ) |
const |
|
inline |
◆ print()
void TrigConf::Menu::print |
( |
const std::string & |
indent = "" , |
|
|
unsigned int |
detail = 1 |
|
) |
| const |
|
overridevirtual |
Implements TrigConf::TrigConfData.
Definition at line 211 of file Menu.cxx.
222 cout <<
indent <<
"==================================" << endl;
224 cout <<
indent <<
"==================================" << endl;
228 cout <<
indent <<
"==================================" << endl;
229 cout <<
indent <<
"Trigger Thresholds:" << endl;
230 cout <<
indent <<
"==================================" << endl;
235 cout <<
indent <<
"==================================" << endl;
236 cout <<
indent <<
" The ThresholdMonitorVector:" << endl;
237 cout <<
indent <<
"==================================" << endl;
239 sort(sortedMon.begin(),sortedMon.end(),compMonByID);
245 cout <<
indent <<
"==================================" << endl;
246 cout <<
indent <<
" PITs:" << endl;
247 cout <<
indent <<
"==================================" << endl;
249 sort(sortedPITs.begin(),sortedPITs.end(),compPIT);
250 for(
PIT* pit : sortedPITs)
255 cout <<
indent <<
"==================================" << endl;
256 cout <<
indent <<
" TIPs:" << endl;
257 cout <<
indent <<
"==================================" << endl;
259 sort(sortedTIPs.begin(),sortedTIPs.end(),compTIP);
260 for(
TIP* tip : sortedTIPs)
265 cout <<
indent <<
"==================================" << endl;
266 cout <<
indent <<
" TriggerType summary:" << endl;
267 cout <<
indent <<
"==================================" << endl;
268 for (
int i=0;
i<8; ++
i) {
269 cout <<
indent <<
"TriggerType bit " <<
i << endl;
271 if (
item->isTriggerTypeBitOn(
i))
272 cout <<
indent <<
" " <<
item->name() << endl;
276 cout <<
indent <<
"==================================" << endl;
277 cout <<
indent <<
" BunchGroup mask summary:" << endl;
278 cout <<
indent <<
"==================================" << endl;
281 cout <<
indent <<
" ctpid=" << setw(3) <<
i++ <<
": bgmask=" <<
uint2bin(
m, 16) << endl;
◆ printNameIdV()
void TrigConfData::printNameIdV |
( |
const std::string & |
indent = "" | ) |
const |
|
inherited |
◆ setCaloInfo()
◆ setComment()
void TrigConf::TrigConfData::setComment |
( |
const std::string & |
c | ) |
|
|
inlineinherited |
◆ setId()
void TrigConf::TrigConfData::setId |
( |
unsigned int |
id | ) |
|
|
inlineinherited |
◆ setLutOutputNames()
void TrigConf::Menu::setLutOutputNames |
( |
const std::map< unsigned int, std::string > & |
lut | ) |
|
|
inline |
◆ setLvl1MasterTableId()
void TrigConf::L1DataBaseclass::setLvl1MasterTableId |
( |
unsigned int |
id | ) |
|
|
inlineinherited |
◆ setName()
void TrigConf::TrigConfData::setName |
( |
const std::string & |
name | ) |
|
|
inlineinherited |
◆ setSMK()
void TrigConf::TrigConfData::setSMK |
( |
int |
id | ) |
|
|
inlineinherited |
◆ setSuperMasterTableId()
void TrigConf::TrigConfData::setSuperMasterTableId |
( |
int |
id | ) |
|
|
inlineinherited |
◆ setVersion()
void TrigConf::TrigConfData::setVersion |
( |
unsigned int |
version | ) |
|
|
inlineinherited |
◆ size()
int TrigConf::Menu::size |
( |
| ) |
const |
|
inline |
◆ smk()
unsigned int TrigConf::TrigConfData::smk |
( |
| ) |
const |
|
inlineinherited |
◆ superMasterTableId()
int TrigConf::TrigConfData::superMasterTableId |
( |
| ) |
const |
|
inlineinherited |
◆ thresholdConfig() [1/2]
◆ thresholdConfig() [2/2]
◆ thresholdVector()
◆ tipVector()
const std::vector<TIP*>& TrigConf::Menu::tipVector |
( |
| ) |
const |
|
inline |
◆ version()
unsigned int TrigConf::TrigConfData::version |
( |
| ) |
const |
|
inlineinherited |
◆ writeXMLItems()
void TrigConf::Menu::writeXMLItems |
( |
std::ostream & |
xmlfile, |
|
|
int |
indentLevel = 0 , |
|
|
int |
indentWidth = 2 |
|
) |
| const |
Definition at line 289 of file Menu.cxx.
290 indent(xmlfile, indentLevel, indentWidth)
291 <<
"<TriggerMenu name=\"" <<
name()
292 <<
"\" phase=\"lumi\">" << endl;
294 item->writeXML(xmlfile, indentLevel+1, indentWidth);
295 indent(xmlfile, indentLevel, indentWidth) <<
"</TriggerMenu>" << endl;
◆ writeXMLMonCounters()
void TrigConf::Menu::writeXMLMonCounters |
( |
std::ostream & |
xmlfile, |
|
|
int |
indentLevel = 0 , |
|
|
int |
indentWidth = 2 |
|
) |
| const |
Definition at line 315 of file Menu.cxx.
316 indent(xmlfile, indentLevel, indentWidth) <<
"<TriggerCounterList>" << endl;
319 sort(sortedMonitors.begin(),sortedMonitors.end(),compMon);
322 mon->writeXML(xmlfile, indentLevel+1, indentWidth);
323 indent(xmlfile, indentLevel, indentWidth) <<
"</TriggerCounterList>" << endl;
◆ writeXMLThresholds()
void TrigConf::Menu::writeXMLThresholds |
( |
std::ostream & |
xmlfile, |
|
|
int |
indentLevel = 0 , |
|
|
int |
indentWidth = 2 |
|
) |
| const |
Definition at line 301 of file Menu.cxx.
302 indent(xmlfile, indentLevel, indentWidth) <<
"<TriggerThresholdList>" << endl;
305 sort(sortedThresholds.begin(),sortedThresholds.end(),compThr);
308 if(!thr->isInternal())
309 thr->writeXML(xmlfile, indentLevel+1, indentWidth);
311 indent(xmlfile, indentLevel, indentWidth) <<
"</TriggerThresholdList>" << endl;
◆ m_comment
std::string TrigConf::TrigConfData::m_comment |
|
privateinherited |
◆ m_id
unsigned int TrigConf::TrigConfData::m_id |
|
privateinherited |
◆ m_LUT
std::map<unsigned int, std::string> TrigConf::Menu::m_LUT |
|
private |
◆ m_Lvl1MasterId
unsigned int TrigConf::L1DataBaseclass::m_Lvl1MasterId |
|
privateinherited |
◆ m_name
std::string TrigConf::TrigConfData::m_name |
|
privateinherited |
◆ m_PITs
std::vector<PIT*> TrigConf::Menu::m_PITs |
|
private |
◆ m_smk
unsigned int TrigConf::TrigConfData::m_smk |
|
privateinherited |
◆ m_ThresholdConfig
◆ m_ThresholdMonitorVector
◆ m_TIPs
std::vector<TIP*> TrigConf::Menu::m_TIPs |
|
private |
◆ m_TriggerItemVector
◆ m_version
unsigned int TrigConf::TrigConfData::m_version |
|
privateinherited |
The documentation for this class was generated from the following files: