CMS 3D CMS Logo

FFTJetPFPileupCleaner.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: FFTJetProducers
4 // Class: FFTJetPFPileupCleaner
5 //
13 //
14 // Original Author: Igor Volobouev
15 // Created: Thu Jul 14 17:50:33 CDT 2011
16 //
17 //
18 #include <cmath>
19 #include <climits>
20 #include <utility>
21 #include <algorithm>
22 
23 // framework include files
30 
33 
36 
39 
40 #define init_param(type, varname) varname(ps.getParameter<type>(#varname))
41 
42 //
43 // class declaration
44 //
46 public:
48  ~FFTJetPFPileupCleaner() override;
49 
50 protected:
51  // methods
52  void beginJob() override;
53  void produce(edm::Event&, const edm::EventSetup&) override;
54  void endJob() override;
55 
56 private:
57  FFTJetPFPileupCleaner() = delete;
60 
63  void buildRemovalMask();
64  bool isAcceptableVtx(reco::VertexCollection::const_iterator iv) const;
65 
67  const edm::Handle<reco::VertexCollection>& fakeVertices,
69  bool* fromFakeSet) const;
70 
74 
78 
79  // The following, if true, will switch to an algorithm
80  // which takes a fake primary vertex into account
82 
83  // The following, if true, will cause association of a candidate
84  // with some vertex no matter what
86 
87  // The following switch will check if the primary vertex
88  // is a neighbor (in Z) of a track and will keep the
89  // track if this is so, even if it is not directly associated
90  // with the primary vertex. This switch is meaningful only if
91  // "checkClosestZVertex" is true.
93 
94  // The following, if true, will cause removal of candidates
95  // associated with the main vertex
97 
98  // The following will tell us to remove candidates not associated
99  // with any vertex
101 
102  // Do we want to reverse the decision?
104 
105  // Flags for removing things. See PFCandidate header
106  // for particle types.
107  bool remove_X; // undefined
108  bool remove_h; // charged hadron
109  bool remove_e; // electron
110  bool remove_mu; // muon
111  bool remove_gamma; // photon
112  bool remove_h0; // neutral hadron
113  bool remove_h_HF; // HF tower identified as a hadron
114  bool remove_egamma_HF; // HF tower identified as an EM particle
115 
116  // Mask for removing things
117  unsigned removalMask;
118 
119  // Min and max eta for keeping things
120  double etaMin;
121  double etaMax;
122 
123  // Cut for the vertex Ndof
125 
126  // Cut for the vertex Z
128 
129  // Cut for the vertex rho
130  double vertexRhoCut;
131 
132  // Vector for associating tracks with Z positions of the vertices
133  mutable std::vector<std::pair<double, unsigned> > zAssoc;
134 };
135 
136 //
137 // constructors and destructor
138 //
157  removalMask(0),
158  init_param(double, etaMin),
159  init_param(double, etaMax),
160  init_param(double, vertexNdofCut),
161  init_param(double, vertexZmaxCut),
162  init_param(double, vertexRhoCut) {
164 
165  PFCandidatesToken = consumes<reco::PFCandidateCollection>(PFCandidates);
166  VerticesToken = consumes<reco::VertexCollection>(Vertices);
168  FakePrimaryVerticesToken = consumes<reco::VertexCollection>(FakePrimaryVertices);
169 
170  produces<reco::PFCandidateCollection>();
171 }
172 
174 
175 bool FFTJetPFPileupCleaner::isAcceptableVtx(reco::VertexCollection::const_iterator iv) const {
176  return !iv->isFake() && static_cast<double>(iv->ndof()) > vertexNdofCut && std::abs(iv->z()) < vertexZmaxCut &&
177  iv->position().rho() < vertexRhoCut;
178 }
179 
180 // ------------ method called to produce the data ------------
182  // get PFCandidates
183  auto pOutput = std::make_unique<reco::PFCandidateCollection>();
184 
187 
188  // get vertices
190  iEvent.getByToken(VerticesToken, vertices);
191 
193  if (useFakePrimaryVertex) {
194  iEvent.getByToken(FakePrimaryVerticesToken, fakeVertices);
195  if (!fakeVertices.isValid())
196  throw cms::Exception("FFTJetBadConfig") << "ERROR in FFTJetPFPileupCleaner:"
197  " could not find fake vertices"
198  << std::endl;
199  }
200 
201  const unsigned ncand = pfCandidates->size();
202  for (unsigned i = 0; i < ncand; ++i) {
204  bool remove = false;
205 
206  if (isRemovable(candptr->particleId())) {
207  bool fromFakeSet = false;
208  reco::VertexRef vertexref(findSomeVertexWFakes(vertices, fakeVertices, *candptr, &fromFakeSet));
209  if (vertexref.isNull()) {
210  // Track is not associated with any vertex
211  // in any of the vertex sets
213  } else if (vertexref.key() == 0 && (!useFakePrimaryVertex || fromFakeSet)) {
214  // Track is associated with the main primary vertex
215  // However, if we are using fake vertices, this only
216  // matters if the vertex comes from the fake set. If
217  // it comes from the real set, remove the track anyway
218  // because in the combined set the associated vertex
219  // would not be the main primary vertex.
221  } else
222  remove = true;
223  }
224 
225  // Check the eta range
226  if (!remove) {
227  const double eta = candptr->p4().Eta();
228  remove = eta < etaMin || eta > etaMax;
229  }
230 
231  // Should we remember this candidate?
233  remove = !remove;
234  if (!remove) {
235  const reco::PFCandidate& cand = (*pfCandidates)[i];
236  pOutput->push_back(cand);
237  pOutput->back().setSourceCandidatePtr(candptr);
238  }
239  }
240 
241  iEvent.put(std::move(pOutput));
242 }
243 
245  const unsigned shift = static_cast<unsigned>(ptype);
246  assert(shift < 32U);
247  return removalMask & (1U << shift);
248 }
249 
251  const unsigned shift = static_cast<unsigned>(ptype);
252  assert(shift < 32U);
253  const unsigned mask = (1U << shift);
254  if (value)
255  removalMask |= mask;
256  else
257  removalMask &= ~mask;
258 }
259 
260 // The following essentially follows the code in PFPileUp.cc,
261 // with added cut on ndof, vertex Z position, and iteration
262 // over fakes
264  const edm::Handle<reco::VertexCollection>& fakeVertices,
265  const reco::PFCandidate& pfcand,
266  bool* fromFakeSet) const {
267  typedef reco::VertexCollection::const_iterator IV;
269 
270  *fromFakeSet = false;
271  reco::TrackBaseRef trackBaseRef(pfcand.trackRef());
272 
273  size_t iVertex = 0;
274  unsigned nFoundVertex = 0;
275  const IV vertend(vertices->end());
276 
277  {
278  unsigned index = 0;
279  double bestweight = 0.0;
280  for (IV iv = vertices->begin(); iv != vertend; ++iv, ++index)
281  if (isAcceptableVtx(iv)) {
282  const reco::Vertex& vtx = *iv;
283 
284  // loop on tracks in vertices
285  IT trackend(vtx.tracks_end());
286  for (IT iTrack = vtx.tracks_begin(); iTrack != trackend; ++iTrack) {
287  const reco::TrackBaseRef& baseRef = *iTrack;
288 
289  // one of the tracks in the vertex is the same as
290  // the track considered in the function
291  if (baseRef == trackBaseRef) {
292  // select the vertex for which the track has the highest weight
293  const double w = vtx.trackWeight(baseRef);
294  if (w > bestweight) {
295  bestweight = w;
296  iVertex = index;
297  nFoundVertex++;
298  }
299  }
300  }
301  }
302  }
303 
304  if (nFoundVertex > 0) {
305  if (nFoundVertex != 1)
306  edm::LogWarning("TrackOnTwoVertex") << "a track is shared by at least two vertices. "
307  << "Used to be an assert";
308 
309  // Check if we can re-associate this track with one
310  // of the fake vertices
311  if (useFakePrimaryVertex) {
312  const double ztrack = pfcand.vertex().z();
313  double dzmin = std::abs(ztrack - ((*vertices)[iVertex]).z());
314 
315  const IV fakeEnd(fakeVertices->end());
316  unsigned index = 0;
317  for (IV iv = fakeVertices->begin(); iv != fakeEnd; ++iv, ++index)
318  if (isAcceptableVtx(iv)) {
319  const double dz = std::abs(ztrack - iv->z());
320  if (dz < dzmin) {
321  dzmin = dz;
322  iVertex = index;
323  *fromFakeSet = true;
324  }
325  }
326  }
327 
328  return reco::VertexRef(*fromFakeSet ? fakeVertices : vertices, iVertex);
329  }
330 
331  // optional: as a secondary solution, associate the closest vertex in z
332  if (checkClosestZVertex) {
333  const double ztrack = pfcand.vertex().z();
334  bool foundVertex = false;
335 
336  if (keepIfPVneighbor) {
337  // Sort all vertices according to their Z coordinate
338  zAssoc.clear();
339  unsigned index = 0;
340  for (IV iv = vertices->begin(); iv != vertend; ++iv, ++index)
341  if (isAcceptableVtx(iv))
342  zAssoc.push_back(std::pair<double, unsigned>(iv->z(), index));
343  const unsigned numRealVertices = index;
344 
345  // Mix the fake vertex collection into zAssoc.
346  // Note that we do not reset "index" before doing this.
347  if (useFakePrimaryVertex) {
348  const IV fakeEnd(fakeVertices->end());
349  for (IV iv = fakeVertices->begin(); iv != fakeEnd; ++iv, ++index)
350  if (isAcceptableVtx(iv))
351  zAssoc.push_back(std::pair<double, unsigned>(iv->z(), index));
352  }
353 
354  // Check where the track z position fits into this sequence
355  if (!zAssoc.empty()) {
356  std::sort(zAssoc.begin(), zAssoc.end());
357  std::pair<double, unsigned> tPair(ztrack, UINT_MAX);
358  const unsigned iAbove = std::upper_bound(zAssoc.begin(), zAssoc.end(), tPair) - zAssoc.begin();
359 
360  // Check whether one of the vertices with indices
361  // iAbove or (iAbove - 1) is a primary vertex.
362  // If so, return it. Otherwise return the one
363  // with closest distance to the track.
364  unsigned ich[2] = {0U, 0U};
365  unsigned nch = 1;
366  if (iAbove) {
367  ich[0] = iAbove - 1U;
368  ich[1] = iAbove;
369  if (iAbove < zAssoc.size())
370  nch = 2;
371  }
372 
373  double dzmin = 1.0e100;
374  unsigned bestVertexNum = UINT_MAX;
375  for (unsigned icheck = 0; icheck < nch; ++icheck) {
376  const unsigned zAssocIndex = ich[icheck];
377  const unsigned vertexNum = zAssoc[zAssocIndex].second;
378 
379  if (vertexNum == numRealVertices || (!useFakePrimaryVertex && vertexNum == 0U)) {
380  bestVertexNum = vertexNum;
381  break;
382  }
383 
384  const double dz = std::abs(ztrack - zAssoc[zAssocIndex].first);
385  if (dz < dzmin) {
386  dzmin = dz;
387  bestVertexNum = vertexNum;
388  }
389  }
390 
391  foundVertex = bestVertexNum < UINT_MAX;
392  if (foundVertex) {
393  iVertex = bestVertexNum;
394  if (iVertex >= numRealVertices) {
395  *fromFakeSet = true;
396  iVertex -= numRealVertices;
397  }
398  }
399  }
400  } else {
401  // This is a simple association algorithm (from PFPileUp)
402  // extended to take fake vertices into account
403  double dzmin = 1.0e100;
404  unsigned index = 0;
405  for (IV iv = vertices->begin(); iv != vertend; ++iv, ++index)
406  if (isAcceptableVtx(iv)) {
407  const double dz = std::abs(ztrack - iv->z());
408  if (dz < dzmin) {
409  dzmin = dz;
410  iVertex = index;
411  foundVertex = true;
412  }
413  }
414 
415  if (useFakePrimaryVertex) {
416  const IV fakeEnd(fakeVertices->end());
417  index = 0;
418  for (IV iv = fakeVertices->begin(); iv != fakeEnd; ++iv, ++index)
419  if (isAcceptableVtx(iv)) {
420  const double dz = std::abs(ztrack - iv->z());
421  if (dz < dzmin) {
422  dzmin = dz;
423  iVertex = index;
424  *fromFakeSet = true;
425  foundVertex = true;
426  }
427  }
428  }
429  }
430 
431  if (foundVertex)
432  return reco::VertexRef(*fromFakeSet ? fakeVertices : vertices, iVertex);
433  }
434 
435  return reco::VertexRef();
436 }
437 
447 }
448 
449 // ------------ method called once each job just before starting event loop
451 
452 // ------------ method called once each job just after ending the event loop
454 
455 //define this as a plug-in
FFTJetPFPileupCleaner::reverseRemovalDecision
bool reverseRemovalDecision
Definition: FFTJetPFPileupCleaner.cc:103
fftjetpfpileupcleaner_cfi.remove_h_HF
remove_h_HF
Definition: fftjetpfpileupcleaner_cfi.py:43
reco::Vertex::trackRef_iterator
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
Definition: Vertex.h:38
FFTJetPFPileupCleaner::PFCandidates
edm::InputTag PFCandidates
Definition: FFTJetPFPileupCleaner.cc:71
fftjetpfpileupcleaner_cfi.useFakePrimaryVertex
useFakePrimaryVertex
Definition: fftjetpfpileupcleaner_cfi.py:15
Handle.h
zmumugammaAnalyzer_cfi.pfCandidates
pfCandidates
Definition: zmumugammaAnalyzer_cfi.py:11
electrons_cff.bool
bool
Definition: electrons_cff.py:372
ALCARECOTkAlBeamHalo_cff.etaMin
etaMin
GeV.
Definition: ALCARECOTkAlBeamHalo_cff.py:32
mps_fire.i
i
Definition: mps_fire.py:355
fftjetpfpileupcleaner_cfi.keepIfPVneighbor
keepIfPVneighbor
Definition: fftjetpfpileupcleaner_cfi.py:24
fftjetpfpileupcleaner_cfi.vertexNdofCut
vertexNdofCut
Definition: fftjetpfpileupcleaner_cfi.py:51
FFTJetPFPileupCleaner
Definition: FFTJetPFPileupCleaner.cc:45
FFTJetPFPileupCleaner::etaMax
double etaMax
Definition: FFTJetPFPileupCleaner.cc:121
EDProducer.h
reco::PFCandidate::e
Definition: PFCandidate.h:46
FFTJetPFPileupCleaner::zAssoc
std::vector< std::pair< double, unsigned > > zAssoc
Definition: FFTJetPFPileupCleaner.cc:133
FFTJetPFPileupCleaner::vertexNdofCut
double vertexNdofCut
Definition: FFTJetPFPileupCleaner.cc:124
PFCandidate.h
FFTJetPFPileupCleaner::PFCandidatesToken
edm::EDGetTokenT< reco::PFCandidateCollection > PFCandidatesToken
Definition: FFTJetPFPileupCleaner.cc:75
edm::EDGetTokenT< reco::PFCandidateCollection >
edm::Ref::isNull
bool isNull() const
Checks for null.
Definition: Ref.h:235
edm
HLT enums.
Definition: AlignableModifier.h:19
FFTJetPFPileupCleaner::buildRemovalMask
void buildRemovalMask()
Definition: FFTJetPFPileupCleaner.cc:438
reco::PFCandidate::h
Definition: PFCandidate.h:45
FFTJetPFPileupCleaner::Vertices
edm::InputTag Vertices
Definition: FFTJetPFPileupCleaner.cc:72
OfflineHarvestingSequence_cosmic.ptype
ptype
Definition: OfflineHarvestingSequence_cosmic.py:7
reco::PFCandidate::h_HF
Definition: PFCandidate.h:50
cms::cuda::assert
assert(be >=bs)
FFTJetPFPileupCleaner::~FFTJetPFPileupCleaner
~FFTJetPFPileupCleaner() override
Definition: FFTJetPFPileupCleaner.cc:173
FFTJetPFPileupCleaner::etaMin
double etaMin
Definition: FFTJetPFPileupCleaner.cc:120
FFTJetPFPileupCleaner::FFTJetPFPileupCleaner
FFTJetPFPileupCleaner()=delete
FFTJetPFPileupCleaner::remove_h_HF
bool remove_h_HF
Definition: FFTJetPFPileupCleaner.cc:113
edm::Handle< reco::VertexCollection >
fftjetpfpileupcleaner_cfi.remove_mu
remove_mu
Definition: fftjetpfpileupcleaner_cfi.py:40
dqmdumpme.first
first
Definition: dqmdumpme.py:55
FFTJetPFPileupCleaner::VerticesToken
edm::EDGetTokenT< reco::VertexCollection > VerticesToken
Definition: FFTJetPFPileupCleaner.cc:76
jetMETAnalyzer_cfi.PFCandidates
PFCandidates
Definition: jetMETAnalyzer_cfi.py:129
reco::PFCandidate::X
Definition: PFCandidate.h:44
fftjetpfpileupcleaner_cfi.FakePrimaryVertices
FakePrimaryVertices
Definition: fftjetpfpileupcleaner_cfi.py:16
edm::Ref< VertexCollection >
pfDeepBoostedJetPreprocessParams_cfi.pfcand
pfcand
Definition: pfDeepBoostedJetPreprocessParams_cfi.py:8
fftjetpfpileupcleaner_cfi.remove_h
remove_h
Definition: fftjetpfpileupcleaner_cfi.py:38
MakerMacros.h
fftjetpfpileupcleaner_cfi.vertexZmaxCut
vertexZmaxCut
Definition: fftjetpfpileupcleaner_cfi.py:52
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
reco::PFCandidate::mu
Definition: PFCandidate.h:47
fftjetpfpileupcleaner_cfi.remove_h0
remove_h0
Definition: fftjetpfpileupcleaner_cfi.py:42
cuda_std::upper_bound
__host__ constexpr __device__ RandomIt upper_bound(RandomIt first, RandomIt last, const T &value, Compare comp={})
Definition: cudastdAlgorithm.h:45
PVValHelper::eta
Definition: PVValidationHelpers.h:69
w
const double w
Definition: UKUtility.cc:23
init_param
#define init_param(type, varname)
Definition: FFTJetPFPileupCleaner.cc:40
FFTJetPFPileupCleaner::checkClosestZVertex
bool checkClosestZVertex
Definition: FFTJetPFPileupCleaner.cc:85
fftjetpfpileupcleaner_cfi.reverseRemovalDecision
reverseRemovalDecision
Definition: fftjetpfpileupcleaner_cfi.py:33
DDAxes::z
fftjetpfpileupcleaner_cfi.vertexRhoCut
vertexRhoCut
Definition: fftjetpfpileupcleaner_cfi.py:53
fftjetpfpileupcleaner_cfi.remove_e
remove_e
Definition: fftjetpfpileupcleaner_cfi.py:39
mitigatedMETSequence_cff.U
U
Definition: mitigatedMETSequence_cff.py:36
badGlobalMuonTaggersAOD_cff.vtx
vtx
Definition: badGlobalMuonTaggersAOD_cff.py:5
Vertex.h
edm::LogWarning
Definition: MessageLogger.h:141
FFTJetPFPileupCleaner::remove_h0
bool remove_h0
Definition: FFTJetPFPileupCleaner.cc:112
FFTJetPFPileupCleaner::vertexZmaxCut
double vertexZmaxCut
Definition: FFTJetPFPileupCleaner.cc:127
FFTJetPFPileupCleaner::vertexRhoCut
double vertexRhoCut
Definition: FFTJetPFPileupCleaner.cc:130
HLT_2018_cff.InputTag
InputTag
Definition: HLT_2018_cff.py:79016
edm::ParameterSet
Definition: ParameterSet.h:36
FFTJetPFPileupCleaner::remove_gamma
bool remove_gamma
Definition: FFTJetPFPileupCleaner.cc:111
Event.h
FFTJetPFPileupCleaner::isAcceptableVtx
bool isAcceptableVtx(reco::VertexCollection::const_iterator iv) const
Definition: FFTJetPFPileupCleaner.cc:175
reco::PFCandidate::egamma_HF
Definition: PFCandidate.h:51
reco::VertexRef
edm::Ref< VertexCollection > VertexRef
persistent reference to a Vertex
Definition: VertexFwd.h:13
cand
Definition: decayParser.h:34
iEvent
int iEvent
Definition: GenABIO.cc:224
FFTJetPFPileupCleaner::removeUnassociated
bool removeUnassociated
Definition: FFTJetPFPileupCleaner.cc:100
value
Definition: value.py:1
reco::PFCandidate::gamma
Definition: PFCandidate.h:48
edm::EventSetup
Definition: EventSetup.h:57
FFTJetPFPileupCleaner::remove_X
bool remove_X
Definition: FFTJetPFPileupCleaner.cc:107
FFTJetPFPileupCleaner::useFakePrimaryVertex
bool useFakePrimaryVertex
Definition: FFTJetPFPileupCleaner.cc:81
IT
std::vector< LinkConnSpec >::const_iterator IT
Definition: TriggerBoardSpec.cc:5
edm::Ptr< PFCandidate >
VertexFwd.h
fftjetpfpileupcleaner_cfi.remove_gamma
remove_gamma
Definition: fftjetpfpileupcleaner_cfi.py:41
FFTJetPFPileupCleaner::FakePrimaryVerticesToken
edm::EDGetTokenT< reco::VertexCollection > FakePrimaryVerticesToken
Definition: FFTJetPFPileupCleaner.cc:77
eostools.move
def move(src, dest)
Definition: eostools.py:511
edm::shift
static unsigned const int shift
Definition: LuminosityBlockID.cc:7
PVValHelper::dz
Definition: PVValidationHelpers.h:50
Frameworkfwd.h
reco::PFCandidate::h0
Definition: PFCandidate.h:49
FFTJetPFPileupCleaner::FakePrimaryVertices
edm::InputTag FakePrimaryVertices
Definition: FFTJetPFPileupCleaner.cc:73
FFTJetPFPileupCleaner::setRemovalBit
void setRemovalBit(reco::PFCandidate::ParticleType ptype, bool onOff)
Definition: FFTJetPFPileupCleaner.cc:250
MatrixUtil.remove
def remove(d, key, TELL=False)
Definition: MatrixUtil.py:212
fftjetpfpileupcleaner_cfi.remove_egamma_HF
remove_egamma_HF
Definition: fftjetpfpileupcleaner_cfi.py:44
FFTJetPFPileupCleaner::findSomeVertexWFakes
reco::VertexRef findSomeVertexWFakes(const edm::Handle< reco::VertexCollection > &vertices, const edm::Handle< reco::VertexCollection > &fakeVertices, const reco::PFCandidate &pfcand, bool *fromFakeSet) const
Definition: FFTJetPFPileupCleaner.cc:263
ALCARECOTkAlBeamHalo_cff.etaMax
etaMax
Definition: ALCARECOTkAlBeamHalo_cff.py:33
pfIsolationCalculator_cfi.checkClosestZVertex
checkClosestZVertex
Definition: pfIsolationCalculator_cfi.py:20
edm::EDProducer
Definition: EDProducer.h:36
edm::RefToBase< reco::Track >
fftjetpfpileupcleaner_cfi.removeUnassociated
removeUnassociated
Definition: fftjetpfpileupcleaner_cfi.py:30
Exception.h
fftjetpfpileupcleaner_cfi.remove_X
remove_X
Definition: fftjetpfpileupcleaner_cfi.py:37
FFTJetPFPileupCleaner::remove_h
bool remove_h
Definition: FFTJetPFPileupCleaner.cc:108
FFTJetPFPileupCleaner::remove_e
bool remove_e
Definition: FFTJetPFPileupCleaner.cc:109
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
reco::PFCandidate
Particle reconstructed by the particle flow algorithm.
Definition: PFCandidate.h:40
FFTJetPFPileupCleaner::removalMask
unsigned removalMask
Definition: FFTJetPFPileupCleaner.cc:117
edm::Ref::key
key_type key() const
Accessor for product key.
Definition: Ref.h:250
FFTJetPFPileupCleaner::remove_egamma_HF
bool remove_egamma_HF
Definition: FFTJetPFPileupCleaner.cc:114
FFTJetPFPileupCleaner::beginJob
void beginJob() override
Definition: FFTJetPFPileupCleaner.cc:450
cms::Exception
Definition: Exception.h:70
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
View.h
FFTJetPFPileupCleaner::remove_mu
bool remove_mu
Definition: FFTJetPFPileupCleaner.cc:110
ParameterSet.h
FFTJetPFPileupCleaner::endJob
void endJob() override
Definition: FFTJetPFPileupCleaner.cc:453
reco::PFCandidate::ParticleType
ParticleType
particle types
Definition: PFCandidate.h:43
fftjetpfpileupcleaner_cfi.removeMainVertex
removeMainVertex
Definition: fftjetpfpileupcleaner_cfi.py:27
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
edm::Event
Definition: Event.h:73
FFTJetPFPileupCleaner::keepIfPVneighbor
bool keepIfPVneighbor
Definition: FFTJetPFPileupCleaner.cc:92
fftjetpfpileupcleaner_cfi.Vertices
Vertices
Definition: fftjetpfpileupcleaner_cfi.py:12
FFTJetPFPileupCleaner::operator=
FFTJetPFPileupCleaner & operator=(const FFTJetPFPileupCleaner &)=delete
edm::InputTag
Definition: InputTag.h:15
reco::Vertex
Definition: Vertex.h:35
FFTJetPFPileupCleaner::removeMainVertex
bool removeMainVertex
Definition: FFTJetPFPileupCleaner.cc:96
PFCandidateFwd.h
pwdgSkimBPark_cfi.vertices
vertices
Definition: pwdgSkimBPark_cfi.py:7
FFTJetPFPileupCleaner::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition: FFTJetPFPileupCleaner.cc:181
FFTJetPFPileupCleaner::isRemovable
bool isRemovable(reco::PFCandidate::ParticleType ptype) const
Definition: FFTJetPFPileupCleaner.cc:244