CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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);
39  double pt_;
40  bool usePFRef_;
42  std::vector<double> dRMatch_;
43  std::vector<int32_t> pdgIds_;
44  std::auto_ptr< PFOutputCollection > corrCandidates_;
45  double weight_;
47 };
48 #endif
std::vector< int32_t > pdgIds_
Definition: PuppiPhoton.h:43
double pt_
Definition: PuppiPhoton.h:39
edm::EDGetTokenT< CandidateView > tokenPhotonCandidates_
Definition: PuppiPhoton.h:36
PuppiPhoton(const edm::ParameterSet &)
Definition: PuppiPhoton.cc:30
std::vector< reco::PFCandidate > PFOutputCollection
Definition: PuppiPhoton.h:28
std::auto_ptr< PFOutputCollection > corrCandidates_
Definition: PuppiPhoton.h:44
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:40
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:50
bool matchPFCandidate(const reco::Candidate *iPF, const reco::Candidate *iPho)
Definition: PuppiPhoton.cc:171
bool usePhotonId_
Definition: PuppiPhoton.h:41
double weight_
Definition: PuppiPhoton.h:45
edm::EDGetTokenT< edm::ValueMap< float > > tokenWeights_
Definition: PuppiPhoton.h:37
std::vector< double > dRMatch_
Definition: PuppiPhoton.h:42
edm::EDGetTokenT< edm::ValueMap< bool > > tokenPhotonId_
Definition: PuppiPhoton.h:38
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:179
bool useValueMap_
Definition: PuppiPhoton.h:46