1 #ifndef HIProtoTrackSelection_h
2 #define HIProtoTrackSelection_h
43 ptMin_(iConfig.getParameter<double>(
"ptMin")),
44 nSigmaZ_(iConfig.getParameter<double>(
"nSigmaZ")),
45 minZCut_(iConfig.getParameter<double>(
"minZCut")),
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< Track > TrackCollection
collection of Tracks
const_iterator begin() const
std::vector< Vertex > VertexCollection
collection of Vertex objects
Log< level::Error, false > LogError
std::vector< Vertex > VertexCollection
edm::EDGetTokenT< reco::VertexCollection > vertexCollectionToken_
edm::InputTag vertexCollection_
double BeamWidthX() const
beam width X
void select(edm::Handle< reco::TrackCollection > &TCH, const edm::Event &iEvent, const edm::EventSetup &iSetup)
Log< level::Info, false > LogInfo
static constexpr float d0
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
T const * product() const
std::vector< const reco::Track * > container
HIProtoTrackSelector(const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)
XYZPointD XYZPoint
point in space with cartesian internal representation
reco::TrackCollection collection
const_iterator end() const
double BeamWidthY() const
beam width Y
const Point & position() const
position
container::const_iterator const_iterator
double maxD0Significance_