-
Notifications
You must be signed in to change notification settings - Fork 4.4k
/
Copy pathPrimaryVertexProducer.cc
464 lines (409 loc) · 20.9 KB
/
PrimaryVertexProducer.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
#include "RecoVertex/PrimaryVertexProducer/interface/PrimaryVertexProducer.h"
#include "FWCore/Framework/interface/ConsumesCollector.h"
#include "DataFormats/VertexReco/interface/VertexFwd.h"
#include "DataFormats/TrackReco/interface/TrackFwd.h"
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "TrackingTools/TransientTrack/interface/TransientTrack.h"
#include "RecoVertex/VertexPrimitives/interface/TransientVertex.h"
#include "RecoVertex/VertexTools/interface/VertexDistanceXY.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "DataFormats/BeamSpot/interface/BeamSpot.h"
#include "RecoVertex/VertexTools/interface/GeometricAnnealing.h"
PrimaryVertexProducer::PrimaryVertexProducer(const edm::ParameterSet& conf)
: theTTBToken(esConsumes(edm::ESInputTag("", "TransientTrackBuilder"))), theConfig(conf) {
fVerbose = conf.getUntrackedParameter<bool>("verbose", false);
useMVASelection_ = conf.getParameter<bool>("useMVACut");
trkToken = consumes<reco::TrackCollection>(conf.getParameter<edm::InputTag>("TrackLabel"));
bsToken = consumes<reco::BeamSpot>(conf.getParameter<edm::InputTag>("beamSpotLabel"));
useTransientTrackTime_ = false;
// select and configure the track selection
std::string trackSelectionAlgorithm =
conf.getParameter<edm::ParameterSet>("TkFilterParameters").getParameter<std::string>("algorithm");
if (trackSelectionAlgorithm == "filter") {
theTrackFilter = new TrackFilterForPVFinding(conf.getParameter<edm::ParameterSet>("TkFilterParameters"));
} else if (trackSelectionAlgorithm == "filterWithThreshold") {
theTrackFilter = new HITrackFilterForPVFinding(conf.getParameter<edm::ParameterSet>("TkFilterParameters"));
} else {
throw VertexException("PrimaryVertexProducer: unknown track selection algorithm: " + trackSelectionAlgorithm);
}
// select and configure the track clusterizer
std::string clusteringAlgorithm =
conf.getParameter<edm::ParameterSet>("TkClusParameters").getParameter<std::string>("algorithm");
if (clusteringAlgorithm == "gap") {
theTrackClusterizer = new GapClusterizerInZ(
conf.getParameter<edm::ParameterSet>("TkClusParameters").getParameter<edm::ParameterSet>("TkGapClusParameters"));
} else if (clusteringAlgorithm == "DA_vect") {
theTrackClusterizer = new DAClusterizerInZ_vect(
conf.getParameter<edm::ParameterSet>("TkClusParameters").getParameter<edm::ParameterSet>("TkDAClusParameters"));
} else if (clusteringAlgorithm == "DA2D_vect") {
theTrackClusterizer = new DAClusterizerInZT_vect(
conf.getParameter<edm::ParameterSet>("TkClusParameters").getParameter<edm::ParameterSet>("TkDAClusParameters"));
useTransientTrackTime_ = true;
} else {
throw VertexException("PrimaryVertexProducer: unknown clustering algorithm: " + clusteringAlgorithm);
}
if (useTransientTrackTime_) {
trkTimesToken = consumes<edm::ValueMap<float> >(conf.getParameter<edm::InputTag>("TrackTimesLabel"));
trkTimeResosToken = consumes<edm::ValueMap<float> >(conf.getParameter<edm::InputTag>("TrackTimeResosLabel"));
trackMTDTimeQualityToken =
consumes<edm::ValueMap<float> >(conf.getParameter<edm::InputTag>("trackMTDTimeQualityVMapTag"));
minTrackTimeQuality_ = conf.getParameter<double>("minTrackTimeQuality");
}
// select and configure the vertex fitters
std::vector<edm::ParameterSet> vertexCollections =
conf.getParameter<std::vector<edm::ParameterSet> >("vertexCollections");
for (std::vector<edm::ParameterSet>::const_iterator algoconf = vertexCollections.begin();
algoconf != vertexCollections.end();
algoconf++) {
algo algorithm;
algorithm.label = algoconf->getParameter<std::string>("label");
// configure the fitter and selector
std::string fitterAlgorithm = algoconf->getParameter<std::string>("algorithm");
if (fitterAlgorithm == "KalmanVertexFitter") {
algorithm.pv_fitter = new SequentialPrimaryVertexFitterAdapter(new KalmanVertexFitter());
} else if (fitterAlgorithm == "AdaptiveVertexFitter") {
auto fitter = new AdaptiveVertexFitter(GeometricAnnealing(algoconf->getParameter<double>("chi2cutoff")));
algorithm.pv_fitter = new SequentialPrimaryVertexFitterAdapter(fitter);
} else if (fitterAlgorithm.empty()) {
algorithm.pv_fitter = nullptr;
} else if (fitterAlgorithm == "AdaptiveChisquareVertexFitter") {
algorithm.pv_fitter = new AdaptiveChisquarePrimaryVertexFitter(algoconf->getParameter<double>("chi2cutoff"),
algoconf->getParameter<double>("zcutoff"),
algoconf->getParameter<double>("mintrkweight"),
false);
} else if (fitterAlgorithm == "MultiPrimaryVertexFitter") {
algorithm.pv_fitter = new AdaptiveChisquarePrimaryVertexFitter(algoconf->getParameter<double>("chi2cutoff"),
algoconf->getParameter<double>("zcutoff"),
algoconf->getParameter<double>("mintrkweight"),
true);
} else if (fitterAlgorithm == "WeightedMeanFitter") {
algorithm.pv_fitter = new WeightedMeanPrimaryVertexEstimator();
} else {
throw VertexException("PrimaryVertexProducer: unknown algorithm: " + fitterAlgorithm);
}
algorithm.minNdof = algoconf->getParameter<double>("minNdof");
algorithm.useBeamConstraint = algoconf->getParameter<bool>("useBeamConstraint");
algorithm.vertexSelector =
new VertexCompatibleWithBeam(VertexDistanceXY(), algoconf->getParameter<double>("maxDistanceToBeam"));
// configure separate vertex time reconstruction if applicable
// note that the vertex time could, in principle, also come from the clusterizer or the vertex fit
const auto& pv_time_conf = algoconf->getParameter<edm::ParameterSet>("vertexTimeParameters");
const std::string vertexTimeAlgorithm = pv_time_conf.getParameter<std::string>("algorithm");
edm::ConsumesCollector&& collector = consumesCollector();
if (vertexTimeAlgorithm.empty()) {
algorithm.pv_time_estimator = nullptr;
} else if (vertexTimeAlgorithm == "legacy4D") {
useTransientTrackTime_ = true;
algorithm.pv_time_estimator =
new VertexTimeAlgorithmLegacy4D(pv_time_conf.getParameter<edm::ParameterSet>("legacy4D"), collector);
} else if (vertexTimeAlgorithm == "fromTracksPID") {
algorithm.pv_time_estimator = new VertexTimeAlgorithmFromTracksPID(
pv_time_conf.getParameter<edm::ParameterSet>("fromTracksPID"), collector);
} else {
edm::LogWarning("MisConfiguration") << "unknown vertexTimeParameters.algorithm" << vertexTimeAlgorithm;
}
algorithms.push_back(algorithm);
produces<reco::VertexCollection>(algorithm.label);
}
//check if this is a recovery iteration
fRecoveryIteration = conf.getParameter<bool>("isRecoveryIteration");
if (fRecoveryIteration) {
if (algorithms.empty()) {
throw VertexException("PrimaryVertexProducer: No algorithm specified. ");
} else if (algorithms.size() > 1) {
throw VertexException(
"PrimaryVertexProducer: Running in Recovery mode and more than one algorithm specified. Please "
"only one algorithm.");
}
recoveryVtxToken = consumes<reco::VertexCollection>(conf.getParameter<edm::InputTag>("recoveryVtxCollection"));
}
}
PrimaryVertexProducer::~PrimaryVertexProducer() {
if (theTrackFilter)
delete theTrackFilter;
if (theTrackClusterizer)
delete theTrackClusterizer;
for (std::vector<algo>::const_iterator algorithm = algorithms.begin(); algorithm != algorithms.end(); algorithm++) {
if (algorithm->pv_fitter)
delete algorithm->pv_fitter;
if (algorithm->pv_time_estimator)
delete algorithm->pv_time_estimator;
if (algorithm->vertexSelector)
delete algorithm->vertexSelector;
}
}
void PrimaryVertexProducer::produce(edm::Event& iEvent, const edm::EventSetup& iSetup) {
// get the BeamSpot, it will always be needed, even when not used as a constraint
reco::BeamSpot beamSpot;
edm::Handle<reco::BeamSpot> recoBeamSpotHandle;
iEvent.getByToken(bsToken, recoBeamSpotHandle);
if (recoBeamSpotHandle.isValid()) {
beamSpot = *recoBeamSpotHandle;
} else {
edm::LogError("UnusableBeamSpot") << "No beam spot available from EventSetup";
}
bool validBS = true;
VertexState beamVertexState(beamSpot);
if ((beamVertexState.error().cxx() <= 0.) || (beamVertexState.error().cyy() <= 0.) ||
(beamVertexState.error().czz() <= 0.)) {
edm::LogError("UnusableBeamSpot") << "Beamspot with invalid errors " << beamVertexState.error().matrix();
validBS = false;
}
//if this is a recovery iteration, check if we already have a valid PV
if (fRecoveryIteration) {
auto const& oldVertices = iEvent.get(recoveryVtxToken);
//look for the first valid (not-BeamSpot) vertex
for (auto const& old : oldVertices) {
if (!(old.isFake())) {
//found a valid vertex, write the first one to the collection and return
//otherwise continue with regular vertexing procedure
auto result = std::make_unique<reco::VertexCollection>();
result->push_back(old);
iEvent.put(std::move(result), algorithms.begin()->label);
return;
}
}
}
// get RECO tracks from the event
// `tks` can be used as a ptr to a reco::TrackCollection
edm::Handle<reco::TrackCollection> tks;
iEvent.getByToken(trkToken, tks);
// mechanism to put the beamspot if the track collection is empty
if (!tks.isValid()) {
for (std::vector<algo>::const_iterator algorithm = algorithms.begin(); algorithm != algorithms.end(); algorithm++) {
auto result = std::make_unique<reco::VertexCollection>();
reco::VertexCollection& vColl = (*result);
GlobalError bse(beamSpot.rotatedCovariance3D());
if ((bse.cxx() <= 0.) || (bse.cyy() <= 0.) || (bse.czz() <= 0.)) {
AlgebraicSymMatrix33 we;
we(0, 0) = 10000;
we(1, 1) = 10000;
we(2, 2) = 10000;
vColl.push_back(reco::Vertex(beamSpot.position(), we, 0., 0., 0));
if (fVerbose) {
std::cout << "RecoVertex/PrimaryVertexProducer: "
<< "Beamspot with invalid errors " << bse.matrix() << std::endl;
std::cout << "Will put Vertex derived from dummy-fake BeamSpot into Event.\n";
}
} else {
vColl.push_back(reco::Vertex(beamSpot.position(), beamSpot.rotatedCovariance3D(), 0., 0., 0));
if (fVerbose) {
std::cout << "RecoVertex/PrimaryVertexProducer: "
<< " will put Vertex derived from BeamSpot into Event.\n";
}
}
iEvent.put(std::move(result), algorithm->label);
}
return; // early return
}
for (auto& algo : algorithms) {
if (algo.pv_time_estimator) {
algo.pv_time_estimator->setEvent(iEvent, iSetup);
}
}
// interface RECO tracks to vertex reconstruction
const auto& theB = &iSetup.getData(theTTBToken);
std::vector<reco::TransientTrack> t_tks;
if (useTransientTrackTime_) {
auto const& trackTimeResos_ = iEvent.get(trkTimeResosToken);
auto trackTimes_ = iEvent.get(trkTimesToken);
if (useMVASelection_) {
trackMTDTimeQualities_ = iEvent.get(trackMTDTimeQualityToken);
for (unsigned int i = 0; i < (*tks).size(); i++) {
const reco::TrackRef ref(tks, i);
auto const trkTimeQuality = trackMTDTimeQualities_[ref];
if (trkTimeQuality < minTrackTimeQuality_) {
trackTimes_[ref] = std::numeric_limits<double>::max();
}
}
t_tks = (*theB).build(tks, beamSpot, trackTimes_, trackTimeResos_);
} else {
t_tks = (*theB).build(tks, beamSpot, trackTimes_, trackTimeResos_);
}
} else {
t_tks = (*theB).build(tks, beamSpot);
}
// select tracks
std::vector<reco::TransientTrack>&& seltks = theTrackFilter->select(t_tks);
// clusterize tracks in Z
std::vector<TransientVertex>&& clusters = theTrackClusterizer->vertices(seltks);
if (fVerbose) {
edm::LogPrint("PrimaryVertexProducer")
<< "Clustering returned " << clusters.size() << " clusters from " << seltks.size() << " selected tracks";
}
// vertex fits
for (std::vector<algo>::const_iterator algorithm = algorithms.begin(); algorithm != algorithms.end(); algorithm++) {
auto result = std::make_unique<reco::VertexCollection>();
reco::VertexCollection& vColl = (*result);
std::vector<TransientVertex> pvs;
if (algorithm->pv_fitter == nullptr) {
pvs = clusters;
} else {
pvs = algorithm->pv_fitter->fit(seltks, clusters, beamSpot, algorithm->useBeamConstraint);
}
if (algorithm->pv_time_estimator != nullptr) {
algorithm->pv_time_estimator->fill_vertex_times(pvs);
}
// sort vertices by pt**2 vertex
if (pvs.size() > 1) {
sort(pvs.begin(), pvs.end(), VertexHigherPtSquared());
}
// select and convert transient vertices to (reco) vertices
for (std::vector<TransientVertex>::const_iterator iv = pvs.begin(); iv != pvs.end(); iv++) {
if (iv->isValid() && (iv->degreesOfFreedom() >= algorithm->minNdof)) {
reco::Vertex v = *iv;
if (!validBS || ((*(algorithm->vertexSelector))(v, beamVertexState))) {
vColl.push_back(v);
}
}
}
if (fVerbose) {
edm::LogPrint("PrimaryVertexProducer") << "PrimaryVertexProducer \"" << algorithm->label << "\" contains "
<< pvs.size() << " reco::Vertex candidates";
}
if (clusters.size() > 2 && clusters.size() > 2 * pvs.size()) {
edm::LogWarning("PrimaryVertexProducer")
<< "More than 50% of candidate vertices lost (" << pvs.size() << " out of " << clusters.size() << ")";
}
if (pvs.empty() && seltks.size() > 5) {
edm::LogWarning("PrimaryVertexProducer")
<< "No vertex found with " << seltks.size() << " tracks and " << clusters.size() << " vertex candidates";
}
if (vColl.empty()) {
GlobalError bse(beamSpot.rotatedCovariance3D());
if ((bse.cxx() <= 0.) || (bse.cyy() <= 0.) || (bse.czz() <= 0.)) {
AlgebraicSymMatrix33 we;
we(0, 0) = 10000;
we(1, 1) = 10000;
we(2, 2) = 10000;
vColl.push_back(reco::Vertex(beamSpot.position(), we, 0., 0., 0));
edm::LogWarning("PrimaryVertexProducer") << "Zero recostructed vertices, will put reco::Vertex derived from "
"dummy/fake BeamSpot into Event, BeamSpot has invalid errors: "
<< bse.matrix();
} else {
vColl.push_back(reco::Vertex(beamSpot.position(), beamSpot.rotatedCovariance3D(), 0., 0., 0));
if (fVerbose) {
edm::LogWarning("PrimaryVertexProducer")
<< "Zero recostructed vertices, will put reco::Vertex derived from BeamSpot into Event.";
}
}
}
if (fVerbose) {
int ivtx = 0;
for (reco::VertexCollection::const_iterator v = vColl.begin(); v != vColl.end(); ++v) {
edm::LogPrint("PrimaryVertexProducer")
<< "recvtx " << std::setw(3) << std::fixed << ivtx++ << " #trk " << std::setw(3) << v->tracksSize()
<< " chi2 " << std::setw(5) << std::setprecision(1) << v->chi2() << " ndof " << std::setw(5)
<< std::setprecision(1) << v->ndof() << " x " << std::setw(7) << std::setprecision(4) << v->position().x()
<< " dx " << std::setw(6) << std::setprecision(4) << v->xError() << " y " << std::setw(7)
<< std::setprecision(4) << v->position().y() << " dy " << std::setw(6) << std::setprecision(4)
<< v->yError() << " z " << std::setw(8) << std::setprecision(4) << v->position().z() << " dz "
<< std::setw(6) << std::setprecision(4) << v->zError();
if (v->tError() > 0) {
edm::LogPrint("PrimaryVertexProducer") << " t " << std::setw(6) << std::setprecision(3) << v->t() << " dt "
<< std::setw(6) << std::setprecision(3) << v->tError();
}
}
}
iEvent.put(std::move(result), algorithm->label);
}
}
void PrimaryVertexProducer::fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
edm::ParameterSetDescription psd_pv_time;
{
edm::ParameterSetDescription psd1;
VertexTimeAlgorithmFromTracksPID::fillPSetDescription(psd1);
psd_pv_time.add<edm::ParameterSetDescription>("fromTracksPID", psd1);
edm::ParameterSetDescription psd2;
VertexTimeAlgorithmLegacy4D::fillPSetDescription(psd2);
psd_pv_time.add<edm::ParameterSetDescription>("legacy4D", psd2);
}
psd_pv_time.add<std::string>("algorithm", ""); // default = none
// vertex collections
edm::ParameterSetDescription desc;
{
edm::ParameterSetDescription vpsd1;
vpsd1.add<double>("maxDistanceToBeam", 1.0);
vpsd1.add<std::string>("algorithm", "AdaptiveVertexFitter");
vpsd1.add<bool>("useBeamConstraint", false);
vpsd1.add<std::string>("label", "");
vpsd1.add<double>("chi2cutoff", 2.5);
vpsd1.add<double>("zcutoff", 1.0);
vpsd1.add<double>("mintrkweight", 0.0);
vpsd1.add<double>("minNdof", 0.0);
vpsd1.add<edm::ParameterSetDescription>("vertexTimeParameters", psd_pv_time);
// two default values : with- and without beam constraint
std::vector<edm::ParameterSet> temp1;
temp1.reserve(2);
{
edm::ParameterSet temp2;
temp2.addParameter<double>("maxDistanceToBeam", 1.0);
temp2.addParameter<std::string>("algorithm", "AdaptiveVertexFitter");
temp2.addParameter<bool>("useBeamConstraint", false);
temp2.addParameter<std::string>("label", "");
temp2.addParameter<double>("chi2cutoff", 2.5);
temp2.addParameter<double>("zcutoff", 1.0);
temp2.addParameter<double>("mintrkweight", 0.);
temp2.addParameter<double>("minNdof", 0.0);
edm::ParameterSet temp_vertexTime;
temp_vertexTime.addParameter<std::string>("algorithm", "");
temp2.addParameter<edm::ParameterSet>("vertexTimeParameters", temp_vertexTime);
temp1.push_back(temp2);
}
{
edm::ParameterSet temp2;
temp2.addParameter<double>("maxDistanceToBeam", 1.0);
temp2.addParameter<std::string>("algorithm", "AdaptiveVertexFitter");
temp2.addParameter<bool>("useBeamConstraint", true);
temp2.addParameter<std::string>("label", "WithBS");
temp2.addParameter<double>("chi2cutoff", 2.5);
temp2.addParameter<double>("zcutoff", 1.0);
temp2.addParameter<double>("mintrkweight", 0.);
temp2.addParameter<double>("minNdof", 2.0);
edm::ParameterSet temp_vertexTime;
temp_vertexTime.addParameter<std::string>("algorithm", "");
temp2.addParameter<edm::ParameterSet>("vertexTimeParameters", temp_vertexTime);
temp1.push_back(temp2);
}
desc.addVPSet("vertexCollections", vpsd1, temp1);
}
desc.addUntracked<bool>("verbose", false);
{
edm::ParameterSetDescription psd0;
HITrackFilterForPVFinding::fillPSetDescription(psd0); // extension of TrackFilterForPVFinding
desc.add<edm::ParameterSetDescription>("TkFilterParameters", psd0);
}
desc.add<edm::InputTag>("beamSpotLabel", edm::InputTag("offlineBeamSpot"));
desc.add<edm::InputTag>("TrackLabel", edm::InputTag("generalTracks"));
desc.add<edm::InputTag>("TrackTimeResosLabel", edm::InputTag("dummy_default")); // 4D only
desc.add<edm::InputTag>("TrackTimesLabel", edm::InputTag("dummy_default")); // 4D only
desc.add<edm::InputTag>("trackMTDTimeQualityVMapTag", edm::InputTag("mtdTrackQualityMVA:mtdQualMVA")); // 4D only
{
edm::ParameterSetDescription psd0;
{
edm::ParameterSetDescription psd1;
DAClusterizerInZ_vect::fillPSetDescription(psd1);
edm::ParameterSetDescription psd2;
DAClusterizerInZT_vect::fillPSetDescription(psd2);
edm::ParameterSetDescription psd3;
GapClusterizerInZ::fillPSetDescription(psd3);
psd0.ifValue(
edm::ParameterDescription<std::string>("algorithm", "DA_vect", true),
"DA_vect" >> edm::ParameterDescription<edm::ParameterSetDescription>("TkDAClusParameters", psd1, true) or
"DA2D_vect" >>
edm::ParameterDescription<edm::ParameterSetDescription>("TkDAClusParameters", psd2, true) or
"gap" >> edm::ParameterDescription<edm::ParameterSetDescription>("TkGapClusParameters", psd3, true));
}
desc.add<edm::ParameterSetDescription>("TkClusParameters", psd0);
}
desc.add<bool>("isRecoveryIteration", false);
desc.add<edm::InputTag>("recoveryVtxCollection", {""});
desc.add<bool>("useMVACut", false);
desc.add<double>("minTrackTimeQuality", 0.8);
descriptions.addWithDefaultLabel(desc);
}
//define this as a plug-in
DEFINE_FWK_MODULE(PrimaryVertexProducer);