ATLAS Offline Software
Loading...
Searching...
No Matches
TrigConf::HLTChain Class Reference

HLT chain configuration information. More...

#include <HLTChain.h>

Inheritance diagram for TrigConf::HLTChain:

Public Member Functions

 HLTChain (void)
 default constructor
 HLTChain (const std::string &chain_name, int chain_counter, int chain_version, const std::string &level, const std::string &lower_chain_name, int lower_chain_counter, std::vector< HLTSignature * > &&signatureList)
 constructor with configuration data
 HLTChain (const HLTChain &ch)
 copy constructor
virtual ~HLTChain () override
 destructor
const std::string & chain_name () const
int chain_counter () const
int chain_version () const
const std::string & level () const
HLTLevel level_enum () const
const std::string & lower_chain_name () const
int lower_chain_counter () const
unsigned int chain_hash_id () const
unsigned int lower_chain_hash_id () const
int EB_after_step () const
const std::vector< size_t > & leg_multiplicities () const
bool hasMultipleLowerChains () const
const std::vector< int > & lower_chain_counters () const
std::vector< unsigned int > lower_chain_hash_ids () const
std::vector< HLTTriggerType * > & triggerTypeList ()
const std::vector< HLTTriggerType * > & triggerTypeList () const
HLTChainset_chain_name (const std::string &chain_name)
HLTChainset_chain_counter (int chain_counter)
HLTChainset_chain_version (int chain_version)
HLTChainset_level (const std::string &level)
HLTChainset_lower_chain_name (const std::string &lower_chain_name)
HLTChainset_lower_chain_counter (int lower_chain_counter)
HLTChainset_lower_chain_counters (const std::vector< int > &low_ccs)
HLTChainset_signatureList (const std::vector< HLTSignature * > &sigList)
HLTChainset_triggerTypeList (const std::vector< HLTTriggerType * > &trigList)
HLTChainset_groupList (const std::set< std::string > &groups)
HLTChainset_EB_after_step (int EB_after_step)
HLTChainset_leg_multiplicities (const std::vector< size_t > &mult)
std::vector< HLTSignature * > & signatureList ()
const std::vector< HLTSignature * > & signatureList () const
const std::vector< HLTSignature * > & signatures () const
unsigned int lastStep () const
void shiftStepCounter (int shift)
void addStream (HLTStreamTag *)
void clearStreams ()
const std::vector< HLTStreamTag * > & streams () const
const std::vector< HLTStreamTag * > & streamTagList () const __attribute__((deprecated))
const std::vector< HLTStreamTag * > & streams_orig () const
std::pair< bool, float > stream_prescale (const std::string &streamName) const
const std::set< std::string > & groups () const
const std::set< std::string > & groupList () const __attribute__((deprecated))
void addGroup (const std::string &group)
void clearGroups ()
HLTChainset_prescales (const HLTPrescale &prescales)
HLTChainset_prescale (float prescale)
HLTChainset_rerun_prescale (float rerun_prescale)
HLTChainset_pass_through (float pass_through)
HLTPrescaleprescales ()
const HLTPrescaleprescales () const
float prescale () const
float pass_through () const
std::pair< bool, float > rerun_prescale (const std::string &targetName) const
float rerun_prescale () const __attribute__((deprecated))
bool operator< (const HLTChain &e) const
void createSignatureLabels ()
 label the signatures
void print (const std::string &indent="", unsigned int detail=1) const override
 print the chain
void writeXML (std::ofstream &xmlfile)
DiffStructcompareTo (const HLTChain *o) const
std::string __str__ () const override
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

Public Attributes

