|
|
Go to the documentation of this file.
7 :
CSCBaseValidation(ps), theTimeBinPlots(), theNDigisPerLayerPlots(), theStripDigiPlots(), the3StripPlots() {
21 "CSC Comparator Digis per event;CSC Comparator Digis per event;Entries",
26 for (
int i = 1;
i <= 10; ++
i) {
63 unsigned nDigisPerEvent = 0;
65 for (
auto j = comparators->begin();
j != comparators->end();
j++) {
66 auto digiItr = (*j).second.first;
67 auto last = (*j).second.second;
71 int chamberType =
layer->chamber()->specs()->chamberType();
75 for (
auto stripRange = stripDigis->get(detId); digiItr !=
last; ++digiItr) {
79 int strip = digiItr->getStrip();
80 for (
auto stripItr = stripRange.first; stripItr != stripRange.second; ++stripItr) {
81 if (stripItr->getStrip() ==
strip) {
82 std::vector<int>
adc = stripItr->getADCCounts();
83 float pedc = 0.5 * (
adc[0] +
adc[1]);
84 float amp =
adc[4] - pedc;
87 if (stripItr != stripRange.first && stripItr != stripRange.second - 1) {
88 std::vector<int> adcl = (stripItr - 1)->getADCCounts();
89 std::vector<int> adcr = (stripItr + 1)->getADCCounts();
90 float pedl = 0.5 * (adcl[0] + adcl[1]);
91 float pedr = 0.5 * (adcr[0] + adcr[1]);
92 float three = adcl[4] - pedl + adcr[4] - pedr + amp;
CSCComparatorDigiValidation(const edm::ParameterSet &ps, edm::ConsumesCollector &&iC)
MonitorElement * theNDigisPerLayerPlots[10]
MonitorElement * theNDigisPerEventPlot
uint16_t *__restrict__ uint16_t const *__restrict__ adc
edm::EDGetTokenT< CSCComparatorDigiCollection > comparators_Token_
edm::InputTag inputTagComp_
edm::InputTag inputTagStrip_
const CSCLayer * findLayer(int detId) const
void analyze(const edm::Event &, const edm::EventSetup &) override
constexpr std::array< uint8_t, layerIndexSize > layer
Log< level::Error, false > LogError
void bookHistograms(DQMStore::IBooker &)
edm::EDGetTokenT< CSCStripDigiCollection > strips_Token_
constexpr uint32_t rawId() const
get the raw id
MonitorElement * theStripDigiPlots[10]
~CSCComparatorDigiValidation() override
std::string chamberName() const
MonitorElement * theTimeBinPlots[10]
MonitorElement * the3StripPlots[10]
strips
#turn off noise in all subdetectors simHcalUnsuppressedDigis.doNoise = False mix.digitizers....
ParameterSet const & getParameterSet(std::string const &) const
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())