47 Comment(
"Label of recob::TrackTrajectory Collection to be fit")
84 produces<std::vector<recob::MCSFitResult> >();
92 auto output = std::make_unique<std::vector<recob::MCSFitResult> >();
96 if (!ok)
throw cet::exception(
"MCSFitProducer") <<
"Cannot find input art::Handle with inputTag " <<
inputTag;
97 const auto& inputVec = *(inputH.product());
98 for (
const auto& element : inputVec) {
101 output->emplace_back(std::move(result));
103 e.
put(std::move(output));
MCSFitProducer & operator=(MCSFitProducer const &)=delete
MCSFitProducer(Parameters const &p)
Producer for TrajectoryMCSFitter.
ProductID put(std::unique_ptr< PROD > &&product)
#define DEFINE_ART_MODULE(klass)
Provides recob::Track data product.
void produce(art::Event &e) override
recob::MCSFitResult fitMcs(const recob::TrackTrajectory &traj, bool momDepConst=true) const
Class storing the result of the Maximum Likelihood fit of Multiple Coulomb Scattering angles between ...
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
TrajectoryMCSFitter mcsfitter
Class for Maximum Likelihood fit of Multiple Coulomb Scattering angles between segments within a Trac...
cet::coded_exception< error, detail::translate > exception