1 #ifndef HIProtoTrackSelection_h 2 #define HIProtoTrackSelection_h 43 beamSpot_(iConfig.getParameter<
edm::InputTag>(
"beamSpotLabel")),
45 ptMin_(iConfig.getParameter<double>(
"ptMin")),
46 nSigmaZ_(iConfig.getParameter<double>(
"nSigmaZ")),
47 minZCut_(iConfig.getParameter<double>(
"minZCut")),
56 const collection &
c = *(TCH.
product());
66 if(!vertices->empty()) {
67 vtxPoint=vertices->begin()->position();
68 vzErr=vertices->begin()->zError();
69 edm::LogInfo(
"HeavyIonVertexing") <<
"Select prototracks compatible with median vertex" 70 <<
"\n vz = " << vtxPoint.Z()
87 if ( beamSpotHandle.
isValid() ) {
88 beamSpot = *beamSpotHandle;
91 edm::LogInfo(
"HeavyIonVertexing") <<
"Select prototracks compatible with beamspot" 92 <<
"\n (x,y,z) = (" << bsPoint.X() <<
"," << bsPoint.Y() <<
"," << bsPoint.Z() <<
")" 93 <<
"\n width = " << bsWidth
105 for (reco::TrackCollection::const_iterator trk = c.begin(); trk != c.end(); ++ trk)
108 d0 = -1.*trk->dxy(bsPoint);
109 d0sigma =
sqrt(trk->d0Error()*trk->d0Error() + bsWidth*bsWidth);
122 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_