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) {
52 unsigned nDigisPerEvent = 0;
54 for (
auto j = wires->begin();
j != wires->end();
j++) {
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) {
MonitorElement * theNDigisPerEventPlot
virtual void setCurrentFolder(std::string const &fullpath)
MonitorElement * theResolutionPlots[10]
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Log< level::Error, false > LogError
float yOfWireGroup(int wireGroup, float x=0.) const
constexpr std::array< uint8_t, layerIndexSize > layer
const CSCChamberSpecs * specs() const
Local3DPoint localPosition() const
const PSimHitMap * theSimHitMap
edm::EDGetTokenT< CSCWireDigiCollection > wires_Token_
const edm::PSimHitContainer & hits(int detId) const
MonitorElement * theNDigisPerLayerPlots[10]
~CSCWireDigiValidation() override
void plotResolution(const PSimHit &hit, const CSCWireDigi &digi, const CSCLayer *layer, int chamberType)
std::string chamberName() const
MonitorElement * theTimeBinPlots[10]
int getWireGroup() const
default
ParameterSet const & getParameterSet(std::string const &) const
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())
const CSCChamber * chamber() const
const CSCLayerGeometry * geometry() const
const CSCLayer * findLayer(int detId) const