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
16 
17 // ------------------------------------------------------------------------------------------
19 
20 public:
21  explicit PuppiPhoton(const edm::ParameterSet&);
22  ~PuppiPhoton() override;
23 
24  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
26  typedef std::vector<LorentzVector> LorentzVectorCollection;
28  typedef std::vector< reco::PFCandidate > PFOutputCollection;
30 
31 private:
32  void produce(edm::Event&, const edm::EventSetup&) override;
33  bool matchPFCandidate(const reco::Candidate *iPF,const reco::Candidate *iPho);
40  double pt_;
41  double eta_;
42  bool usePFRef_;
46  std::vector<double> dRMatch_;
47  std::vector<int32_t> pdgIds_;
48  std::unique_ptr< PFOutputCollection > corrCandidates_;
49  double weight_;
51 };
52 #endif
std::vector< int32_t > pdgIds_
Definition: PuppiPhoton.h:47
double pt_
Definition: PuppiPhoton.h:40
edm::EDGetTokenT< CandidateView > tokenPhotonCandidates_
Definition: PuppiPhoton.h:36
PuppiPhoton(const edm::ParameterSet &)
Definition: PuppiPhoton.cc:30
~PuppiPhoton() override
Definition: PuppiPhoton.cc:56
bool runOnMiniAOD_
Definition: PuppiPhoton.h:44
std::vector< reco::PFCandidate > PFOutputCollection
Definition: PuppiPhoton.h:28
edm::View< reco::PFCandidate > PFView
Definition: PuppiPhoton.h:29
edm::View< reco::Candidate > CandidateView
Definition: PuppiPhoton.h:27
edm::EDGetTokenT< CandidateView > tokenPuppiCandidates_
Definition: PuppiPhoton.h:35
bool usePFRef_
Definition: PuppiPhoton.h:42
std::unique_ptr< PFOutputCollection > corrCandidates_
Definition: PuppiPhoton.h:48
edm::EDGetTokenT< edm::ValueMap< std::vector< reco::PFCandidateRef > > > reco2pf_
Definition: PuppiPhoton.h:37
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
bool usePFphotons_
Definition: PuppiPhoton.h:43
bool matchPFCandidate(const reco::Candidate *iPF, const reco::Candidate *iPho)
Definition: PuppiPhoton.cc:202
bool usePhotonId_
Definition: PuppiPhoton.h:45
double weight_
Definition: PuppiPhoton.h:49
double eta_
Definition: PuppiPhoton.h:41
void produce(edm::Event &, const edm::EventSetup &) override
Definition: PuppiPhoton.cc:58
edm::EDGetTokenT< edm::ValueMap< float > > tokenWeights_
Definition: PuppiPhoton.h:38
std::vector< double > dRMatch_
Definition: PuppiPhoton.h:46
edm::EDGetTokenT< edm::ValueMap< bool > > tokenPhotonId_
Definition: PuppiPhoton.h:39
math::XYZTLorentzVector LorentzVector
Definition: PuppiPhoton.h:25
edm::EDGetTokenT< CandidateView > tokenPFCandidates_
Definition: PuppiPhoton.h:34
std::vector< LorentzVector > LorentzVectorCollection
Definition: PuppiPhoton.h:26
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: PuppiPhoton.cc:211
bool useValueMap_
Definition: PuppiPhoton.h:50