CMS 3D CMS Logo

ParticleLevelProducer.h
Go to the documentation of this file.
1 #ifndef GeneratorInterface_RivetInterface_ParticleLevelProducer_H
2 #define GeneratorInterface_RivetInterface_ParticleLevelProducer_H
3 
9 
14 
15 #include "Rivet/AnalysisHandler.hh"
17 
18 class ParticleLevelProducer : public edm::one::EDProducer<edm::one::SharedResources> {
19 public:
21  ~ParticleLevelProducer() override {}
22  void produce(edm::Event& event, const edm::EventSetup& eventSetup) override;
23 
24 private:
26  std::unique_ptr<reco::GenJetCollection>& jets,
27  std::unique_ptr<reco::GenParticleCollection>& consts,
29  int& iConstituent,
30  std::unique_ptr<reco::GenParticleCollection>& tags,
32  int& iTag);
33 
34  template <typename T>
36  return reco::Candidate::LorentzVector(p.px(), p.py(), p.pz(), p.energy());
37  }
38 
40 
42 
44  Rivet::AnalysisHandler analysisHandler_;
45 };
46 
47 #endif
edm::RefProd< reco::GenParticleCollection >
GenJetCollection.h
RivetAnalysis.h
EDProducer.h
Rivet::RivetAnalysis
Definition: RivetAnalysis.h:23
edm::EDGetTokenT< edm::HepMCProduct >
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
edm::one::EDProducer
Definition: EDProducer.h:30
singleTopDQM_cfi.jets
jets
Definition: singleTopDQM_cfi.py:42
ParticleLevelProducer::srcToken_
const edm::EDGetTokenT< edm::HepMCProduct > srcToken_
Definition: ParticleLevelProducer.h:39
ParticleLevelProducer::p4
reco::Candidate::LorentzVector p4(const T &p) const
Definition: ParticleLevelProducer.h:35
MakerMacros.h
GenParticleFwd.h
L1TRate_cfi.Jet
Jet
Definition: L1TRate_cfi.py:43
ParticleLevelProducer::~ParticleLevelProducer
~ParticleLevelProducer() override
Definition: ParticleLevelProducer.h:21
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
ParticleLevelProducer::rivetAnalysis_
Rivet::RivetAnalysis * rivetAnalysis_
Definition: ParticleLevelProducer.h:43
ParticleLevelProducer::produce
void produce(edm::Event &event, const edm::EventSetup &eventSetup) override
Definition: ParticleLevelProducer.cc:100
edm::EventSetup
Definition: EventSetup.h:57
ParticleLevelProducer::genVertex_
reco::Particle::Point genVertex_
Definition: ParticleLevelProducer.h:41
ParticleLevelProducer::analysisHandler_
Rivet::AnalysisHandler analysisHandler_
Definition: ParticleLevelProducer.h:44
ParticleLevelProducer::addGenJet
void addGenJet(Rivet::Jet jet, std::unique_ptr< reco::GenJetCollection > &jets, std::unique_ptr< reco::GenParticleCollection > &consts, edm::RefProd< reco::GenParticleCollection > &constsRefHandle, int &iConstituent, std::unique_ptr< reco::GenParticleCollection > &tags, edm::RefProd< reco::GenParticleCollection > &tagsRefHandle, int &iTag)
Definition: ParticleLevelProducer.cc:39
ParticleLevelProducer
Definition: ParticleLevelProducer.h:18
Frameworkfwd.h
T
long double T
Definition: Basic3DVectorLD.h:48
metsig::jet
Definition: SignAlgoResolutions.h:47
options_cfi.eventSetup
eventSetup
Definition: options_cfi.py:12
triggerMatcherToHLTDebug_cfi.tags
tags
Definition: triggerMatcherToHLTDebug_cfi.py:9
reco::Particle::Point
math::XYZPoint Point
point in the space
Definition: Particle.h:25
Candidate.h
ParameterSet.h
HepMCProduct.h
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
event
Definition: event.py:1
edm::Event
Definition: Event.h:73
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
ParticleLevelProducer::ParticleLevelProducer
ParticleLevelProducer(const edm::ParameterSet &pset)
Definition: ParticleLevelProducer.cc:19