All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
trkf::MCSFitProducer Class Reference

Producer for TrajectoryMCSFitter. More...

Inheritance diagram for trkf::MCSFitProducer:

Classes

struct  Config
 
struct  Inputs
 

Public Types

using Parameters = art::EDProducer::Table< Config >
 

Public Member Functions

 MCSFitProducer (Parameters const &p)
 
 ~MCSFitProducer ()
 
 MCSFitProducer (MCSFitProducer const &)=delete
 
 MCSFitProducer (MCSFitProducer &&)=delete
 
MCSFitProduceroperator= (MCSFitProducer const &)=delete
 
MCSFitProduceroperator= (MCSFitProducer &&)=delete
 

Private Member Functions

void produce (art::Event &e) override
 

Private Attributes

Parameters p_
 
art::InputTag inputTag
 
TrajectoryMCSFitter mcsfitter
 

Detailed Description

Producer for TrajectoryMCSFitter.

Producer for TrajectoryMCSFitter, which performs a Maximum Likelihood fit of Multiple Coulomb Scattering angles between segments within a Track or Trajectory. It reads a recob::Track collection and produces a collection of recob::MCSFitResult where the elements are in the same order as the input collection (no explicit association is written).

For configuration options see MCSFitProducer::Inputs and MCSFitProducer::Config

Author
G. Cerati (FNAL, MicroBooNE), based on code from L. Kalousis and D. Kaleko
Date
2017
Version
1.0

Definition at line 33 of file MCSFitProducer_module.cc.

Member Typedef Documentation

using trkf::MCSFitProducer::Parameters = art::EDProducer::Table<Config>

Definition at line 54 of file MCSFitProducer_module.cc.

Constructor & Destructor Documentation

trkf::MCSFitProducer::MCSFitProducer ( Parameters const &  p)
explicit

Definition at line 74 of file MCSFitProducer_module.cc.

75  : EDProducer{p}, p_(p), mcsfitter(p_().fitter)
76 {
77  inputTag = art::InputTag(p_().inputs().inputLabel());
78  produces<std::vector<recob::MCSFitResult> >();
79 }
pdgs p
Definition: selectors.fcl:22
TrajectoryMCSFitter mcsfitter
trkf::MCSFitProducer::~MCSFitProducer ( )

Definition at line 81 of file MCSFitProducer_module.cc.

81 {}
trkf::MCSFitProducer::MCSFitProducer ( MCSFitProducer const &  )
delete
trkf::MCSFitProducer::MCSFitProducer ( MCSFitProducer &&  )
delete

Member Function Documentation

MCSFitProducer& trkf::MCSFitProducer::operator= ( MCSFitProducer const &  )
delete
MCSFitProducer& trkf::MCSFitProducer::operator= ( MCSFitProducer &&  )
delete
void trkf::MCSFitProducer::produce ( art::Event &  e)
overrideprivate

Definition at line 83 of file MCSFitProducer_module.cc.

84 {
85  //
86  auto output = std::make_unique<std::vector<recob::MCSFitResult> >();
87  //
88  art::Handle<std::vector<recob::Track> > inputH;
89  bool ok = e.getByLabel(inputTag,inputH);
90  if (!ok) throw cet::exception("MCSFitProducer") << "Cannot find input art::Handle with inputTag " << inputTag;
91  const auto& inputVec = *(inputH.product());
92  for (const auto& element : inputVec) {
93  //fit
94  recob::MCSFitResult result = mcsfitter.fitMcs(element);
95  output->emplace_back(std::move(result));
96  }
97  e.put(std::move(output));
98 }
Class storing the result of the Maximum Likelihood fit of Multiple Coulomb Scattering angles between ...
Definition: MCSFitResult.h:19
BEGIN_PROLOG sequence::SlidingWindowTriggerPatternsOppositeWindows END_PROLOG simSlidingORM6O6 effSlidingORW output
do i e
TrajectoryMCSFitter mcsfitter

Member Data Documentation

art::InputTag trkf::MCSFitProducer::inputTag
private

Definition at line 69 of file MCSFitProducer_module.cc.

TrajectoryMCSFitter trkf::MCSFitProducer::mcsfitter
private

Definition at line 70 of file MCSFitProducer_module.cc.

Parameters trkf::MCSFitProducer::p_
private

Definition at line 68 of file MCSFitProducer_module.cc.


The documentation for this class was generated from the following file: