ATLAS Offline Software
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 
11 namespace TrigConf {
12 
13  class TrigConfData {
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
27  void setSuperMasterTableId(int id) {m_smk=id;}
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
TrigConf::TrigConfData::m_id
unsigned int m_id
Definition: TrigConfData.h:45
TrigConf::TrigConfData::setName
void setName(const std::string &name)
Definition: TrigConfData.h:30
TrigConf::TrigConfData::m_name
std::string m_name
Definition: TrigConfData.h:46
TrigConf::TrigConfData::TrigConfData
TrigConfData(const std::string &name="")
Definition: TrigConfData.cxx:14
TrigConf::operator<<
std::ostream & operator<<(std::ostream &os, const TrigConf::IsolationLegacy &iso)
Definition: L1ThresholdBase.cxx:339
TrigConf::TrigConfData::name
const std::string & name() const
Definition: TrigConfData.h:22
TrigConf::TrigConfData::comment
const std::string & comment() const
Definition: TrigConfData.h:23
detail
Definition: extract_histogram_tag.cxx:14
TrigConf::TrigConfData::m_version
unsigned int m_version
Definition: TrigConfData.h:47
TrigConf::TrigConfData::print
virtual void print(const std::string &indent="", unsigned int detail=1) const =0
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
TrigConf::TrigConfData::setSuperMasterTableId
void setSuperMasterTableId(int id)
Definition: TrigConfData.h:27
TrigConf::TrigConfData::setSMK
void setSMK(int id)
Definition: TrigConfData.h:28
TrigConf::TrigConfData::m_comment
std::string m_comment
Definition: TrigConfData.h:48
TrigConf::TrigConfData::version
unsigned int version() const
Definition: TrigConfData.h:24
TrigConf::TrigConfData
Definition: TrigConfData.h:13
TrigConf::TrigConfData::superMasterTableId
int superMasterTableId() const
Definition: TrigConfData.h:19
TrigConf::TrigConfData::setComment
void setComment(const std::string &c)
Definition: TrigConfData.h:32
TrigConf::TrigConfData::setId
void setId(unsigned int id)
Definition: TrigConfData.h:29
TrigConf::name
Definition: HLTChainList.h:35
TrigConf::TrigConfData::smk
unsigned int smk() const
Definition: TrigConfData.h:20
TrigConf::TrigConfData::id
unsigned int id() const
Definition: TrigConfData.h:21
TrigConf::TrigConfData::m_smk
unsigned int m_smk
Definition: TrigConfData.h:44
TrigConf::TrigConfData::setVersion
void setVersion(unsigned int version)
Definition: TrigConfData.h:31
TrigConf::TrigConfData::indent
std::ostream & indent(std::ostream &o, int lvl, int size) const
Definition: TrigConfData.cxx:23
TrigConf::TrigConfData::__str__
virtual std::string __str__() const
Definition: TrigConfData.cxx:50
python.compressB64.c
def c
Definition: compressB64.py:93
TrigConf::TrigConfData::printNameIdV
void printNameIdV(const std::string &indent="") const
Definition: TrigConfData.cxx:31
TrigConf::TrigConfData::~TrigConfData
virtual ~TrigConfData()=default