Selector to select prototracks that pass certain kinematic cuts based on fast vertex
Definition at line 22 of file HIProtoTrackSelector.h.
Definition at line 46 of file HIProtoTrackSelector.h.
References beamSpotLabel_, reco::BeamSpot::BeamWidthX(), reco::BeamSpot::BeamWidthY(), trackerHits::c, debug_cff::d0, edm::Event::getByLabel(), edm::HandleBase::isValid(), max(), maxD0Significance_, minZCut_, nSigmaZ_, reco::BeamSpot::position(), edm::Handle< T >::product(), ptMin_, selected_, mathSSE::sqrt(), and vertexCollection_.
60 if(vertices->size()>0) {
61 vtxPoint=vertices->begin()->position();
62 vzErr=vertices->begin()->zError();
63 edm::LogInfo(
"HeavyIonVertexing") <<
"Select prototracks compatible with median vertex"
64 <<
"\n vz = " << vtxPoint.Z()
79 if ( beamSpotHandle.
isValid() ) {
80 beamSpot = *beamSpotHandle;
83 edm::LogInfo(
"HeavyIonVertexing") <<
"Select prototracks compatible with beamspot"
84 <<
"\n (x,y,z) = (" << bsPoint.X() <<
"," << bsPoint.Y() <<
"," << bsPoint.Z() <<
")"
85 <<
"\n width = " << bsWidth
97 for (reco::TrackCollection::const_iterator trk = c.begin(); trk != c.end(); ++ trk)
100 d0 = -1.*trk->dxy(bsPoint);
101 d0sigma =
sqrt(trk->d0Error()*trk->d0Error() + bsWidth*bsWidth);
114 edm::LogInfo(
"HeavyIonVertexing") <<
"selected " << nSelected <<
" prototracks out of " << nRejected+nSelected <<
"\n";
std::vector< Vertex > VertexCollection
collection of Vertex objects
edm::InputTag vertexCollection_
const T & max(const T &a, const T &b)
edm::InputTag beamSpotLabel_
double BeamWidthX() const
beam width X
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
XYZPointD XYZPoint
point in space with cartesian internal representation
reco::TrackCollection collection
double BeamWidthY() const
beam width Y
T const * product() const
const Point & position() const
position
double maxD0Significance_