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 
9 #include "boost/range/iterator_range.hpp"
10 #include <string>
11 #include <map>
12 #include <cstdint>
13 
14 class SiStripConfigDb;
15 class SiStripFedCabling;
16 class TrackerTopology;
17 
19  // ---------- public interface ----------
20 
21 public:
25 
26  ~CommissioningHistosUsingDb() override;
27 
28  void configure(const edm::ParameterSet&, const edm::EventSetup&) override;
29 
30  void uploadToConfigDb();
31 
32  bool doUploadAnal() const;
33 
34  bool doUploadConf() const;
35 
36  void doUploadAnal(bool);
37 
38  void doUploadConf(bool);
39 
40  // ---------- protected methods ----------
41 
42 protected:
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_;
65  };
66 
67  std::pair<std::string, DetInfo> detInfo(const SiStripFecKey&);
68 
69  bool deviceIsPresent(const SiStripFecKey&);
70 
71  // ---------- private member data ----------
72 
73 private:
75 
77 
79 
81 
82  typedef std::map<uint32_t, DetInfo> DetInfos;
83 
84  std::map<std::string, DetInfos> detInfo_;
85 
87 
89 
91 };
92 
95 
98 
99 inline SiStripConfigDb* const CommissioningHistosUsingDb::db() const { return db_; }
101 
102 #endif // DQM_SiStripCommissioningClients_CommissioningHistosUsingDb_H
CommissioningHistosUsingDb::DetInfo::pairs_
uint16_t pairs_
Definition: CommissioningHistosUsingDb.h:63
CommissioningHistosUsingDb::detInfo
std::pair< std::string, DetInfo > detInfo(const SiStripFecKey &)
Definition: CommissioningHistosUsingDb.cc:349
sistrip::invalid32_
static const uint32_t invalid32_
Definition: Constants.h:15
CommissioningHistosUsingDb::tTopoToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
Definition: CommissioningHistosUsingDb.h:90
TrackerTopology
Definition: TrackerTopology.h:16
CommissioningHistosUsingDb::cabling
SiStripFedCabling *const cabling() const
Definition: CommissioningHistosUsingDb.h:100
CommissioningHistosUsingDb::uploadAnal_
bool uploadAnal_
Definition: CommissioningHistosUsingDb.h:86
CommissioningHistosUsingDb::db_
SiStripConfigDb * db_
Definition: CommissioningHistosUsingDb.h:78
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:18
CommissioningHistosUsingDb::CommissioningHistosUsingDb
CommissioningHistosUsingDb()
Definition: CommissioningHistosUsingDb.cc:34
TrackerTopologyRcd.h
CommissioningHistosUsingDb::addDcuDetIds
virtual void addDcuDetIds()
Definition: CommissioningHistosUsingDb.cc:184
CommissioningHistosUsingDb::create
virtual void create(SiStripConfigDb::AnalysisDescriptionsV &, Analysis)
Definition: CommissioningHistosUsingDb.h:53
CommissioningHistosUsingDb::buildDetInfo
void buildDetInfo()
Definition: CommissioningHistosUsingDb.cc:257
SiStripConfigDb
An interface class to the DeviceFactory.
Definition: SiStripConfigDb.h:47
CommissioningHistosUsingDb::uploadConf_
bool uploadConf_
Definition: CommissioningHistosUsingDb.h:88
SiStripFecKey
Utility class that identifies a position within the strip tracker control structure,...
Definition: SiStripFecKey.h:45
CommissioningHistosUsingDb::cabling_
SiStripFedCabling * cabling_
Definition: CommissioningHistosUsingDb.h:80
CommissioningHistosUsingDb::DetInfo
Definition: CommissioningHistosUsingDb.h:59
SiStripConstants.h
edm::ParameterSet
Definition: ParameterSet.h:47
CommissioningHistosUsingDb::uploadToConfigDb
void uploadToConfigDb()
Definition: CommissioningHistosUsingDb.cc:90
CommissioningHistosUsingDb::createAnalyses
virtual void createAnalyses(SiStripConfigDb::AnalysisDescriptionsV &)
Definition: CommissioningHistosUsingDb.cc:241
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:82
CommissioningHistosUsingDb::doUploadConf
bool doUploadConf() const
Definition: CommissioningHistosUsingDb.h:97
CommissioningHistosUsingDb::uploadConfigurations
virtual void uploadConfigurations()
Definition: CommissioningHistosUsingDb.h:47
edm::EventSetup
Definition: EventSetup.h:58
sistrip::invalid_
static const uint16_t invalid_
Definition: Constants.h:16
CommissioningHistograms
Definition: CommissioningHistograms.h:23
CommissioningHistosUsingDb::DetInfo::DetInfo
DetInfo()
Definition: CommissioningHistosUsingDb.h:64
CommissioningHistosUsingDb::DetInfo::dcuId_
uint32_t dcuId_
Definition: CommissioningHistosUsingDb.h:61
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd >
CommissioningHistosUsingDb::DetInfo::detId_
uint32_t detId_
Definition: CommissioningHistosUsingDb.h:62
SiStripConfigDb.h
sistrip::UNDEFINED_RUN_TYPE
Definition: ConstantsForRunType.h:95
CommissioningHistosUsingDb::doUploadAnal
bool doUploadAnal() const
Definition: CommissioningHistosUsingDb.h:96
SiStripConfigDb::AnalysisDescriptionsV
std::vector< AnalysisDescription * > AnalysisDescriptionsV
Definition: SiStripConfigDb.h:135
CommissioningHistosUsingDb::db
SiStripConfigDb *const db() const
Definition: CommissioningHistosUsingDb.h:99
alcaDQMUpload.upload
def upload(url, args, files)
Definition: alcaDQMUpload.py:65
CommissioningHistosUsingDb::deviceIsPresent
bool deviceIsPresent(const SiStripFecKey &)
Definition: CommissioningHistosUsingDb.cc:368
sistrip
sistrip classes
Definition: SiStripQualityHelpers.h:14
CommissioningHistosUsingDb::uploadAnalyses
void uploadAnalyses()
Definition: CommissioningHistosUsingDb.cc:99
CommissioningHistograms::Analysis
Analyses::iterator Analysis
Definition: CommissioningHistograms.h:58
CommissioningHistosUsingDb::detInfo_
std::map< std::string, DetInfos > detInfo_
Definition: CommissioningHistosUsingDb.h:84
CommissioningHistosUsingDb::~CommissioningHistosUsingDb
~CommissioningHistosUsingDb() override
Definition: CommissioningHistosUsingDb.cc:48
CommissioningHistosUsingDb::runType_
sistrip::RunType runType_
Definition: CommissioningHistosUsingDb.h:76