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 
47  bool fUseDZ;
48  float fDZCut;
53  double fVtxZCut;
54  std::unique_ptr<PuppiContainer> fPuppiContainer;
55  std::vector<RecoObj> fRecoObjCollection;
56  std::unique_ptr< PFOutputCollection > fPuppiCandidates;
57  std::unique_ptr< PackedOutputCollection > fPackedPuppiCandidates;
58 };
59 #endif
virtual void produce(edm::Event &, const edm::EventSetup &)
std::string fPFName
Definition: PuppiProducer.h:43
virtual void endJob()
bool fUseWeightsNoLep
Definition: PuppiProducer.h:50
std::vector< reco::PFCandidate > PFOutputCollection
Definition: PuppiProducer.h:31
bool fPuppiDiagnostics
Definition: PuppiProducer.h:45
std::vector< pat::PackedCandidate > PackedOutputCollection
Definition: PuppiProducer.h:32
std::vector< RecoObj > fRecoObjCollection
Definition: PuppiProducer.h:55
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:44
virtual void beginJob()
math::XYZTLorentzVector LorentzVector
Definition: PuppiProducer.h:26
std::unique_ptr< PuppiContainer > fPuppiContainer
Definition: PuppiProducer.h:54
edm::EDGetTokenT< VertexCollection > tokenVertices_
Definition: PuppiProducer.h:41
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
std::unique_ptr< PackedOutputCollection > fPackedPuppiCandidates
Definition: PuppiProducer.h:57
bool fClonePackedCands
Definition: PuppiProducer.h:51
edm::View< reco::Candidate > CandidateView
Definition: PuppiProducer.h:29
std::string fPuppiName
Definition: PuppiProducer.h:42
bool fPuppiForLeptons
Definition: PuppiProducer.h:46
PuppiProducer(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
bool fUseExistingWeights
Definition: PuppiProducer.h:49
edm::View< reco::PFCandidate > PFView
Definition: PuppiProducer.h:33
edm::EDGetTokenT< CandidateView > tokenPFCandidates_
Definition: PuppiProducer.h:40
std::unique_ptr< PFOutputCollection > fPuppiCandidates
Definition: PuppiProducer.h:56