CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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::auto_ptr<PrimaryVertexProducerAlgorithm> algo_;
40 };
41 
42 #endif
std::auto_ptr< PrimaryVertexProducerAlgorithm > algo_
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:13
OniaVtxReProducer(const edm::Handle< reco::VertexCollection > &configFromOriginalVertexCollection, const edm::Event &iEvent)
This is the real constructor to be used.
int iEvent
Definition: GenABIO.cc:230
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.
tuple tracks
Definition: testEve_cfg.py:39
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.