Selector to select prototracks that pass certain kinematic cuts based on fast vertex
Definition at line 26 of file HIProtoTrackSelector.h.
Definition at line 49 of file HIProtoTrackSelector.h.
References beam_dqm_sourceclient-live_cfg::beamSpot, beamSpot_, beamSpotToken_, reco::BeamSpot::BeamWidthX(), reco::BeamSpot::BeamWidthY(), c, d0, edm::Event::getByToken(), edm::HandleBase::isValid(), SiStripPI::max, maxD0Significance_, minZCut_, nSigmaZ_, reco::BeamSpot::position(), edm::Handle< T >::product(), ptMin_, selected_, mathSSE::sqrt(), vertexCollectionToken_, and beam_dqm_sourceclient-live_cfg::vertices.
62 if (!vertices->empty()) {
63 vtxPoint = vertices->begin()->position();
64 vzErr = vertices->begin()->zError();
65 edm::LogInfo(
"HeavyIonVertexing") <<
"Select prototracks compatible with median vertex"
66 <<
"\n vz = " << vtxPoint.Z() <<
"\n " <<
nSigmaZ_
67 <<
" vz sigmas = " << vzErr *
nSigmaZ_
84 beamSpot = *beamSpotHandle;
87 edm::LogInfo(
"HeavyIonVertexing") <<
"Select prototracks compatible with beamspot"
88 <<
"\n (x,y,z) = (" << bsPoint.X() <<
"," << bsPoint.Y() <<
"," << bsPoint.Z()
90 <<
"\n width = " << bsWidth
100 double d0sigma = 0.0;
101 for (reco::TrackCollection::const_iterator trk = c.begin(); trk != c.end(); ++trk) {
102 d0 = -1. * trk->dxy(bsPoint);
103 d0sigma =
sqrt(trk->d0Error() * trk->d0Error() + bsWidth * bsWidth);
114 edm::LogInfo(
"HeavyIonVertexing") <<
"selected " << nSelected <<
" prototracks out of " << nRejected + nSelected
const edm::EventSetup & c
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< Vertex > VertexCollection
collection of Vertex objects
Log< level::Error, false > LogError
edm::EDGetTokenT< reco::VertexCollection > vertexCollectionToken_
double BeamWidthX() const
beam width X
Log< level::Info, false > LogInfo
static constexpr float d0
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_