LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "MCRecoEdep.h"
Public Member Functions | |
MCRecoEdep (fhicl::ParameterSet const &pset) | |
Default constructor with fhicl parameters. More... | |
void | MakeMCEdep (const std::vector< sim::SimChannel > &schArray) |
void | MakeMCEdep (const std::vector< sim::SimEnergyDeposit > &sedArray) |
void | MakeMCEdep (const std::vector< sim::SimEnergyDepositLite > &sedArray) |
bool | ExistTrack (const unsigned int track_id) const |
int | TrackToEdepIndex (unsigned int track_id) const |
Converts a track ID to MCEdep array index. Returns -1 if no corresponding array found . More... | |
const std::vector< sim::MCEdep > & | GetEdepArrayAt (size_t edep_index) const |
Returns a vector of MCEdep object at the given index. More... | |
const std::map< unsigned int, size_t > | TrackIndexMap () const |
Returns a map of track id <-> MCEdep vector index. More... | |
void | Clear () |
Protected Member Functions | |
std::vector< sim::MCEdep > & | __GetEdepArray__ (unsigned int track_id) |
Protected Attributes | |
bool | _debug_mode |
bool | _save_mchit |
std::map< unsigned int, size_t > | _track_index |
std::vector< std::vector< sim::MCEdep > > | _mc_edeps |
Definition at line 94 of file MCRecoEdep.h.
sim::MCRecoEdep::MCRecoEdep | ( | fhicl::ParameterSet const & | pset | ) |
Default constructor with fhicl parameters.
Definition at line 40 of file MCRecoEdep.cxx.
References fhicl::ParameterSet::get().
|
protected |
Definition at line 54 of file MCRecoEdep.cxx.
|
inline |
Definition at line 125 of file MCRecoEdep.h.
Referenced by MCReco::produce().
|
inline |
Definition at line 107 of file MCRecoEdep.h.
const std::vector< sim::MCEdep > & sim::MCRecoEdep::GetEdepArrayAt | ( | size_t | edep_index | ) | const |
Returns a vector of MCEdep object at the given index.
Definition at line 47 of file MCRecoEdep.cxx.
Referenced by sim::MCTrackRecoAlg::Reconstruct(), and sim::MCShowerRecoAlg::Reconstruct().
void sim::MCRecoEdep::MakeMCEdep | ( | const std::vector< sim::SimChannel > & | schArray | ) |
Definition at line 62 of file MCRecoEdep.cxx.
References geo::GeometryCore::ChannelToWire(), sim::details::createPlaneIndexMap(), sim::MCEdep::deps, and edep.
Referenced by MCReco::MakeMCEdep().
void sim::MCRecoEdep::MakeMCEdep | ( | const std::vector< sim::SimEnergyDeposit > & | sedArray | ) |
Definition at line 130 of file MCRecoEdep.cxx.
References geo::GeometryCore::ChannelToWire(), sim::details::createPlaneIndexMap(), sim::MCEdep::deps, e, edep, geo::GeometryCore::Iterate(), geo::GeometryCore::NearestChannel(), geo::GeometryCore::PositionToCryostatID(), and geo::GeometryCore::PositionToTPCID().
void sim::MCRecoEdep::MakeMCEdep | ( | const std::vector< sim::SimEnergyDepositLite > & | sedArray | ) |
Definition at line 248 of file MCRecoEdep.cxx.
|
inline |
Returns a map of track id <-> MCEdep vector index.
Definition at line 123 of file MCRecoEdep.h.
|
inline |
Converts a track ID to MCEdep array index. Returns -1 if no corresponding array found .
Definition at line 113 of file MCRecoEdep.h.
Referenced by sim::MCTrackRecoAlg::Reconstruct(), and sim::MCShowerRecoAlg::Reconstruct().
|
protected |
Definition at line 136 of file MCRecoEdep.h.
|
protected |
Definition at line 139 of file MCRecoEdep.h.
|
protected |
Definition at line 137 of file MCRecoEdep.h.
|
protected |
Definition at line 138 of file MCRecoEdep.h.