ATLAS Offline Software
PrescaledClock.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_PrescaledClock
6 #define TrigConf_PrescaledClock
7 
8 #include <iosfwd>
9 #include <string>
11 
12 namespace TrigConf {
14  public:
16  virtual ~PrescaledClock() override = default;
17 
18  // setters
19  int clock1() const { return m_clock1; }
20  int clock2() const { return m_clock2; }
21 
22  // getters
23  void setClock1( int clock1 ) { m_clock1 = clock1; }
24  void setClock2( int clock2 ) { m_clock2 = clock2; }
25 
26  virtual void print(const std::string& indent="", unsigned int detail=1) const override;
27  virtual void writeXML(std::ostream & xmlfile, int indentLevel=0, int indentWidth=2) const;
28 
29  private:
30  int m_clock1;
31  int m_clock2;
32  };
33 }
34 
35 #endif
TrigConf::PrescaledClock::clock1
int clock1() const
Definition: PrescaledClock.h:19
TrigConf::PrescaledClock::PrescaledClock
PrescaledClock()
Definition: PrescaledClock.cxx:10
TrigConf::PrescaledClock::m_clock1
int m_clock1
Definition: PrescaledClock.h:30
detail
Definition: extract_histogram_tag.cxx:14
TrigConf::PrescaledClock::clock2
int clock2() const
Definition: PrescaledClock.h:20
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
TrigConf::PrescaledClock::setClock1
void setClock1(int clock1)
Definition: PrescaledClock.h:23
TrigConf::PrescaledClock
Definition: PrescaledClock.h:13
TrigConf::PrescaledClock::m_clock2
int m_clock2
Definition: PrescaledClock.h:31
TrigConf::TrigConfData::indent
std::ostream & indent(std::ostream &o, int lvl, int size) const
Definition: TrigConfData.cxx:23
TrigConf::L1DataBaseclass
Definition: L1DataBaseclass.h:22
TrigConf::PrescaledClock::~PrescaledClock
virtual ~PrescaledClock() override=default
TrigConf::PrescaledClock::writeXML
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
Definition: PrescaledClock.cxx:26
L1DataBaseclass.h
TrigConf::PrescaledClock::setClock2
void setClock2(int clock2)
Definition: PrescaledClock.h:24
TrigConf::PrescaledClock::print
virtual void print(const std::string &indent="", unsigned int detail=1) const override
Definition: PrescaledClock.cxx:16