59 : minPt_(iConfig.getParameter<double>(
"minPt"))
60 , maxEta_(iConfig.getParameter<double>(
"maxEta"))
61 , isAlsoTkMu_(iConfig.getParameter<
bool>(
"isAlsoTkMu"))
62 , maxNormChi2_(iConfig.getParameter<double>(
"maxNormChi2"))
63 , maxd0_(iConfig.getParameter<double>(
"maxd0"))
64 , minnHits_(iConfig.getParameter<
int>(
"minnHits"))
65 , minnValidStaHits_(iConfig.getParameter<
int>(
"minnValidStaHits"))
66 , useTrackAssociatorPositions_(iConfig.getParameter<
bool>(
"useTrackAssociatorPositions"))
67 , useHO_(iConfig.getParameter<
bool>(
"useHO"))
68 , towerEtThreshold_(iConfig.getParameter<double>(
"towerEtThreshold"))
69 , useRecHits_(iConfig.getParameter<
bool>(
"useRecHits"))
79 produces<edm::ValueMap<reco::MuonMETCorrectionData> >(
"muCorrData");
96 std::vector<reco::MuonMETCorrectionData> muCorrDataList;
107 muCorrDataList.push_back(muMETCorrData);
111 auto valueMapMuCorrData = std::make_unique<edm::ValueMap<reco::MuonMETCorrectionData>>();
115 dataFiller.insert(muons, muCorrDataList.begin(), muCorrDataList.end());
118 iEvent.
put(
std::move(valueMapMuCorrData),
"muCorrData");
138 deltax, deltay, bfield);
146 return reco::MuonMETCorrectionData::Type::MuonCandidateValuesUsed;
148 return reco::MuonMETCorrectionData::Type::NotUsed;
160 if(globTk->chi2()/globTk->ndof() >
maxNormChi2_)
return false;
161 if(fabs(globTk->dxy(beamSpotPosition)) > fabs(
maxd0_))
return false;
162 if(siTk->numberOfValidHits() <
minnHits_)
return false;
163 if(globTk->hitPattern().numberOfValidMuonHits() <
minnValidStaHits_)
return false;
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
double eta() const final
momentum pseudorapidity
virtual TrackRef innerTrack() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
static FreeTrajectoryState getFreeTrajectoryState(const edm::EventSetup &, const reco::Track &)
get FreeTrajectoryState from different track representations
void useDefaultPropagator()
use the default propagator
Global3DPoint GlobalPoint
void loadParameters(const edm::ParameterSet &, edm::ConsumesCollector &)
TrackDetectorAssociator trackAssociator_
double pt() const final
transverse momentum
edm::EDGetTokenT< edm::View< reco::Muon > > muonToken_
reco::MuonMETCorrectionData::Type decide_correction_type(const reco::Muon &muon, const math::XYZPoint &beamSpotPosition)
bool isTrackerMuon() const override
bool useTrackAssociatorPositions_
bool isGlobalMuon() const override
TrackAssociatorParameters trackAssociatorParameters_
void determine_deltax_deltay(double &deltax, double &deltay, const reco::Muon &muon, double bfield, edm::Event &iEvent, const edm::EventSetup &iSetup)
virtual GlobalVector inTesla(const GlobalPoint &gp) const =0
Field value ad specified global point, in Tesla.
virtual TrackRef outerTrack() const
reference to Track reconstructed in the muon detector only
Namespace of DDCMS conversion namespace.
void produce(edm::Event &, const edm::EventSetup &) override
XYZPointD XYZPoint
point in space with cartesian internal representation
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
MuonMETValueMapProducer(const edm::ParameterSet &)
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
bool should_type_MuonCandidateValuesUsed(const reco::Muon &muon, const math::XYZPoint &beamSpotPosition)
TrackDetMatchInfo associate(const edm::Event &, const edm::EventSetup &, const FreeTrajectoryState &, const AssociatorParameters &)
const Point & position() const
position
virtual TrackRef globalTrack() const
reference to Track reconstructed in both tracked and muon detector