DataFormats
PatCandidates
interface
PFParticle.h
Go to the documentation of this file.
1
//
2
//
3
4
#ifndef DataFormats_PatCandidates_PFParticle_h
5
#define DataFormats_PatCandidates_PFParticle_h
6
18
#include "
DataFormats/ParticleFlowCandidate/interface/PFCandidate.h
"
19
#include "
DataFormats/PatCandidates/interface/PATObject.h
"
20
21
// Define typedefs for convenience
22
namespace
pat
{
23
class
PFParticle
;
24
typedef
std::vector<PFParticle>
PFParticleCollection
;
25
typedef
edm::Ref<PFParticleCollection>
PFParticleRef
;
26
typedef
edm::RefVector<PFParticleCollection>
PFParticleRefVector
;
27
}
// namespace pat
28
29
// Class definition
30
namespace
pat
{
31
32
class
PFParticle
:
public
PATObject
<reco::PFCandidate> {
33
public
:
35
PFParticle
() {}
37
PFParticle
(
const
edm::RefToBase<reco::PFCandidate>
& aPFParticle);
39
~PFParticle
()
override
{}
40
42
PFParticle
*
clone
()
const override
{
return
new
PFParticle
(*
this
); }
43
};
44
45
}
// namespace pat
46
47
#endif
pat::PFParticleCollection
std::vector< PFParticle > PFParticleCollection
Definition:
PFParticle.h:23
pat::PFParticle::~PFParticle
~PFParticle() override
destructor
Definition:
PFParticle.h:39
edm::Ref
Definition:
AssociativeIterator.h:58
pat::PFParticleRef
edm::Ref< PFParticleCollection > PFParticleRef
Definition:
PFParticle.h:25
edm::RefToBase
Definition:
AssociativeIterator.h:54
pat
Definition:
HeavyIon.h:7
pat::PFParticle::clone
PFParticle * clone() const override
required reimplementation of the Candidate's clone method
Definition:
PFParticle.h:42
edm::RefVector
Definition:
EDProductfwd.h:27
pat::PFParticle::PFParticle
PFParticle()
default constructor
Definition:
PFParticle.h:35
pat::PFParticle
Analysis-level class for reconstructed particles.
Definition:
PFParticle.h:32
pat::PATObject
Templated PAT object container.
Definition:
PATObject.h:43
PFCandidate.h
PATObject.h
pat::PFParticleRefVector
edm::RefVector< PFParticleCollection > PFParticleRefVector
Definition:
PFParticle.h:26
Generated for CMSSW Reference Manual by
1.8.14