18 copy( sequenceList.begin(), sequenceList.end(), std::inserter(*
this, begin()));
27 HLTSequenceContainer::clear();
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");
48 if(seq == byid.end())
return 0;
56 if(seq == byname.end())
return 0;
65 if(seq != byid.end()) {
66 label = (*seq)->name();
79 if(seq != byname.end()) {
80 id = (*seq)->hashId();
94 ds->addSub( seq->compareTo(o_seq) );
96 ds->addLeftOnlySub(
"SEQUENCE", seq->name() );
102 ds->addRightOnlySub(
"SEQUENCE", o_seq->name() );
114 cout << indent <<
"HLTSequenceList has " << size() <<
" sequences" << endl;
116 cout << indent <<
"--------------------------------------------------------------------------------" << endl;
118 seq->print(indent +
" ",
detail);
119 cout << indent <<
"================================================================================" << endl;
126 o <<
"- -- HLTSequenceList printout ------------------------------ " << std::endl;
128 o <<
"- ---------------------------------------------------------- " << std::endl;
DiffStruct * compareTo(const HLTSequenceList *o) const
bool hasTE(const std::string &name)
HLTSequence * getSequence(unsigned int id) const
counts the number of sequences in the menu
HLTSequenceList()
default constructor
~HLTSequenceList()
destructor
void addHLTSequence(HLTSequence *sequence)
adds an HLTSequence to the menu
void print(const std::string &indent="", unsigned int detail=1) const
print the sequence list
bool getLabel(unsigned int hashId, std::string &label)
find name from ID in the map m_IdToLabel
bool getHashIdFromLabel(const char *label, unsigned int &hashId)
find ID from name in the map m_IdToLabel
HLT sequence configuration information.
const std::string & name() const
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
std::string label(const std::string &format, int i)
std::ostream & operator<<(std::ostream &os, const TrigConf::IsolationLegacy &iso)