11 for (
int i = 0;
i < 10; ++
i) {
20 for (
int i = 0;
i < 10; ++
i) {
21 char title1[200], title2[200], title3[200], title4[200], title5[200], title6[200], title7[200], title8[200],
23 sprintf(title1,
"CSCRecHitResolution%d",
i + 1);
24 sprintf(title2,
"CSCRecHitPull%d",
i + 1);
25 sprintf(title3,
"CSCRecHitYResolution%d",
i + 1);
26 sprintf(title4,
"CSCRecHitYPull%d",
i + 1);
27 sprintf(title5,
"CSCRecHitPosInStrip%d",
i + 1);
28 sprintf(title6,
"CSCSimHitPosInStrip%d",
i + 1);
29 sprintf(title7,
"CSCRecHit%d",
i + 1);
30 sprintf(title8,
"CSCSimHit%d",
i + 1);
31 sprintf(title9,
"CSCTPeak%d",
i + 1);
51 unsigned nPerEvent = 0;
56 int detId = (*recHitItr).cscDetId().rawId();
64 float localX = recHitItr->localPosition().x();
65 float localY = recHitItr->localPosition().y();
70 float localPhi = axisThruChamber.
phi().
degrees();
78 for (
unsigned i = 0;
i < layersWithSimHits.size(); ++
i) {
80 for (edm::PSimHitContainer::const_iterator hitItr =
simHits.begin(); hitItr !=
simHits.end(); ++hitItr) {
83 float localX = hitItr->localPosition().x();
84 float localY = hitItr->localPosition().y();
89 float localPhi = axisThruChamber.
phi().
degrees();
103 double dphi = recHitPos.
phi() - simHitPos.
phi();
104 double rdphi = recHitPos.
perp() * dphi;
107 double dy =
recHit.localPosition().y() -
simHit.localPosition().y();
112 float recStrip = layerGeometry->
strip(
recHit.localPosition());
113 float simStrip = layerGeometry->
strip(
simHit.localPosition());