Definition at line 33 of file RangePAllPID_module.cc.
sbn::RangePAllPID::RangePAllPID |
( |
fhicl::ParameterSet const & |
p | ) |
|
|
explicit |
Definition at line 60 of file RangePAllPID_module.cc.
63 fTrackLabel(
p.get<art::InputTag>(
"TrackLabel",
"pandoraTrack"))
65 for (
unsigned i = 0; i <
names.size(); i++) {
66 produces<std::vector<sbn::RangeP>>(
names[i]);
67 produces<art::Assns<recob::Track, sbn::RangeP>>(
names[i]);
70 const TDatabasePDG *
PDGTable = TDatabasePDG::Instance();
71 fMuonMass = PDGTable->GetParticle(13)->Mass();
72 fPionMass = PDGTable->GetParticle(211)->Mass();
trkf::TrackMomentumCalculator fRangeCalculator
static const std::vector< std::string > names
art::InputTag fTrackLabel
static const TDatabasePDG * PDGTable(new TDatabasePDG)
void sbn::RangePAllPID::produce |
( |
art::Event & |
e | ) |
|
|
override |
Definition at line 75 of file RangePAllPID_module.cc.
77 art::Handle<std::vector<recob::Track>> track_handle;
80 std::vector<art::Ptr<recob::Track>>
tracks;
81 art::fill_ptr_vector(tracks, track_handle);
83 for (
unsigned i = 0; i <
PIDs.size(); i++) {
84 std::unique_ptr<std::vector<sbn::RangeP>> rangecol(
new std::vector<sbn::RangeP>);
85 std::unique_ptr<art::Assns<recob::Track, sbn::RangeP>> assn(
new art::Assns<recob::Track, sbn::RangeP>);
87 for (
const art::Ptr<recob::Track>
track: tracks) {
97 rangecol->push_back(rangep);
101 e.put(std::move(rangecol),
names[i]);
102 e.put(std::move(assn),
names[i]);
ClusterModuleLabel join with tracks
static const std::vector< int > PIDs
process_name use argoneut_mc_hitfinder track
trkf::TrackMomentumCalculator fRangeCalculator
static const std::vector< std::string > names
art::InputTag fTrackLabel
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.
double GetTrackMomentum(double trkrange, int pdg) const
double sbn::RangePAllPID::fMuonMass |
|
private |
double sbn::RangePAllPID::fPionMass |
|
private |
art::InputTag sbn::RangePAllPID::fTrackLabel |
|
private |
The documentation for this class was generated from the following file: