14 theNDigisPerLayerPlots(),
28 for(
int i = 0;
i < 10; ++
i)
30 char title1[200], title2[200], title3[200], title4[200];
31 sprintf(title1,
"CSCComparatorDigiTimeType%d",
i+1);
32 sprintf(title2,
"CSCComparatorDigisPerLayerType%d",
i+1);
33 sprintf(title3,
"CSCComparatorStripAmplitudeType%d",
i+1);
34 sprintf(title4,
"CSCComparator3StripAmplitudeType%d",
i+1);
56 unsigned nDigisPerEvent = 0;
59 std::vector<CSCComparatorDigi>::const_iterator digiItr = (*j).second.first;
60 std::vector<CSCComparatorDigi>::const_iterator
last = (*j).second.second;
70 for( ; digiItr !=
last; ++digiItr) {
74 int strip = digiItr->getStrip();
75 for(std::vector<CSCStripDigi>::const_iterator stripItr = stripRange.first;
76 stripItr != stripRange.second; ++stripItr)
78 if(stripItr->getStrip() == strip)
80 std::vector<int>
adc = stripItr->getADCCounts();
81 float pedc = 0.5*(adc[0]+adc[1]);
82 float amp = adc[4] - pedc;
85 if(stripItr != stripRange.first && stripItr != stripRange.second-1)
87 std::vector<int> adcl = (stripItr-1)->getADCCounts();
88 std::vector<int> adcr = (stripItr+1)->getADCCounts();
89 float pedl = 0.5*(adcl[0]+adcl[1]);
90 float pedr = 0.5*(adcr[0]+adcr[1]);
91 float three = adcl[4]-pedl
int adc(sample_type sample)
get the ADC sample (12 bits)
edm::InputTag theInputTag
edm::EDGetTokenT< CSCStripDigiCollection > theStripDigi_Token_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void analyze(const edm::Event &, const edm::EventSetup &)
uint32_t rawId() const
get the raw id
const CSCChamberSpecs * specs() const
edm::EDGetTokenT< CSCComparatorDigiCollection > comparators_Token_
MonitorElement * theNDigisPerEventPlot
MonitorElement * book1D(Args &&...args)
void bookHistograms(DQMStore::IBooker &)
MonitorElement * theStripDigiPlots[10]
MonitorElement * theTimeBinPlots[10]
CSCComparatorDigiValidation(const edm::InputTag &inputTag, const edm::InputTag &stripDigiInputTag, edm::ConsumesCollector &&iC)
MonitorElement * the3StripPlots[10]
MonitorElement * theNDigisPerLayerPlots[10]
std::pair< const_iterator, const_iterator > Range
~CSCComparatorDigiValidation()
const CSCChamber * chamber() const
const CSCLayer * findLayer(int detId) const