CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PuppiProducer.h
Go to the documentation of this file.
1 #ifndef CommonTools_Puppi_PuppiProducer_h_
2 #define CommonTools_Puppi_PuppiProducer_h_
3 // system include files
4 #include <memory>
5 
6 // user include files
15 
17 
18 // ------------------------------------------------------------------------------------------
20 
21 public:
22  explicit PuppiProducer(const edm::ParameterSet&);
24 
25  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
27  typedef std::vector<LorentzVector> LorentzVectorCollection;
30  typedef std::vector< reco::PFCandidate > PFInputCollection;
31  typedef std::vector< reco::PFCandidate > PFOutputCollection;
33 
34 private:
35  virtual void beginJob() ;
36  virtual void produce(edm::Event&, const edm::EventSetup&);
37  virtual void endJob() ;
38 
39  virtual void beginRun(edm::Run&, edm::EventSetup const&);
40  virtual void endRun(edm::Run&, edm::EventSetup const&);
43 
49  bool fUseDZ;
50  float fDZCut;
51  std::unique_ptr<PuppiContainer> fPuppiContainer;
52  std::vector<RecoObj> fRecoObjCollection;
53  std::auto_ptr< PFOutputCollection > fPuppiCandidates;
54 };
55 #endif
virtual void produce(edm::Event &, const edm::EventSetup &)
std::string fPFName
Definition: PuppiProducer.h:47
virtual void endJob()
std::vector< reco::PFCandidate > PFOutputCollection
Definition: PuppiProducer.h:31
std::vector< RecoObj > fRecoObjCollection
Definition: PuppiProducer.h:52
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
std::vector< LorentzVector > LorentzVectorCollection
Definition: PuppiProducer.h:27
std::string fPVName
Definition: PuppiProducer.h:48
virtual void beginJob()
math::XYZTLorentzVector LorentzVector
Definition: PuppiProducer.h:26
std::unique_ptr< PuppiContainer > fPuppiContainer
Definition: PuppiProducer.h:51
edm::EDGetTokenT< VertexCollection > tokenVertices_
Definition: PuppiProducer.h:45
std::vector< reco::PFCandidate > PFInputCollection
Definition: PuppiProducer.h:30
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
reco::VertexCollection VertexCollection
Definition: PuppiProducer.h:28
edm::View< reco::Candidate > CandidateView
Definition: PuppiProducer.h:29
std::string fPuppiName
Definition: PuppiProducer.h:46
PuppiProducer(const edm::ParameterSet &)
virtual void beginRun(edm::Run &, edm::EventSetup const &)
virtual void endLuminosityBlock(edm::LuminosityBlock &, edm::EventSetup const &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::View< reco::PFCandidate > PFView
Definition: PuppiProducer.h:32
edm::EDGetTokenT< CandidateView > tokenPFCandidates_
Definition: PuppiProducer.h:44
std::auto_ptr< PFOutputCollection > fPuppiCandidates
Definition: PuppiProducer.h:53
virtual void endRun(edm::Run &, edm::EventSetup const &)
virtual void beginLuminosityBlock(edm::LuminosityBlock &, edm::EventSetup const &)
Definition: Run.h:41