ATLAS Offline Software
Loading...
Searching...
No Matches
TrigConfChain.h File Reference
#include "TrigMonitoringEvent/TrigConfSig.h"
#include "AthenaKernel/CLASS_DEF.h"
#include <iosfwd>
#include <stdint.h>
#include <string>
#include <vector>
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

namespace  Trig
 The common trigger namespace for trigger analysis tools.
namespace  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 197 of file TrigConfChain.h.

197 {
198 return name < chn.getName();
199}
const std::string & getName() const

◆ operator<() [2/5]

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

Definition at line 194 of file TrigConfChain.h.

194 {
195 return chn.getName() < name;
196}

◆ operator<() [3/5]

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

Definition at line 208 of file TrigConfChain.h.

208 {
209 return chn.getId() < id;
210}
uint32_t getId() const

◆ operator<() [4/5]

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

Definition at line 180 of file TrigConfChain.h.

180 {
181 return lhs.getName() < rhs.getName();
182}

◆ operator<() [5/5]

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

Definition at line 211 of file TrigConfChain.h.

211 {
212 return id < chn.getId();
213}

◆ operator==() [1/5]

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

Definition at line 190 of file TrigConfChain.h.

190 {
191 return chn.getName() == name;
192}

◆ operator==() [2/5]

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

Definition at line 187 of file TrigConfChain.h.

187 {
188 return chn.getName() == name;
189}

◆ operator==() [3/5]

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

Definition at line 201 of file TrigConfChain.h.

201 {
202 return chn.getId() == id;
203}

◆ operator==() [4/5]

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

Definition at line 177 of file TrigConfChain.h.

177 {
178 return lhs.getName() == rhs.getName();
179}

◆ operator==() [5/5]

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

Definition at line 204 of file TrigConfChain.h.

204 {
205 return id == chn.getId();
206}

◆ str()

std::string str ( const TrigConfChain & o)

Definition at line 220 of file TrigConfChain.cxx.

221{
222 std::stringstream s;
223
224 s << "TrigConfChain: "
225 << o.getLevel() << " " << o.getName()
226 << " PS=" << o.getPS() << " PT=" << o.getPT()
227 << " lower chain=" << o.getLowerName() << std::endl;
228
229 s << " signatures: ";
230 for(unsigned int i = 0; i < o.getSignature().size(); ++i) {
231 s << str(o.getSignature()[i]) << " ";
232 }
233 s << "\n";
234
235 s << " streams: ";
236 for(unsigned int i = 0; i < o.getStream().size(); ++i) {
237 s << o.getStream()[i] << " ";
238 }
239 s << "\n";
240
241 s << " groups: ";
242 for(unsigned int i = 0; i < o.getGroup().size(); ++i) {
243 s << o.getGroup()[i] << " ";
244 }
245 s << std::endl;
246
247 return s.str();
248}
float getPS() const
const std::vector< std::string > & getStream() const
const std::string & getLowerName() const
const std::vector< std::string > & getGroup() const
float getPT() const
const std::vector< TrigConfSig > & getSignature() const
const std::string getLevel() const