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
std::vector< int32_t > pdgIds_
Definition: PuppiPhoton.h:48
double pt_
Definition: PuppiPhoton.h:41
PuppiPhoton(const edm::ParameterSet &)
Definition: PuppiPhoton.cc:27
~PuppiPhoton() override
Definition: PuppiPhoton.cc:54
bool runOnMiniAOD_
Definition: PuppiPhoton.h:45
edm::View< reco::PFCandidate > PFView
Definition: PuppiPhoton.h:30
edm::View< reco::Candidate > CandidateView
Definition: PuppiPhoton.h:28
bool usePFRef_
Definition: PuppiPhoton.h:43
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
bool usePFphotons_
Definition: PuppiPhoton.h:44
edm::EDGetTokenT< edm::ValueMap< float > > tokenWeights_
Definition: PuppiPhoton.h:39
edm::EDGetTokenT< edm::ValueMap< bool > > tokenPhotonId_
Definition: PuppiPhoton.h:40
edm::EDGetTokenT< CandidateView > tokenPFCandidates_
Definition: PuppiPhoton.h:35
bool matchPFCandidate(const reco::Candidate *iPF, const reco::Candidate *iPho)
Definition: PuppiPhoton.cc:225
bool usePhotonId_
Definition: PuppiPhoton.h:46
double weight_
Definition: PuppiPhoton.h:50
double eta_
Definition: PuppiPhoton.h:42
std::vector< reco::PFCandidate > PFOutputCollection
Definition: PuppiPhoton.h:29
void produce(edm::Event &, const edm::EventSetup &) override
Definition: PuppiPhoton.cc:56
edm::EDGetTokenT< CandidateView > tokenPuppiCandidates_
Definition: PuppiPhoton.h:36
std::unique_ptr< PFOutputCollection > corrCandidates_
Definition: PuppiPhoton.h:49
std::vector< double > dRMatch_
Definition: PuppiPhoton.h:47
math::XYZTLorentzVector LorentzVector
Definition: PuppiPhoton.h:26
edm::EDGetTokenT< edm::ValueMap< std::vector< reco::PFCandidateRef > > > reco2pf_
Definition: PuppiPhoton.h:38
std::vector< LorentzVector > LorentzVectorCollection
Definition: PuppiPhoton.h:27
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: PuppiPhoton.cc:236
bool useValueMap_
Definition: PuppiPhoton.h:51
edm::EDGetTokenT< CandidateView > tokenPhotonCandidates_
Definition: PuppiPhoton.h:37