|
ATLAS Offline Software
|
Go to the documentation of this file.
67 const std::vector<TrigConfVar> var_vec = Trig::GetCurrentTrigConfVarVector();
70 if(m_var_name.size() == m_var_id.size()) {
71 for(
unsigned int i = 0;
i < m_var_id.size(); ++
i) {
72 Trig::ReserveVarId(m_var_name[
i], m_var_id[
i]);
77 for(
unsigned int i = 0;
i < var_vec.size(); ++
i) {
78 if(
std::find(m_var_name.begin(), m_var_name.end(), var_vec[
i]) == m_var_name.end()) {
79 add<TrigConfVar>(var_vec[
i]);
180 <<
"getId - failed to find chain: " <<
name;
183 }
else if(
key ==
"SEQ") {
190 <<
"getId - failed to find sequence: " <<
name;
193 }
else if(
key.find(
"ALG") != std::string::npos) {
195 for(
unsigned int i = 0;
i <
m_seq.size(); ++
i) {
197 const std::vector<TrigConfAlg> &avec =
seq.getAlg();
200 for(
unsigned int j = 0; j < avec.size(); ++j) {
202 if(
alg.getName() ==
name)
return alg.getNameId();
206 <<
"getId - ERROR! Failed to find algorithm: " <<
name <<
", " <<
key;
210 <<
"getId - ERROR! Failed to match: " <<
name <<
", " <<
key;
229 <<
"getEncoded - failed to find chain: " <<
name;
234 <<
"getEncoded(" <<
name <<
", " <<
key <<
") - no match found";
253 <<
"getId - failed to find chain: " <<
id;
256 }
else if(
key ==
"SEQ") {
263 <<
"getId - failed to find sequence: " <<
id;
266 }
else if(
key.find(
"ALG") != std::string::npos){
268 for(
unsigned int i = 0;
i <
m_seq.size(); ++
i) {
270 const std::vector<TrigConfAlg> &avec =
seq.getAlg();
273 for(
unsigned int j = 0; j < avec.size(); ++j) {
276 if(
alg.getNameId() ==
id)
return alg.getName();
280 <<
"getId - failed to find algorithm: " <<
id;
285 <<
"getId - failed to match: " <<
id <<
", " <<
key;
296 std::vector<TrigConfVar>
var;
seq
filter configuration ## -> we use the special sequence 'AthMasterSeq' which is run before any other a...
std::string find(const std::string &s)
return a remapped string
std::vector< std::string > m_pair_key
std::vector< TrigConfSeq > m_seq
int run(int argc, char *argv[])
std::vector< TrigConfChain > m_chain
uint16_t getEncodedId(const std::string &name, const std::string &key) const
std::vector< std::string > m_var_name
void setTriggerKeys(uint32_t master_key, uint32_t lv1_ps_key, uint32_t hlt_ps_key)
const std::vector< TrigConfVar > getConfVar() const
std::vector< std::string > m_pair_val
void setEventID(uint32_t event, uint32_t lumi, uint32_t run, uint32_t sec, uint32_t nsec)
POOL::TEvent event(POOL::TEvent::kClassAccess)
const std::string getName(uint32_t id, const std::string &key) const
uint32_t getId(const std::string &name, const std::string &key) const
void TrigMonConfig::processConfig ATLAS_NOT_THREAD_SAFE()
Install fatal handler with default options.
#define REPORT_MESSAGE_WITH_CONTEXT(LVL, CONTEXT_NAME)
Report a message, with an explicitly specified context name.
void addValue(const std::string &key, const std::string &val)
Helpers for checking error return status codes and reporting errors.
std::vector< uint32_t > m_var_id
bool keyExists(const std::string &key) const
bool readValue(const std::string &key, std::string &val) const