ATLAS Offline Software
CTPFiles.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TrigConf_CTPFiles
6 #define TrigConf_CTPFiles
7 
8 #include <string>
9 #include <inttypes.h>
10 #include <sys/types.h>
11 #include <vector>
14 
15 namespace TrigConf {
16 
17  class CTPFiles : public L1DataBaseclass {
18 
19  public:
20  // thread-safe because only set once during initialize
21  static u_int ALL_CTPCORELUT_SIZE ATLAS_THREAD_SAFE;
22  static u_int ALL_CTPCORECAM_SIZE ATLAS_THREAD_SAFE;
23 
24  static u_int ALL_CTPINMONSEL_SIZE ATLAS_THREAD_SAFE;
25  static u_int ALL_CTPINMONDEC_SIZE ATLAS_THREAD_SAFE;
26 
27  static u_int CTPMON_MUX_OUTPUT_NUMBER ATLAS_THREAD_SAFE;
28  static u_int CTPMON_ADDRESS_SELECTOR_NUMBER ATLAS_THREAD_SAFE;
29  static u_int ALL_CTPMONSELECTOR_SIZE ATLAS_THREAD_SAFE;
30  static u_int ALL_CTPMONDECODER_SIZE ATLAS_THREAD_SAFE;
31 
32 
33  CTPFiles();
34  virtual ~CTPFiles() override = default;
35 
36  // Accessors
37  void setFileSizes(unsigned int run);
38 
39  // return copy of vector
40  const std::vector<uint32_t> & ctpcoreLUT() const;
41  void setCtpcoreLUT( const std::vector<u_int>& vec);
42 
43  // return copy of vector
44  const std::vector<uint32_t> & ctpcoreCAM() const;
45  void setCtpcoreCAM( const std::vector<u_int>& vec );
46 
47  // return copy of vector
48  const std::vector<uint32_t> & ctpinMonSelectorSlot7() const;
49  void setCtpinMonSelectorSlot7( const std::vector<u_int>& vec );
50 
51  const std::vector<uint32_t> & ctpinMonSelectorSlot8() const;
52  void setCtpinMonSelectorSlot8( const std::vector<u_int>& vec );
53 
54  const std::vector<uint32_t> & ctpinMonSelectorSlot9() const;
55  void setCtpinMonSelectorSlot9( const std::vector<u_int>& vec );
56 
57  // return copy of vector
58  const std::vector<uint32_t> & ctpmonSelector() const;
59  void setCtpmonSelector( const std::vector<u_int>& vec );
60 
61  // return copy of vector
62  const std::vector<uint32_t> & ctpinMonDecoderSlot7() const;
63  void setCtpinMonDecoderSlot7( const std::vector<u_int>& vec );
64 
65  // return copy of vector
66  const std::vector<uint32_t> & ctpinMonDecoderSlot8() const;
67  void setCtpinMonDecoderSlot8( const std::vector<u_int>& vec );
68 
69  // return copy of vector
70  const std::vector<uint32_t> & ctpinMonDecoderSlot9() const;
71  void setCtpinMonDecoderSlot9( const std::vector<u_int>& vec );
72 
73  // return copy of vector
74  const std::vector<uint32_t> & ctpmonDecoder() const;
75  void setCtpmonDecoder( const std::vector<u_int>& vec );
76 
77  int lvl1MasterTableId() const {return m_Lvl1MasterTableId;}
79 
80  int smxId() const {return m_smxId;}
81  void setSmxId (const int& id){m_smxId=id;}
82 
83  const std::string & smxName() const {return m_smxName;}
84  void setSmxName (const std::string& str) {m_smxName = str;}
85 
86  const std::string& ctpinSmxVhdlSlot7() const { return m_ctpinSmxVhdlSlot7; }
87  const std::string& ctpinSmxVhdlSlot8() const { return m_ctpinSmxVhdlSlot8; }
88  const std::string& ctpinSmxVhdlSlot9() const { return m_ctpinSmxVhdlSlot9; }
89  const std::string& ctpinSmxSvfiSlot7() const { return m_ctpinSmxSvfiSlot7; }
90  const std::string& ctpinSmxSvfiSlot8() const { return m_ctpinSmxSvfiSlot8; }
91  const std::string& ctpinSmxSvfiSlot9() const { return m_ctpinSmxSvfiSlot9; }
92  const std::string& ctpinSmxOutput() const { return m_ctpinSmxOutput; }
93 
94  void setCtpinSmxVhdlSlot7(const std::string& str) {m_ctpinSmxVhdlSlot7 = str;}
95  void setCtpinSmxVhdlSlot8(const std::string& str) {m_ctpinSmxVhdlSlot8 = str;}
96  void setCtpinSmxVhdlSlot9(const std::string& str) {m_ctpinSmxVhdlSlot9 = str;}
97  void setCtpinSmxSvfiSlot7(const std::string& str) {m_ctpinSmxSvfiSlot7 = str;}
98  void setCtpinSmxSvfiSlot8(const std::string& str) {m_ctpinSmxSvfiSlot8 = str;}
99  void setCtpinSmxSvfiSlot9(const std::string& str) {m_ctpinSmxSvfiSlot9 = str;}
100  void setCtpinSmxOutput(const std::string& str) {m_ctpinSmxOutput = str;}
101 
102  bool loadCtpcoreFiles() const {return m_LoadCtpcoreFiles;}
104  bool loadCtpinFiles() const {return m_LoadCtpinFiles;}
105  void setLoadCtpinFiles (bool flag = true) { m_LoadCtpinFiles=flag; }
106  bool loadCtpmonFiles() const {return m_LoadCtpmonFiles;}
108 
109  virtual void print(const std::string& indent="", unsigned int detail=1) const override;
110 
111  private:
113  std::vector<uint32_t> m_ctpcoreLUT;
114  std::vector<uint32_t> m_ctpcoreCAM;
115  std::vector<uint32_t> m_ctpinMonSelectorSlot7;
116  std::vector<uint32_t> m_ctpinMonSelectorSlot8;
117  std::vector<uint32_t> m_ctpinMonSelectorSlot9;
118  std::vector<uint32_t> m_ctpmonSelector;
119  std::vector<uint32_t> m_ctpinMonDecoderSlot7;
120  std::vector<uint32_t> m_ctpinMonDecoderSlot8;
121  std::vector<uint32_t> m_ctpinMonDecoderSlot9;
122  std::vector<uint32_t> m_ctpmonDecoder;
123 
124  int m_smxId;
125  std::string m_smxName;
126  std::string m_ctpinSmxVhdlSlot7;
127  std::string m_ctpinSmxVhdlSlot8;
128  std::string m_ctpinSmxVhdlSlot9;
129  std::string m_ctpinSmxSvfiSlot7;
130  std::string m_ctpinSmxSvfiSlot8;
131  std::string m_ctpinSmxSvfiSlot9;
132  std::string m_ctpinSmxOutput;
133 
137  };
138 }
139 #endif
140 
TrigConf::CTPFiles::loadCtpinFiles
bool loadCtpinFiles() const
Definition: CTPFiles.h:104
TrigConf::CTPFiles::ctpcoreLUT
const std::vector< uint32_t > & ctpcoreLUT() const
Definition: CTPFiles.cxx:62
TrigConf::CTPFiles::ATLAS_THREAD_SAFE
static u_int ALL_CTPMONSELECTOR_SIZE ATLAS_THREAD_SAFE
Definition: CTPFiles.h:29
TrigConf::CTPFiles::setCtpcoreCAM
void setCtpcoreCAM(const std::vector< u_int > &vec)
Definition: CTPFiles.cxx:80
TrigConf::CTPFiles::setCtpmonSelector
void setCtpmonSelector(const std::vector< u_int > &vec)
Definition: CTPFiles.cxx:132
TrigConf::CTPFiles::setCtpinSmxSvfiSlot9
void setCtpinSmxSvfiSlot9(const std::string &str)
Definition: CTPFiles.h:99
TrigConf::CTPFiles::setCtpinSmxSvfiSlot8
void setCtpinSmxSvfiSlot8(const std::string &str)
Definition: CTPFiles.h:98
TrigConf::CTPFiles::ATLAS_THREAD_SAFE
static u_int CTPMON_ADDRESS_SELECTOR_NUMBER ATLAS_THREAD_SAFE
Definition: CTPFiles.h:28
TrigConf::CTPFiles::ctpcoreCAM
const std::vector< uint32_t > & ctpcoreCAM() const
Definition: CTPFiles.cxx:75
TrigConf::CTPFiles::ATLAS_THREAD_SAFE
static u_int ALL_CTPMONDECODER_SIZE ATLAS_THREAD_SAFE
Definition: CTPFiles.h:30
TrigConf::CTPFiles::setCtpinMonDecoderSlot7
void setCtpinMonDecoderSlot7(const std::vector< u_int > &vec)
Definition: CTPFiles.cxx:144
TrigConf::CTPFiles::m_LoadCtpinFiles
bool m_LoadCtpinFiles
Definition: CTPFiles.h:135
TrigConf::CTPFiles::m_ctpinSmxOutput
std::string m_ctpinSmxOutput
Definition: CTPFiles.h:132
TrigConf::CTPFiles::m_ctpinMonDecoderSlot7
std::vector< uint32_t > m_ctpinMonDecoderSlot7
Definition: CTPFiles.h:119
TrigConf::CTPFiles::ctpmonDecoder
const std::vector< uint32_t > & ctpmonDecoder() const
Definition: CTPFiles.cxx:176
TrigConf::CTPFiles::setLoadCtpinFiles
void setLoadCtpinFiles(bool flag=true)
Definition: CTPFiles.h:105
TrigConf::CTPFiles::ATLAS_THREAD_SAFE
static u_int ALL_CTPCORECAM_SIZE ATLAS_THREAD_SAFE
Definition: CTPFiles.h:22
TrigConf::CTPFiles::setFileSizes
void setFileSizes(unsigned int run)
Definition: CTPFiles.cxx:32
TrigConf::CTPFiles::ctpinSmxSvfiSlot7
const std::string & ctpinSmxSvfiSlot7() const
Definition: CTPFiles.h:89
TrigConf::CTPFiles::m_LoadCtpcoreFiles
bool m_LoadCtpcoreFiles
Definition: CTPFiles.h:134
detail
Definition: extract_histogram_tag.cxx:14
TrigConf::CTPFiles::setCtpinSmxOutput
void setCtpinSmxOutput(const std::string &str)
Definition: CTPFiles.h:100
vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:12
TrigConf::CTPFiles::m_ctpmonDecoder
std::vector< uint32_t > m_ctpmonDecoder
Definition: CTPFiles.h:122
TrigConf::CTPFiles::setLoadCtpmonFiles
void setLoadCtpmonFiles(bool flag=true)
Definition: CTPFiles.h:107
TrigConf::CTPFiles::m_ctpcoreCAM
std::vector< uint32_t > m_ctpcoreCAM
Definition: CTPFiles.h:114
TrigConf::CTPFiles::ATLAS_THREAD_SAFE
static u_int ALL_CTPINMONDEC_SIZE ATLAS_THREAD_SAFE
Definition: CTPFiles.h:25
TrigConf::CTPFiles::m_ctpinSmxVhdlSlot9
std::string m_ctpinSmxVhdlSlot9
Definition: CTPFiles.h:128
TrigConf::CTPFiles::setCtpinSmxVhdlSlot8
void setCtpinSmxVhdlSlot8(const std::string &str)
Definition: CTPFiles.h:95
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
TrigConf::CTPFiles::m_Lvl1MasterTableId
int m_Lvl1MasterTableId
Definition: CTPFiles.h:112
TrigConf::CTPFiles::setCtpcoreLUT
void setCtpcoreLUT(const std::vector< u_int > &vec)
Definition: CTPFiles.cxx:67
TrigConf::CTPFiles::ctpinSmxVhdlSlot9
const std::string & ctpinSmxVhdlSlot9() const
Definition: CTPFiles.h:88
TrigConf::CTPFiles::loadCtpmonFiles
bool loadCtpmonFiles() const
Definition: CTPFiles.h:106
TrigConf::CTPFiles::ctpinSmxSvfiSlot8
const std::string & ctpinSmxSvfiSlot8() const
Definition: CTPFiles.h:90
TrigConf::CTPFiles::m_smxId
int m_smxId
Definition: CTPFiles.h:124
TrigConf::CTPFiles::setCtpmonDecoder
void setCtpmonDecoder(const std::vector< u_int > &vec)
Definition: CTPFiles.cxx:182
TrigConf::CTPFiles::m_ctpinMonDecoderSlot9
std::vector< uint32_t > m_ctpinMonDecoderSlot9
Definition: CTPFiles.h:121
TrigConf::CTPFiles::m_ctpinSmxVhdlSlot8
std::string m_ctpinSmxVhdlSlot8
Definition: CTPFiles.h:127
TrigConf::CTPFiles::ATLAS_THREAD_SAFE
static u_int ALL_CTPCORELUT_SIZE ATLAS_THREAD_SAFE
Definition: CTPFiles.h:21
TrigConf::CTPFiles::setCtpinMonDecoderSlot9
void setCtpinMonDecoderSlot9(const std::vector< u_int > &vec)
Definition: CTPFiles.cxx:169
TrigConf::CTPFiles::smxName
const std::string & smxName() const
Definition: CTPFiles.h:83
TrigConf::CTPFiles::setLoadCtpcoreFiles
void setLoadCtpcoreFiles(bool flag=true)
Definition: CTPFiles.h:103
master.flag
bool flag
Definition: master.py:29
TrigConf::CTPFiles::loadCtpcoreFiles
bool loadCtpcoreFiles() const
Definition: CTPFiles.h:102
TrigConf::CTPFiles::lvl1MasterTableId
int lvl1MasterTableId() const
Definition: CTPFiles.h:77
TrigConf::CTPFiles::ctpinMonDecoderSlot9
const std::vector< uint32_t > & ctpinMonDecoderSlot9() const
Definition: CTPFiles.cxx:164
TrigConf::CTPFiles::setCtpinSmxSvfiSlot7
void setCtpinSmxSvfiSlot7(const std::string &str)
Definition: CTPFiles.h:97
TrigConf::CTPFiles::m_ctpinMonSelectorSlot9
std::vector< uint32_t > m_ctpinMonSelectorSlot9
Definition: CTPFiles.h:117
run
Definition: run.py:1
TrigConf::CTPFiles::ATLAS_THREAD_SAFE
static u_int CTPMON_MUX_OUTPUT_NUMBER ATLAS_THREAD_SAFE
Definition: CTPFiles.h:27
TrigConf::CTPFiles::setCtpinMonSelectorSlot8
void setCtpinMonSelectorSlot8(const std::vector< u_int > &vec)
Definition: CTPFiles.cxx:105
TrigConf::CTPFiles::ATLAS_THREAD_SAFE
static u_int ALL_CTPINMONSEL_SIZE ATLAS_THREAD_SAFE
Definition: CTPFiles.h:24
TrigConf::CTPFiles::ctpinMonSelectorSlot9
const std::vector< uint32_t > & ctpinMonSelectorSlot9() const
Definition: CTPFiles.cxx:113
TrigConf::CTPFiles::setCtpinSmxVhdlSlot7
void setCtpinSmxVhdlSlot7(const std::string &str)
Definition: CTPFiles.h:94
TrigConf::CTPFiles::smxId
int smxId() const
Definition: CTPFiles.h:80
TrigConf::CTPFiles::ctpinSmxSvfiSlot9
const std::string & ctpinSmxSvfiSlot9() const
Definition: CTPFiles.h:91
TrigConf::CTPFiles::m_ctpcoreLUT
std::vector< uint32_t > m_ctpcoreLUT
Definition: CTPFiles.h:113
TrigConf::CTPFiles::m_ctpinMonSelectorSlot7
std::vector< uint32_t > m_ctpinMonSelectorSlot7
Definition: CTPFiles.h:115
TrigConf::CTPFiles::setSmxId
void setSmxId(const int &id)
Definition: CTPFiles.h:81
TrigConf::CTPFiles::setLvl1MasterTableId
void setLvl1MasterTableId(const int &id)
Definition: CTPFiles.h:78
TrigConf::TrigConfData::id
unsigned int id() const
Definition: TrigConfData.h:21
TrigConf::CTPFiles::ctpinSmxOutput
const std::string & ctpinSmxOutput() const
Definition: CTPFiles.h:92
TrigConf::CTPFiles::m_ctpmonSelector
std::vector< uint32_t > m_ctpmonSelector
Definition: CTPFiles.h:118
TrigConf::CTPFiles::ctpmonSelector
const std::vector< uint32_t > & ctpmonSelector() const
Definition: CTPFiles.cxx:126
TrigConf::CTPFiles::ctpinSmxVhdlSlot8
const std::string & ctpinSmxVhdlSlot8() const
Definition: CTPFiles.h:87
TrigConf::CTPFiles::setSmxName
void setSmxName(const std::string &str)
Definition: CTPFiles.h:84
TrigConf::CTPFiles::m_ctpinSmxSvfiSlot7
std::string m_ctpinSmxSvfiSlot7
Definition: CTPFiles.h:129
TrigConf::CTPFiles::ctpinMonDecoderSlot8
const std::vector< uint32_t > & ctpinMonDecoderSlot8() const
Definition: CTPFiles.cxx:151
TrigConf::CTPFiles
Definition: CTPFiles.h:17
TrigConf::CTPFiles::m_ctpinSmxSvfiSlot8
std::string m_ctpinSmxSvfiSlot8
Definition: CTPFiles.h:130
python.CaloScaleNoiseConfig.str
str
Definition: CaloScaleNoiseConfig.py:78
TrigConf::CTPFiles::~CTPFiles
virtual ~CTPFiles() override=default
TrigConf::CTPFiles::ctpinSmxVhdlSlot7
const std::string & ctpinSmxVhdlSlot7() const
Definition: CTPFiles.h:86
TrigConf::CTPFiles::setCtpinMonSelectorSlot9
void setCtpinMonSelectorSlot9(const std::vector< u_int > &vec)
Definition: CTPFiles.cxx:118
TrigConf::CTPFiles::ctpinMonSelectorSlot8
const std::vector< uint32_t > & ctpinMonSelectorSlot8() const
Definition: CTPFiles.cxx:100
TrigConf::CTPFiles::m_ctpinMonSelectorSlot8
std::vector< uint32_t > m_ctpinMonSelectorSlot8
Definition: CTPFiles.h:116
TrigConf::TrigConfData::indent
std::ostream & indent(std::ostream &o, int lvl, int size) const
Definition: TrigConfData.cxx:23
TrigConf::L1DataBaseclass
Definition: L1DataBaseclass.h:22
str
Definition: BTagTrackIpAccessor.cxx:11
TrigConf::CTPFiles::ctpinMonSelectorSlot7
const std::vector< uint32_t > & ctpinMonSelectorSlot7() const
Definition: CTPFiles.cxx:88
L1DataBaseclass.h
TrigConf::CTPFiles::m_LoadCtpmonFiles
bool m_LoadCtpmonFiles
Definition: CTPFiles.h:136
TrigConf::CTPFiles::m_ctpinSmxSvfiSlot9
std::string m_ctpinSmxSvfiSlot9
Definition: CTPFiles.h:131
TrigConf::CTPFiles::setCtpinSmxVhdlSlot9
void setCtpinSmxVhdlSlot9(const std::string &str)
Definition: CTPFiles.h:96
TrigConf::CTPFiles::m_ctpinMonDecoderSlot8
std::vector< uint32_t > m_ctpinMonDecoderSlot8
Definition: CTPFiles.h:120
TrigConf::CTPFiles::m_ctpinSmxVhdlSlot7
std::string m_ctpinSmxVhdlSlot7
Definition: CTPFiles.h:126
checker_macros.h
Define macros for attributes used to control the static checker.
TrigConf::CTPFiles::m_smxName
std::string m_smxName
Definition: CTPFiles.h:125
TrigConf::CTPFiles::setCtpinMonDecoderSlot8
void setCtpinMonDecoderSlot8(const std::vector< u_int > &vec)
Definition: CTPFiles.cxx:156
TrigConf::CTPFiles::setCtpinMonSelectorSlot7
void setCtpinMonSelectorSlot7(const std::vector< u_int > &vec)
Definition: CTPFiles.cxx:93
TrigConf::CTPFiles::ctpinMonDecoderSlot7
const std::vector< uint32_t > & ctpinMonDecoderSlot7() const
Definition: CTPFiles.cxx:140
TrigConf::CTPFiles::print
virtual void print(const std::string &indent="", unsigned int detail=1) const override
Definition: CTPFiles.cxx:191
TrigConf::CTPFiles::CTPFiles
CTPFiles()
Definition: CTPFiles.cxx:22