V0branch - modifications to V0Fitter (V0Producer) for PU

1) added new cuts and modified old  default values to purify the V0 collection in presence of PU (optimized for PU25). for slides from a tracking POG meeting see:
https://indico.cern.ch/event/337839/
https://indico.cern.ch/event/337839/contribution/3/material/slides/0.pdf
2) deleted code that was no longer relevant to the module
3) rearranged code to apply selection cuts sooner to help speed the execution of the module
and so that can be removed for the other parameters of type double or int
as well?

On Wed, Nov 5, 2014 at 10:59 AM, Slava Krutelyov <notifications@github.com>
wrote:

> In RecoVertex/V0Producer/src/V0Fitter.cc:
>
> > +{
> > +   using std::string;
> > +
> > +   token_beamSpot = iC.consumes<reco::BeamSpot>(edm::InputTag("offlineBeamSpot"));
> > +   token_tracks = iC.consumes<reco::TrackCollection>(theParameters.getParameter<edm::InputTag>("trackRecoAlgorithm"));
> > +
> > +   useRefTrax = theParameters.getParameter<bool>(string("useSmoothing"));
> > +   vertexFitter_ = theParameters.getParameter<edm::InputTag>("vertexFitter");
> > +
> > +   // whether to reconstruct KShorts
> > +   doKShorts_ = theParameters.getParameter<bool>(string("doKShorts"));
> > +   // whether to reconstruct Lambdas
> > +   doLambdas_ = theParameters.getParameter<bool>(string("doLambdas"));
> > +
> > +   // cuts on initial track selection
> > +   tkChi2Cut_ = theParameters.getParameter<double>(string("tkChi2Cut"));
>
> explicit string is not needed here
>
> tkChi2Cut_ = theParameters.getParameter<double>("tkChi2Cut");
>
> is good
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/cms-sw/cmssw/pull/5951/files#r19891780>.
>