CMS 3D CMS Logo

OniaVtxReProducer.h
Go to the documentation of this file.
1 #ifndef HeavyFlavorAnalysis_Onia2MuMu_interface_OniaVtxReProducer_h
2 #define HeavyFlavorAnalysis_Onia2MuMu_interface_OniaVtxReProducer_h
3 
8 
14 
16 public:
18  OniaVtxReProducer(const edm::Handle<reco::VertexCollection> &configFromOriginalVertexCollection,
19  const edm::Event &iEvent);
21  OniaVtxReProducer(const edm::ParameterSet &configByHand) { configure(configByHand); }
22 
24  std::vector<TransientVertex> makeVertices(const reco::TrackCollection &tracks,
25  const reco::BeamSpot &bs,
26  const TransientTrackBuilder &theB) const;
27 
29  const edm::ParameterSet &inputConfig() const { return config_; }
30 
32  const edm::InputTag &inputTracks() const { return tracksTag_; }
33 
35  const edm::InputTag &inputBeamSpot() const { return beamSpotTag_; }
36 
37 private:
38  void configure(const edm::ParameterSet &iConfig);
39 
43  std::unique_ptr<PrimaryVertexProducerAlgorithm> algo_;
44 };
45 
46 #endif
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
const edm::InputTag & inputTracks() const
Get the InputTag of the TrackCollection used in the VertexProducer.
std::unique_ptr< PrimaryVertexProducerAlgorithm > algo_
OniaVtxReProducer(const edm::Handle< reco::VertexCollection > &configFromOriginalVertexCollection, const edm::Event &iEvent)
This is the real constructor to be used.
const edm::ParameterSet & inputConfig() const
Get the configuration used in the VertexProducer.
int iEvent
Definition: GenABIO.cc:224
const edm::InputTag & inputBeamSpot() const
Get the InputTag of the BeamSpot used in the VertexProducer.
std::vector< TransientVertex > makeVertices(const reco::TrackCollection &tracks, const reco::BeamSpot &bs, const TransientTrackBuilder &theB) const
Make the vertices.
void configure(const edm::ParameterSet &iConfig)
auto const & tracks
cannot be loose
edm::ParameterSet config_
edm::InputTag tracksTag_
OniaVtxReProducer(const edm::ParameterSet &configByHand)
This is only for testing.
edm::InputTag beamSpotTag_