58 std::auto_ptr<VertexReconstructor>
vtxReco;
64 minHits(params.getParameter<unsigned int>(
"minHits")),
65 maxNTracks(params.getParameter<unsigned int>(
"maxNTracks")),
66 maxLIP(params.getParameter<double>(
"maximumLongitudinalImpactParameter")),
67 minPt(params.getParameter<double>(
"minPt")),
68 vertexMinAngleCosine(params.getParameter<double>(
"vertexMinAngleCosine")),
69 vertexMinDLen2DSig(params.getParameter<double>(
"vertexMinDLen2DSig")),
70 vertexMinDLenSig(params.getParameter<double>(
"vertexMinDLenSig")),
71 fitterSigmacut(params.getParameter<double>(
"fitterSigmacut")),
72 fitterTini(params.getParameter<double>(
"fitterTini")),
73 fitterRatio(params.getParameter<double>(
"fitterRatio")),
74 useVertexFitter(params.getParameter<bool>(
"useDirectVertexFitter")),
75 useVertexReco(params.getParameter<bool>(
"useVertexReco")),
83 produces<reco::VertexCollection>();
89 if (track->hitPattern().numberOfValidHits() < (int)
minHits)
92 if (track->pt() <
minPt )
100 using namespace reco;
128 if(primaryVertices->size()!=0) {
132 std::vector<TransientTrack> tts;
134 for(TrackCollection::const_iterator track =
tracks->begin();
135 track !=
tracks->end(); ++track) {
145 std::vector<TracksClusteringFromDisplacedSeed::Cluster> clusters =
clusterizer->clusters(pv,tts);
149 for(
unsigned int i = 0;
i < 7;
i++) {
150 for(
unsigned int j = 0;
j < 7;
j++) {
163 std::cout <<
"CLUSTERS " << clusters.size() << std::endl;
166 for(std::vector<TracksClusteringFromDisplacedSeed::Cluster>::iterator cluster = clusters.begin();
167 cluster != clusters.end(); ++cluster,++
i)
169 if(cluster->tracks.size() < 2 || cluster->tracks.size() >
maxNTracks )
171 std::vector<TransientVertex> vertices;
173 vertices =
vtxReco->vertices(cluster->tracks, bs);
177 singleFitVertex = theAdaptiveFitter.
vertex(cluster->tracks,cluster->seedPoint);
179 vertices.push_back(singleFitVertex);
181 for(std::vector<TransientVertex>::const_iterator
v = vertices.begin();
182 v != vertices.end(); ++
v) {
189 std::cout <<
"V chi2/n: " <<
v->normalisedChiSquared() <<
" ndof: " <<
v->degreesOfFreedom() ;
195 std::vector<reco::TransientTrack> ts =
v->originalTracks();
196 for(std::vector<reco::TransientTrack>::const_iterator i = ts.begin();
197 i != ts.end(); ++
i) {
199 float w =
v->trackWeight(*i);
200 if (w > 0.5) dir+=i->impactPointState().globalDirection();
203 << (*t).eta() <<
", "
204 << (*t).phi() <<
"], "
209 GlobalPoint sv((*v).position().x(),(*v).position().y(),(*v).position().z());
214 recoVertices->push_back(*
v);
226 std::cout <<
"Final put " << recoVertices->size() << std::endl;
230 event.put(recoVertices);
math::Error< dimension >::type CovarianceMatrix
T getParameter(std::string const &) const
void setBeamSpot(const reco::BeamSpot &beamSpot)
double zError() const
error on z
#define DEFINE_FWK_MODULE(type)
std::vector< Vertex > VertexCollection
collection of Vertex objects
PreciseFloatType< T, U >::Type dot(const Vector3DBase< U, FrameTag > &v) const
std::pair< std::vector< reco::TransientTrack >, GlobalPoint > nearTracks(const reco::TransientTrack &seed, const std::vector< reco::TransientTrack > &tracks, const reco::Vertex &primaryVertex) const
double covariance(int i, int j) const
(i, j)-th element of error matrix, i, j = 0, ... 2
const Point & position() const
position
std::auto_ptr< TracksClusteringFromDisplacedSeed > clusterizer
edm::EDGetTokenT< reco::BeamSpot > token_beamSpot
virtual void produce(edm::Event &event, const edm::EventSetup &es) override
bool trackFilter(const reco::TrackRef &track) const
virtual CachingVertex< 5 > vertex(const std::vector< reco::TransientTrack > &) const
std::auto_ptr< VertexReconstructor > vtxReco
Abs< T >::type abs(const T &t)
edm::EDGetTokenT< reco::TrackCollection > token_tracks
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
InclusiveVertexFinder(const edm::ParameterSet ¶ms)
Vector3DBase unit() const
double significance() const
double xError() const
error on x
double vertexMinDLen2DSig
double yError() const
error on y
edm::EDGetTokenT< reco::VertexCollection > token_primaryVertex
double vertexMinAngleCosine