sbn::TransferPFParticleT0::TransferPFParticleT0 |
( |
fhicl::ParameterSet const & |
p | ) |
|
|
explicit |
Definition at line 54 of file TransferPFParticleT0_module.cc.
57 fT0Label(
p.get<art::InputTag>(
"T0Label")),
60 produces<art::Assns<recob::PFParticle, anab::T0>>();
art::InputTag fPFParticleLabelIn
art::InputTag fPFParticleLabelOut
void sbn::TransferPFParticleT0::produce |
( |
art::Event & |
e | ) |
|
|
override |
Definition at line 63 of file TransferPFParticleT0_module.cc.
66 std::unique_ptr<art::Assns<recob::PFParticle, anab::T0>> assn(
new art::Assns<recob::PFParticle, anab::T0>);
69 art::Handle<std::vector<recob::PFParticle>> inpfp_handle;
72 std::vector<art::Ptr<recob::PFParticle>> inpfps;
73 art::fill_ptr_vector(inpfps, inpfp_handle);
75 art::FindManyP<anab::T0> fmT0s(inpfps,
e,
fT0Label);
77 art::Handle<std::vector<recob::PFParticle>> outpfp_handle;
80 std::vector<art::Ptr<recob::PFParticle>> outpfps;
81 art::fill_ptr_vector(outpfps, outpfp_handle);
84 for (
unsigned i_in = 0; i_in < inpfps.size(); i_in++) {
86 const std::vector<art::Ptr<anab::T0>> &t0s = fmT0s.at(i_in);
87 if (!t0s.size())
continue;
89 for (
unsigned i_out = 0; i_out < outpfps.size(); i_out++) {
93 assn->addMany(outpfps.at(i_out), t0s);
99 e.put(std::move(assn));
size_t Self() const
Returns the index of this particle.
art::InputTag fPFParticleLabelIn
Hierarchical representation of particle flow.
art::InputTag fPFParticleLabelOut
art::InputTag sbn::TransferPFParticleT0::fPFParticleLabelIn |
|
private |
art::InputTag sbn::TransferPFParticleT0::fPFParticleLabelOut |
|
private |
art::InputTag sbn::TransferPFParticleT0::fT0Label |
|
private |
The documentation for this class was generated from the following file: