14 throw cms::Exception(
"InvalidInput") <<
"Unknown trackQuality value '" 16 <<
"'. See possible values in 'reco::TrackBase::qualityByName'";
19 produces<std::vector<reco::TrackExtrapolation>>();
43 auto extrapolations = std::make_unique<std::vector<reco::TrackExtrapolation>>();
47 for (reco::TrackCollection::const_iterator trkBegin = tracks_h->begin(), trkEnd = tracks_h->end(), itrk = trkBegin;
53 if (itrk->quality(trackQuality)) {
57 std::vector<reco::TrackBase::Point> vresultPos(1);
58 std::vector<reco::TrackBase::Vector> vresultMom(1);
61 for (std::vector<reco::TrackRef>::const_iterator trkBegin = goodTracks.begin(),
62 trkEnd = goodTracks.end(),
95 double minz = volume.
minZ();
105 if (propagatedInfo.
isValid()) {
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
double outerPy() const
y coordinate of momentum vector at the outermost hit position
const TrackExtraRef & extra() const
reference to "extra" object
bool getByToken(EDGetToken token, Handle< PROD > &result) const
TrackQuality
track quality
Global3DPoint GlobalPoint
GlobalPoint globalPosition() const
double px() const
x coordinate of momentum vector
double minZ(bool withTolerance=true) const
double outerZ() const
z coordinate of the outermost hit position
static CylinderPointer build(const PositionType &pos, const RotationType &rot, Scalar radius, Bounds *bounds=0)
#define DEFINE_FWK_MODULE(type)
static PlanePointer build(Args &&...args)
double outerX() const
x coordinate of the outermost hit position
math::XYZPoint Point
point in the space
Point3DBase< float, GlobalTag > PositionType
double outerPz() const
z coordinate of momentum vector at the outermost hit position
double pz() const
z coordinate of momentum vector
double minR(bool withTolerance=true) const
double vz() const
z coordinate of the reference point on track
static TrackQuality qualityByName(const std::string &name)
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
double vy() const
y coordinate of the reference point on track
GlobalVector globalMomentum() const
TkRotation< float > RotationType
double outerY() const
y coordinate of the outermost hit position
const FiducialVolume & volume() const
get active detector volume
int charge() const
track electric charge
math::XYZVector Vector
spatial vector
double outerPx() const
x coordinate of momentum vector at the outermost hit position
double py() const
y coordinate of momentum vector
double vx() const
x coordinate of the reference point on track
Global3DVector GlobalVector