1 #ifndef Validation_RecoMuon_MuonTrackResidualAnalyzer_H 2 #define Validation_RecoMuon_MuonTrackResidualAnalyzer_H 69 std::map<DetId, const PSimHit *> &hitIdMap,
124 double distA = geomDetA->
toGlobal(
a->localPosition()).
mag();
125 double distB = geomDetB->
toGlobal(
b->localPosition()).
mag();
127 return distA < distB;
~MuonTrackResidualAnalyzer() override
Destructor.
MeasurementEstimator * theEstimator
std::map< DetId, const PSimHit * > mapMuSimHitsPerId(edm::Handle< edm::PSimHitContainer > dtSimhits, edm::Handle< edm::PSimHitContainer > cscSimhits, edm::Handle< edm::PSimHitContainer > rpcSimhits)
edm::InputTag cscSimHitLabel
std::vector< const PSimHit * > theSimHitContainer
int theMuonSimHitNumberPerEvent
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override
RadiusComparatorInOut(edm::ESHandle< GlobalTrackingGeometry > tg)
edm::InputTag theMuonTrackLabel
edm::EDGetTokenT< reco::TrackCollection > theMuonTrackToken
bool isInTheAcceptance(double eta)
edm::InputTag rpcSimHitLabel
const GeomDet * idToDet(DetId) const override
MonitorElement * hDeltaPtVsEtaSim
HResolution1DRecHit * h1DRecHitRes
void dqmEndRun(edm::Run const &, edm::EventSetup const &) override
HResolution1DRecHit * h1DSimHitRes
void computeResolution(Trajectory &trajectory, std::map< DetId, const PSimHit *> &hitIdMap, HResolution1DRecHit *histos)
MonitorElement * hDeltaPtVsEtaSim2
edm::InputTag dtSimHitLabel
MuonTrackResidualAnalyzer(const edm::ParameterSet &ps)
Constructor.
MonitorElement * hSimHitsPerTrackVsEta
std::string subsystemname_
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
MuonServiceProxy * theService
edm::EDGetTokenT< std::vector< PSimHit > > theRPCSimHitToken
edm::EDGetTokenT< edm::SimTrackContainer > theDataTypeToken
edm::ESHandle< GlobalTrackingGeometry > theTG
edm::InputTag theDataType
MonitorElement * hSimHitsPerTrack
bool operator()(const PSimHit *a, const PSimHit *b) const
edm::EDGetTokenT< std::vector< PSimHit > > theCSCSimHitToken
edm::EDGetTokenT< std::vector< PSimHit > > theDTSimHitToken