18 theNDigisPerLayerPlots(),
19 theNDigisPerEventPlot(
dbe_->book1D(
"CSCWireDigisPerEvent",
"CSC Wire Digis per event", 100, 0, 100) )
23 for(
int i = 0;
i < 10; ++
i)
25 char title1[200], title2[200], title3[200];
26 sprintf(title1,
"CSCWireDigiTimeType%d",
i+1);
27 sprintf(title2,
"CSCWireDigisPerLayerType%d",
i+1);
28 sprintf(title3,
"CSCWireDigiResolution%d",
i+1);
60 unsigned nDigisPerEvent = 0;
63 std::vector<CSCWireDigi>::const_iterator beginDigi = (*j).second.first;
64 std::vector<CSCWireDigi>::const_iterator endDigi = (*j).second.second;
65 int detId = (*j).first.rawId();
69 int nDigis = endDigi-beginDigi;
70 nDigisPerEvent += nDigis;
73 for( std::vector<CSCWireDigi>::const_iterator digiItr = beginDigi;
74 digiItr != endDigi; ++digiItr)
82 if(nDigis == 1 && simHits.size() == 1)
edm::InputTag theInputTag
CSCWireDigiValidation(DQMStore *dbe, const edm::InputTag &inputTag, edm::ConsumesCollector &&iC, bool doSim)
MonitorElement * theNDigisPerEventPlot
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
MonitorElement * theResolutionPlots[10]
bool getByToken(EDGetToken token, Handle< PROD > &result) const
float yOfWireGroup(int wireGroup, float x=0.) const
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]
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 &)
const CSCChamber * chamber() const
const CSCLayerGeometry * geometry() const
const CSCLayer * findLayer(int detId) const