54 std::auto_ptr<VertexReconstructor>
vtxReco;
60 minHits(params.getParameter<unsigned int>(
"minHits")),
61 maxNTracks(params.getParameter<unsigned int>(
"maxNTracks")),
62 maxLIP(params.getParameter<double>(
"maximumLongitudinalImpactParameter")),
63 minPt(params.getParameter<double>(
"minPt")),
64 vertexMinAngleCosine(params.getParameter<double>(
"vertexMinAngleCosine")),
65 vertexMinDLen2DSig(params.getParameter<double>(
"vertexMinDLen2DSig")),
66 vertexMinDLenSig(params.getParameter<double>(
"vertexMinDLenSig")),
74 produces<reco::VertexCollection>();
80 if (track->hitPattern().numberOfValidHits() < (int)
minHits)
83 if (track->pt() <
minPt )
93 double sigmacut = 3.0;
122 if(primaryVertices->size()!=0) {
126 std::vector<TransientTrack> tts;
128 for(TrackCollection::const_iterator track =
tracks->begin();
129 track !=
tracks->end(); ++track) {
139 std::vector<TracksClusteringFromDisplacedSeed::Cluster> clusters =
clusterizer->clusters(pv,tts);
143 for(
unsigned int i = 0;
i < 7;
i++) {
144 for(
unsigned int j = 0;
j < 7;
j++) {
157 std::cout <<
"CLUSTERS " << clusters.size() << std::endl;
160 for(std::vector<TracksClusteringFromDisplacedSeed::Cluster>::iterator cluster = clusters.begin();
161 cluster != clusters.end(); ++cluster,++
i)
163 if(cluster->tracks.size() == 0 || cluster->tracks.size() >
maxNTracks )
166 cluster->tracks.push_back(cluster->seedingTrack);
167 std::vector<TransientVertex> vertices;
168 vertices =
vtxReco->vertices(cluster->tracks, bs);
170 singleFitVertex = theAdaptiveFitter.
vertex(cluster->tracks,cluster->seedPoint);
172 vertices.push_back(singleFitVertex);
173 for(std::vector<TransientVertex>::const_iterator
v = vertices.begin();
174 v != vertices.end(); ++
v) {
181 std::cout <<
"V chi2/n: " <<
v->normalisedChiSquared() <<
" ndof: " <<
v->degreesOfFreedom() ;
187 std::vector<reco::TransientTrack> ts =
v->originalTracks();
188 for(std::vector<reco::TransientTrack>::const_iterator i = ts.begin();
189 i != ts.end(); ++
i) {
191 float w =
v->trackWeight(*i);
192 if (w > 0.5) dir+=i->impactPointState().globalDirection();
195 << (*t).eta() <<
", "
196 << (*t).phi() <<
"], "
201 GlobalPoint sv((*v).position().x(),(*v).position().y(),(*v).position().z());
206 recoVertices->push_back(*
v);
218 std::cout <<
"Final put " << recoVertices->size() << std::endl;
222 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