1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
//
//
#ifndef DataFormats_PatCandidates_PFParticle_h
#define DataFormats_PatCandidates_PFParticle_h
/**
\class pat::PFParticle PFParticle.h "DataFormats/PatCandidates/interface/PFParticle.h"
\brief Analysis-level class for reconstructed particles
PFParticle is the equivalent of reco::PFCandidate in the PAT namespace,
to be used in the analysis. All the PFCandidates that are not used as
isolated leptons or photons, or inside jets, end up as pat::PFParticles.
\author Colin Bernet
*/
#include "DataFormats/ParticleFlowCandidate/interface/PFCandidate.h"
#include "DataFormats/PatCandidates/interface/PATObject.h"
// Define typedefs for convenience
namespace pat {
class PFParticle;
typedef std::vector<PFParticle> PFParticleCollection;
typedef edm::Ref<PFParticleCollection> PFParticleRef;
typedef edm::RefVector<PFParticleCollection> PFParticleRefVector;
} // namespace pat
// Class definition
namespace pat {
class PFParticle : public PATObject<reco::PFCandidate> {
public:
/// default constructor
PFParticle() {}
/// constructor from ref
PFParticle(const edm::RefToBase<reco::PFCandidate>& aPFParticle);
/// destructor
~PFParticle() override {}
/// required reimplementation of the Candidate's clone method
PFParticle* clone() const override { return new PFParticle(*this); }
};
} // namespace pat
#endif
|