|
|
Go to the documentation of this file.
9 thePedestalCovarianceSum(0),
11 thePedestalTimeCorrelationPlot(nullptr),
12 thePedestalNeighborCorrelationPlot(nullptr),
13 theNDigisPerChamberPlot(nullptr) {
23 theAmplitudePlot = iBooker.
book1D(
"CSCStripAmplitude",
"CSC Strip Amplitude;Strip Amplitude;Entries", 200, 0, 2000);
24 theRatio4to5Plot = iBooker.
book1D(
"CSCStrip4to5",
"CSC Strip Ratio tbin 4 to tbin 5;Strip Ratio;Entries", 100, 0, 1);
26 iBooker.
book1D(
"CSCStrip6to5",
"CSC Strip Ratio tbin 6 to tbin 5;Strip Ratio;Entries", 120, 0, 1.2);
28 iBooker.
book1D(
"CSCStripDigisPerLayer",
29 "Number of CSC Strip Digis per layer;Number of CSC Strip Digis per layer;Entries",
34 iBooker.
book1D(
"CSCStripDigisPerEvent",
35 "Number of CSC Strip Digis per event;Number of CSC Strip Digis per event;Entries",
41 for (
int i = 1;
i <= 10; ++
i) {
60 unsigned nDigisPerEvent = 0;
63 auto digiItr = (*j).second.first;
64 auto last = (*j).second.second;
65 int detId = (*j).first.rawId();
68 int chamberType =
layer->chamber()->specs()->chamberType();
69 int nDigis =
last - digiItr;
70 nDigisPerEvent += nDigis;
73 double maxAmplitude = 0.;
77 if (nDigis == 1 &&
simHits.size() == 1) {
82 for (; digiItr !=
last; ++digiItr) {
84 std::vector<int> adcCounts = digiItr->getADCCounts();
89 if (adcCounts[4] -
pedestal > maxAmplitude) {
90 maxAmplitude = adcCounts[4] -
pedestal;
123 double hitX =
hit.localPosition().
x();
124 double hitY =
hit.localPosition().
y();
125 double digiX =
layer->geometry()->xOfStrip(
strip, hitY);
MonitorElement * theResolutionPlots[10]
void fillSignalPlots(const CSCStripDigi &digi)
~CSCStripDigiValidation() override
MonitorElement * theNDigisPerLayerPlot
void fillPedestalPlots(const CSCStripDigi &digi)
const CSCLayer * findLayer(int detId) const
constexpr std::array< uint8_t, layerIndexSize > layer
const PSimHitMap * theSimHitMap
void analyze(const edm::Event &e, const edm::EventSetup &) override
CSCStripDigiValidation(const edm::ParameterSet &ps, edm::ConsumesCollector &&iC)
edm::EDGetTokenT< CSCStripDigiCollection > strips_Token_
std::vector< int > const & getADCCounts() const
Get ADC readings.
MonitorElement * theNDigisPerEventPlot
Log< level::Error, false > LogError
std::string chamberName() const
MonitorElement * thePedestalPlot
const edm::PSimHitContainer & hits(int detId) const
void plotResolution(const PSimHit &hit, int strip, const CSCLayer *layer, int chamberType)
void bookHistograms(DQMStore::IBooker &)
MonitorElement * theRatio4to5Plot
std::vector< PSimHit > PSimHitContainer
MonitorElement * theRatio6to5Plot
MonitorElement * theAmplitudePlot
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())