struct { 
   unsigned int   l2 {0} 
   unsigned int   ef {0} 
mergeCounter

Protected Member Functions

std::ostream & indent (std::ostream &o, int lvl, int size) const

Private Attributes

unsigned int m_chain_hash_id
 hash value from m_chain_name, this is used to identify the chain in the HLTResult
int m_chain_counter
 chain counter
int m_chain_version
 chain version
std::string m_level
 trigger level
std::string m_lower_chain_name
 name of the lower trigger chain (or the LVL1 trigger item)
int m_lower_chain_counter
 counter of the lower trigger chain (or the ID of the LVL1 trigger item)
std::vector< int > m_lower_chain_counters
 counters of the lower trigger items if more than 1
unsigned int m_lower_chain_hash_id
 hash value from m_lower_chain_name, this is used to match to a chain from the previous trigger level
int m_EB_after_step
 EB_after_step flag.
std::vector< size_t > m_leg_multiplicities
 Number of objects required per leg.
HLTPrescale m_prescales
std::vector< HLTSignature * > m_HLTSignatureList
std::vector< HLTTriggerType * > m_HLTTriggerTypeList
std::set< std::string > m_groups
std::vector< HLTStreamTag * > m_streams_orig
std::vector< HLTStreamTag * > m_streams
std::unordered_map< std::string, HLTStreamTag * > m_streams_map
unsigned int m_smk
unsigned int m_id
std::string m_name
unsigned int m_version
std::string m_comment

Friends

std::ostream & operator<< (std::ostream &, const HLTChain &)

Detailed Description

HLT chain configuration information.

Definition at line 35 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

Constructor & Destructor Documentation

◆ HLTChain() [1/3]

TrigConf::HLTChain::HLTChain ( void )

default constructor

Definition at line 28 of file TrigConfHLTData/Root/HLTChain.cxx.

28 :
33 m_level(""),
38{}
unsigned int m_lower_chain_hash_id
hash value from m_lower_chain_name, this is used to match to a chain from the previous trigger level
std::string m_lower_chain_name
name of the lower trigger chain (or the LVL1 trigger item)
unsigned int m_chain_hash_id
hash value from m_chain_name, this is used to identify the chain in the HLTResult
int m_lower_chain_counter
counter of the lower trigger chain (or the ID of the LVL1 trigger item)
TrigConfData(const std::string &name="")

◆ HLTChain() [2/3]

HLTChain::HLTChain ( const std::string & chain_name,
int chain_counter,
int chain_version,
const std::string & level,
const std::string & lower_chain_name,
int lower_chain_counter,
std::vector< HLTSignature * > && signatureList )

constructor with configuration data

Parameters
chain_namechain name
chain_counterchain counter
chain_versionchain version
leveltrigger level
lower_chain_namename of lower chain
lower_chain_countercounter of lower chain
prescaleprescale value of the chain
pass_throughpass_through flag of the chain
signatureListlist of signatures that the chain consists of

Definition at line 40 of file TrigConfHLTData/Root/HLTChain.cxx.

46 :
50 m_level ( level ),
53 m_EB_after_step (-1 ),
55{
58 // create signalture id's (labels)
62}
const std::string & lower_chain_name() const
std::vector< HLTSignature * > & signatureList()
void createSignatureLabels()
label the signatures
std::vector< HLTSignature * > m_HLTSignatureList
static HLTHash string2hash(const std::string &, const std::string &category="TE")
hash function translating TE names into identifiers
void setName(const std::string &name)
void setVersion(unsigned int version)

◆ HLTChain() [3/3]

HLTChain::HLTChain ( const HLTChain & ch)

copy constructor

does a deep copy of everything underneath

Definition at line 65 of file TrigConfHLTData/Root/HLTChain.cxx.

65 :
66 TrigConfData(o),
67 m_chain_hash_id ( o.m_chain_hash_id ),
68 m_chain_counter ( o.m_chain_counter ),
69 m_chain_version ( o.m_chain_version ),
70 m_level ( o.m_level ),
71 m_lower_chain_name ( o.m_lower_chain_name ),
72 m_lower_chain_counter ( o.m_lower_chain_counter ),
73 m_lower_chain_counters( o.m_lower_chain_counters ),
74 m_EB_after_step ( o.m_EB_after_step ),
75 m_prescales ( o.m_prescales ),
76 m_groups ( o.m_groups )
77{
78 // deep copy to ensure ownership
79 for(HLTSignature* sig : o.m_HLTSignatureList)
80 m_HLTSignatureList.push_back(new HLTSignature(*sig));
81
82 for(HLTTriggerType* tt : o.m_HLTTriggerTypeList)
83 m_HLTTriggerTypeList.push_back(new HLTTriggerType(*tt));
84
85 for(HLTStreamTag* tt : o.m_streams_orig)
86 m_streams_orig.push_back(new HLTStreamTag(*tt));
87
88 for(HLTStreamTag* tt : o.m_streams)
89 m_streams.push_back(new HLTStreamTag(*tt));
90
91 for(const auto& strstream : o.m_streams_map)
92 m_streams_map.emplace(strstream.first, new HLTStreamTag(*strstream.second) ) ;
93}
std::unordered_map< std::string, HLTStreamTag * > m_streams_map
std::vector< HLTStreamTag * > m_streams_orig
std::vector< int > m_lower_chain_counters
counters of the lower trigger items if more than 1
std::vector< HLTStreamTag * > m_streams
std::vector< HLTTriggerType * > m_HLTTriggerTypeList

◆ ~HLTChain()

TrigConf::HLTChain::~HLTChain ( )
overridevirtual

destructor

Definition at line 96 of file TrigConfHLTData/Root/HLTChain.cxx.

96 {
97 for(HLTSignature *sig : m_HLTSignatureList) delete sig;
98 for(HLTTriggerType *tt : m_HLTTriggerTypeList) delete tt;
100}

Member Function Documentation

◆ __str__()

string HLTChain::__str__ ( ) const
overridevirtual

Reimplemented from TrigConf::TrigConfData.

Definition at line 462 of file TrigConfHLTData/Root/HLTChain.cxx.

462 {
463 stringstream s;
464 s << *this;
465 return s.str();
466}

◆ addGroup()

void TrigConf::HLTChain::addGroup ( const std::string & group)
inline

Definition at line 131 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

131{ m_groups.insert(group); }

◆ addStream()

void TrigConf::HLTChain::addStream ( HLTStreamTag * stream)

Definition at line 238 of file TrigConfHLTData/Root/HLTChain.cxx.

238 {
239 if(m_streams_map.find(stream->name()) != m_streams_map.end())
240 throw runtime_error(string("Can not add stream '")+ stream->name() + "' to chain '" + name() + "', since it exists already.");
241
242 m_streams_orig.push_back(stream);
243 HLTStreamTag *cp = new HLTStreamTag(*stream);
244 m_streams.push_back(cp);
245 m_streams_map.insert(std::pair<std::string, HLTStreamTag*>(cp->name(),cp));
246
247 // copy the stream prescales from the prescales to the live prescales
248 std::pair<bool, float> sps = prescales().getStreamPrescale(cp->name());
249 if(sps.first)
250 cp->set_prescale(sps.second);
251}
std::pair< bool, float > getStreamPrescale(const std::string &streamName) const
const std::string & name() const

◆ chain_counter()

int TrigConf::HLTChain::chain_counter ( ) const
inline

Definition at line 74 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

74{ return m_chain_counter; }

◆ chain_hash_id()

unsigned int TrigConf::HLTChain::chain_hash_id ( ) const
inline

Definition at line 80 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

80{ return m_chain_hash_id; }

◆ chain_name()

const std::string & TrigConf::HLTChain::chain_name ( ) const
inline

Definition at line 73 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

73{ return name(); }

◆ chain_version()

int TrigConf::HLTChain::chain_version ( ) const
inline

Definition at line 75 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

75{ return m_chain_version; }

◆ clearGroups()

void TrigConf::HLTChain::clearGroups ( )
inline

Definition at line 132 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

132{ m_groups.clear(); }

◆ clearStreams()

void TrigConf::HLTChain::clearStreams ( )

Definition at line 254 of file TrigConfHLTData/Root/HLTChain.cxx.

254 {
255 // The memory management between the streams map and the stream vectors is completely confused
256 // It's going to be too invasive a change to fix that directly so instead just make sure that
257 // everything is correctly deleted at the end
258 std::unordered_set<HLTStreamTag *> deleted;
259 for(HLTStreamTag *s : m_streams_orig)
260 if (deleted.insert(s).second)
261 delete s;
262 for(HLTStreamTag *s : m_streams)
263 if (deleted.insert(s).second)
264 delete s;
265 for (auto &p : m_streams_map)
266 if (deleted.insert(p.second).second)
267 delete p.second;
268 m_streams_orig.clear();
269 m_streams.clear();
270 m_streams_map.clear();
271}

◆ comment()

const std::string & TrigConf::TrigConfData::comment ( ) const
inlineinherited

Definition at line 23 of file TrigConfData.h.

23{return m_comment;}

◆ compareTo()

TrigConf::DiffStruct * TrigConf::HLTChain::compareTo ( const HLTChain * o) const

Definition at line 297 of file TrigConfHLTData/Root/HLTChain.cxx.

297 {
298 DiffStruct * ds = new DiffStruct("CHAIN");
299 ds->check("chain_counter", chain_counter(), o->chain_counter());
300 ds->check("lower_chain_name", orderLowerChainNames(lower_chain_name()), orderLowerChainNames(o->lower_chain_name()) );
301 ds->check("level", level(), o->level());
302 ds->check("prescale", prescales().prescale(), o->prescales().prescale());
303 ds->check("pass_through", prescales().pass_through(), o->prescales().pass_through());
304// for(StreamTag* st : streamTagList()) {
305// o->streamTagList() st->name()
306
307// }
308
309
310 if(!ds->empty()) {
311 ds->name = name();
312 } else {
313 delete ds; ds=0;
314 }
315 return ds;
316
317}
float pass_through() const
Definition HLTPrescale.h:53
float prescale() const
Definition HLTPrescale.h:52

◆ createSignatureLabels()

void TrigConf::HLTChain::createSignatureLabels ( )

label the signatures

Definition at line 182 of file TrigConfHLTData/Root/HLTChain.cxx.

182 {
183 for (HLTSignature* signature : m_HLTSignatureList) {
184 std::stringstream os;
185 os << chain_name() << "_" << signature->signature_counter();
186 signature->set_label( os.str() );
187 }
188}

◆ EB_after_step()

int TrigConf::HLTChain::EB_after_step ( ) const
inline

Definition at line 82 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

82{ return m_EB_after_step; }

◆ groupList()

const std::set< std::string > & TrigConf::HLTChain::groupList ( ) const
inline

Definition at line 129 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

129{ return m_groups; }

◆ groups()

const std::set< std::string > & TrigConf::HLTChain::groups ( ) const
inline

Definition at line 127 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

127{ return m_groups; }

◆ hasMultipleLowerChains()

bool TrigConf::HLTChain::hasMultipleLowerChains ( ) const

Definition at line 104 of file TrigConfHLTData/Root/HLTChain.cxx.

104 {
105 return m_lower_chain_name.find(',')!=std::string::npos;
106}

◆ id()

unsigned int TrigConf::TrigConfData::id ( ) const
inlineinherited

Definition at line 21 of file TrigConfData.h.

21{return m_id;}

◆ indent()

std::ostream & TrigConfData::indent ( std::ostream & o,
int lvl,
int size ) const
protectedinherited

Definition at line 23 of file TrigConfData.cxx.

23 {
24 int width = lvl*size;
25 if(width==0) return o;
26 o << setw(lvl*size) << " ";
27 return o;
28}
const double width

◆ lastStep()

unsigned int HLTChain::lastStep ( ) const

Definition at line 168 of file TrigConfHLTData/Root/HLTChain.cxx.

168 {
169 if(m_HLTSignatureList.empty())
170 return 0;
171 return m_HLTSignatureList[m_HLTSignatureList.size()-1]->step();
172}

◆ leg_multiplicities()

const std::vector< size_t > & TrigConf::HLTChain::leg_multiplicities ( ) const
inline

Definition at line 83 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

83{ return m_leg_multiplicities; }
std::vector< size_t > m_leg_multiplicities
Number of objects required per leg.

◆ level()

const std::string & TrigConf::HLTChain::level ( ) const
inline

Definition at line 76 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

76{ return m_level; }

◆ level_enum()

HLTLevel TrigConf::HLTChain::level_enum ( ) const
inline

Definition at line 77 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

77{ return m_level=="L2"?L2:(m_level=="EF"?EF:HLT); }

◆ lower_chain_counter()

int TrigConf::HLTChain::lower_chain_counter ( ) const
inline

Definition at line 79 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

79{ return m_lower_chain_counter; }

◆ lower_chain_counters()

const std::vector< int > & TrigConf::HLTChain::lower_chain_counters ( ) const

Definition at line 110 of file TrigConfHLTData/Root/HLTChain.cxx.

110 {
112}

◆ lower_chain_hash_id()

unsigned int TrigConf::HLTChain::lower_chain_hash_id ( ) const
inline

Definition at line 81 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

81{ return m_lower_chain_hash_id; }

◆ lower_chain_hash_ids()

vector< unsigned int > TrigConf::HLTChain::lower_chain_hash_ids ( ) const

Definition at line 124 of file TrigConfHLTData/Root/HLTChain.cxx.

124 {
125 vector<unsigned int> ids;
126 vector<std::string> names = parse(m_lower_chain_name);
127 for ( unsigned i = names.size(); i-- ; ) {
128 ids.push_back(HLTUtils::string2hash(names[i]));
129 }
130 return ids;
131}
std::vector< std::string > parse(std::string names)

◆ lower_chain_name()

const std::string & TrigConf::HLTChain::lower_chain_name ( ) const
inline

Definition at line 78 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

78{ return m_lower_chain_name; }

◆ name()

const std::string & TrigConf::TrigConfData::name ( ) const
inlineinherited

Definition at line 22 of file TrigConfData.h.

22{return m_name;}

◆ operator<()

bool TrigConf::HLTChain::operator< ( const HLTChain & e) const
inline

Definition at line 149 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

149 {
150 return m_level[0]>e.m_level[0] ||
151 (m_level[0]==e.m_level[0] && m_chain_counter<e.m_chain_counter);
152 }

◆ pass_through()

float TrigConf::HLTChain::pass_through ( ) const
inline

Definition at line 143 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

143{ return prescales().pass_through(); }

◆ prescale()

float TrigConf::HLTChain::prescale ( ) const
inline

Definition at line 142 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

142{ return prescales().prescale(); }

◆ prescales() [1/2]

HLTPrescale & TrigConf::HLTChain::prescales ( )
inline

Definition at line 140 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

140{ return m_prescales; }

◆ prescales() [2/2]

const HLTPrescale & TrigConf::HLTChain::prescales ( ) const
inline

Definition at line 141 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

141{ return m_prescales; }

◆ print()

void TrigConf::HLTChain::print ( const std::string & indent = "",
unsigned int detail = 1 ) const
overridevirtual

print the chain

Implements TrigConf::TrigConfData.

Definition at line 367 of file TrigConfHLTData/Root/HLTChain.cxx.

367 {
368 if(detail>=2) {
369 int dp = cout.precision();
370 cout.unsetf(ios_base::floatfield);
371 cout.precision(3);
372 //cout.setf(std::ios::fixed, std::ios::floatfield);
373
374 cout << indent << "HLTChain chainid = " << chain_counter() << " ";
375 printNameIdV();
376 if(detail>=3) {
377 cout << " | counter: " << chain_counter();
378 if(level()!="HLT") {
379 cout << " | " << level()
380 << " | lower chain: " << lower_chain_name()
381 << " | lower chain counter: " << lower_chain_counter();
382 } else {
383 cout << " | CTP input: " << lower_chain_name()
384 << " | lower chain counter: " << lower_chain_counter();
385 }
386 cout << " | prescale: " << prescale()
387 << " | pass through: " << pass_through();
388
389 cout << " | rerun: " << prescales().getRerunPrescales().size() << " [ ";
390 for(HLTPrescale::value_type rrps : prescales().getRerunPrescales())
391 cout << rrps.first << ":" << rrps.second << " ";
392 cout << "]" << std::endl;
393
394 }
395 if(detail>=4) {
396 cout << indent << " Groups : " << groups().size() << " [ ";
397 for(const string& group : groups()) cout << "'" << group << "' ";
398 cout << "]" << std::endl;
399
400 cout << indent << " Trigger type bits : " << triggerTypeList().size() << " [ ";
401 for(HLTTriggerType* tt : triggerTypeList()) cout << tt->bit() << " ";
402 cout << "]" << std::endl;
403
404 cout << indent << " Streams : " << streams().size() << endl;
405 for(HLTStreamTag* streamTag : streams()) cout << indent << " " << *streamTag;
406
407 cout << indent << " Steps : " << signatureList().size() << endl;
408 for(HLTSignature* sig : signatureList()) sig->print(indent);
409 cout << indent << "---------------------------------------------------------- " << endl;
410 }
411
412 cout.precision(dp);
413 }
414}
const std::vector< HLTStreamTag * > & streams() const
const std::set< std::string > & groups() const
std::vector< HLTTriggerType * > & triggerTypeList()
PrescaleMap_t::value_type value_type
Definition HLTPrescale.h:43
const PrescaleMap_t & getRerunPrescales() const
Definition HLTPrescale.h:56
std::ostream & indent(std::ostream &o, int lvl, int size) const
void printNameIdV(const std::string &indent="") const

◆ printNameIdV()

void TrigConfData::printNameIdV ( const std::string & indent = "") const
inherited

Definition at line 31 of file TrigConfData.cxx.

31 {
32 cout << indent << name();
33 if(id()>0 || version()>0)
34 cout << " (id=" << id() << "/v=" << version() << ")";
35 cout << endl;
36 if(comment()!="")
37 cout << indent << "Comment: " << comment() << endl;
38}
unsigned int id() const
const std::string & comment() const
unsigned int version() const

◆ rerun_prescale() [1/2]

float TrigConf::HLTChain::rerun_prescale ( ) const
inline

Definition at line 146 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

146{ return prescales().getRerunPrescale("").second; }
std::pair< bool, float > getRerunPrescale(const std::string &targetName) const

◆ rerun_prescale() [2/2]

std::pair< bool, float > TrigConf::HLTChain::rerun_prescale ( const std::string & targetName) const
inline

Definition at line 144 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

144{ return prescales().getRerunPrescale(targetName); }

◆ set_chain_counter()

HLTChain & TrigConf::HLTChain::set_chain_counter ( int chain_counter)
inline

Definition at line 94 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

94{ m_chain_counter = chain_counter; return *this; }

◆ set_chain_name()

TrigConf::HLTChain & TrigConf::HLTChain::set_chain_name ( const std::string & chain_name)

Definition at line 135 of file TrigConfHLTData/Root/HLTChain.cxx.

135 {
138 return *this;
139}

◆ set_chain_version()

HLTChain & TrigConf::HLTChain::set_chain_version ( int chain_version)
inline

Definition at line 95 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

95{ m_chain_version = chain_version; return *this; }

◆ set_EB_after_step()

HLTChain & TrigConf::HLTChain::set_EB_after_step ( int EB_after_step)
inline

◆ set_groupList()

HLTChain & TrigConf::HLTChain::set_groupList ( const std::set< std::string > & groups)
inline

Definition at line 102 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

102{ m_groups = groups; return *this; }

◆ set_leg_multiplicities()

HLTChain & TrigConf::HLTChain::set_leg_multiplicities ( const std::vector< size_t > & mult)
inline

Definition at line 104 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

104{ m_leg_multiplicities = mult; return *this; }

◆ set_level()

HLTChain & TrigConf::HLTChain::set_level ( const std::string & level)
inline

Definition at line 96 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

96{ m_level = level; return *this; }

◆ set_lower_chain_counter()

HLTChain & TrigConf::HLTChain::set_lower_chain_counter ( int lower_chain_counter)
inline

Definition at line 98 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

◆ set_lower_chain_counters()

HLTChain & TrigConf::HLTChain::set_lower_chain_counters ( const std::vector< int > & low_ccs)
inline

Definition at line 99 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

99{ m_lower_chain_counters = low_ccs; return *this; }

◆ set_lower_chain_name()

TrigConf::HLTChain & TrigConf::HLTChain::set_lower_chain_name ( const std::string & lower_chain_name)

◆ set_pass_through()

HLTChain & TrigConf::HLTChain::set_pass_through ( float pass_through)
inline

Definition at line 138 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

138{ m_prescales.setPassThrough(pass_through); return *this; }

◆ set_prescale()

HLTChain & TrigConf::HLTChain::set_prescale ( float prescale)
inline

Definition at line 136 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

136{ m_prescales.setPrescale(prescale); return *this; }

◆ set_prescales()

TrigConf::HLTChain & TrigConf::HLTChain::set_prescales ( const HLTPrescale & prescales)

Definition at line 207 of file TrigConfHLTData/Root/HLTChain.cxx.

207 {
208
209 // copy the original (menu) stream prescales to the live set
210 for(HLTStreamTag* stream : m_streams_orig) {
211 HLTStreamTag* target = m_streams_map[stream->name()];
212 target->set_prescale(stream->prescale());
213 }
214
215 // copy the stream prescales from the new HLTPprescale to the live set
216
217 for(HLTPrescale::value_type ps : prescales.getStreamPrescales()) {
218 const string & streamName = ps.first;
219
220 HLTStreamTag* streamTag = findStreamTag(m_streams, streamName);
221
222 if(streamTag) {
223 streamTag->set_prescale(ps.second);
224 } else {
225 //throw runtime_error(string("Can not set prescale for stream ")+ ps.first + "since chain '" + name() + "' does not write to that stream.");
226 cerr << "TrigConf::HLTChain WARNING Can not set prescale for stream '" + streamName + "' since chain '" + name() + "' does not write to that stream. Available are" << endl;
227 for(auto stream : m_streams) {
228 cout << " Available are " << stream->name() << endl;
229 }
230 }
231 }
233 return *this;
234}
void set_prescale(float val)

◆ set_rerun_prescale()

HLTChain & TrigConf::HLTChain::set_rerun_prescale ( float rerun_prescale)
inline

Definition at line 137 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

137{ m_prescales.setRerunPrescale("",rerun_prescale); return *this; }
std::pair< bool, float > rerun_prescale(const std::string &targetName) const

◆ set_signatureList()

TrigConf::HLTChain & TrigConf::HLTChain::set_signatureList ( const std::vector< HLTSignature * > & sigList)

Definition at line 161 of file TrigConfHLTData/Root/HLTChain.cxx.

161 {
162 m_HLTSignatureList = sigList;
164 return *this;
165}

◆ set_triggerTypeList()

TrigConf::HLTChain & TrigConf::HLTChain::set_triggerTypeList ( const std::vector< HLTTriggerType * > & trigList)

Definition at line 142 of file TrigConfHLTData/Root/HLTChain.cxx.

143{
144 for (HLTTriggerType *tt : m_HLTTriggerTypeList)
145 delete tt;
146 m_HLTTriggerTypeList = trigList;
147 return *this;
148}

◆ setComment()

void TrigConf::TrigConfData::setComment ( const std::string & c)
inlineinherited

Definition at line 32 of file TrigConfData.h.

◆ setId()

void TrigConf::TrigConfData::setId ( unsigned int id)
inlineinherited

Definition at line 29 of file TrigConfData.h.

29{ m_id=id; }

◆ setName()

void TrigConf::TrigConfData::setName ( const std::string & name)
inlineinherited

Definition at line 30 of file TrigConfData.h.

30{ m_name = name;}

◆ setSMK()

void TrigConf::TrigConfData::setSMK ( int id)
inlineinherited

Definition at line 28 of file TrigConfData.h.

28{m_smk=id;}

◆ setSuperMasterTableId()

void TrigConf::TrigConfData::setSuperMasterTableId ( int id)
inlineinherited

Definition at line 27 of file TrigConfData.h.

27{m_smk=id;}

◆ setVersion()

void TrigConf::TrigConfData::setVersion ( unsigned int version)
inlineinherited

Definition at line 31 of file TrigConfData.h.

◆ shiftStepCounter()

void HLTChain::shiftStepCounter ( int shift)

Definition at line 175 of file TrigConfHLTData/Root/HLTChain.cxx.

175 {
176 for(HLTSignature* sig : m_HLTSignatureList)
177 sig->set_signature_counter( sig->signature_counter() + shift );
178}

◆ signatureList() [1/2]

std::vector< HLTSignature * > & TrigConf::HLTChain::signatureList ( )
inline

Definition at line 108 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

108{ return m_HLTSignatureList; }

◆ signatureList() [2/2]

const std::vector< HLTSignature * > & TrigConf::HLTChain::signatureList ( ) const
inline

Definition at line 109 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

109{ return m_HLTSignatureList; }

◆ signatures()

const std::vector< HLTSignature * > & TrigConf::HLTChain::signatures ( ) const
inline

Definition at line 110 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

110{ return m_HLTSignatureList; }

◆ smk()

unsigned int TrigConf::TrigConfData::smk ( ) const
inlineinherited

Definition at line 20 of file TrigConfData.h.

20{return m_smk;}

◆ stream_prescale()

std::pair< bool, float > TrigConf::HLTChain::stream_prescale ( const std::string & streamName) const

Definition at line 274 of file TrigConfHLTData/Root/HLTChain.cxx.

274 {
275 std::unordered_map<std::string, HLTStreamTag*>::const_iterator i = m_streams_map.find(streamName);
276 bool found = (i!=m_streams_map.cend());
277 float ps = found ? i->second->prescale() : 0;
278 return std::make_pair(found,ps);
279}

◆ streams()

const std::vector< HLTStreamTag * > & TrigConf::HLTChain::streams ( ) const
inline

Definition at line 118 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

118{ return m_streams; }

◆ streams_orig()

const std::vector< HLTStreamTag * > & TrigConf::HLTChain::streams_orig ( ) const
inline

Definition at line 122 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

122{ return m_streams_orig; }

◆ streamTagList()

const std::vector< HLTStreamTag * > & TrigConf::HLTChain::streamTagList ( ) const
inline

Definition at line 120 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

120{ return m_streams; } //deprecated

◆ superMasterTableId()

int TrigConf::TrigConfData::superMasterTableId ( ) const
inlineinherited

Definition at line 19 of file TrigConfData.h.

19{return (int)m_smk;}

◆ triggerTypeList() [1/2]

std::vector< HLTTriggerType * > & TrigConf::HLTChain::triggerTypeList ( )
inline

Definition at line 89 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

89{ return m_HLTTriggerTypeList; }

◆ triggerTypeList() [2/2]

const std::vector< HLTTriggerType * > & TrigConf::HLTChain::triggerTypeList ( ) const
inline

Definition at line 90 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

90{ return m_HLTTriggerTypeList; }

◆ version()

unsigned int TrigConf::TrigConfData::version ( ) const
inlineinherited

Definition at line 24 of file TrigConfData.h.

24{return m_version;}

◆ writeXML()

void TrigConf::HLTChain::writeXML ( std::ofstream & xmlfile)

Definition at line 321 of file TrigConfHLTData/Root/HLTChain.cxx.

321 {
322 xmlfile << " <CHAIN chain_counter=\"" << chain_counter() << "\" "
323 << "chain_name=\"" << name() << "\" "
324 << "level=\"" << m_level << "\" "
325 << "lower_chain_name=\"" << m_lower_chain_name << "\" "
326 << "pass_through=\"" << prescales().pass_through() << "\" "
327 << "prescale=\"" << prescales().prescale() << "\">"
328 << endl;
329
330 xmlfile << " <PRESCALES"
331 << " chain_counter=\"" << chain_counter() << "\""
332 << " level=\"" << m_level << "\""
333 << " prescale=\"" << prescales().prescale() << "\""
334 << " pass_through=\"" << prescales().pass_through() << "\"";
335 if(prescales().getRerunPrescales().size()==0) {
336 xmlfile << "/>" << endl;
337 } else {
338 xmlfile << ">" << endl;
339 for(HLTPrescale::value_type rerun_ps : prescales().getRerunPrescales())
340 xmlfile << " <RERUN_PRESCALES target=\"" << rerun_ps.first << "\" prescale=\"" << rerun_ps.second << "\"/>" << endl;
341 xmlfile << " </PRESCALES>" << endl;
342 }
343
344 xmlfile << " <TRIGGERTYPE_LIST/>" << endl;
345
346 xmlfile << " <STREAMTAG_LIST>" << endl;
347 for (const TrigConf::HLTStreamTag* streamTag : m_streams)
348 streamTag->writeXML(xmlfile);
349 xmlfile << " </STREAMTAG_LIST>" << endl;
350
351 xmlfile << " <GROUP_LIST>" << endl;
352 for (const string& group : m_groups)
353 xmlfile << " <GROUP name=\"" << group << "\"/>" << endl;
354 xmlfile << " </GROUP_LIST>" << endl;
355
356 xmlfile << " <SIGNATURE_LIST>" << endl;
357 for(TrigConf::HLTSignature* signature : m_HLTSignatureList)
358 signature->writeXML(xmlfile);
359 xmlfile << " </SIGNATURE_LIST>" << endl;
360
361 xmlfile << " </CHAIN>" << endl;
362
363 return;
364}
static std::vector< std::string > xmlfile
Definition iLumiCalc.h:29

◆ operator<<

std::ostream & operator<< ( std::ostream & ,
const HLTChain &  )
friend

Member Data Documentation

◆ ef

unsigned int TrigConf::HLTChain::ef {0}

Definition at line 197 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

197{0};

◆ l2

unsigned int TrigConf::HLTChain::l2 {0}

Definition at line 196 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

196{0};

◆ m_chain_counter

int TrigConf::HLTChain::m_chain_counter
private

chain counter

Definition at line 172 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

◆ m_chain_hash_id

unsigned int TrigConf::HLTChain::m_chain_hash_id
private

hash value from m_chain_name, this is used to identify the chain in the HLTResult

Definition at line 171 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

◆ m_chain_version

int TrigConf::HLTChain::m_chain_version
private

chain version

Definition at line 173 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

◆ m_comment

std::string TrigConf::TrigConfData::m_comment
privateinherited

Definition at line 48 of file TrigConfData.h.

◆ m_EB_after_step

int TrigConf::HLTChain::m_EB_after_step
private

EB_after_step flag.

Definition at line 179 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

◆ m_groups

std::set<std::string> TrigConf::HLTChain::m_groups
private

Definition at line 185 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

◆ m_HLTSignatureList

std::vector<HLTSignature*> TrigConf::HLTChain::m_HLTSignatureList
private

Definition at line 183 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

◆ m_HLTTriggerTypeList

std::vector<HLTTriggerType*> TrigConf::HLTChain::m_HLTTriggerTypeList
private

Definition at line 184 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

◆ m_id

unsigned int TrigConf::TrigConfData::m_id
privateinherited

Definition at line 45 of file TrigConfData.h.

◆ m_leg_multiplicities

std::vector<size_t> TrigConf::HLTChain::m_leg_multiplicities
private

Number of objects required per leg.

NOTE: Run3 only quantity

Definition at line 180 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

◆ m_level

std::string TrigConf::HLTChain::m_level
private

trigger level

Definition at line 174 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

◆ m_lower_chain_counter

int TrigConf::HLTChain::m_lower_chain_counter
private

counter of the lower trigger chain (or the ID of the LVL1 trigger item)

Definition at line 176 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

◆ m_lower_chain_counters

std::vector<int> TrigConf::HLTChain::m_lower_chain_counters
private

counters of the lower trigger items if more than 1

Definition at line 177 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

◆ m_lower_chain_hash_id

unsigned int TrigConf::HLTChain::m_lower_chain_hash_id
private

hash value from m_lower_chain_name, this is used to match to a chain from the previous trigger level

Definition at line 178 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

◆ m_lower_chain_name

std::string TrigConf::HLTChain::m_lower_chain_name
private

name of the lower trigger chain (or the LVL1 trigger item)

Definition at line 175 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

◆ m_name

std::string TrigConf::TrigConfData::m_name
privateinherited

Definition at line 46 of file TrigConfData.h.

◆ m_prescales

HLTPrescale TrigConf::HLTChain::m_prescales
private

Definition at line 181 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

◆ m_smk

unsigned int TrigConf::TrigConfData::m_smk
privateinherited

Definition at line 44 of file TrigConfData.h.

◆ m_streams

std::vector<HLTStreamTag*> TrigConf::HLTChain::m_streams
private

Definition at line 187 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

◆ m_streams_map

std::unordered_map<std::string, HLTStreamTag*> TrigConf::HLTChain::m_streams_map
private

Definition at line 188 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

◆ m_streams_orig

std::vector<HLTStreamTag*> TrigConf::HLTChain::m_streams_orig
private

Definition at line 186 of file TrigConfHLTData/TrigConfHLTData/HLTChain.h.

◆ m_version

unsigned int TrigConf::TrigConfData::m_version
privateinherited

Definition at line 47 of file TrigConfData.h.

◆ [struct]

struct { ... } TrigConf::HLTChain::mergeCounter

The documentation for this class was generated from the following files: