9 thePedestalCovarianceSum(0),
11 thePedestalTimeCorrelationPlot(nullptr),
12 thePedestalNeighborCorrelationPlot(nullptr),
13 theNDigisPerChamberPlot(nullptr) {
25 theAmplitudePlot = iBooker.
book1D(
"CSCStripAmplitude",
"CSC Strip Amplitude;Strip Amplitude;Entries", 200, 0, 2000);
26 theRatio4to5Plot = iBooker.
book1D(
"CSCStrip4to5",
"CSC Strip Ratio tbin 4 to tbin 5;Strip Ratio;Entries", 100, 0, 1);
28 iBooker.
book1D(
"CSCStrip6to5",
"CSC Strip Ratio tbin 6 to tbin 5;Strip Ratio;Entries", 120, 0, 1.2);
30 iBooker.
book1D(
"CSCStripDigisPerLayer",
31 "Number of CSC Strip Digis per layer;Number of CSC Strip Digis per layer;Entries",
36 iBooker.
book1D(
"CSCStripDigisPerEvent",
37 "Number of CSC Strip Digis per event;Number of CSC Strip Digis per event;Entries",
50 unsigned nDigisPerEvent = 0;
52 for (
auto j = strips->begin();
j != strips->end();
j++) {
53 auto digiItr = (*j).second.first;
54 auto last = (*j).second.second;
56 int nDigis =
last - digiItr;
57 nDigisPerEvent += nDigis;
60 double maxAmplitude = 0.;
62 for (; digiItr !=
last; ++digiItr) {
64 std::vector<int> adcCounts = digiItr->getADCCounts();
69 if (adcCounts[4] - pedestal > maxAmplitude) {
70 maxAmplitude = adcCounts[4] -
pedestal;
MonitorElement * theNDigisPerEventPlot
virtual void setCurrentFolder(std::string const &fullpath)
MonitorElement * theRatio4to5Plot
std::vector< int > const & getADCCounts() const
Get ADC readings.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MonitorElement * theRatio6to5Plot
CSCStripDigiValidation(const edm::ParameterSet &ps, edm::ConsumesCollector &&iC)
Log< level::Error, false > LogError
void fillSignalPlots(const CSCStripDigi &digi)
edm::EDGetTokenT< CSCStripDigiCollection > strips_Token_
tuple strips
#turn off noise in all subdetectors simHcalUnsuppressedDigis.doNoise = False mix.digitizers.hcal.doNoise = False simEcalUnsuppressedDigis.doNoise = False mix.digitizers.ecal.doNoise = False simEcalUnsuppressedDigis.doESNoise = False simSiPixelDigis.AddNoise = False mix.digitizers.pixel.AddNoise = False simSiStripDigis.Noise = False mix.digitizers.strip.AddNoise = False
MonitorElement * thePedestalPlot
MonitorElement * theNDigisPerLayerPlot
void bookHistograms(DQMStore::IBooker &)
MonitorElement * theAmplitudePlot
ParameterSet const & getParameterSet(std::string const &) const
void analyze(const edm::Event &e, const edm::EventSetup &) override
~CSCStripDigiValidation() override
void fillPedestalPlots(const CSCStripDigi &digi)
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())