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 <string>
10 #include <map>
11 #include <cstdint>
12 
13 class SiStripConfigDb;
14 class SiStripFedCabling;
15 
17  // ---------- public interface ----------
18 
19 public:
21 
22  ~CommissioningHistosUsingDb() override;
23 
24  void configure(const edm::ParameterSet&, const edm::EventSetup&) override;
25 
26  void uploadToConfigDb();
27 
28  bool doUploadAnal() const;
29 
30  bool doUploadConf() const;
31 
32  void doUploadAnal(bool);
33 
34  void doUploadConf(bool);
35 
36  // ---------- protected methods ----------
37 
38 protected:
39  void buildDetInfo();
40 
41  virtual void addDcuDetIds();
42 
43  virtual void uploadConfigurations() { ; }
44 
45  void uploadAnalyses();
46 
48 
50 
51  SiStripConfigDb* const db() const;
52 
53  SiStripFedCabling* const cabling() const;
54 
55  class DetInfo {
56  public:
57  uint32_t dcuId_;
58  uint32_t detId_;
59  uint16_t pairs_;
61  };
62 
63  std::pair<std::string, DetInfo> detInfo(const SiStripFecKey&);
64 
65  bool deviceIsPresent(const SiStripFecKey&);
66 
67  // ---------- private member data ----------
68 
69 private:
71 
73 
75 
77 
78  typedef std::map<uint32_t, DetInfo> DetInfos;
79 
80  std::map<std::string, DetInfos> detInfo_;
81 
83 
85 };
86 
89 
92 
93 inline SiStripConfigDb* const CommissioningHistosUsingDb::db() const { return db_; }
95 
96 #endif // DQM_SiStripCommissioningClients_CommissioningHistosUsingDb_H
CommissioningHistosUsingDb::DetInfo::pairs_
uint16_t pairs_
Definition: CommissioningHistosUsingDb.h:59
CommissioningHistosUsingDb::detInfo
std::pair< std::string, DetInfo > detInfo(const SiStripFecKey &)
Definition: CommissioningHistosUsingDb.cc:350
sistrip::invalid32_
static const uint32_t invalid32_
Definition: Constants.h:15
CommissioningHistosUsingDb::cabling
SiStripFedCabling *const cabling() const
Definition: CommissioningHistosUsingDb.h:94
CommissioningHistosUsingDb::uploadAnal_
bool uploadAnal_
Definition: CommissioningHistosUsingDb.h:82
CommissioningHistosUsingDb::db_
SiStripConfigDb * db_
Definition: CommissioningHistosUsingDb.h:74
sistrip::RunType
RunType
Definition: ConstantsForRunType.h:70
SiStripFedCabling
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses,...
Definition: SiStripFedCabling.h:25
CommissioningHistograms.h
CommissioningHistosUsingDb
Definition: CommissioningHistosUsingDb.h:16
CommissioningHistosUsingDb::CommissioningHistosUsingDb
CommissioningHistosUsingDb()
Definition: CommissioningHistosUsingDb.cc:34
CommissioningHistosUsingDb::addDcuDetIds
virtual void addDcuDetIds()
Definition: CommissioningHistosUsingDb.cc:185
CommissioningHistosUsingDb::create
virtual void create(SiStripConfigDb::AnalysisDescriptionsV &, Analysis)
Definition: CommissioningHistosUsingDb.h:49
CommissioningHistosUsingDb::buildDetInfo
void buildDetInfo()
Definition: CommissioningHistosUsingDb.cc:258
SiStripConfigDb
An interface class to the DeviceFactory.
Definition: SiStripConfigDb.h:47
CommissioningHistosUsingDb::uploadConf_
bool uploadConf_
Definition: CommissioningHistosUsingDb.h:84
SiStripFecKey
Utility class that identifies a position within the strip tracker control structure,...
Definition: SiStripFecKey.h:45
CommissioningHistosUsingDb::cabling_
SiStripFedCabling * cabling_
Definition: CommissioningHistosUsingDb.h:76
CommissioningHistosUsingDb::DetInfo
Definition: CommissioningHistosUsingDb.h:55
SiStripConstants.h
edm::ParameterSet
Definition: ParameterSet.h:47
CommissioningHistosUsingDb::uploadToConfigDb
void uploadToConfigDb()
Definition: CommissioningHistosUsingDb.cc:91
CommissioningHistosUsingDb::createAnalyses
virtual void createAnalyses(SiStripConfigDb::AnalysisDescriptionsV &)
Definition: CommissioningHistosUsingDb.cc:242
CommissioningHistosUsingDb::configure
void configure(const edm::ParameterSet &, const edm::EventSetup &) override
Definition: CommissioningHistosUsingDb.cc:56
CommissioningHistosUsingDb::DetInfos
std::map< uint32_t, DetInfo > DetInfos
Definition: CommissioningHistosUsingDb.h:78
CommissioningHistosUsingDb::doUploadConf
bool doUploadConf() const
Definition: CommissioningHistosUsingDb.h:91
CommissioningHistosUsingDb::uploadConfigurations
virtual void uploadConfigurations()
Definition: CommissioningHistosUsingDb.h:43
edm::EventSetup
Definition: EventSetup.h:57
sistrip::invalid_
static const uint16_t invalid_
Definition: Constants.h:16
CommissioningHistograms
Definition: CommissioningHistograms.h:23
CommissioningHistosUsingDb::DetInfo::DetInfo
DetInfo()
Definition: CommissioningHistosUsingDb.h:60
CommissioningHistosUsingDb::DetInfo::dcuId_
uint32_t dcuId_
Definition: CommissioningHistosUsingDb.h:57
CommissioningHistosUsingDb::DetInfo::detId_
uint32_t detId_
Definition: CommissioningHistosUsingDb.h:58
SiStripConfigDb.h
sistrip::UNDEFINED_RUN_TYPE
Definition: ConstantsForRunType.h:95
CommissioningHistosUsingDb::doUploadAnal
bool doUploadAnal() const
Definition: CommissioningHistosUsingDb.h:90
SiStripConfigDb::AnalysisDescriptionsV
std::vector< AnalysisDescription * > AnalysisDescriptionsV
Definition: SiStripConfigDb.h:135
CommissioningHistosUsingDb::db
SiStripConfigDb *const db() const
Definition: CommissioningHistosUsingDb.h:93
alcaDQMUpload.upload
def upload(url, args, files)
Definition: alcaDQMUpload.py:65
CommissioningHistosUsingDb::deviceIsPresent
bool deviceIsPresent(const SiStripFecKey &)
Definition: CommissioningHistosUsingDb.cc:369
sistrip
sistrip classes
Definition: SiStripQualityHelpers.h:14
CommissioningHistosUsingDb::uploadAnalyses
void uploadAnalyses()
Definition: CommissioningHistosUsingDb.cc:100
CommissioningHistograms::Analysis
Analyses::iterator Analysis
Definition: CommissioningHistograms.h:58
CommissioningHistosUsingDb::detInfo_
std::map< std::string, DetInfos > detInfo_
Definition: CommissioningHistosUsingDb.h:80
CommissioningHistosUsingDb::~CommissioningHistosUsingDb
~CommissioningHistosUsingDb() override
Definition: CommissioningHistosUsingDb.cc:48
CommissioningHistosUsingDb::runType_
sistrip::RunType runType_
Definition: CommissioningHistosUsingDb.h:72