CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CosmicParametersDefinerForTP.h
Go to the documentation of this file.
1 #ifndef TrackAssociation_CosmicParametersDefinerForTP_h
2 #define TrackAssociation_CosmicParametersDefinerForTP_h
3 
15 
16 #include <memory>
17 
19 public:
22 
24  const edm::EventSetup &iSetup,
25  const TrackingParticleRef &tpr) const override;
27  const edm::EventSetup &iSetup,
28  const TrackingParticleRef &tpr) const override;
29 
30  std::tuple<TrackingParticle::Vector, TrackingParticle::Point> momentumAndVertex(
31  const edm::Event &iEvent, const edm::EventSetup &iSetup, const TrackingParticleRef &tpr) const override {
32  return std::make_tuple(momentum(iEvent, iSetup, tpr), vertex(iEvent, iSetup, tpr));
33  }
34 
36  const edm::EventSetup &iSetup,
37  const Charge ch,
38  const Point &vertex,
39  const LorentzVector &lv) const override {
40  return TrackingParticle::Vector();
41  }
42 
44  const edm::EventSetup &iSetup,
45  const Charge ch,
46  const Point &vertex,
47  const LorentzVector &lv) const override {
48  return TrackingParticle::Point();
49  }
50 
52  simHitsTPAssoc = simHitsTPAssocToSet;
53  }
54 
55  std::unique_ptr<ParametersDefinerForTP> clone() const override {
56  return std::make_unique<CosmicParametersDefinerForTP>(*this);
57  }
58 
59 private:
62 };
63 
64 #endif
math::XYZTLorentzVectorD LorentzVector
Lorentz vector.
TrackingParticle::Vector momentum(const edm::Event &iEvent, const edm::EventSetup &iSetup, const TrackingParticleRef &tpr) const override
math::XYZPointD Point
point in the space
int iEvent
Definition: GenABIO.cc:224
CosmicParametersDefinerForTP(edm::ConsumesCollector iC)
TrackingParticle::Point vertex(const edm::Event &iEvent, const edm::EventSetup &iSetup, const Charge ch, const Point &vertex, const LorentzVector &lv) const override
const edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > geometryToken_
TrackingParticle::Vector momentum(const edm::Event &iEvent, const edm::EventSetup &iSetup, const Charge ch, const Point &vertex, const LorentzVector &lv) const override
int Charge
electric charge type
std::tuple< TrackingParticle::Vector, TrackingParticle::Point > momentumAndVertex(const edm::Event &iEvent, const edm::EventSetup &iSetup, const TrackingParticleRef &tpr) const override
~CosmicParametersDefinerForTP() override
TrackingParticle::Point vertex(const edm::Event &iEvent, const edm::EventSetup &iSetup, const TrackingParticleRef &tpr) const override
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:57
void initEvent(edm::Handle< SimHitTPAssociationProducer::SimHitTPAssociationList > simHitsTPAssocToSet) override
math::XYZVectorD Vector
point in the space
edm::Handle< SimHitTPAssociationProducer::SimHitTPAssociationList > simHitsTPAssoc
std::unique_ptr< ParametersDefinerForTP > clone() const override