16 theNDigisPerLayerPlots(),
17 theNDigisPerEventPlot(
dbe_->book1D(
"CSCWireDigisPerEvent",
"CSC Wire Digis per event", 100, 0, 100) )
19 for(
int i = 0;
i < 10; ++
i)
21 char title1[200], title2[200], title3[200];
22 sprintf(title1,
"CSCWireDigiTimeType%d",
i+1);
23 sprintf(title2,
"CSCWireDigisPerLayerType%d",
i+1);
24 sprintf(title3,
"CSCWireDigiResolution%d",
i+1);
55 unsigned nDigisPerEvent = 0;
58 std::vector<CSCWireDigi>::const_iterator beginDigi = (*j).second.first;
59 std::vector<CSCWireDigi>::const_iterator endDigi = (*j).second.second;
60 int detId = (*j).first.rawId();
64 int nDigis = endDigi-beginDigi;
65 nDigisPerEvent += nDigis;
68 for( std::vector<CSCWireDigi>::const_iterator digiItr = beginDigi;
69 digiItr != endDigi; ++digiItr)
77 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
std::vector< PSimHit > PSimHitContainer
void analyze(const edm::Event &, const edm::EventSetup &)
CSCWireDigiValidation(DQMStore *dbe, const edm::InputTag &inputTag, bool doSim)
const CSCChamber * chamber() const
const CSCLayerGeometry * geometry() const
const CSCLayer * findLayer(int detId) const