Go to the documentation of this file.
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 !!!";
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;
MuonWithPFIsoProducer(const edm::ParameterSet &)
void setIsolation(const MuonIsolation &isoR03, const MuonIsolation &isoR05)
float sumPt
sum-pt of tracks
#define DEFINE_FWK_MODULE(type)
std::vector< Muon > MuonCollection
collection of Muon objects
edm::EDGetTokenT< edm::View< reco::Muon > > muonToken_
edm::EDGetTokenT< edm::View< reco::PFCandidate > > pfToken_
float hadVetoEt
hcal sum-et in the veto region in r-phi
bool isNonnull() const
Checks for non-null.
int nTracks
number of tracks in the cone (excluding veto region)
Log< level::Error, false > LogError
float emVetoEt
ecal sum-et in the veto region in r-phi
double neutralHadronIsoVeto_
float trackerVetoPt
(sum-)pt inside the veto region in r-phi
void produce(edm::Event &, const edm::EventSetup &) override
~MuonWithPFIsoProducer() override