21 iBooker.
book1D(
"CSCWireDigisPerEvent",
"CSC Wire Digis per event;CSC Wire Digis per event;Entries", 100, 0, 100);
22 for (
int i = 1;
i <= 10; ++
i) {
32 for (
int i = 1;
i <= 10; ++
i) {
48 if (!
wires.isValid()) {
52 unsigned nDigisPerEvent = 0;
55 auto beginDigi = (*j).second.first;
56 auto endDigi = (*j).second.second;
57 int detId = (*j).first.rawId();
61 int nDigis = endDigi - beginDigi;
62 nDigisPerEvent += nDigis;
65 for (
auto digiItr = beginDigi; digiItr != endDigi; ++digiItr) {
71 if (nDigis == 1 &&
simHits.size() == 1) {
84 double hitX =
hit.localPosition().
x();
85 double hitY =
hit.localPosition().
y();
MonitorElement * theNDigisPerEventPlot
virtual void setCurrentFolder(std::string const &fullpath)
MonitorElement * theResolutionPlots[10]
ParameterSet const & getParameterSet(std::string const &) const
Log< level::Error, false > LogError
std::string chamberName() const
const PSimHitMap * theSimHitMap
edm::EDGetTokenT< CSCWireDigiCollection > wires_Token_
const CSCLayer * findLayer(int detId) const
MonitorElement * theNDigisPerLayerPlots[10]
const edm::PSimHitContainer & hits(int detId) const
~CSCWireDigiValidation() override
void plotResolution(const PSimHit &hit, const CSCWireDigi &digi, const CSCLayer *layer, int chamberType)
MonitorElement * theTimeBinPlots[10]
void bookHistograms(DQMStore::IBooker &)
void analyze(const edm::Event &, const edm::EventSetup &) override
CSCWireDigiValidation(const edm::ParameterSet &ps, edm::ConsumesCollector &&iC)
std::vector< PSimHit > PSimHitContainer
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
int getWireGroup() const
default