ATLAS Offline Software
Loading...
Searching...
No Matches
TrigConfData.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TrigConf_TrigConfData
6#define TrigConf_TrigConfData
7
8#include <iosfwd>
9#include <string>
10
11namespace TrigConf {
12
14 public:
15 TrigConfData(const std::string& name = "");
16 virtual ~TrigConfData() = default;
17
18 // getters
19 int superMasterTableId() const {return (int)m_smk;}
20 unsigned int smk() const {return m_smk;}
21 unsigned int id() const {return m_id;}
22 const std::string& name() const {return m_name;}
23 const std::string& comment() const {return m_comment;}
24 unsigned int version() const {return m_version;}
25
26 // setters
28 void setSMK(int id) {m_smk=id;}
29 void setId(unsigned int id) { m_id=id; }
30 void setName( const std::string& name ){ m_name = name;}
31 void setVersion( unsigned int version ){ m_version = version;}
32 void setComment( const std::string& c ){ m_comment = c;}
33
34 virtual void print(const std::string& indent="", unsigned int detail=1) const = 0;
35
36 void printNameIdV(const std::string& indent="") const;
37
38 virtual std::string __str__() const;
39
40 protected:
41 std::ostream & indent(std::ostream& o, int lvl, int size) const;
42
43 private:
44 unsigned int m_smk;
45 unsigned int m_id;
46 std::string m_name;
47 unsigned int m_version;
48 std::string m_comment;
49
50 };
51
52 std::ostream & operator<<(std::ostream &, const TrigConfData &);
53}
54
55#endif
unsigned int id() const
void setComment(const std::string &c)
void setId(unsigned int id)
virtual void print(const std::string &indent="", unsigned int detail=1) const =0
virtual ~TrigConfData()=default
std::ostream & indent(std::ostream &o, int lvl, int size) const
void setName(const std::string &name)
virtual std::string __str__() const
const std::string & name() const
void printNameIdV(const std::string &indent="") const
int superMasterTableId() const
const std::string & comment() const
TrigConfData(const std::string &name="")
unsigned int smk() const
void setVersion(unsigned int version)
unsigned int version() const
void setSuperMasterTableId(int id)
Forward iterator to traverse the main components of the trigger configuration.
Definition Config.h:22
std::ostream & operator<<(std::ostream &os, const TrigConf::IsolationLegacy &iso)