19 theNDigisPerLayerPlots(),
20 theNDigisPerEventPlot(
dbe_->book1D(
"CSCWireDigisPerEvent",
"CSC Wire Digis per event", 100, 0, 100) )
22 for(
int i = 0;
i < 10; ++
i)
24 char title1[200], title2[200], title3[200];
25 sprintf(title1,
"CSCWireDigiTimeType%d",
i+1);
26 sprintf(title2,
"CSCWireDigisPerLayerType%d",
i+1);
27 sprintf(title3,
"CSCWireDigiResolution%d",
i+1);
58 unsigned nDigisPerEvent = 0;
61 std::vector<CSCWireDigi>::const_iterator beginDigi = (*j).second.first;
62 std::vector<CSCWireDigi>::const_iterator endDigi = (*j).second.second;
63 int detId = (*j).first.rawId();
67 int nDigis = endDigi-beginDigi;
68 nDigisPerEvent += nDigis;
71 for( std::vector<CSCWireDigi>::const_iterator digiItr = beginDigi;
72 digiItr != endDigi; ++digiItr)
80 if(nDigis == 1 && simHits.size() == 1)
edm::InputTag theInputTag
MonitorElement * theNDigisPerEventPlot
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
MonitorElement * theResolutionPlots[10]
float yOfWireGroup(int wireGroup, float x=0.) const
const CSCChamberSpecs * specs() const
Local3DPoint localPosition() const
const PSimHitMap * theSimHitMap
const edm::PSimHitContainer & hits(int detId) const
MonitorElement * theNDigisPerLayerPlots[10]
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void plotResolution(const PSimHit &hit, const CSCWireDigi &digi, const CSCLayer *layer, int chamberType)
MonitorElement * theTimeBinPlots[10]
int getWireGroup() const
default
CSCWireDigiValidation(DQMStore *dbe, const edm::InputTag &inputTag, edm::ConsumesCollector &&, bool doSim)
std::vector< PSimHit > PSimHitContainer
void analyze(const edm::Event &, const edm::EventSetup &)
const CSCChamber * chamber() const
const CSCLayerGeometry * geometry() const
const CSCLayer * findLayer(int detId) const