list of HLT sequences
More...
#include <HLTSequenceList.h>
list of HLT sequences
Definition at line 40 of file HLTSequenceList.h.
◆ HLTSequenceList() [1/2]
TrigConf::HLTSequenceList::HLTSequenceList |
( |
| ) |
|
◆ HLTSequenceList() [2/2]
TrigConf::HLTSequenceList::HLTSequenceList |
( |
std::vector< HLTSequence * > & |
HLTSequenceList | ) |
|
constructor with configuration data
- Parameters
-
Definition at line 17 of file HLTSequenceList.cxx.
18 copy( sequenceList.begin(), sequenceList.end(), std::inserter(*
this,
begin()));
◆ ~HLTSequenceList()
TrigConf::HLTSequenceList::~HLTSequenceList |
( |
| ) |
|
◆ addHLTSequence()
void TrigConf::HLTSequenceList::addHLTSequence |
( |
HLTSequence * |
sequence | ) |
|
adds an HLTSequence to the menu
- Parameters
-
sequence | sequence to be added |
Definition at line 30 of file HLTSequenceList.cxx.
31 if(sequence==0)
return;
32 pair<iterator, bool> ins = insert(sequence);
34 throw runtime_error(
"Can't insert sequence '" + sequence->name() +
"', because a uniqueness constraint is violated");
◆ clear()
void TrigConf::HLTSequenceList::clear |
( |
| ) |
|
◆ compareTo()
Definition at line 89 of file HLTSequenceList.cxx.
90 DiffStruct *
ds =
new DiffStruct(
"SEQUENCE_LIST");
91 for(HLTSequence*
seq : *
this) {
92 const HLTSequence *o_seq = o->getSequence(
seq->name());
94 ds->addSub(
seq->compareTo(o_seq) );
96 ds->addLeftOnlySub(
"SEQUENCE",
seq->name() );
99 for(HLTSequence* o_seq : *o) {
102 ds->addRightOnlySub(
"SEQUENCE", o_seq->name() );
◆ getHashIdFromLabel()
bool TrigConf::HLTSequenceList::getHashIdFromLabel |
( |
const char * |
label, |
|
|
unsigned int & |
hashId |
|
) |
| |
find ID from name in the map m_IdToLabel
- Parameters
-
label | the trigger element name that has been found |
id | reference to the trigger element ID that has been found |
- Returns
true
if name has been found
Definition at line 76 of file HLTSequenceList.cxx.
78 index<seq_name_hash>::type::const_iterator
seq = byname.find(
label);
79 if(
seq != byname.end()) {
80 id = (*seq)->hashId();
◆ getLabel()
bool TrigConf::HLTSequenceList::getLabel |
( |
unsigned int |
hashId, |
|
|
std::string & |
label |
|
) |
| |
find name from ID in the map m_IdToLabel
- Parameters
-
id | trigger element ID |
label | reference to be set with the trigger element name that has been found |
- Returns
true
if ID has been found
Definition at line 62 of file HLTSequenceList.cxx.
64 index<seq_hash_id>::type::const_iterator
seq = byid.find(
id);
65 if(
seq != byid.end()) {
66 label = (*seq)->name();
◆ getSequence() [1/2]
Definition at line 53 of file HLTSequenceList.cxx.
55 index<seq_name_hash>::type::const_iterator
seq = byname.find(
name);
56 if(
seq == byname.end())
return 0;
◆ getSequence() [2/2]
counts the number of sequences in the menu
- Returns
- the sequences with given output TE (0 if not found)
Definition at line 45 of file HLTSequenceList.cxx.
47 index<seq_hash_id>::type::const_iterator
seq = byid.find(
id);
48 if(
seq == byid.end())
return 0;
◆ hasTE()
bool TrigConf::HLTSequenceList::hasTE |
( |
const std::string & |
name | ) |
|
◆ print()
void TrigConf::HLTSequenceList::print |
( |
const std::string & |
indent = "" , |
|
|
unsigned int |
detail = 1 |
|
) |
| const |
print the sequence list
Definition at line 112 of file HLTSequenceList.cxx.
114 cout <<
indent <<
"HLTSequenceList has " <<
size() <<
" sequences" << endl;
116 cout <<
indent <<
"--------------------------------------------------------------------------------" << endl;
117 for(HLTSequence*
seq : *
this)
119 cout <<
indent <<
"================================================================================" << endl;
◆ operator<<
The documentation for this class was generated from the following files: