CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SiStripQualityHotStripIdentifier.h
Go to the documentation of this file.
1 #ifndef SiStripQualityHotStripIdentifier_H
2 #define SiStripQualityHotStripIdentifier_H
3 
9 
16 
18 
19 #include <vector>
20 
21 class TrackerTopology;
22 
23 class SiStripQualityHotStripIdentifier : public ConditionDBWriter<SiStripBadStrip> {
24 public:
27 
28 private:
29  //Will be called at the beginning of the job
30  void algoBeginJob(const edm::EventSetup &) override {}
31  //Will be called at the beginning of each run in the job
32  void algoBeginRun(const edm::Run &, const edm::EventSetup &) override;
33  //Will be called at the beginning of each luminosity block in the run
35  //Will be called at the end of the job
36  void algoEndJob() override;
37 
38  //Will be called at every event
39  void algoAnalyze(const edm::Event &, const edm::EventSetup &) override;
40 
41  std::unique_ptr<SiStripBadStrip> getNewObject() override;
42 
43  void bookHistos();
44  void resetHistos();
45  void fillHisto(uint32_t detid, float value);
46 
47 private:
49  const SiStripQuality *stripQuality_ = nullptr;
55  const TrackerTopology *tTopo = nullptr;
56 
58 
60 
64 };
65 #endif
void fillHisto(uint32_t detid, float value)
std::unique_ptr< SiStripBadStrip > getNewObject() override
void algoBeginRun(const edm::Run &, const edm::EventSetup &) override
SiStripQualityHotStripIdentifier(const edm::ParameterSet &)
edm::ESWatcher< SiStripQualityRcd > stripQualityWatcher_
std::unordered_map< unsigned int, std::shared_ptr< TH1F > > QualityHistosMap
void algoAnalyze(const edm::Event &, const edm::EventSetup &) override
void algoBeginJob(const edm::EventSetup &) override
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
edm::ESGetToken< SiStripQuality, SiStripQualityRcd > stripQualityToken_
Definition: Run.h:45
void algoBeginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override