LArSoft
v07_13_02
Liquid Argon Software toolkit - http://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) |
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... | |
Definition at line 76 of file MCRecoPart.h.
sim::MCRecoPart::MCRecoPart | ( | fhicl::ParameterSet const & | pset | ) |
Default constructor with fhicl parameters.
Definition at line 15 of file MCRecoPart.cxx.
References _pdg_list, _track_index, _x_max, _x_min, _y_max, _y_min, _z_max, _z_min, geo::GeometryCore::begin_TPC(), clear(), geo::GeometryCore::end_TPC(), and fhicl::ParameterSet::get().
|
inlinevirtual |
void sim::MCRecoPart::AddParticles | ( | const std::vector< simb::MCParticle > & | mcp_v, |
const std::vector< simb::Origin_t > & | orig_v | ||
) |
Definition at line 124 of file MCRecoPart.cxx.
References _pdg_list, _track_index, clear(), and InDetector().
Referenced by MCReco::produce().
unsigned int sim::MCRecoPart::AncestorTrackID | ( | const unsigned int | part_index | ) |
Definition at line 64 of file MCRecoPart.cxx.
References sim::kINVALID_UINT, MotherTrackID(), 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 113 of file MCRecoPart.cxx.
References _x_max, _x_min, _y_max, _y_min, _z_max, _z_min, x, y, and z.
Referenced by AddParticles().
unsigned int sim::MCRecoPart::MotherTrackID | ( | const unsigned int | part_index | ) | const |
Definition at line 38 of file MCRecoPart.cxx.
References sim::kINVALID_UINT, part, and TrackToParticleIndex().
Referenced by AncestorTrackID(), sim::MCTrackRecoAlg::Reconstruct(), and sim::MCShowerRecoAlg::Reconstruct().
|
inline |
Definition at line 97 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 115 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 111 of file MCRecoPart.h.
Referenced by AddParticles(), sim::MCShowerRecoPart::ConstructShower(), and MCRecoPart().
|
protected |
x-max of volume box used to determine whether to save track information
Definition at line 119 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 120 of file MCRecoPart.h.
Referenced by InDetector(), and MCRecoPart().
|
protected |
y-max of volume box used to determine whether to save track information
Definition at line 121 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 122 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 123 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 124 of file MCRecoPart.h.
Referenced by InDetector(), and MCRecoPart().
|
inherited |
STL member.