17 for (
int i = 1;
i <= 10; ++
i) {
40 theTPeaks[
i - 1] = iBooker.
book1D(t9, t9 +
";Peak Time [ns];Entries", 200, 0, 400);
50 unsigned nPerEvent = 0;
52 for (
auto recHitItr = cscRecHits->begin(); recHitItr != cscRecHits->end(); recHitItr++) {
54 int detId = (*recHitItr).cscDetId().rawId();
59 if (simHits.size() == 1) {
62 float localX = recHitItr->localPosition().x();
63 float localY = recHitItr->localPosition().y();
66 GlobalPoint axisThruChamber(globalR + localY, localX, 0.);
67 float localPhi = axisThruChamber.
phi().
degrees();
75 for (
unsigned i = 0;
i < layersWithSimHits.size(); ++
i) {
77 for (
auto hitItr = simHits.begin(); hitItr != simHits.end(); ++hitItr) {
80 float localX = hitItr->localPosition().x();
81 float localY = hitItr->localPosition().y();
84 GlobalPoint axisThruChamber(globalR + localY, localX, 0.);
85 float localPhi = axisThruChamber.
phi().
degrees();
99 double dphi = recHitPos.
phi() - simHitPos.
phi();
100 double rdphi = recHitPos.
perp() * dphi;
MonitorElement * theSimHitScatterPlots[10]
MonitorElement * theYResolutionPlots[10]
MonitorElement * theScatterPlots[10]
Point3DBase< Scalar, LocalTag > LocalPoint
void plotResolution(const PSimHit &simHit, const CSCRecHit2D &recHit, const CSCLayer *layer, int chamberType)
edm::EDGetTokenT< CSCRecHit2DCollection > rechits_Token_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
CSCRecHit2DValidation(const edm::ParameterSet &ps, edm::ConsumesCollector &&iC)
Geom::Phi< T > phi() const
void bookHistograms(DQMStore::IBooker &)
constexpr uint16_t localY(uint16_t py)
MonitorElement * theResolutionPlots[10]
constexpr std::array< uint8_t, layerIndexSize > layer
MonitorElement * theSimHitPosInStrip[10]
MonitorElement * theYPullPlots[10]
const CSCChamberSpecs * specs() const
Local3DPoint localPosition() const
const PSimHitMap * theSimHitMap
const edm::PSimHitContainer & hits(int detId) const
float strip(const LocalPoint &lp) const
LocalError localPositionError() const override
LocalPoint localPosition() const override
std::vector< int > detsWithHits() const
std::string chamberName() const
T const * product() const
ParameterSet const & getParameterSet(std::string const &) const
constexpr uint16_t localX(uint16_t px)
~CSCRecHit2DValidation() override
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
MonitorElement * theNPerEventPlot
MonitorElement * thePullPlots[10]
MonitorElement * theRecHitPosInStrip[10]
MonitorElement * theTPeaks[10]
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
void analyze(const edm::Event &, const edm::EventSetup &) override