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, const edm::Event &iEvent ) ;
20  OniaVtxReProducer(const edm::ParameterSet &configByHand) { configure(configByHand); }
21 
23  std::vector<TransientVertex> makeVertices(const reco::TrackCollection &tracks, const reco::BeamSpot &bs, const edm::EventSetup &iSetup) const;
24 
26  const edm::ParameterSet & inputConfig() const { return config_; }
27 
29  const edm::InputTag & inputTracks() const { return tracksTag_; }
30 
32  const edm::InputTag & inputBeamSpot() const { return beamSpotTag_; }
33  private:
34  void configure(const edm::ParameterSet &iConfig) ;
35 
39  std::unique_ptr<PrimaryVertexProducerAlgorithm> algo_;
40 };
41 
42 #endif
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:15
std::unique_ptr< PrimaryVertexProducerAlgorithm > algo_
OniaVtxReProducer(const edm::Handle< reco::VertexCollection > &configFromOriginalVertexCollection, const edm::Event &iEvent)
This is the real constructor to be used.
int iEvent
Definition: GenABIO.cc:224
std::vector< TransientVertex > makeVertices(const reco::TrackCollection &tracks, const reco::BeamSpot &bs, const edm::EventSetup &iSetup) const
Make the vertices.
void configure(const edm::ParameterSet &iConfig)
const edm::InputTag & inputTracks() const
Get the InputTag of the TrackCollection used in the VertexProducer.
const edm::InputTag & inputBeamSpot() const
Get the InputTag of the BeamSpot used in the VertexProducer.
edm::ParameterSet config_
edm::InputTag tracksTag_
OniaVtxReProducer(const edm::ParameterSet &configByHand)
This is only for testing.
edm::InputTag beamSpotTag_
const edm::ParameterSet & inputConfig() const
Get the configuration used in the VertexProducer.