CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CommissioningHistosUsingDb.h
Go to the documentation of this file.
1 // Last commit: $Id: CommissioningHistosUsingDb.h,v 1.16 2010/04/21 14:26:07 dstrom Exp $
2 
3 #ifndef DQM_SiStripCommissioningClients_CommissioningHistosUsingDb_H
4 #define DQM_SiStripCommissioningClients_CommissioningHistosUsingDb_H
5 
9 #include "boost/range/iterator_range.hpp"
10 #include <boost/cstdint.hpp>
11 #include <string>
12 #include <map>
13 
14 class SiStripConfigDb;
15 class SiStripFedCabling;
16 
18 
19  // ---------- public interface ----------
20 
21  public:
22 
25 
27 
28  void uploadToConfigDb();
29 
30  bool doUploadAnal() const;
31 
32  bool doUploadConf() const;
33 
34  void doUploadAnal( bool );
35 
36  void doUploadConf( bool );
37 
38  // ---------- protected methods ----------
39 
40  protected:
41 
42  void buildDetInfo();
43 
44  virtual void addDcuDetIds();
45 
46  virtual void uploadConfigurations() {;}
47 
48  void uploadAnalyses();
49 
51 
53 
54  SiStripConfigDb* const db() const;
55 
56  SiStripFedCabling* const cabling() const;
57 
58  class DetInfo {
59  public:
60  uint32_t dcuId_;
61  uint32_t detId_;
62  uint16_t pairs_;
63  DetInfo() :
64  dcuId_(sistrip::invalid32_),
65  detId_(sistrip::invalid32_),
66  pairs_(sistrip::invalid_) {;}
67  };
68 
69  std::pair<std::string,DetInfo> detInfo( const SiStripFecKey& );
70 
71  bool deviceIsPresent( const SiStripFecKey& );
72 
73  // ---------- private member data ----------
74 
75  private:
76 
78 
80 
82 
84 
85  typedef std::map<uint32_t,DetInfo> DetInfos;
86 
87  std::map<std::string,DetInfos> detInfo_;
88 
90 
92 
93 };
94 
97 
100 
101 inline SiStripConfigDb* const CommissioningHistosUsingDb::db() const { return db_; }
103 
104 #endif // DQM_SiStripCommissioningClients_CommissioningHistosUsingDb_H
bool deviceIsPresent(const SiStripFecKey &)
static const uint32_t invalid32_
Definition: Constants.h:16
std::map< std::string, DetInfos > detInfo_
Utility class that identifies a position within the strip tracker control structure, down to the level of an APV25.
Definition: SiStripFecKey.h:46
An interface class to the DeviceFactory.
std::map< uint32_t, DetInfo > DetInfos
std::pair< std::string, DetInfo > detInfo(const SiStripFecKey &)
virtual void create(SiStripConfigDb::AnalysisDescriptionsV &, Analysis)
virtual void createAnalyses(SiStripConfigDb::AnalysisDescriptionsV &)
static const uint16_t invalid_
Definition: Constants.h:17
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
std::vector< AnalysisDescription * > AnalysisDescriptionsV
SiStripConfigDb *const db() const
SiStripFedCabling *const cabling() const