CMS 3D CMS Logo

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 
25  ~CommissioningHistosUsingDb() override;
26 
27  void configure( const edm::ParameterSet&, const edm::EventSetup& ) override;
28 
29  void uploadToConfigDb();
30 
31  bool doUploadAnal() const;
32 
33  bool doUploadConf() const;
34 
35  void doUploadAnal( bool );
36 
37  void doUploadConf( bool );
38 
39  // ---------- protected methods ----------
40 
41  protected:
42 
43  void buildDetInfo();
44 
45  virtual void addDcuDetIds();
46 
47  virtual void uploadConfigurations() {;}
48 
49  void uploadAnalyses();
50 
52 
54 
55  SiStripConfigDb* const db() const;
56 
57  SiStripFedCabling* const cabling() const;
58 
59  class DetInfo {
60  public:
61  uint32_t dcuId_;
62  uint32_t detId_;
63  uint16_t pairs_;
64  DetInfo() :
65  dcuId_(sistrip::invalid32_),
66  detId_(sistrip::invalid32_),
67  pairs_(sistrip::invalid_) {;}
68  };
69 
70  std::pair<std::string,DetInfo> detInfo( const SiStripFecKey& );
71 
72  bool deviceIsPresent( const SiStripFecKey& );
73 
74  // ---------- private member data ----------
75 
76  private:
77 
79 
81 
83 
85 
86  typedef std::map<uint32_t,DetInfo> DetInfos;
87 
88  std::map<std::string,DetInfos> detInfo_;
89 
91 
93 
94 };
95 
98 
101 
102 inline SiStripConfigDb* const CommissioningHistosUsingDb::db() const { return db_; }
104 
105 #endif // DQM_SiStripCommissioningClients_CommissioningHistosUsingDb_H
def upload(url, args, files)
bool deviceIsPresent(const SiStripFecKey &)
static const uint32_t invalid32_
Definition: Constants.h:15
void configure(const edm::ParameterSet &, const edm::EventSetup &) override
sistrip classes
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