9 thePedestalCovarianceSum(0),
11 thePedestalTimeCorrelationPlot(
nullptr),
12 thePedestalNeighborCorrelationPlot(
nullptr),
13 theNDigisPerChamberPlot(
nullptr) {
27 for (
int i = 0;
i < 10; ++
i) {
29 sprintf(title1,
"CSCStripDigiResolution%d",
i + 1);
42 unsigned nDigisPerEvent = 0;
45 std::vector<CSCStripDigi>::const_iterator digiItr = (*j).second.first;
46 std::vector<CSCStripDigi>::const_iterator
last = (*j).second.second;
47 int nDigis = last - digiItr;
48 nDigisPerEvent += nDigis;
51 double maxAmplitude = 0.;
54 for (; digiItr !=
last; ++digiItr) {
56 std::vector<int> adcCounts = digiItr->getADCCounts();
61 if (adcCounts[4] - pedestal > maxAmplitude) {
63 maxAmplitude = adcCounts[4] -
pedestal;
edm::InputTag theInputTag
MonitorElement * theNDigisPerEventPlot
MonitorElement * theRatio4to5Plot
std::vector< int > const & getADCCounts() const
Get ADC readings.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void bookHistograms(DQMStore::IBooker &, bool doSim)
MonitorElement * theRatio6to5Plot
void fillSignalPlots(const CSCStripDigi &digi)
float xOfStrip(int strip, float y=0.) const
Local3DPoint localPosition() const
CSCStripDigiValidation(const edm::InputTag &inputTag, edm::ConsumesCollector &&iC)
edm::EDGetTokenT< CSCStripDigiCollection > strips_Token_
MonitorElement * thePedestalPlot
MonitorElement * theNDigisPerLayerPlot
MonitorElement * book1D(Args &&...args)
void plotResolution(const PSimHit &hit, int strip, const CSCLayer *layer, int chamberType)
MonitorElement * theAmplitudePlot
void analyze(const edm::Event &e, const edm::EventSetup &) override
MonitorElement * theResolutionPlots[10]
~CSCStripDigiValidation() override
void fillPedestalPlots(const CSCStripDigi &digi)
const CSCLayerGeometry * geometry() const