47 produces<std::vector<reco::Muon> >();
54 pfToken_ = consumes<edm::View<reco::PFCandidate> >(
83 edm::LogError(
"") <<
">>> Muon collection does not exist !!!";
91 edm::LogError(
"") <<
">>> PFCandidate collection does not exist !!!";
102 unsigned int muonCollectionSize = muonCollection->size();
103 unsigned int pfCollectionSize = pfCollection->size();
104 for (
unsigned int i = 0;
i < muonCollectionSize;
i++) {
108 bool muonFound =
false;
118 for (
unsigned int j = 0;
j < pfCollectionSize;
j++) {
122 bool thisIsTheMuon =
false;
124 thisIsTheMuon =
true;
178 newmuons->push_back(*newmu);
T getUntrackedParameter(std::string const &, T const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool isNonnull() const
Checks for non-null.
float sumPt
sum-pt of tracks
virtual TrackRef innerTrack() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MuonWithPFIsoProducer(const edm::ParameterSet &)
float hadVetoEt
hcal sum-et in the veto region in r-phi
double pt() const final
transverse momentum
~MuonWithPFIsoProducer() override
std::vector< Muon > MuonCollection
collection of Muon objects
reco::TrackRef trackRef() const
Vector momentum() const final
spatial momentum vector
#define DEFINE_FWK_MODULE(type)
void produce(edm::Event &, const edm::EventSetup &) override
int nTracks
number of tracks in the cone (excluding veto region)
float emVetoEt
ecal sum-et in the veto region in r-phi
edm::EDGetTokenT< edm::View< reco::PFCandidate > > pfToken_
double neutralHadronIsoVeto_
void setIsolation(const MuonIsolation &isoR03, const MuonIsolation &isoR05)
virtual ParticleType particleId() const
edm::EDGetTokenT< edm::View< reco::Muon > > muonToken_
Muon * clone() const override
create a clone
float trackerVetoPt
(sum-)pt inside the veto region in r-phi