49 produces<ValueMap<reco::MuonMETCorrectionData> > (
"muCorrData");
109 double bfield = magneticField->inTesla(
GlobalPoint(0.,0.,0.)).z();
124 unsigned int nMuons =
muons->size();
126 std::vector<MuonMETCorrectionData> v_muCorrData;
127 for (
unsigned int iMu=0; iMu<nMuons; iMu++) {
148 deltax, deltay, bfield);
155 v_muCorrData.push_back(muMETCorrData);
162 v_muCorrData.push_back(muMETCorrData);
172 v_muCorrData.push_back(muMETCorrData);
176 v_muCorrData.push_back(muMETCorrData);
179 if(fabs(globTk->dxy(beamSpotH->position())) > fabs(
maxd0_) ) {
180 v_muCorrData.push_back(muMETCorrData);
183 if(siTk->numberOfValidHits() <
minnHits_) {
184 v_muCorrData.push_back(muMETCorrData);
189 v_muCorrData.push_back(muMETCorrData);
193 v_muCorrData.push_back(
MuonMETCorrectionData(MuonMETCorrectionData::MuonCandidateValuesUsed, deltax, deltay));
198 dataFiller.
insert(
muons, v_muCorrData.begin(), v_muCorrData.end());
201 iEvent.
put(vm_muCorrData,
"muCorrData");
T getParameter(std::string const &) const
~MuonMETValueMapProducer()
virtual TrackRef innerTrack() const
bool isTrackerMuon() const
static FreeTrajectoryState getFreeTrajectoryState(const edm::EventSetup &, const reco::Track &)
get FreeTrajectoryState from different track representations
void useDefaultPropagator()
use the default propagator
void insert(const H &h, I begin, I end)
Global3DPoint GlobalPoint
bool isGlobalMuon() const
TrackDetectorAssociator trackAssociator_
edm::InputTag beamSpotInputTag_
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
bool useTrackAssociatorPositions_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
TrackAssociatorParameters trackAssociatorParameters_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual TrackRef outerTrack() const
reference to Track reconstructed in the muon detector only
virtual float eta() const GCC11_FINAL
momentum pseudorapidity
edm::InputTag muonInputTag_
XYZPointD XYZPoint
point in space with cartesian internal representation
virtual void produce(edm::Event &, const edm::EventSetup &)
MuonMETValueMapProducer(const edm::ParameterSet &)
TrackDetMatchInfo associate(const edm::Event &, const edm::EventSetup &, const FreeTrajectoryState &, const AssociatorParameters &)
virtual float pt() const GCC11_FINAL
transverse momentum
void loadParameters(const edm::ParameterSet &)
math::PtEtaPhiELorentzVectorF LorentzVector
virtual TrackRef globalTrack() const
reference to Track reconstructed in both tracked and muon detector