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 // Last commit: $Id: SiStripPartition.h,v 1.11 2009/04/06 12:36:45 lowette Exp $
2 
3 #ifndef OnlineDB_SiStripConfigDb_SiStripPartition_h
4 #define OnlineDB_SiStripConfigDb_SiStripPartition_h
5 
8 #include "boost/cstdint.hpp"
9 #include <vector>
10 #include <string>
11 #include <ostream>
12 #include <sstream>
13 
14 class SiStripConfigDb;
15 class SiStripPartition;
16 
18 std::ostream& operator<< ( std::ostream&, const SiStripPartition& );
19 
26 
27  public:
28 
30 
31  SiStripPartition( std::string partition_name );
32 
34 
36 
37  bool operator== ( const SiStripPartition& ) const;
38 
39  bool operator!= ( const SiStripPartition& ) const;
40 
42 
43  static std::string defaultPartitionName_;
44 
45  typedef std::pair<uint32_t,uint32_t> Versions;
46 
47  void reset();
48 
49  void pset( const edm::ParameterSet& );
50 
51  void update( const SiStripConfigDb* const );
52 
53  void print( std::stringstream&, bool using_db = false ) const;
54 
55  // partition, run and version information
56 
57  std::string partitionName() const;
58 
59  uint32_t runNumber() const;
60 
61  sistrip::RunType runType() const;
62 
63  bool forceVersions() const;
64 
65  bool forceCurrentState() const;
66 
67  // description versions
68 
69  Versions cabVersion() const;
70 
71  Versions fedVersion() const;
72 
73  Versions fecVersion() const;
74 
75  Versions dcuVersion() const;
76 
77  Versions psuVersion() const;
78 
79 //#ifdef USING_DATABASE_MASKING // define anyway, otherwise I get into a mess with includes
80  Versions maskVersion() const;
81 //#endif
82 
83  uint32_t globalAnalysisVersion() const;
84 
85  Versions runTableVersion() const;
86 
88 
89  Versions apvTimingVersion() const;
90 
91  Versions optoScanVersion() const;
92 
93  Versions vpspScanVersion() const;
94 
95  Versions apvCalibVersion() const;
96 
97  Versions pedestalsVersion() const;
98 
100 
101  Versions fineDelayVersion() const;
102 
103  // input xml files
104 
105  std::string inputModuleXml() const;
106 
107  std::string inputDcuInfoXml() const;
108 
109  std::vector<std::string> inputFecXml() const;
110 
111  std::vector<std::string> inputFedXml() const;
112 
113  // setters
114 
115  void partitionName( std::string );
116 
117  void runNumber( uint32_t );
118 
119  void forceVersions( bool );
120 
121  void forceCurrentState( bool );
122 
123  private:
124 
125  Versions versions( std::vector<uint32_t> );
126 
127  private:
128 
129  std::string partitionName_;
130 
131  uint32_t runNumber_;
132 
134 
136 
138 
139  // device description versions
140 
142 
144 
146 
148 
150 
151 //#ifdef USING_DATABASE_MASKING // define anyway, otherwise I get into a mess with includes
153 //#endif
154 
155  // analysis description versions
156 
158 
160 
162 
164 
166 
168 
170 
172 
174 
176 
177  // input xml files
178 
179  std::string inputModuleXml_;
180 
181  std::string inputDcuInfoXml_;
182 
183  std::vector<std::string> inputFecXml_;
184 
185  std::vector<std::string> inputFedXml_;
186 
187 };
188 
189 // ---------- Inline methods ----------
190 
191 inline std::string SiStripPartition::partitionName() const { return partitionName_; }
192 inline uint32_t SiStripPartition::runNumber() const { return runNumber_; }
194 inline bool SiStripPartition::forceVersions() const { return forceVersions_; }
196 
202 //#ifdef USING_DATABASE_MASKING // define anyway, otherwise I get into a mess with includes
204 //#endif
205 
206 inline uint32_t SiStripPartition::globalAnalysisVersion() const { return globalAnalysisV_; }
216 
217 inline std::string SiStripPartition::inputModuleXml() const { return inputModuleXml_; }
218 inline std::string SiStripPartition::inputDcuInfoXml() const { return inputDcuInfoXml_; }
219 inline std::vector<std::string> SiStripPartition::inputFecXml() const { return inputFecXml_; }
220 inline std::vector<std::string> SiStripPartition::inputFedXml() const { return inputFedXml_; }
221 
222 inline void SiStripPartition::partitionName( std::string name ) { partitionName_ = name ; }
223 inline void SiStripPartition::runNumber( uint32_t run ) { runNumber_ = run; }
224 inline void SiStripPartition::forceVersions( bool force ) { forceVersions_ = force; }
225 inline void SiStripPartition::forceCurrentState( bool force ) { forceCurrentState_ = force; }
226 
227 #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 &)
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
Versions versions(std::vector< uint32_t >)
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