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")),
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< Track > TrackCollection
collection of Tracks
const_iterator begin() const
std::vector< Vertex > VertexCollection
collection of Vertex objects
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)
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
std::vector< const reco::Track * > container
T const * product() const
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_