13 thePedestalCovarianceSum(0),
16 thePedestalPlot(
dbe_->book1D(
"CSCPedestal",
"CSC Pedestal ", 400, 550, 650) ),
17 thePedestalTimeCorrelationPlot(0),
18 thePedestalNeighborCorrelationPlot(0),
19 theAmplitudePlot(
dbe_->book1D(
"CSCStripAmplitude",
"CSC Strip Amplitude", 200, 0, 2000) ),
20 theRatio4to5Plot(
dbe_->book1D(
"CSCStrip4to5",
"CSC Strip Ratio tbin 4 to tbin 5", 100, 0, 1) ),
21 theRatio6to5Plot(
dbe_->book1D(
"CSCStrip6to5",
"CSC Strip Ratio tbin 6 to tbin 5", 120, 0, 1.2) ),
22 theNDigisPerLayerPlot(
dbe_->book1D(
"CSCStripDigisPerLayer",
"Number of CSC Strip Digis per layer", 48, 0, 48) ),
23 theNDigisPerChamberPlot(0),
24 theNDigisPerEventPlot(
dbe_->book1D(
"CSCStripDigisPerEvent",
"Number of CSC Strip Digis per event", 100, 0, 500) )
27 for(
int i = 0;
i < 10; ++
i)
30 sprintf(title1,
"CSCStripDigiResolution%d",
i+1);
53 edm::LogError(
"CSCDigiValidation") <<
"Cannot get strips by label "
57 unsigned nDigisPerEvent = 0;
60 std::vector<CSCStripDigi>::const_iterator digiItr = (*j).second.first;
61 std::vector<CSCStripDigi>::const_iterator
last = (*j).second.second;
62 int nDigis = last-digiItr;
63 nDigisPerEvent += nDigis;
66 double maxAmplitude = 0.;
69 for( ; digiItr !=
last; ++digiItr) {
71 std::vector<int> adcCounts = digiItr->getADCCounts();
76 if(adcCounts[4]-pedestal > maxAmplitude)
78 maxStrip = digiItr->getStrip();
79 maxAmplitude = adcCounts[4]-pedestal;
133 const CSCLayer * layer,
int chamberType)
edm::InputTag theInputTag
MonitorElement * theNDigisPerEventPlot
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
MonitorElement * theRatio4to5Plot
std::vector< int > getADCCounts() const
Get ADC readings.
MonitorElement * theRatio6to5Plot
void analyze(const edm::Event &e, const edm::EventSetup &)
void fillSignalPlots(const CSCStripDigi &digi)
CSCStripDigiValidation(DQMStore *dbe, const edm::InputTag &inputTag, bool doSim)
float xOfStrip(int strip, float y=0.) const
Local3DPoint localPosition() const
MonitorElement * thePedestalPlot
MonitorElement * theNDigisPerLayerPlot
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void plotResolution(const PSimHit &hit, int strip, const CSCLayer *layer, int chamberType)
MonitorElement * theAmplitudePlot
MonitorElement * theResolutionPlots[10]
~CSCStripDigiValidation()
void fillPedestalPlots(const CSCStripDigi &digi)
const CSCLayerGeometry * geometry() const