Selector to select prototracks that pass certain kinematic cuts based on fast vertex
Definition at line 24 of file HIProtoTrackSelector.h.
Definition at line 50 of file HIProtoTrackSelector.h.
References ecalDrivenElectronSeedsParameters_cff::beamSpot, beamSpot_, beamSpotToken_, reco::BeamSpot::BeamWidthX(), reco::BeamSpot::BeamWidthY(), EnergyCorrector::c, allConversions_cfi::d0, edm::Event::getByToken(), edm::HandleBase::isValid(), hpstanc_transforms::max, maxD0Significance_, minZCut_, nSigmaZ_, reco::BeamSpot::position(), edm::Handle< T >::product(), ptMin_, selected_, mathSSE::sqrt(), vertexCollectionToken_, and primaryVertexAssociation_cfi::vertices.
64 if(vertices->size()>0) {
65 vtxPoint=vertices->begin()->position();
66 vzErr=vertices->begin()->zError();
67 edm::LogInfo(
"HeavyIonVertexing") <<
"Select prototracks compatible with median vertex" 68 <<
"\n vz = " << vtxPoint.Z()
85 if ( beamSpotHandle.
isValid() ) {
86 beamSpot = *beamSpotHandle;
89 edm::LogInfo(
"HeavyIonVertexing") <<
"Select prototracks compatible with beamspot" 90 <<
"\n (x,y,z) = (" << bsPoint.X() <<
"," << bsPoint.Y() <<
"," << bsPoint.Z() <<
")" 91 <<
"\n width = " << bsWidth
103 for (reco::TrackCollection::const_iterator trk = c.begin(); trk != c.end(); ++ trk)
106 d0 = -1.*trk->dxy(bsPoint);
107 d0sigma =
sqrt(trk->d0Error()*trk->d0Error() + bsWidth*bsWidth);
120 edm::LogInfo(
"HeavyIonVertexing") <<
"selected " << nSelected <<
" prototracks out of " << nRejected+nSelected <<
"\n";
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< Vertex > VertexCollection
collection of Vertex objects
edm::EDGetTokenT< reco::VertexCollection > vertexCollectionToken_
double BeamWidthX() const
beam width X
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
T const * product() const
XYZPointD XYZPoint
point in space with cartesian internal representation
reco::TrackCollection collection
double BeamWidthY() const
beam width Y
const Point & position() const
position
double maxD0Significance_