CMS 3D CMS Logo

SiStripPartition.h
Go to the documentation of this file.
1 
2 #ifndef OnlineDB_SiStripConfigDb_SiStripPartition_h
3 #define OnlineDB_SiStripConfigDb_SiStripPartition_h
4 
7 #include <vector>
8 #include <string>
9 #include <ostream>
10 #include <sstream>
11 #include <cstdint>
12 
13 class SiStripConfigDb;
14 class SiStripPartition;
15 
17 std::ostream& operator<<(std::ostream&, const SiStripPartition&);
18 
25 public:
27 
28  SiStripPartition(std::string partition_name);
29 
31 
33 
34  bool operator==(const SiStripPartition&) const;
35 
36  bool operator!=(const SiStripPartition&) const;
37 
39 
41 
42  typedef std::pair<uint32_t, uint32_t> Versions;
43 
44  void reset();
45 
46  void pset(const edm::ParameterSet&);
47 
48  void update(const SiStripConfigDb* const);
49 
50  void print(std::stringstream&, bool using_db = false) const;
51 
52  // partition, run and version information
53 
54  std::string partitionName() const;
55 
56  uint32_t runNumber() const;
57 
58  sistrip::RunType runType() const;
59 
60  bool forceVersions() const;
61 
62  bool forceCurrentState() const;
63 
64  // description versions
65 
66  Versions cabVersion() const;
67 
68  Versions fedVersion() const;
69 
70  Versions fecVersion() const;
71 
72  Versions dcuVersion() const;
73 
74  Versions psuVersion() const;
75 
76  //#ifdef USING_DATABASE_MASKING // define anyway, otherwise I get into a mess with includes
77  Versions maskVersion() const;
78  //#endif
79 
80  uint32_t globalAnalysisVersion() const;
81 
82  Versions runTableVersion() const;
83 
85 
86  Versions apvTimingVersion() const;
87 
88  Versions optoScanVersion() const;
89 
90  Versions vpspScanVersion() const;
91 
92  Versions apvCalibVersion() const;
93 
94  Versions pedestalsVersion() const;
95 
97 
99 
100  Versions fineDelayVersion() const;
101 
102  // input xml files
103 
104  std::string inputModuleXml() const;
105 
107 
108  std::vector<std::string> inputFecXml() const;
109 
110  std::vector<std::string> inputFedXml() const;
111 
112  // setters
113 
115 
116  void runNumber(uint32_t);
117 
118  void forceVersions(bool);
119 
120  void forceCurrentState(bool);
121 
122 private:
123  Versions versions(const std::vector<uint32_t>&);
124 
125 private:
127 
128  uint32_t runNumber_;
129 
131 
133 
135 
136  // device description versions
137 
139 
141 
143 
145 
147 
148  //#ifdef USING_DATABASE_MASKING // define anyway, otherwise I get into a mess with includes
150  //#endif
151 
152  // analysis description versions
153 
155 
157 
159 
161 
163 
165 
167 
169 
171 
173 
175 
176  // input xml files
177 
179 
181 
182  std::vector<std::string> inputFecXml_;
183 
184  std::vector<std::string> inputFedXml_;
185 };
186 
187 // ---------- Inline methods ----------
188 
190 inline uint32_t SiStripPartition::runNumber() const { return runNumber_; }
192 inline bool SiStripPartition::forceVersions() const { return forceVersions_; }
194 
200 //#ifdef USING_DATABASE_MASKING // define anyway, otherwise I get into a mess with includes
202 //#endif
203 
215 
218 inline std::vector<std::string> SiStripPartition::inputFecXml() const { return inputFecXml_; }
219 inline std::vector<std::string> SiStripPartition::inputFedXml() const { return inputFedXml_; }
220 
222 inline void SiStripPartition::runNumber(uint32_t run) { runNumber_ = run; }
225 
226 #endif // OnlineDB_SiStripConfigDb_SiStripPartition_h
sistrip::RunType runType_
static const std::string defaultPartitionName_
std::string inputDcuInfoXml() const
std::string partitionName_
Versions pedestalsVersion() const
std::vector< std::string > inputFecXml() const
void update(const SiStripConfigDb *const)
Versions apvTimingVersion() const
Versions runTableVersion() const
Versions apvLatencyVersion() const
std::string partitionName() const
Versions apvCalibVersion() const
Versions cabVersion() const
void pset(const edm::ParameterSet &)
Versions maskVersion() const
uint32_t runNumber() const
Versions versions(const std::vector< uint32_t > &)
An interface class to the DeviceFactory.
std::ostream & operator<<(std::ostream &, const SiStripPartition &)
std::string inputModuleXml() const
Container class for database partition parameters.
Versions dcuVersion() const
Versions fastCablingVersion() const
std::vector< std::string > inputFedXml_
bool operator==(const SiStripPartition &) const
Versions fedVersion() const
Versions fecVersion() const
Versions optoScanVersion() const
bool operator!=(const SiStripPartition &) const
std::string inputDcuInfoXml_
bool forceCurrentState() const
std::pair< uint32_t, uint32_t > Versions
bool forceVersions() const
std::string inputModuleXml_
uint32_t globalAnalysisVersion() const
std::vector< std::string > inputFecXml_
Versions vpspScanVersion() const
std::vector< std::string > inputFedXml() const
Versions fineDelayVersion() const
SiStripPartition & operator=(const SiStripPartition &)
Versions psuVersion() const
Versions pedsFullNoiseVersion() const
void print(std::stringstream &, bool using_db=false) const
sistrip::RunType runType() const