CMS 3D CMS Logo

PuppiPhoton.h
Go to the documentation of this file.
1 #ifndef CommonTools_Puppi_PuppiPhoton_h_
2 #define CommonTools_Puppi_PuppiPhoton_h_
3 // system include files
4 #include <memory>
5 
6 // user include files
18 
19 // ------------------------------------------------------------------------------------------
21 public:
22  explicit PuppiPhoton(const edm::ParameterSet &);
23  ~PuppiPhoton() override;
24 
25  static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);
27  typedef std::vector<LorentzVector> LorentzVectorCollection;
29  typedef std::vector<reco::PFCandidate> PFOutputCollection;
31 
32 private:
33  void produce(edm::Event &, const edm::EventSetup &) override;
34  bool matchPFCandidate(const reco::Candidate *iPF, const reco::Candidate *iPho);
41  double pt_;
42  double eta_;
43  bool usePFRef_;
47  std::vector<double> dRMatch_;
48  std::vector<int32_t> pdgIds_;
49  std::unique_ptr<PFOutputCollection> corrCandidates_;
50  double weight_;
52 };
53 #endif
PuppiPhoton::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: PuppiPhoton.cc:236
PuppiPhoton::CandidateView
edm::View< reco::Candidate > CandidateView
Definition: PuppiPhoton.h:28
PuppiPhoton::pt_
double pt_
Definition: PuppiPhoton.h:41
ESHandle.h
PuppiPhoton::~PuppiPhoton
~PuppiPhoton() override
Definition: PuppiPhoton.cc:54
PFCandidate.h
PuppiPhoton::pdgIds_
std::vector< int32_t > pdgIds_
Definition: PuppiPhoton.h:48
edm::EDGetTokenT< CandidateView >
PuppiPhoton::useValueMap_
bool useValueMap_
Definition: PuppiPhoton.h:51
PuppiPhoton::usePFRef_
bool usePFRef_
Definition: PuppiPhoton.h:43
EDProducer.h
PuppiPhoton::usePFphotons_
bool usePFphotons_
Definition: PuppiPhoton.h:44
PuppiPhoton::PFView
edm::View< reco::PFCandidate > PFView
Definition: PuppiPhoton.h:30
PuppiPhoton
Definition: PuppiPhoton.h:20
MakerMacros.h
PuppiPhoton::tokenPFCandidates_
edm::EDGetTokenT< CandidateView > tokenPFCandidates_
Definition: PuppiPhoton.h:35
PuppiPhoton::weight_
double weight_
Definition: PuppiPhoton.h:50
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
PuppiPhoton::tokenPhotonId_
edm::EDGetTokenT< edm::ValueMap< bool > > tokenPhotonId_
Definition: PuppiPhoton.h:40
edm::View
Definition: CaloClusterFwd.h:14
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
PuppiPhoton::tokenWeights_
edm::EDGetTokenT< edm::ValueMap< float > > tokenWeights_
Definition: PuppiPhoton.h:39
edm::stream::EDProducer
Definition: EDProducer.h:36
PuppiPhoton::matchPFCandidate
bool matchPFCandidate(const reco::Candidate *iPF, const reco::Candidate *iPho)
Definition: PuppiPhoton.cc:225
edm::EventSetup
Definition: EventSetup.h:58
reco::Candidate
Definition: Candidate.h:27
ValueMap.h
PtEtaPhiMass.h
PuppiPhoton::LorentzVector
math::XYZTLorentzVector LorentzVector
Definition: PuppiPhoton.h:26
PuppiPhoton::usePhotonId_
bool usePhotonId_
Definition: PuppiPhoton.h:46
Frameworkfwd.h
math::XYZTLorentzVector
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
PuppiPhoton::PFOutputCollection
std::vector< reco::PFCandidate > PFOutputCollection
Definition: PuppiPhoton.h:29
PuppiPhoton::LorentzVectorCollection
std::vector< LorentzVector > LorentzVectorCollection
Definition: PuppiPhoton.h:27
PuppiPhoton::corrCandidates_
std::unique_ptr< PFOutputCollection > corrCandidates_
Definition: PuppiPhoton.h:49
PuppiPhoton::eta_
double eta_
Definition: PuppiPhoton.h:42
PuppiPhoton::reco2pf_
edm::EDGetTokenT< edm::ValueMap< std::vector< reco::PFCandidateRef > > > reco2pf_
Definition: PuppiPhoton.h:38
PuppiPhoton::tokenPhotonCandidates_
edm::EDGetTokenT< CandidateView > tokenPhotonCandidates_
Definition: PuppiPhoton.h:37
EventSetup.h
PuppiPhoton::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition: PuppiPhoton.cc:56
Candidate.h
PuppiPhoton::tokenPuppiCandidates_
edm::EDGetTokenT< CandidateView > tokenPuppiCandidates_
Definition: PuppiPhoton.h:36
ParameterSet.h
edm::Event
Definition: Event.h:73
PuppiPhoton::dRMatch_
std::vector< double > dRMatch_
Definition: PuppiPhoton.h:47
PuppiPhoton::runOnMiniAOD_
bool runOnMiniAOD_
Definition: PuppiPhoton.h:45
PuppiPhoton::PuppiPhoton
PuppiPhoton(const edm::ParameterSet &)
Definition: PuppiPhoton.cc:27