template<typename Fitter, typename InputCollection = reco::CandidateCollection, typename OutputCollection = InputCollection, typename Init = typename ::reco::modules::EventSetupInit<Fitter>::type>
class ConstrainedFitCandProducer< Fitter, InputCollection, OutputCollection, Init >
Definition at line 20 of file ConstrainedFitCandProducer.h.
template<typename Fitter , typename InputCollection , typename OutputCollection , typename Init >
Definition at line 44 of file ConstrainedFitCandProducer.h.
References spr::find(), newFWLiteAna::found, edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNamesForType(), ConstrainedFitCandProducer< Fitter, InputCollection, OutputCollection, Init >::pdgId_, ConstrainedFitCandProducer< Fitter, InputCollection, OutputCollection, Init >::setLongLived_, ConstrainedFitCandProducer< Fitter, InputCollection, OutputCollection, Init >::setMassConstraint_, and ConstrainedFitCandProducer< Fitter, InputCollection, OutputCollection, Init >::setPdgId_.
45 src_(cfg.template getParameter<edm::InputTag>(
"src")),
47 fitter_(reco::modules::make<Fitter>(cfg)) {
48 produces<OutputCollection>();
49 std::string alias( cfg.
getParameter<std::string>(
"@module_label"));
50 const std::string setLongLived(
"setLongLived");
51 std::vector<std::string> vBoolParams = cfg.template getParameterNamesForType<bool>();
52 bool found =
find(vBoolParams.begin(), vBoolParams.end(), setLongLived) != vBoolParams.end();
53 if(found)
setLongLived_ = cfg.template getParameter<bool>(
"setLongLived");
54 const std::string setMassConstraint(
"setMassConstraint");
55 found =
find(vBoolParams.begin(), vBoolParams.end(), setMassConstraint) != vBoolParams.end();
57 const std::string setPdgId(
"setPdgId");
59 found =
find(vIntParams.begin(), vIntParams.end(), setPdgId) != vIntParams.end();
T getParameter(std::string const &) const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::vector< std::string > getParameterNamesForType(bool trackiness=true) const