ATLAS Offline Software
CTPConfig.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef TrigConf_CTPConfig
8 #define TrigConf_CTPConfig
9 
10 #include <iosfwd>
11 
12 #include "TrigConfL1Data/Menu.h"
17 #include "TrigConfL1Data/Random.h"
21 #include "TrigConfL1Data/Muctpi.h"
22 
23 namespace TrigConf {
24 
25  class DiffStruct;
26 
27  class CTPConfig : public L1DataBaseclass {
28  public:
29  CTPConfig();
30  virtual ~CTPConfig() override;
31 
32  // getters
33  unsigned int ctpVersion() const { return m_ctpVersion; }
34  unsigned int l1Version() const { return m_l1Version; }
35  int prescaleSetId() const { return m_PrescaleSetId; }
36  int bunchGroupSetId() const { return m_BunchGroupSetId; }
37 
38  const Menu& menu() const { return m_Menu; }
39  const PrescaleSet& prescaleSet(unsigned int partition=0) const { return m_PrescaleSets[partition]; }
40  const BunchGroupSet& bunchGroupSet() const { return m_BunchGroupSet; }
41  const PrescaledClock& prescaledClock() const { return m_PrescaledClock; }
42  const DeadTime& deadTime() const { return m_DeadTime; }
43  const Random& random() const { return m_Random; }
44  const CTPFiles* ctpfiles() const { return m_CTPFiles; }
45  const PrioritySet& prioritySet() const { return m_PrioritySet; }
46  const Muctpi& muCTPi() const { return m_MuCTPi; }
47 
48 
49  Menu& menu() { return m_Menu; }
53  DeadTime& deadTime() { return m_DeadTime; }
54  Random& random() { return m_Random; }
55  CTPFiles* ctpfiles() { return m_CTPFiles; }
57  Muctpi& muCTPi() { return m_MuCTPi; }
58 
59  bool loadCtpFiles() const { return m_LoadCtpFiles; }
60  bool loadCtpcoreFiles() const { return m_LoadCtpcoreFiles; }
61  bool loadCtpinFiles() const { return m_LoadCtpinFiles; }
62  bool loadCtpmonFiles() const { return m_LoadCtpmonFiles; }
63 
64  // setters
65  void setCTPVersion( unsigned int v );
66  void setL1Version( unsigned int v );
69 
70  void clearPrescaleSets();
71  void setPrescaleSet( const PrescaleSet& pss );
72 
75  void setDeadTime( const DeadTime& m ) { m_DeadTime = m; }
76  void setRandom( const Random& m ) { m_Random = m; }
78  void setPrioritySet( const PrioritySet& m ) { m_PrioritySet = m; }
79  void setMuCTPi( const Muctpi& m ) { m_MuCTPi = m; }
80  void setLoadCtpFiles (bool flag = true) {
85  }
87  void setLoadCtpinFiles (bool flag = true) { m_LoadCtpinFiles=flag; }
89 
90 
91  // helpers
92  virtual void print(const std::string& indent="", unsigned int detail=1) const override;
93 
94  void writeXML(const std::string & filename, int indentWidth=2) const;
95  void writeXML(std::ostream & xmlfile, int indentLevel=0, int indentWidth=2) const;
96 
97  bool equals(const CTPConfig* other, const std::string& filename) const;
98 
99  DiffStruct* compareTo(const CTPConfig* o) const;
100 
101 
102  private:
103 
104  unsigned int m_ctpVersion;
105  unsigned int m_l1Version;
116 
122 
123  };
124 }
125 
126 #endif
TrigConf::PrioritySet
Definition: PrioritySet.h:14
TrigConf::CTPConfig::m_BunchGroupSet
BunchGroupSet m_BunchGroupSet
Definition: CTPConfig.h:110
TrigConf::BunchGroupSet
Definition: BunchGroupSet.h:19
TrigConf::Muctpi
Definition: Muctpi.h:12
PrescaleSet.h
TrigConf::CTPConfig::loadCtpcoreFiles
bool loadCtpcoreFiles() const
Definition: CTPConfig.h:60
TrigConf::CTPConfig::setLoadCtpcoreFiles
void setLoadCtpcoreFiles(bool flag=true)
Definition: CTPConfig.h:86
TrigConf::CTPConfig::m_PrescaledClock
PrescaledClock m_PrescaledClock
Definition: CTPConfig.h:111
TrigConf::CTPConfig::deadTime
const DeadTime & deadTime() const
Definition: CTPConfig.h:42
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
TrigConf::PrescaleSet
Definition: PrescaleSet.h:22
TrigConf::CTPConfig::setCTPFiles
void setCTPFiles(CTPFiles *ctp)
Definition: CTPConfig.h:77
TrigConf::CTPConfig::setBunchGroupSet
void setBunchGroupSet(const BunchGroupSet &m)
Definition: CTPConfig.h:73
TrigConf::CTPConfig::setLoadCtpmonFiles
void setLoadCtpmonFiles(bool flag=true)
Definition: CTPConfig.h:88
TrigConf::CTPConfig::ctpVersion
unsigned int ctpVersion() const
Definition: CTPConfig.h:33
TrigConf::CTPConfig::m_LoadCtpcoreFiles
bool m_LoadCtpcoreFiles
Definition: CTPConfig.h:118
TrigConf::DiffStruct
Definition: DiffStruct.h:14
TrigConf::CTPConfig::prescaleSet
PrescaleSet & prescaleSet(unsigned int partition=0)
Definition: CTPConfig.h:50
TrigConf::CTPConfig::bunchGroupSet
const BunchGroupSet & bunchGroupSet() const
Definition: CTPConfig.h:40
TrigConf::CTPConfig::m_ctpVersion
unsigned int m_ctpVersion
Definition: CTPConfig.h:104
CTPFiles.h
TrigConf::CTPConfig::bunchGroupSet
BunchGroupSet & bunchGroupSet()
Definition: CTPConfig.h:51
TrigConf::CTPConfig::m_Random
Random m_Random
Definition: CTPConfig.h:113
detail
Definition: extract_histogram_tag.cxx:14
Menu.h
TrigConf::DeadTime
Definition: DeadTime.h:13
TrigConf::CTPConfig::m_CTPFiles
CTPFiles * m_CTPFiles
Definition: CTPConfig.h:121
Random.h
TrigConf::CTPConfig::m_LoadCtpinFiles
bool m_LoadCtpinFiles
Definition: CTPConfig.h:119
TrigConf::CTPConfig::m_PrescaleSetId
int m_PrescaleSetId
Definition: CTPConfig.h:106
TrigConf::CTPConfig::loadCtpmonFiles
bool loadCtpmonFiles() const
Definition: CTPConfig.h:62
TrigConf::CTPConfig::setPrescaledClock
void setPrescaledClock(const PrescaledClock &m)
Definition: CTPConfig.h:74
TrigConf::CTPConfig::random
const Random & random() const
Definition: CTPConfig.h:43
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
TrigConf::CTPConfig::equals
bool equals(const CTPConfig *other, const std::string &filename) const
Definition: CTPConfig.cxx:61
TrigConf::CTPConfig::m_BunchGroupSetId
int m_BunchGroupSetId
Definition: CTPConfig.h:107
TrigConf::Menu
Definition: Menu.h:49
TrigConf::CTPConfig::random
Random & random()
Definition: CTPConfig.h:54
TrigConf::CTPConfig::prescaledClock
const PrescaledClock & prescaledClock() const
Definition: CTPConfig.h:41
TrigConf::CTPConfig::l1Version
unsigned int l1Version() const
Definition: CTPConfig.h:34
TrigConf::CTPConfig::m_Menu
Menu m_Menu
Definition: CTPConfig.h:108
TrigConf::CTPConfig::prescaleSetId
int prescaleSetId() const
Definition: CTPConfig.h:35
TrigConf::CTPConfig::compareTo
DiffStruct * compareTo(const CTPConfig *o) const
Definition: CTPConfig.cxx:78
TrigConf::Random
Definition: TrigConfiguration/TrigConfL1Data/TrigConfL1Data/Random.h:16
TrigConf::CTPConfig::setPrioritySet
void setPrioritySet(const PrioritySet &m)
Definition: CTPConfig.h:78
TrigConf::CTPConfig::m_l1Version
unsigned int m_l1Version
Definition: CTPConfig.h:105
TrigConf::CTPConfig::clearPrescaleSets
void clearPrescaleSets()
Definition: CTPConfig.cxx:45
TrigConf::CTPConfig::deadTime
DeadTime & deadTime()
Definition: CTPConfig.h:53
TrigConf::CTPConfig::m_PrescaleSets
PrescaleSet m_PrescaleSets[4]
Definition: CTPConfig.h:109
TrigConf::CTPConfig::m_DeadTime
DeadTime m_DeadTime
Definition: CTPConfig.h:112
master.flag
bool flag
Definition: master.py:29
TrigConf::CTPConfig::muCTPi
Muctpi & muCTPi()
Definition: CTPConfig.h:57
TrigConf::CTPConfig::prescaleSet
const PrescaleSet & prescaleSet(unsigned int partition=0) const
Definition: CTPConfig.h:39
TrigConf::CTPConfig::setLoadCtpFiles
void setLoadCtpFiles(bool flag=true)
Definition: CTPConfig.h:80
TrigConf::CTPConfig::m_LoadCtpFiles
bool m_LoadCtpFiles
Definition: CTPConfig.h:117
BunchGroupSet.h
TrigConf::CTPConfig::setBunchGroupSetId
void setBunchGroupSetId(int id)
Definition: CTPConfig.h:68
TrigConf::CTPConfig::m_LoadCtpmonFiles
bool m_LoadCtpmonFiles
Definition: CTPConfig.h:120
TrigConf::CTPConfig::ctpfiles
const CTPFiles * ctpfiles() const
Definition: CTPConfig.h:44
TrigConf::CTPConfig::loadCtpinFiles
bool loadCtpinFiles() const
Definition: CTPConfig.h:61
TrigConf::CTPConfig::m_PrioritySet
PrioritySet m_PrioritySet
Definition: CTPConfig.h:114
TrigConf::TrigConfData::id
unsigned int id() const
Definition: TrigConfData.h:21
PrescaledClock.h
TrigConf::CTPConfig::m_MuCTPi
Muctpi m_MuCTPi
Definition: CTPConfig.h:115
TrigConf::PrescaledClock
Definition: PrescaledClock.h:13
TrigConf::CTPConfig::prioritySet
PrioritySet & prioritySet()
Definition: CTPConfig.h:56
TrigConf::CTPConfig::CTPConfig
CTPConfig()
Definition: CTPConfig.cxx:14
TrigConf::CTPConfig::bunchGroupSetId
int bunchGroupSetId() const
Definition: CTPConfig.h:36
TrigConf::CTPConfig::setRandom
void setRandom(const Random &m)
Definition: CTPConfig.h:76
TriggerTest.ctp
ctp
Retrieve trigger EDM objects.
Definition: TriggerTest.py:14
PrioritySet.h
python.PyAthena.v
v
Definition: PyAthena.py:154
TrigConf::CTPConfig::setCTPVersion
void setCTPVersion(unsigned int v)
Definition: CTPConfig.cxx:33
TrigConf::CTPFiles
Definition: CTPFiles.h:17
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
TrigConf::CTPConfig::setLoadCtpinFiles
void setLoadCtpinFiles(bool flag=true)
Definition: CTPConfig.h:87
TrigConf::CTPConfig::setPrescaleSetId
void setPrescaleSetId(int id)
Definition: CTPConfig.h:67
DeadTime.h
TrigConf::CTPConfig::menu
const Menu & menu() const
Definition: CTPConfig.h:38
TrigConf::CTPConfig::setL1Version
void setL1Version(unsigned int v)
Definition: CTPConfig.cxx:39
TrigConf::CTPConfig::writeXML
void writeXML(const std::string &filename, int indentWidth=2) const
Definition: CTPConfig.cxx:111
StateLessPT_NewConfig.partition
partition
Definition: StateLessPT_NewConfig.py:49
CaloCellTimeCorrFiller.filename
filename
Definition: CaloCellTimeCorrFiller.py:24
TrigConf::CTPConfig
Definition: CTPConfig.h:27
TrigConf::TrigConfData::indent
std::ostream & indent(std::ostream &o, int lvl, int size) const
Definition: TrigConfData.cxx:23
TrigConf::CTPConfig::setDeadTime
void setDeadTime(const DeadTime &m)
Definition: CTPConfig.h:75
TrigConf::CTPConfig::ctpfiles
CTPFiles * ctpfiles()
Definition: CTPConfig.h:55
TrigConf::L1DataBaseclass
Definition: L1DataBaseclass.h:22
TrigConf::CTPConfig::prescaledClock
PrescaledClock & prescaledClock()
Definition: CTPConfig.h:52
L1DataBaseclass.h
TrigConf::CTPConfig::menu
Menu & menu()
Definition: CTPConfig.h:49
TrigConf::CTPConfig::prioritySet
const PrioritySet & prioritySet() const
Definition: CTPConfig.h:45
TrigConf::CTPConfig::print
virtual void print(const std::string &indent="", unsigned int detail=1) const override
Definition: CTPConfig.cxx:93
TrigConf::CTPConfig::loadCtpFiles
bool loadCtpFiles() const
Definition: CTPConfig.h:59
TrigConf::CTPConfig::muCTPi
const Muctpi & muCTPi() const
Definition: CTPConfig.h:46
TrigConf::CTPConfig::setPrescaleSet
void setPrescaleSet(const PrescaleSet &pss)
Definition: CTPConfig.cxx:51
TrigConf::CTPConfig::setMuCTPi
void setMuCTPi(const Muctpi &m)
Definition: CTPConfig.h:79
Muctpi.h
TrigConf::CTPConfig::~CTPConfig
virtual ~CTPConfig() override
Definition: CTPConfig.cxx:26