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;
32  typedef std::vector< pat::PackedCandidate > PackedOutputCollection;
34 
35 private:
36  virtual void beginJob() ;
37  virtual void produce(edm::Event&, const edm::EventSetup&);
38  virtual void endJob() ;
39 
40  virtual void beginRun(edm::Run&, edm::EventSetup const&);
41  virtual void endRun(edm::Run&, edm::EventSetup const&);
44 
52  bool fUseDZ;
53  float fDZCut;
58  double fVtxZCut;
59  std::unique_ptr<PuppiContainer> fPuppiContainer;
60  std::vector<RecoObj> fRecoObjCollection;
61  std::auto_ptr< PFOutputCollection > fPuppiCandidates;
62  std::auto_ptr< PackedOutputCollection > fPackedPuppiCandidates;
63 };
64 #endif
virtual void produce(edm::Event &, const edm::EventSetup &)
std::string fPFName
Definition: PuppiProducer.h:48
virtual void endJob()
std::auto_ptr< PackedOutputCollection > fPackedPuppiCandidates
Definition: PuppiProducer.h:62
bool fUseWeightsNoLep
Definition: PuppiProducer.h:55
std::vector< reco::PFCandidate > PFOutputCollection
Definition: PuppiProducer.h:31
bool fPuppiDiagnostics
Definition: PuppiProducer.h:50
std::vector< pat::PackedCandidate > PackedOutputCollection
Definition: PuppiProducer.h:32
std::vector< RecoObj > fRecoObjCollection
Definition: PuppiProducer.h:60
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:49
virtual void beginJob()
math::XYZTLorentzVector LorentzVector
Definition: PuppiProducer.h:26
std::unique_ptr< PuppiContainer > fPuppiContainer
Definition: PuppiProducer.h:59
edm::EDGetTokenT< VertexCollection > tokenVertices_
Definition: PuppiProducer.h:46
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
bool fClonePackedCands
Definition: PuppiProducer.h:56
edm::View< reco::Candidate > CandidateView
Definition: PuppiProducer.h:29
std::string fPuppiName
Definition: PuppiProducer.h:47
bool fPuppiForLeptons
Definition: PuppiProducer.h:51
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:54
edm::View< reco::PFCandidate > PFView
Definition: PuppiProducer.h:33
edm::EDGetTokenT< CandidateView > tokenPFCandidates_
Definition: PuppiProducer.h:45
std::auto_ptr< PFOutputCollection > fPuppiCandidates
Definition: PuppiProducer.h:61
virtual void endRun(edm::Run &, edm::EventSetup const &)
virtual void beginLuminosityBlock(edm::LuminosityBlock &, edm::EventSetup const &)
Definition: Run.h:43