ATLAS Offline Software
Classes | Namespaces | Functions | Variables
TrigConfChain.h File Reference
#include "AthenaKernel/CLASS_DEF.h"
#include <iostream>
#include <stdint.h>
#include <string>
#include <vector>
#include "TrigMonitoringEvent/TrigConfSig.h"
Include dependency graph for TrigConfChain.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TrigConfChain
 

Namespaces

 Trig
 The common trigger namespace for trigger analysis tools.
 
 Trig::Bits
 

Functions

std::string str (const TrigConfChain &)
 
uint16_t Trig::getEncodedId (int level, int counter)
 
uint16_t Trig::getEncodedId (const std::string &level, int counter)
 
uint16_t Trig::getCounterFromEncodedId (uint16_t encoded)
 
uint16_t Trig::getLevelFromEncodedId (uint16_t encoded)
 
bool operator== (const TrigConfChain &lhs, const TrigConfChain &rhs)
 
bool operator< (const TrigConfChain &lhs, const TrigConfChain &rhs)
 
bool operator== (const TrigConfChain &chn, const std::string &name)
 
bool operator== (const std::string &name, const TrigConfChain &chn)
 
bool operator< (const TrigConfChain &chn, const std::string &name)
 
bool operator< (const std::string &name, const TrigConfChain &chn)
 
bool operator== (const TrigConfChain &chn, unsigned int id)
 
bool operator== (unsigned int id, const TrigConfChain &chn)
 
bool operator< (const TrigConfChain &chn, unsigned int id)
 
bool operator< (unsigned int id, const TrigConfChain &chn)
 

Variables

const uint16_t Trig::Bits::maskLevel = 0xc000
 
const uint16_t Trig::Bits::maskCounter = 0x3fff
 
const uint16_t Trig::Bits::shiftLevel = 14
 
const uint16_t Trig::Bits::shiftCounter = 0
 

Function Documentation

◆ operator<() [1/5]

bool operator< ( const std::string &  name,
const TrigConfChain chn 
)
inline

Definition at line 189 of file TrigConfChain.h.

189  {
190  return name < chn.getName();
191 }

◆ operator<() [2/5]

bool operator< ( const TrigConfChain chn,
const std::string &  name 
)
inline

Definition at line 186 of file TrigConfChain.h.

186  {
187  return chn.getName() < name;
188 }

◆ operator<() [3/5]

bool operator< ( const TrigConfChain chn,
unsigned int  id 
)
inline

Definition at line 200 of file TrigConfChain.h.

200  {
201  return chn.getId() < id;
202 }

◆ operator<() [4/5]

bool operator< ( const TrigConfChain lhs,
const TrigConfChain rhs 
)
inline

Definition at line 172 of file TrigConfChain.h.

172  {
173  return lhs.getName() < rhs.getName();
174 }

◆ operator<() [5/5]

bool operator< ( unsigned int  id,
const TrigConfChain chn 
)
inline

Definition at line 203 of file TrigConfChain.h.

203  {
204  return id < chn.getId();
205 }

◆ operator==() [1/5]

bool operator== ( const std::string &  name,
const TrigConfChain chn 
)
inline

Definition at line 182 of file TrigConfChain.h.

182  {
183  return chn.getName() == name;
184 }

◆ operator==() [2/5]

bool operator== ( const TrigConfChain chn,
const std::string &  name 
)
inline

Definition at line 179 of file TrigConfChain.h.

179  {
180  return chn.getName() == name;
181 }

◆ operator==() [3/5]

bool operator== ( const TrigConfChain chn,
unsigned int  id 
)
inline

Definition at line 193 of file TrigConfChain.h.

193  {
194  return chn.getId() == id;
195 }

◆ operator==() [4/5]

bool operator== ( const TrigConfChain lhs,
const TrigConfChain rhs 
)
inline

Definition at line 169 of file TrigConfChain.h.

169  {
170  return lhs.getName() == rhs.getName();
171 }

◆ operator==() [5/5]

bool operator== ( unsigned int  id,
const TrigConfChain chn 
)
inline

Definition at line 196 of file TrigConfChain.h.

196  {
197  return id == chn.getId();
198 }

◆ str()

std::string str ( const TrigConfChain )

Definition at line 229 of file TrigConfChain.cxx.

230 {
231  std::stringstream s;
232 
233  s << "TrigConfChain: "
234  << o.getLevel() << " " << o.getName()
235  << " PS=" << o.getPS() << " PT=" << o.getPT()
236  << " lower chain=" << o.getLowerName() << std::endl;
237 
238  s << " signatures: ";
239  for(unsigned int i = 0; i < o.getSignature().size(); ++i) {
240  s << str(o.getSignature()[i]) << " ";
241  }
242  s << std::endl;
243 
244  s << " streams: ";
245  for(unsigned int i = 0; i < o.getStream().size(); ++i) {
246  s << o.getStream()[i] << " ";
247  }
248  s << std::endl;
249 
250  s << " groups: ";
251  for(unsigned int i = 0; i < o.getGroup().size(); ++i) {
252  s << o.getGroup()[i] << " ";
253  }
254  s << std::endl;
255 
256  return s.str();
257 }
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
TrigConfChain::getName
const std::string & getName() const
Definition: TrigConfChain.h:72
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
lumiFormat.i
int i
Definition: lumiFormat.py:92
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:191
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
str
std::string str(const TrigConfChain &o)
Definition: TrigConfChain.cxx:229
TrigConfChain::getId
uint32_t getId() const
Definition: TrigConfChain.h:76