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