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
|
#ifndef HeavyFlavorAnalysis_Onia2MuMu_interface_OniaVtxReProducer_h
#define HeavyFlavorAnalysis_Onia2MuMu_interface_OniaVtxReProducer_h
#include "DataFormats/Common/interface/Handle.h"
#include "DataFormats/TrackReco/interface/TrackFwd.h"
#include "DataFormats/BeamSpot/interface/BeamSpot.h"
#include "DataFormats/VertexReco/interface/VertexFwd.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "RecoVertex/VertexPrimitives/interface/TransientVertex.h"
#include "RecoVertex/PrimaryVertexProducer/interface/PrimaryVertexProducerAlgorithm.h"
#include "TrackingTools/TransientTrack/interface/TransientTrackBuilder.h"
class OniaVtxReProducer {
public:
/// This is the real constructor to be used
OniaVtxReProducer(const edm::Handle<reco::VertexCollection> &configFromOriginalVertexCollection,
const edm::Event &iEvent);
/// This is only for testing
OniaVtxReProducer(const edm::ParameterSet &configByHand) { configure(configByHand); }
/// Make the vertices
std::vector<TransientVertex> makeVertices(const reco::TrackCollection &tracks,
const reco::BeamSpot &bs,
const TransientTrackBuilder &theB) const;
/// Get the configuration used in the VertexProducer
const edm::ParameterSet &inputConfig() const { return config_; }
/// Get the InputTag of the TrackCollection used in the VertexProducer
const edm::InputTag &inputTracks() const { return tracksTag_; }
/// Get the InputTag of the BeamSpot used in the VertexProducer
const edm::InputTag &inputBeamSpot() const { return beamSpotTag_; }
private:
void configure(const edm::ParameterSet &iConfig);
edm::ParameterSet config_;
edm::InputTag tracksTag_;
edm::InputTag beamSpotTag_;
std::unique_ptr<PrimaryVertexProducerAlgorithm> algo_;
};
#endif
|