LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "MCRecoPart.h"
Public Member Functions | |
MCRecoPart (fhicl::ParameterSet const &pset) | |
Default constructor with fhicl parameters. More... | |
virtual | ~MCRecoPart () |
Default destructor. More... | |
void | AddParticles (const std::vector< simb::MCParticle > &mcp_v, const std::vector< simb::Origin_t > &orig_v, const std::vector< simb::MCParticle > &mcmp_v={}) |
unsigned int | AncestorTrackID (const unsigned int part_index) |
unsigned int | MotherTrackID (const unsigned int part_index) const |
unsigned int | TrackToParticleIndex (const unsigned int track_id) const |
bool | InDetector (const double &x, const double &y, const double &z) const |
Public Attributes | |
std::map< unsigned int, unsigned int > | _track_index |
Track ID => Index Map. More... | |
std::set< int > | _pdg_list |
PDG code list for which particle's trajectory within the detector is saved. More... | |
T | elements |
STL member. More... | |
Protected Attributes | |
double | _x_max |
x-max of volume box used to determine whether to save track information More... | |
double | _x_min |
x-min of volume box used to determine whether to save track information More... | |
double | _y_max |
y-max of volume box used to determine whether to save track information More... | |
double | _y_min |
y-min of volume box used to determine whether to save track information More... | |
double | _z_max |
z-max of volume box used to determine whether to save track information More... | |
double | _z_min |
z-min of volume box used to determine whether to save track information More... | |
std::vector< unsigned int > | _trackIDOffsets |
Track ID offsets for different MCTruths. More... | |
Definition at line 91 of file MCRecoPart.h.
sim::MCRecoPart::MCRecoPart | ( | fhicl::ParameterSet const & | pset | ) |
Default constructor with fhicl parameters.
Definition at line 19 of file MCRecoPart.cxx.
References _pdg_list, _track_index, _trackIDOffsets, _x_max, _x_min, _y_max, _y_min, _z_max, _z_min, clear(), and geo::GeometryCore::Iterate().
|
inlinevirtual |
void sim::MCRecoPart::AddParticles | ( | const std::vector< simb::MCParticle > & | mcp_v, |
const std::vector< simb::Origin_t > & | orig_v, | ||
const std::vector< simb::MCParticle > & | mcmp_v = {} |
||
) |
Definition at line 133 of file MCRecoPart.cxx.
References _pdg_list, _track_index, clear(), InDetector(), and util::size().
Referenced by MCReco::produce().
unsigned int sim::MCRecoPart::AncestorTrackID | ( | const unsigned int | part_index | ) |
Definition at line 76 of file MCRecoPart.cxx.
References _trackIDOffsets, sim::kINVALID_UINT, MotherTrackID(), util::size(), and TrackToParticleIndex().
Referenced by sim::MCTrackRecoAlg::Reconstruct(), and sim::MCShowerRecoAlg::Reconstruct().
bool sim::MCRecoPart::InDetector | ( | const double & | x, |
const double & | y, | ||
const double & | z | ||
) | const |
Definition at line 126 of file MCRecoPart.cxx.
References _x_max, _y_max, _y_min, _z_max, x, and y.
Referenced by AddParticles().
unsigned int sim::MCRecoPart::MotherTrackID | ( | const unsigned int | part_index | ) | const |
Definition at line 50 of file MCRecoPart.cxx.
References _trackIDOffsets, sim::kINVALID_UINT, part, util::size(), and TrackToParticleIndex().
Referenced by AncestorTrackID(), sim::MCTrackRecoAlg::Reconstruct(), and sim::MCShowerRecoAlg::Reconstruct().
|
inline |
Definition at line 112 of file MCRecoPart.h.
References sim::kINVALID_UINT.
Referenced by AncestorTrackID(), MotherTrackID(), sim::MCTrackRecoAlg::Reconstruct(), and sim::MCShowerRecoAlg::Reconstruct().
std::set<int> sim::MCRecoPart::_pdg_list |
PDG code list for which particle's trajectory within the detector is saved.
Definition at line 127 of file MCRecoPart.h.
Referenced by AddParticles(), MCRecoPart(), and sim::MCTrackRecoAlg::Reconstruct().
std::map<unsigned int, unsigned int> sim::MCRecoPart::_track_index |
Track ID => Index Map.
Definition at line 123 of file MCRecoPart.h.
Referenced by AddParticles(), sim::MCShowerRecoPart::ConstructShower(), and MCRecoPart().
|
protected |
Track ID offsets for different MCTruths.
Definition at line 136 of file MCRecoPart.h.
Referenced by AncestorTrackID(), MCRecoPart(), and MotherTrackID().
|
protected |
x-max of volume box used to determine whether to save track information
Definition at line 130 of file MCRecoPart.h.
Referenced by InDetector(), and MCRecoPart().
|
protected |
x-min of volume box used to determine whether to save track information
Definition at line 131 of file MCRecoPart.h.
Referenced by MCRecoPart().
|
protected |
y-max of volume box used to determine whether to save track information
Definition at line 132 of file MCRecoPart.h.
Referenced by InDetector(), and MCRecoPart().
|
protected |
y-min of volume box used to determine whether to save track information
Definition at line 133 of file MCRecoPart.h.
Referenced by InDetector(), and MCRecoPart().
|
protected |
z-max of volume box used to determine whether to save track information
Definition at line 134 of file MCRecoPart.h.
Referenced by InDetector(), and MCRecoPart().
|
protected |
z-min of volume box used to determine whether to save track information
Definition at line 135 of file MCRecoPart.h.
Referenced by MCRecoPart().
|
inherited |
STL member.