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 
51  bool fUseDZ;
52  float fDZCut;
56  double fVtxZCut;
57  std::unique_ptr<PuppiContainer> fPuppiContainer;
58  std::vector<RecoObj> fRecoObjCollection;
59  std::auto_ptr< PFOutputCollection > fPuppiCandidates;
60 };
61 #endif
virtual void produce(edm::Event &, const edm::EventSetup &)
std::string fPFName
Definition: PuppiProducer.h:47
virtual void endJob()
bool fUseWeightsNoLep
Definition: PuppiProducer.h:54
std::vector< reco::PFCandidate > PFOutputCollection
Definition: PuppiProducer.h:31
bool fPuppiDiagnostics
Definition: PuppiProducer.h:49
std::vector< RecoObj > fRecoObjCollection
Definition: PuppiProducer.h:58
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:57
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
bool fPuppiForLeptons
Definition: PuppiProducer.h:50
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)
bool fUseExistingWeights
Definition: PuppiProducer.h:53
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:59
virtual void endRun(edm::Run &, edm::EventSetup const &)
virtual void beginLuminosityBlock(edm::LuminosityBlock &, edm::EventSetup const &)
Definition: Run.h:41