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();
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  virtual void produce(edm::Event&, const edm::EventSetup&);
33  bool matchPFCandidate(const reco::Candidate *iPF,const reco::Candidate *iPho);
40  double pt_;
41  double eta_;
42  bool usePFRef_;
45  std::vector<double> dRMatch_;
46  std::vector<int32_t> pdgIds_;
47  std::unique_ptr< PFOutputCollection > corrCandidates_;
48  double weight_;
50 };
51 #endif
std::vector< int32_t > pdgIds_
Definition: PuppiPhoton.h:46
double pt_
Definition: PuppiPhoton.h:40
edm::EDGetTokenT< CandidateView > tokenPhotonCandidates_
Definition: PuppiPhoton.h:36
PuppiPhoton(const edm::ParameterSet &)
Definition: PuppiPhoton.cc:30
bool runOnMiniAOD_
Definition: PuppiPhoton.h:43
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:47
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
virtual void produce(edm::Event &, const edm::EventSetup &)
Definition: PuppiPhoton.cc:56
bool matchPFCandidate(const reco::Candidate *iPF, const reco::Candidate *iPho)
Definition: PuppiPhoton.cc:188
bool usePhotonId_
Definition: PuppiPhoton.h:44
double weight_
Definition: PuppiPhoton.h:48
double eta_
Definition: PuppiPhoton.h:41
edm::EDGetTokenT< edm::ValueMap< float > > tokenWeights_
Definition: PuppiPhoton.h:38
std::vector< double > dRMatch_
Definition: PuppiPhoton.h:45
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:196
bool useValueMap_
Definition: PuppiPhoton.h:49