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
SiStripPartition::inputDcuInfoXml
std::string inputDcuInfoXml() const
Definition: SiStripPartition.h:217
SiStripPartition::inputModuleXml_
std::string inputModuleXml_
Definition: SiStripPartition.h:178
SiStripPartition::globalAnalysisVersion
uint32_t globalAnalysisVersion() const
Definition: SiStripPartition.h:204
SiStripPartition::forceCurrentState_
bool forceCurrentState_
Definition: SiStripPartition.h:134
cmsStageWithFailover.force
force
Definition: cmsStageWithFailover.py:19
SiStripPartition::pedsFullNoiseV_
Versions pedsFullNoiseV_
Definition: SiStripPartition.h:170
SiStripPartition::vpspScanV_
Versions vpspScanV_
Definition: SiStripPartition.h:164
SiStripPartition
Container class for database partition parameters.
Definition: SiStripPartition.h:24
SiStripPartition::maskVersion_
Versions maskVersion_
Definition: SiStripPartition.h:149
SiStripPartition::apvLatencyVersion
Versions apvLatencyVersion() const
Definition: SiStripPartition.h:213
SiStripPartition::forceCurrentState
bool forceCurrentState() const
Definition: SiStripPartition.h:193
SiStripPartition::pedestalsV_
Versions pedestalsV_
Definition: SiStripPartition.h:168
SiStripPartition::cabVersion
Versions cabVersion() const
Definition: SiStripPartition.h:195
SiStripPartition::fineDelayV_
Versions fineDelayV_
Definition: SiStripPartition.h:174
SiStripPartition::runNumber
uint32_t runNumber() const
Definition: SiStripPartition.h:190
SiStripPartition::cabVersion_
Versions cabVersion_
Definition: SiStripPartition.h:138
SiStripPartition::runTableVersion
Versions runTableVersion() const
Definition: SiStripPartition.h:205
SiStripPartition::operator==
bool operator==(const SiStripPartition &) const
Definition: SiStripPartition.cc:158
SiStripPartition::~SiStripPartition
~SiStripPartition()
Definition: SiStripPartition.cc:182
SiStripPartition::inputFecXml_
std::vector< std::string > inputFecXml_
Definition: SiStripPartition.h:182
SiStripPartition::fastCablingV_
Versions fastCablingV_
Definition: SiStripPartition.h:158
sistrip::RunType
RunType
Definition: ConstantsForRunType.h:70
operator<<
std::ostream & operator<<(std::ostream &, const SiStripPartition &)
Definition: SiStripPartition.cc:887
SiStripPartition::dcuVersion
Versions dcuVersion() const
Definition: SiStripPartition.h:198
SiStripPartition::dcuVersion_
Versions dcuVersion_
Definition: SiStripPartition.h:144
SiStripPartition::print
void print(std::stringstream &, bool using_db=false) const
Definition: SiStripPartition.cc:746
SiStripPartition::operator=
SiStripPartition & operator=(const SiStripPartition &)
Definition: SiStripPartition.cc:121
SiStripPartition::apvLatencyV_
Versions apvLatencyV_
Definition: SiStripPartition.h:172
SiStripPartition::optoScanVersion
Versions optoScanVersion() const
Definition: SiStripPartition.h:208
SiStripPartition::inputFedXml_
std::vector< std::string > inputFedXml_
Definition: SiStripPartition.h:184
SiStripPartition::apvCalibV_
Versions apvCalibV_
Definition: SiStripPartition.h:166
SiStripConfigDb
An interface class to the DeviceFactory.
Definition: SiStripConfigDb.h:47
SiStripPartition::forceVersions_
bool forceVersions_
Definition: SiStripPartition.h:132
SiStripPartition::apvTimingV_
Versions apvTimingV_
Definition: SiStripPartition.h:160
SiStripPartition::partitionName_
std::string partitionName_
Definition: SiStripPartition.h:126
SiStripPartition::forceVersions
bool forceVersions() const
Definition: SiStripPartition.h:192
SiStripPartition::vpspScanVersion
Versions vpspScanVersion() const
Definition: SiStripPartition.h:209
SiStripPartition::runType
sistrip::RunType runType() const
Definition: SiStripPartition.h:191
SiStripPartition::psuVersion_
Versions psuVersion_
Definition: SiStripPartition.h:146
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiStripPartition::reset
void reset()
Definition: SiStripPartition.cc:189
SiStripPartition::Versions
std::pair< uint32_t, uint32_t > Versions
Definition: SiStripPartition.h:42
SiStripConstants.h
edm::ParameterSet
Definition: ParameterSet.h:36
SiStripPartition::psuVersion
Versions psuVersion() const
Definition: SiStripPartition.h:199
SiStripPartition::apvCalibVersion
Versions apvCalibVersion() const
Definition: SiStripPartition.h:210
SiStripPartition::pset
void pset(const edm::ParameterSet &)
Definition: SiStripPartition.cc:227
SiStripPartition::apvTimingVersion
Versions apvTimingVersion() const
Definition: SiStripPartition.h:207
SiStripPartition::fecVersion_
Versions fecVersion_
Definition: SiStripPartition.h:142
SiStripPartition::inputFedXml
std::vector< std::string > inputFedXml() const
Definition: SiStripPartition.h:219
SiStripPartition::globalAnalysisV_
uint32_t globalAnalysisV_
Definition: SiStripPartition.h:154
SiStripPartition::fineDelayVersion
Versions fineDelayVersion() const
Definition: SiStripPartition.h:214
SiStripPartition::runTableVersion_
Versions runTableVersion_
Definition: SiStripPartition.h:156
SiStripPartition::pedestalsVersion
Versions pedestalsVersion() const
Definition: SiStripPartition.h:211
SiStripPartition::pedsFullNoiseVersion
Versions pedsFullNoiseVersion() const
Definition: SiStripPartition.h:212
writedatasetfile.run
run
Definition: writedatasetfile.py:27
SiStripPartition::runType_
sistrip::RunType runType_
Definition: SiStripPartition.h:130
SiStripPartition::fedVersion
Versions fedVersion() const
Definition: SiStripPartition.h:196
SiStripPartition::update
void update(const SiStripConfigDb *const)
Definition: SiStripPartition.cc:264
SiStripPartition::fedVersion_
Versions fedVersion_
Definition: SiStripPartition.h:140
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
SiStripPartition::maskVersion
Versions maskVersion() const
Definition: SiStripPartition.h:201
SiStripPartition::inputDcuInfoXml_
std::string inputDcuInfoXml_
Definition: SiStripPartition.h:180
SiStripPartition::SiStripPartition
SiStripPartition()
Definition: SiStripPartition.cc:17
SiStripPartition::runNumber_
uint32_t runNumber_
Definition: SiStripPartition.h:128
SiStripPartition::versions
Versions versions(const std::vector< uint32_t > &)
Definition: SiStripPartition.cc:896
SiStripPartition::inputModuleXml
std::string inputModuleXml() const
Definition: SiStripPartition.h:216
SiStripPartition::partitionName
std::string partitionName() const
Definition: SiStripPartition.h:189
SiStripPartition::fecVersion
Versions fecVersion() const
Definition: SiStripPartition.h:197
ParameterSet.h
SiStripPartition::defaultPartitionName_
static const std::string defaultPartitionName_
Definition: SiStripPartition.h:40
SiStripPartition::fastCablingVersion
Versions fastCablingVersion() const
Definition: SiStripPartition.h:206
SiStripPartition::operator!=
bool operator!=(const SiStripPartition &) const
Definition: SiStripPartition.cc:178
SiStripPartition::inputFecXml
std::vector< std::string > inputFecXml() const
Definition: SiStripPartition.h:218
SiStripPartition::optoScanV_
Versions optoScanV_
Definition: SiStripPartition.h:162