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
OniaVtxReProducer::algo_
std::unique_ptr< PrimaryVertexProducerAlgorithm > algo_
Definition: OniaVtxReProducer.h:43
Handle.h
PDWG_EXOHSCP_cff.tracks
tracks
Definition: PDWG_EXOHSCP_cff.py:28
OniaVtxReProducer::OniaVtxReProducer
OniaVtxReProducer(const edm::Handle< reco::VertexCollection > &configFromOriginalVertexCollection, const edm::Event &iEvent)
This is the real constructor to be used.
Definition: OniaVtxReProducer.cc:10
OniaVtxReProducer::beamSpotTag_
edm::InputTag beamSpotTag_
Definition: OniaVtxReProducer.h:42
OniaVtxReProducer::inputConfig
const edm::ParameterSet & inputConfig() const
Get the configuration used in the VertexProducer.
Definition: OniaVtxReProducer.h:29
edm::Handle< reco::VertexCollection >
OniaVtxReProducer::makeVertices
std::vector< TransientVertex > makeVertices(const reco::TrackCollection &tracks, const reco::BeamSpot &bs, const TransientTrackBuilder &theB) const
Make the vertices.
Definition: OniaVtxReProducer.cc:71
OniaVtxReProducer::configure
void configure(const edm::ParameterSet &iConfig)
Definition: OniaVtxReProducer.cc:64
cms::cuda::bs
bs
Definition: HistoContainer.h:127
TrackFwd.h
BeamSpot.h
reco::BeamSpot
Definition: BeamSpot.h:21
OniaVtxReProducer::config_
edm::ParameterSet config_
Definition: OniaVtxReProducer.h:40
OniaVtxReProducer::inputTracks
const edm::InputTag & inputTracks() const
Get the InputTag of the TrackCollection used in the VertexProducer.
Definition: OniaVtxReProducer.h:32
TransientTrackBuilder.h
edm::ParameterSet
Definition: ParameterSet.h:47
OniaVtxReProducer::OniaVtxReProducer
OniaVtxReProducer(const edm::ParameterSet &configByHand)
This is only for testing.
Definition: OniaVtxReProducer.h:21
Event.h
iEvent
int iEvent
Definition: GenABIO.cc:224
OniaVtxReProducer::tracksTag_
edm::InputTag tracksTag_
Definition: OniaVtxReProducer.h:41
TransientTrackBuilder
Definition: TransientTrackBuilder.h:16
OniaVtxReProducer::inputBeamSpot
const edm::InputTag & inputBeamSpot() const
Get the InputTag of the BeamSpot used in the VertexProducer.
Definition: OniaVtxReProducer.h:35
VertexFwd.h
TransientVertex.h
OniaVtxReProducer
Definition: OniaVtxReProducer.h:15
ParameterSet.h
PrimaryVertexProducerAlgorithm.h
edm::Event
Definition: Event.h:73
edm::InputTag
Definition: InputTag.h:15
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14