test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 "boost/cstdint.hpp"
8 #include <vector>
9 #include <string>
10 #include <ostream>
11 #include <sstream>
12 
13 class SiStripConfigDb;
14 class SiStripPartition;
15 
17 std::ostream& operator<< ( std::ostream&, const SiStripPartition& );
18 
25 
26  public:
27 
29 
30  SiStripPartition( std::string partition_name );
31 
33 
35 
36  bool operator== ( const SiStripPartition& ) const;
37 
38  bool operator!= ( const SiStripPartition& ) const;
39 
41 
43 
44  typedef std::pair<uint32_t,uint32_t> Versions;
45 
46  void reset();
47 
48  void pset( const edm::ParameterSet& );
49 
50  void update( const SiStripConfigDb* const );
51 
52  void print( std::stringstream&, bool using_db = false ) const;
53 
54  // partition, run and version information
55 
56  std::string partitionName() const;
57 
58  uint32_t runNumber() const;
59 
60  sistrip::RunType runType() const;
61 
62  bool forceVersions() const;
63 
64  bool forceCurrentState() const;
65 
66  // description versions
67 
68  Versions cabVersion() const;
69 
70  Versions fedVersion() const;
71 
72  Versions fecVersion() const;
73 
74  Versions dcuVersion() const;
75 
76  Versions psuVersion() const;
77 
78 //#ifdef USING_DATABASE_MASKING // define anyway, otherwise I get into a mess with includes
79  Versions maskVersion() const;
80 //#endif
81 
82  uint32_t globalAnalysisVersion() const;
83 
84  Versions runTableVersion() const;
85 
87 
88  Versions apvTimingVersion() const;
89 
90  Versions optoScanVersion() const;
91 
92  Versions vpspScanVersion() const;
93 
94  Versions apvCalibVersion() const;
95 
96  Versions pedestalsVersion() const;
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 
114  void partitionName( std::string );
115 
116  void runNumber( uint32_t );
117 
118  void forceVersions( bool );
119 
120  void forceCurrentState( bool );
121 
122  private:
123 
124  Versions versions( const std::vector<uint32_t>& );
125 
126  private:
127 
129 
130  uint32_t runNumber_;
131 
133 
135 
137 
138  // device description versions
139 
141 
143 
145 
147 
149 
150 //#ifdef USING_DATABASE_MASKING // define anyway, otherwise I get into a mess with includes
152 //#endif
153 
154  // analysis description versions
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 
188 // ---------- Inline methods ----------
189 
191 inline uint32_t SiStripPartition::runNumber() const { return runNumber_; }
193 inline bool SiStripPartition::forceVersions() const { return forceVersions_; }
195 
201 //#ifdef USING_DATABASE_MASKING // define anyway, otherwise I get into a mess with includes
203 //#endif
204 
205 inline uint32_t SiStripPartition::globalAnalysisVersion() const { return globalAnalysisV_; }
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; }
223 inline void SiStripPartition::forceVersions( bool force ) { forceVersions_ = force; }
224 inline void SiStripPartition::forceCurrentState( bool force ) { forceCurrentState_ = force; }
225 
226 #endif // OnlineDB_SiStripConfigDb_SiStripPartition_h
static std::string defaultPartitionName_
sistrip::RunType runType_
Versions maskVersion() const
Versions pedestalsVersion() const
Versions vpspScanVersion() const
Versions fineDelayVersion() const
Versions optoScanVersion() const
std::string partitionName() const
bool operator!=(const SiStripPartition &) const
std::string partitionName_
uint32_t runNumber() const
uint32_t globalAnalysisVersion() const
void print(std::stringstream &, bool using_db=false) const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
std::pair< uint32_t, uint32_t > Versions
Versions apvTimingVersion() const
Versions apvLatencyVersion() const
void pset(const edm::ParameterSet &)
Versions versions(const std::vector< uint32_t > &)
An interface class to the DeviceFactory.
Container class for database partition parameters.
std::vector< std::string > inputFedXml_
Versions runTableVersion() const
std::vector< std::string > inputFecXml() const
bool forceCurrentState() const
std::string inputDcuInfoXml_
std::string inputModuleXml_
Versions apvCalibVersion() const
std::vector< std::string > inputFecXml_
void update(const SiStripConfigDb *const )
bool operator==(const SiStripPartition &) const
std::vector< std::string > inputFedXml() const
Versions dcuVersion() const
bool forceVersions() const
SiStripPartition & operator=(const SiStripPartition &)
Versions psuVersion() const
sistrip::RunType runType() const
Versions fecVersion() const
Versions cabVersion() const
Versions fedVersion() const
std::string inputDcuInfoXml() const
std::string inputModuleXml() const
Versions fastCablingVersion() const