CMS 3D CMS Logo

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
SiStripQualityHistos.h
SiStripQualityHotStripIdentifier::Track_src_
edm::InputTag Track_src_
Definition: SiStripQualityHotStripIdentifier.h:53
MessageLogger.h
edm::ESWatcher< SiStripQualityRcd >
SiStripQualityHotStripIdentifier::getNewObject
std::unique_ptr< SiStripBadStrip > getNewObject() override
Definition: SiStripQualityHotStripIdentifier.cc:40
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
TrackerTopology
Definition: TrackerTopology.h:16
SiStripQualityHotStripIdentifier::algoBeginLuminosityBlock
void algoBeginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
Definition: SiStripQualityHotStripIdentifier.h:34
SiStripQualityHotStripIdentifier::conf_
const edm::ParameterSet conf_
Definition: SiStripQualityHotStripIdentifier.h:50
SiStripQualityHotStripIdentifier::tTopoToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
Definition: SiStripQualityHotStripIdentifier.h:61
SiStripQualityHotStripIdentifier::~SiStripQualityHotStripIdentifier
~SiStripQualityHotStripIdentifier() override
Definition: SiStripQualityHotStripIdentifier.cc:38
SiStripBadStrip.h
edm::FileInPath
Definition: FileInPath.h:61
TrackerTopologyRcd.h
SiStripQualityHotStripIdentifier::fp_
edm::FileInPath fp_
Definition: SiStripQualityHotStripIdentifier.h:51
ConditionDBWriter
Definition: ConditionDBWriter.h:149
SiStripQualityHotStripIdentifier::bookHistos
void bookHistos()
Definition: SiStripQualityHotStripIdentifier.cc:114
SiStripQualityHotStripIdentifier::MinClusterWidth_
unsigned short MinClusterWidth_
Definition: SiStripQualityHotStripIdentifier.h:57
SiStripQualityHotStripIdentifier::dataLabel_
std::string dataLabel_
Definition: SiStripQualityHotStripIdentifier.h:48
SiStripQualityHotStripIdentifier::fillHisto
void fillHisto(uint32_t detid, float value)
Definition: SiStripQualityHotStripIdentifier.cc:130
SiStripQualityHotStripIdentifier::stripQualityWatcher_
edm::ESWatcher< SiStripQualityRcd > stripQualityWatcher_
Definition: SiStripQualityHotStripIdentifier.h:63
SiStripQualityHotStripIdentifier::ClusterPositionHistoMap
SiStrip::QualityHistosMap ClusterPositionHistoMap
Definition: SiStripQualityHotStripIdentifier.h:59
SiStripQualityHotStripIdentifier::algoAnalyze
void algoAnalyze(const edm::Event &, const edm::EventSetup &) override
Definition: SiStripQualityHotStripIdentifier.cc:140
SiStripQualityHotStripIdentifier::tTopo
const TrackerTopology * tTopo
Definition: SiStripQualityHotStripIdentifier.h:55
FileInPath.h
SiStripQualityHotStripIdentifier::algoBeginRun
void algoBeginRun(const edm::Run &, const edm::EventSetup &) override
Definition: SiStripQualityHotStripIdentifier.cc:92
SiStripQualityHotStripIdentifier::tracksCollection_in_EventTree
bool tracksCollection_in_EventTree
Definition: SiStripQualityHotStripIdentifier.h:54
SiStripQualityHotStripIdentifier::stripQuality_
const SiStripQuality * stripQuality_
Definition: SiStripQualityHotStripIdentifier.h:49
edm::ParameterSet
Definition: ParameterSet.h:47
SiStripQualityHotStripIdentifier::algoEndJob
void algoEndJob() override
Definition: SiStripQualityHotStripIdentifier.cc:102
SiStrip::QualityHistosMap
std::unordered_map< unsigned int, std::shared_ptr< TH1F > > QualityHistosMap
Definition: SiStripQualityHistos.h:8
value
Definition: value.py:1
edm::EventSetup
Definition: EventSetup.h:58
SiStripQualityHotStripIdentifier
Definition: SiStripQualityHotStripIdentifier.h:23
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ConditionDBWriter.h
SiStripQualityHotStripIdentifier::stripQualityToken_
edm::ESGetToken< SiStripQuality, SiStripQualityRcd > stripQualityToken_
Definition: SiStripQualityHotStripIdentifier.h:62
SiStripQualityHotStripIdentifier::resetHistos
void resetHistos()
Definition: SiStripQualityHotStripIdentifier.cc:107
ESWatcher.h
SiStripQuality.h
SiStripQualityRcd.h
EventSetup.h
Exception.h
SiStripQualityHotStripIdentifier::MaxClusterWidth_
unsigned short MaxClusterWidth_
Definition: SiStripQualityHotStripIdentifier.h:57
ParameterSet.h
edm::Event
Definition: Event.h:73
SiStripQualityHotStripIdentifier::Cluster_src_
edm::InputTag Cluster_src_
Definition: SiStripQualityHotStripIdentifier.h:52
edm::InputTag
Definition: InputTag.h:15
SiStripQualityHotStripIdentifier::SiStripQualityHotStripIdentifier
SiStripQualityHotStripIdentifier(const edm::ParameterSet &)
Definition: SiStripQualityHotStripIdentifier.cc:20
SiStripQualityHotStripIdentifier::algoBeginJob
void algoBeginJob(const edm::EventSetup &) override
Definition: SiStripQualityHotStripIdentifier.h:30
SiStripQuality
Definition: SiStripQuality.h:32