CMS 3D CMS Logo

CosmicParametersDefinerForTP.h
Go to the documentation of this file.
1 #ifndef TrackAssociation_CosmicParametersDefinerForTP_h
2 #define TrackAssociation_CosmicParametersDefinerForTP_h
3 
12 
13 #include <memory>
14 
16 public:
19 
21  const edm::EventSetup &iSetup,
22  const TrackingParticleRef &tpr) const override;
24  const edm::EventSetup &iSetup,
25  const TrackingParticleRef &tpr) const override;
26 
27  std::tuple<TrackingParticle::Vector, TrackingParticle::Point> momentumAndVertex(
28  const edm::Event &iEvent, const edm::EventSetup &iSetup, const TrackingParticleRef &tpr) const override {
29  return std::make_tuple(momentum(iEvent, iSetup, tpr), vertex(iEvent, iSetup, tpr));
30  }
31 
33  const edm::EventSetup &iSetup,
34  const Charge ch,
35  const Point &vertex,
36  const LorentzVector &lv) const override {
37  return TrackingParticle::Vector();
38  }
39 
41  const edm::EventSetup &iSetup,
42  const Charge ch,
43  const Point &vertex,
44  const LorentzVector &lv) const override {
45  return TrackingParticle::Point();
46  }
47 
49  simHitsTPAssoc = simHitsTPAssocToSet;
50  }
51 
52  std::unique_ptr<ParametersDefinerForTP> clone() const override {
53  return std::make_unique<CosmicParametersDefinerForTP>(*this);
54  }
55 
56 private:
58 };
59 
60 #endif
CosmicParametersDefinerForTP::simHitsTPAssoc
edm::Handle< SimHitTPAssociationProducer::SimHitTPAssociationList > simHitsTPAssoc
Definition: CosmicParametersDefinerForTP.h:57
CosmicParametersDefinerForTP::momentum
TrackingParticle::Vector momentum(const edm::Event &iEvent, const edm::EventSetup &iSetup, const TrackingParticleRef &tpr) const override
Definition: CosmicParametersDefinerForTP.cc:23
TrackingParticle::Vector
math::XYZVectorD Vector
point in the space
Definition: TrackingParticle.h:37
CosmicParametersDefinerForTP::CosmicParametersDefinerForTP
CosmicParametersDefinerForTP()
Definition: CosmicParametersDefinerForTP.h:17
edm::Handle< SimHitTPAssociationProducer::SimHitTPAssociationList >
edm::Ref< TrackingParticleCollection >
CosmicParametersDefinerForTP
Definition: CosmicParametersDefinerForTP.h:15
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
CosmicParametersDefinerForTP::momentum
TrackingParticle::Vector momentum(const edm::Event &iEvent, const edm::EventSetup &iSetup, const Charge ch, const Point &vertex, const LorentzVector &lv) const override
Definition: CosmicParametersDefinerForTP.h:32
CosmicParametersDefinerForTP::vertex
TrackingParticle::Point vertex(const edm::Event &iEvent, const edm::EventSetup &iSetup, const Charge ch, const Point &vertex, const LorentzVector &lv) const override
Definition: CosmicParametersDefinerForTP.h:40
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::EventSetup
Definition: EventSetup.h:58
ParametersDefinerForTP.h
CosmicParametersDefinerForTP::~CosmicParametersDefinerForTP
~CosmicParametersDefinerForTP() override
Definition: CosmicParametersDefinerForTP.h:18
TrackingParticle.h
CosmicParametersDefinerForTP::initEvent
void initEvent(edm::Handle< SimHitTPAssociationProducer::SimHitTPAssociationList > simHitsTPAssocToSet) override
Definition: CosmicParametersDefinerForTP.h:48
CosmicParametersDefinerForTP::momentumAndVertex
std::tuple< TrackingParticle::Vector, TrackingParticle::Point > momentumAndVertex(const edm::Event &iEvent, const edm::EventSetup &iSetup, const TrackingParticleRef &tpr) const override
Definition: CosmicParametersDefinerForTP.h:27
ParametersDefinerForTP::LorentzVector
math::XYZTLorentzVectorD LorentzVector
Lorentz vector.
Definition: ParametersDefinerForTP.h:27
CosmicParametersDefinerForTP::clone
std::unique_ptr< ParametersDefinerForTP > clone() const override
Definition: CosmicParametersDefinerForTP.h:52
edm::Event
Definition: Event.h:73
TrackingParticle::Point
math::XYZPointD Point
point in the space
Definition: TrackingParticle.h:36
CosmicParametersDefinerForTP::vertex
TrackingParticle::Point vertex(const edm::Event &iEvent, const edm::EventSetup &iSetup, const TrackingParticleRef &tpr) const override
Definition: CosmicParametersDefinerForTP.cc:131
ParametersDefinerForTP
Definition: ParametersDefinerForTP.h:19