Definition at line 30 of file MCSFitAllPID_module.cc.
sbn::MCSFitAllPID::MCSFitAllPID |
( |
fhicl::ParameterSet const & |
p | ) |
|
|
explicit |
Definition at line 55 of file MCSFitAllPID_module.cc.
59 fTrackLabel(
p.get<art::InputTag>(
"TrackLabel",
"pandoraTrack")),
62 for (
unsigned i = 0; i <
names.size(); i++) {
63 produces<std::vector<recob::MCSFitResult>>(
names[i]);
64 produces<art::Assns<recob::Track, recob::MCSFitResult>>(
names[i]);
trkf::sbn::TrajectoryMCSFitter fMCSCalculator
static const std::vector< std::string > names
art::InputTag fTrackLabel
void sbn::MCSFitAllPID::produce |
( |
art::Event & |
e | ) |
|
|
override |
Definition at line 68 of file MCSFitAllPID_module.cc.
72 art::Handle<std::vector<recob::Track>> track_handle;
75 std::vector<art::Ptr<recob::Track>>
tracks;
76 art::fill_ptr_vector(tracks, track_handle);
78 for (
unsigned i = 0; i <
PIDs.size(); i++) {
79 std::unique_ptr<std::vector<recob::MCSFitResult>> mcscol(
new std::vector<recob::MCSFitResult>);
80 std::unique_ptr<art::Assns<recob::Track, recob::MCSFitResult>> assn(
new art::Assns<recob::Track, recob::MCSFitResult>);
82 for (
const art::Ptr<recob::Track>
track: tracks) {
89 e.put(std::move(mcscol),
names[i]);
90 e.put(std::move(assn),
names[i]);
ClusterModuleLabel join with tracks
trkf::sbn::TrajectoryMCSFitter fMCSCalculator
process_name use argoneut_mc_hitfinder track
static const std::vector< int > PIDs
bool CreateAssn(art::Event &evt, std::vector< T > const &a, art::Ptr< U > const &b, art::Assns< U, T > &assn, std::string a_instance, size_t index=UINT_MAX)
Creates a single one-to-one association.
static const std::vector< std::string > names
art::InputTag fTrackLabel
recob::MCSFitResult fitMcs(const recob::TrackTrajectory &traj, bool momDepConst=true) const
float sbn::MCSFitAllPID::fMinTrackLength |
|
private |
art::InputTag sbn::MCSFitAllPID::fTrackLabel |
|
private |
The documentation for this class was generated from the following file: