CMS 3D CMS Logo

ParametersDefinerForTP.h
Go to the documentation of this file.
1 #ifndef TrackAssociation_ParametersDefinerForTP_h
2 #define TrackAssociation_ParametersDefinerForTP_h
3 
10 #include <memory>
11 
18 
20 public:
24 
25  typedef int Charge;
28 
30  const edm::EventSetup &iSetup,
31  const Charge ch,
32  const Point &vtx,
33  const LorentzVector &lv) const;
34 
36  const edm::EventSetup &iSetup,
37  const TrackingParticleRef &tpr) const {
38  return momentum(iEvent, iSetup, tpr->charge(), tpr->vertex(), tpr->p4());
39  }
40 
42  const edm::EventSetup &iSetup,
43  const reco::Candidate &tp) const {
44  return momentum(iEvent, iSetup, tp.charge(), tp.vertex(), tp.p4());
45  }
46 
48  const edm::EventSetup &iSetup,
49  const Charge ch,
50  const Point &vtx,
51  const LorentzVector &lv) const;
52 
54  const edm::EventSetup &iSetup,
55  const TrackingParticleRef &tpr) const {
56  return vertex(iEvent, iSetup, tpr->charge(), tpr->vertex(), tpr->p4());
57  }
58 
60  const edm::EventSetup &iSetup,
61  const reco::Candidate &tp) const {
62  return vertex(iEvent, iSetup, tp.charge(), tp.vertex(), tp.p4());
63  }
64 
66 
67  virtual std::unique_ptr<ParametersDefinerForTP> clone() const {
68  return std::unique_ptr<ParametersDefinerForTP>(new ParametersDefinerForTP(*this));
69  }
70 
72 };
73 
74 #endif
ParametersDefinerForTP::momentum
virtual TrackingParticle::Vector momentum(const edm::Event &iEvent, const edm::EventSetup &iSetup, const TrackingParticleRef &tpr) const
Definition: ParametersDefinerForTP.h:35
ESHandle.h
ParametersDefinerForTP::beamSpotInputTag_
edm::InputTag beamSpotInputTag_
Definition: ParametersDefinerForTP.h:71
ParametersDefinerForTP::vertex
virtual TrackingParticle::Point vertex(const edm::Event &iEvent, const edm::EventSetup &iSetup, const reco::Candidate &tp) const
Definition: ParametersDefinerForTP.h:59
math::XYZTLorentzVectorD
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:14
ParametersDefinerForTP::Point
math::XYZPointD Point
point in the space
Definition: ParametersDefinerForTP.h:26
ParametersDefinerForTP::vertex
virtual TrackingParticle::Point vertex(const edm::Event &iEvent, const edm::EventSetup &iSetup, const TrackingParticleRef &tpr) const
Definition: ParametersDefinerForTP.h:53
TrackingParticle::Vector
math::XYZVectorD Vector
point in the space
Definition: TrackingParticle.h:37
ParametersDefinerForTP::momentum
virtual TrackingParticle::Vector momentum(const edm::Event &iEvent, const edm::EventSetup &iSetup, const Charge ch, const Point &vtx, const LorentzVector &lv) const
Definition: ParametersDefinerForTP.cc:17
edm::Handle< SimHitTPAssociationProducer::SimHitTPAssociationList >
edm::Ref< TrackingParticleCollection >
ParametersDefinerForTP::clone
virtual std::unique_ptr< ParametersDefinerForTP > clone() const
Definition: ParametersDefinerForTP.h:67
ParametersDefinerForTP::momentum
virtual TrackingParticle::Vector momentum(const edm::Event &iEvent, const edm::EventSetup &iSetup, const reco::Candidate &tp) const
Definition: ParametersDefinerForTP.h:41
ParametersDefinerForTP::initEvent
virtual void initEvent(edm::Handle< SimHitTPAssociationProducer::SimHitTPAssociationList > simHitsTPAssocToSet)
Definition: ParametersDefinerForTP.h:65
cmsswSequenceInfo.tp
tp
Definition: cmsswSequenceInfo.py:17
ParametersDefinerForTP::Charge
int Charge
electric charge type
Definition: ParametersDefinerForTP.h:23
Point
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:57
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
math::XYZPointD
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< double > > XYZPointD
point in space with cartesian internal representation
Definition: Point3D.h:8
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::EventSetup
Definition: EventSetup.h:57
reco::Candidate
Definition: Candidate.h:27
SimHitTPAssociationProducer.h
TrackingParticle.h
extraflags_cff.vtx
vtx
Definition: extraflags_cff.py:18
LorentzVector
math::XYZTLorentzVector LorentzVector
Definition: HLTMuonMatchAndPlot.h:49
ParametersDefinerForTP::LorentzVector
math::XYZTLorentzVectorD LorentzVector
Lorentz vector.
Definition: ParametersDefinerForTP.h:27
EventSetup.h
Candidate.h
ParametersDefinerForTP::ParametersDefinerForTP
ParametersDefinerForTP()
Definition: ParametersDefinerForTP.h:21
edm::Event
Definition: Event.h:73
TrackingParticle::Point
math::XYZPointD Point
point in the space
Definition: TrackingParticle.h:36
edm::InputTag
Definition: InputTag.h:15
ParametersDefinerForTP::~ParametersDefinerForTP
virtual ~ParametersDefinerForTP()
Definition: ParametersDefinerForTP.h:23
ParametersDefinerForTP::vertex
virtual TrackingParticle::Point vertex(const edm::Event &iEvent, const edm::EventSetup &iSetup, const Charge ch, const Point &vtx, const LorentzVector &lv) const
Definition: ParametersDefinerForTP.cc:50
ParametersDefinerForTP
Definition: ParametersDefinerForTP.h:19