CMS 3D CMS Logo

SiStripMonitorPedestals.h
Go to the documentation of this file.
1 #ifndef SiStripMonitorPedestals_SiStripMonitorPedestals_h
2 #define SiStripMonitorPedestals_SiStripMonitorPedestals_h
3 // -*- C++ -*-
4 //
5 // Package: SiStripMonitorPedestals
6 // Class : SiStripMonitorPedestals
7 //
16 //
17 // Original Author: gennai, dutta
18 // Created: Sat Feb 4 20:49:51 CET 2006
19 //
20 
21 // system include files
22 #include <memory>
23 
24 // user include files
31 
33 
34 // data formats
39 
40 // cabling
43 
45 
47 #include <iomanip>
48 #include <string>
49 #include <cstdint>
50 
51 class ApvAnalysisFactory;
52 class SiStripDetCabling;
53 
55 public:
57  ~SiStripMonitorPedestals() override;
58 
59  void analyze(const edm::Event &, const edm::EventSetup &) override;
60  void dqmEndRun(edm::Run const &run, edm::EventSetup const &eSetup) override;
61  void endJob() override;
62  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
63 
64 private:
66 
67  void resetMEs(uint32_t idet);
68  void createMEs(DQMStore::IBooker &, edm::EventSetup const &eSetup);
69  void fillCondDBMEs(edm::EventSetup const &eSetup);
70 
71  struct ModMEs {
75 
82 
85 
86  // MonitorElements for CondDB data display
90  };
91 
94  std::map<uint32_t, ModMEs> PedMEs;
97  bool analyzed;
98  bool firstEvent;
99 
100  // The following to be put inside the parametersets
101  int16_t nEvUpdate_;
102  int16_t signalCutPeds_;
103  int16_t nEvTot_;
104  int16_t nEvInit_;
112  unsigned long long m_cacheID_;
113 
114  static const std::string RunMode1;
115  static const std::string RunMode2;
116  static const std::string RunMode3;
117 };
118 
119 #endif
dqm::impl::MonitorElement
Definition: MonitorElement.h:98
SiStripMonitorPedestals::resetMEs
void resetMEs(uint32_t idet)
Definition: SiStripMonitorPedestals.cc:468
ESHandle.h
SiStripMonitorPedestals::nEvUpdate_
int16_t nEvUpdate_
Definition: SiStripMonitorPedestals.h:101
edm::Run
Definition: Run.h:45
edm::EDGetTokenT
Definition: EDGetToken.h:33
SiStripRawDigi.h
SiStripMonitorPedestals::RunMode1
static const std::string RunMode1
Definition: SiStripMonitorPedestals.h:114
DQMOneEDAnalyzer
Definition: DQMOneEDAnalyzer.h:20
SiStripMonitorPedestals::firstEvent
bool firstEvent
Definition: SiStripMonitorPedestals.h:98
DQMStore.h
SiStripMonitorPedestals::pedsPSet_
edm::ParameterSet pedsPSet_
Definition: SiStripMonitorPedestals.h:96
SiStripMonitorPedestals::ModMEs::CMSubNoiseProfile
MonitorElement * CMSubNoiseProfile
Definition: SiStripMonitorPedestals.h:78
SiStripMonitorPedestals::ModMEs::CMSlopeDistribution
MonitorElement * CMSlopeDistribution
Definition: SiStripMonitorPedestals.h:84
EDAnalyzer.h
SiStripMonitorPedestals::digiToken_
edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > digiToken_
Definition: SiStripMonitorPedestals.h:65
SiStripMonitorPedestals::signalCutPeds_
int16_t signalCutPeds_
Definition: SiStripMonitorPedestals.h:102
SiStripMonitorPedestals::~SiStripMonitorPedestals
~SiStripMonitorPedestals() override
Definition: SiStripMonitorPedestals.cc:80
SiStripMonitorPedestals::runTypeFlag_
std::string runTypeFlag_
Definition: SiStripMonitorPedestals.h:110
SiStripMonitorPedestals::endJob
void endJob() override
Definition: SiStripMonitorPedestals.cc:461
SiStripMonitorPedestals::theEventIterNumber_
int theEventIterNumber_
Definition: SiStripMonitorPedestals.h:108
DQMOneEDAnalyzer.h
SiStripMonitorPedestals::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: SiStripMonitorPedestals.cc:273
SiStripMonitorPedestals::ModMEs::PedsDistribution
MonitorElement * PedsDistribution
Definition: SiStripMonitorPedestals.h:73
dqm::legacy::DQMStore::IBooker
dqm::implementation::IBooker IBooker
Definition: DQMStore.h:729
MakerMacros.h
SiStripMonitorPedestals::SiStripMonitorPedestals
SiStripMonitorPedestals(const edm::ParameterSet &)
Definition: SiStripMonitorPedestals.cc:53
SiStripDetCabling.h
dqm::legacy::DQMStore
Definition: DQMStore.h:727
SiStripMonitorPedestals::ModMEs::RawNoiseProfile
MonitorElement * RawNoiseProfile
Definition: SiStripMonitorPedestals.h:79
ApvAnalysisFactory
Definition: ApvAnalysisFactory.h:22
SiStripMonitorPedestals::ModMEs::PedsEvolution
MonitorElement * PedsEvolution
Definition: SiStripMonitorPedestals.h:74
SiStripDigi.h
SiStripDetCabling
Definition: SiStripDetCabling.h:21
edm::ESHandle< SiStripDetCabling >
EDGetToken.h
SiStripMonitorPedestals::dqmStore_
DQMStore * dqmStore_
Definition: SiStripMonitorPedestals.h:92
SiStripMonitorPedestals::apvFactory_
ApvAnalysisFactory * apvFactory_
Definition: SiStripMonitorPedestals.h:106
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiStripMonitorPedestals::ModMEs::BadStripsDB
MonitorElement * BadStripsDB
Definition: SiStripMonitorPedestals.h:89
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
SiStripMonitorPedestals::NumCMstripsInGroup_
int NumCMstripsInGroup_
Definition: SiStripMonitorPedestals.h:109
SiStripMonitorPedestals::nIteration_
int nIteration_
Definition: SiStripMonitorPedestals.h:105
SiStripMonitorPedestals::analyzed
bool analyzed
Definition: SiStripMonitorPedestals.h:97
SiStripMonitorPedestals::ModMEs::CMSubNoisePerStripDB
MonitorElement * CMSubNoisePerStripDB
Definition: SiStripMonitorPedestals.h:88
FEDRawDataCollection.h
SiStripMonitorPedestals::conf_
edm::ParameterSet conf_
Definition: SiStripMonitorPedestals.h:93
SiStripMonitorPedestals::RunMode3
static const std::string RunMode3
Definition: SiStripMonitorPedestals.h:116
SiStripMonitorPedestals::ModMEs::CMSubNoisePerStrip
MonitorElement * CMSubNoisePerStrip
Definition: SiStripMonitorPedestals.h:76
SiStripMonitorPedestals::ModMEs::RawNoisePerStrip
MonitorElement * RawNoisePerStrip
Definition: SiStripMonitorPedestals.h:77
edm::EventSetup
Definition: EventSetup.h:57
DetSetVector.h
SiStripMonitorPedestals::ModMEs::PedsPerStrip
MonitorElement * PedsPerStrip
Definition: SiStripMonitorPedestals.h:72
SiStripMonitorPedestals::ModMEs::NoisyStripDistribution
MonitorElement * NoisyStripDistribution
Definition: SiStripMonitorPedestals.h:81
SiStripMonitorPedestals::theEventInitNumber_
int theEventInitNumber_
Definition: SiStripMonitorPedestals.h:107
SiStripMonitorPedestals::ModMEs::NoisyStrips
MonitorElement * NoisyStrips
Definition: SiStripMonitorPedestals.h:80
SiStripMonitorPedestals::m_cacheID_
unsigned long long m_cacheID_
Definition: SiStripMonitorPedestals.h:112
writedatasetfile.run
run
Definition: writedatasetfile.py:27
SiStripMonitorPedestals::dqmEndRun
void dqmEndRun(edm::Run const &run, edm::EventSetup const &eSetup) override
Definition: SiStripMonitorPedestals.cc:451
SiStripMonitorPedestals
Definition: SiStripMonitorPedestals.h:54
Frameworkfwd.h
SiStripMonitorPedestals::nEvInit_
int16_t nEvInit_
Definition: SiStripMonitorPedestals.h:104
SiStripMonitorPedestals::RunMode2
static const std::string RunMode2
Definition: SiStripMonitorPedestals.h:115
SiStripMonitorPedestals::outPutFileName
std::string outPutFileName
Definition: SiStripMonitorPedestals.h:111
SiStripMonitorPedestals::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: SiStripMonitorPedestals.cc:91
SiStripMonitorPedestals::createMEs
void createMEs(DQMStore::IBooker &, edm::EventSetup const &eSetup)
Definition: SiStripMonitorPedestals.cc:110
SiStripMonitorPedestals::ModMEs::CMDistribution
MonitorElement * CMDistribution
Definition: SiStripMonitorPedestals.h:83
SiStripDetCablingRcd.h
ParameterSet.h
SiStripMonitorPedestals::detcabling
edm::ESHandle< SiStripDetCabling > detcabling
Definition: SiStripMonitorPedestals.h:95
SiStripMonitorPedestals::PedMEs
std::map< uint32_t, ModMEs > PedMEs
Definition: SiStripMonitorPedestals.h:94
edm::Event
Definition: Event.h:73
SiStripMonitorPedestals::nEvTot_
int16_t nEvTot_
Definition: SiStripMonitorPedestals.h:103
SiStripMonitorPedestals::ModMEs
Definition: SiStripMonitorPedestals.h:71
SiStripMonitorPedestals::ModMEs::PedsPerStripDB
MonitorElement * PedsPerStripDB
Definition: SiStripMonitorPedestals.h:87
SiStripMonitorPedestals::fillCondDBMEs
void fillCondDBMEs(edm::EventSetup const &eSetup)
Definition: SiStripMonitorPedestals.cc:495