47 produces<std::vector<reco::Muon> >();
86 edm::LogError(
"") <<
">>> Muon collection does not exist !!!";
94 edm::LogError(
"") <<
">>> PFCandidate collection does not exist !!!";
105 unsigned int muonCollectionSize = muonCollection->size();
106 unsigned int pfCollectionSize = pfCollection->size();
107 for (
unsigned int i=0;
i<muonCollectionSize;
i++) {
111 bool muonFound =
false;
121 for (
unsigned int j=0;
j<pfCollectionSize;
j++) {
125 bool thisIsTheMuon =
false;
127 thisIsTheMuon =
true;
133 if (deltaR>0.5)
continue;
158 if (deltaR<0.3) iso03.
emEt += pf->
pt();
168 if (deltaR<0.3) iso03.
hadEt += pf->
pt();
180 newmuons->push_back(*newmu);
T getUntrackedParameter(std::string const &, T const &) const
float sumPt
sum-pt of tracks
virtual TrackRef innerTrack() const
#define DEFINE_FWK_MODULE(type)
float hadVetoEt
hcal sum-et in the veto region in r-phi
void setIsolation(const MuonIsolation &isoR03, const MuonIsolation &isoR05)
std::vector< Muon > MuonCollection
collection of Muon objects
virtual void produce(edm::Event &, const edm::EventSetup &)
reco::TrackRef trackRef() const
bool isNonnull() const
Checks for non-null.
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
MuonWithPFIsoProducerCopy(const edm::ParameterSet &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
int nTracks
number of tracks in the cone (excluding veto region)
double deltaR(double eta1, double eta2, double phi1, double phi2)
Muon * clone() const
create a clone
float emVetoEt
ecal sum-et in the veto region in r-phi
virtual Vector momentum() const GCC11_FINAL
spatial momentum vector
double deltaR(const Vector1 &v1, const Vector2 &v2)
virtual ParticleType particleId() const
virtual float pt() const GCC11_FINAL
transverse momentum
~MuonWithPFIsoProducerCopy()
double neutralHadronIsoVeto_
float trackerVetoPt
(sum-)pt inside the veto region in r-phi