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 
2 #ifndef DQM_SiStripCommissioningClients_CommissioningHistosUsingDb_H
3 #define DQM_SiStripCommissioningClients_CommissioningHistosUsingDb_H
4 
8 #include "boost/range/iterator_range.hpp"
9 #include <boost/cstdint.hpp>
10 #include <string>
11 #include <map>
12 
13 class SiStripConfigDb;
14 class SiStripFedCabling;
15 
17 
18  // ---------- public interface ----------
19 
20  public:
21 
24 
26 
27  void uploadToConfigDb();
28 
29  bool doUploadAnal() const;
30 
31  bool doUploadConf() const;
32 
33  void doUploadAnal( bool );
34 
35  void doUploadConf( bool );
36 
37  // ---------- protected methods ----------
38 
39  protected:
40 
41  void buildDetInfo();
42 
43  virtual void addDcuDetIds();
44 
45  virtual void uploadConfigurations() {;}
46 
47  void uploadAnalyses();
48 
50 
52 
53  SiStripConfigDb* const db() const;
54 
55  SiStripFedCabling* const cabling() const;
56 
57  class DetInfo {
58  public:
59  uint32_t dcuId_;
60  uint32_t detId_;
61  uint16_t pairs_;
62  DetInfo() :
63  dcuId_(sistrip::invalid32_),
64  detId_(sistrip::invalid32_),
65  pairs_(sistrip::invalid_) {;}
66  };
67 
68  std::pair<std::string,DetInfo> detInfo( const SiStripFecKey& );
69 
70  bool deviceIsPresent( const SiStripFecKey& );
71 
72  // ---------- private member data ----------
73 
74  private:
75 
77 
79 
81 
83 
84  typedef std::map<uint32_t,DetInfo> DetInfos;
85 
86  std::map<std::string,DetInfos> detInfo_;
87 
89 
91 
92 };
93 
96 
99 
100 inline SiStripConfigDb* const CommissioningHistosUsingDb::db() const { return db_; }
102 
103 #endif // DQM_SiStripCommissioningClients_CommissioningHistosUsingDb_H
bool deviceIsPresent(const SiStripFecKey &)
static const uint32_t invalid32_
Definition: Constants.h:15
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:45
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:16
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