sandreco  1.0.8
A modular reconstruction software for SAND
sand::edep_reader Class Reference
Inheritance diagram for sand::edep_reader:

Public Member Functions

TG4Event const & event () const
 
- Public Member Functions inherited from EDEPTree
 EDEPTree (const EDEPTree &)=delete
 
 EDEPTree (EDEPTree &&)=delete
 
EDEPTree & operator= (const EDEPTree &)=delete
 
EDEPTree & operator= (EDEPTree &&)=delete
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
std::size_t size () const
 Total number of trajectories in the tree.
 
void InizializeFromEdep (const TG4Event &edep_event)
 Rebuilds the tree from edep_event, replacing the previous content.
 
bool HasTrajectory (int trj_id) const
 
iterator GetTrajectory (int trj_id)
 
const_iterator GetTrajectory (int trj_id) const
 
iterator GetParentOf (int trj_id)
 Iterator to the parent of trj_id, end() if the trajectory is unknown or a primary.
 
const_iterator GetParentOf (int trj_id) const
 
iterator GetTrajectoryWithHitId (int id)
 Iterator to the trajectory that produced hit id, end() if there is none.
 
const_iterator GetTrajectoryWithHitId (int id) const
 
iterator GetTrajectoryWithHitIdInDetector (int id, sand::subdetector_t c)
 
const_iterator GetTrajectoryWithHitIdInDetector (int id, sand::subdetector_t c) const
 
const EDEPHit * GetHit (int id) const
 The hit with global index id, nullptr if it does not belong to any trajectory.
 
template<typename OutputIterator , typename F >
OutputIterator Filter (OutputIterator out_it, F &&funct) const
 Copies the trajectories satisfying funct to out_it.
 
- Public Member Functions inherited from EDEPTrajectory
 EDEPTrajectory (const TG4Trajectory &trajectory)
 
 EDEPTrajectory (const EDEPTrajectory &)=default
 
 EDEPTrajectory (EDEPTrajectory &&)=default
 
 ~EDEPTrajectory ()=default
 Destructor for EDEPTrajectory.
 
bool operator== (const EDEPTrajectory &trj) const
 Equality operator for EDEPTrajectory. More...
 
EDEPTrajectory & operator= (const EDEPTrajectory &)=default
 Assignment operator for EDEPTrajectory. More...
 
EDEPTrajectory & operator= (EDEPTrajectory &&)=default
 Move assignment operator for EDEPTrajectory. More...
 
EDEPTrajectory * Get ()
 Get a pointer to this trajectory. More...
 
const EDEPTrajectory * Get () const
 Get a const pointer to this trajectory. More...
 
EDEPTrajectory * GetParent () const
 Get the parent trajectory of this trajectory. More...
 
int GetId () const
 Get the ID of this trajectory. More...
 
int GetDepth () const
 Get the depth of this trajectory. More...
 
int GetInteractionNumber () const
 Get the number of the interaction that generated this trajectory. More...
 
std::string GetReaction () const
 Get the reaction of the interaction that generated this trajectory. More...
 
int GetParentId () const
 Get the parent ID of this trajectory. More...
 
int GetPDGCode () const
 Get the PDG code of this trajectory. More...
 
std::vector< EDEPTrajectoryPoint > & GetFirstPointsInDetector (sand::subdetector_t c)
 
const std::vector< EDEPTrajectoryPoint > & GetFirstPointsInDetector (sand::subdetector_t c) const
 
std::vector< EDEPTrajectoryPoint > & GetLastPointsInDetector (sand::subdetector_t c)
 
const std::vector< EDEPTrajectoryPoint > & GetLastPointsInDetector (sand::subdetector_t c) const
 
sand::vec_4d GetInitialMomentum () const
 Get the initial momentum of this trajectory. More...
 
trajectory_range< EDEPTrajectory > GetChildrenTrajectories ()
 
trajectory_range< const EDEPTrajectory > GetChildrenTrajectories () const
 
const EDEPHitsMap & GetHitMap () const
 Get the hit map associated with this trajectory. More...
 
const EDEPTrajectoryPoints & GetTrajectoryPoints () const
 Get the trajectory points associated with this trajectory. More...
 
std::vector< EDEPTrajectoryPoint > GetTrajectoryPointsVect () const
 Get the trajectory points associated with this trajectory. More...
 
bool HasHits () const
 
bool HasHitWithId (int id) const
 
const EDEPHit & GetHitWithId (int id) const
 Returns the hit in the trajectory with the specified ID. More...
 
bool HasHitInDetector (sand::subdetector_t c) const
 
double GetDepositedEnergy (sand::subdetector_t c) const
 Sum of the secondary deposits in c, 0 if there are no hits there. More...
 
double GetTotalEnergyDeposit (sand::subdetector_t c) const
 Sum of the total energy deposits (EDEPHit::GetEnergyDeposit) of the hits in c [MeV], 0 if there are none. More...
 
double GetTrackLength (sand::subdetector_t c) const
 Sum of the track lengths (EDEPHit::GetTrackLength) of the hits in c [mm], 0 if there are none. More...
 
bool HasHitBeforeTime (double t) const
 Checks if the trajectory has hits before a specified time. More...
 
bool HasHitAfterTime (double t) const
 Checks if the trajectory has hits after a specified time. More...
 
bool HasHitWithEnergySmallerThan (double e) const
 Checks if the trajectory has hits with energy smaller than the specified amount. More...
 
bool HasHitWithEnergyLargerThan (double e) const
 Checks if the trajectory has hits with energy larger than the specified amount. More...
 
bool HasHitInEnergy (double min, double max) const
 Checks if the trajectory has hits within a specified energy range. More...
 
bool HasHitInTimeAndEnergy (double start_time, double stop_time, double min_energy, double max_energy) const
 Checks if the trajectory has hits within a specified energy and time ranges. More...
 
bool IsTrajectorySaturated () const
 True if the trajectory reached the edep-sim limit on the number of stored points. More...
 
bool HasHitInTime (double start_time, double stop_time) const
 Checks if the trajectory has hits within a specified time range. More...
 
bool HasHitWithIdInDetector (int id, sand::subdetector_t c) const
 Checks if the trajectory has a hit with the specified ID in the specified detector sand::subdetector_t. More...
 
bool HasHitNearPoint (sand::pos_3d point, double distance) const
 Checks if any hit is within a given distance from a point. More...
 
bool HasHitNear4DPoint (sand::vec_4d point, double distance, double time) const
 Checks if any hit is within a given 4D distance (space and time) from a point. More...
 
const EDEPHit * GetHitNear4DPoint (sand::vec_4d point, double distance, double time) const
 First hit near the 4D point, nullptr if none. More...
 
std::string Print (std::string &full_out, int depth=100, int current_depth=0) const
 
bool IsEntering (sand::subdetector_t c) const
 
bool IsExiting (sand::subdetector_t c) const
 
template<typename Funct >
bool HasHitWhere (Funct &&f) const
 
template<typename Funct >
const EDEPHit * GetHitWhere (Funct &&f) const
 

Friends

class ufw::data::factory< sand::edep_reader >
 

Additional Inherited Members

- Public Types inherited from EDEPTree
using iterator = indirect_iterator< EDEPTrajectory >
 
using const_iterator = indirect_iterator< const EDEPTrajectory >
 
- Static Public Member Functions inherited from EDEPTrajectory
static bool Match (std::string_view volume, std::initializer_list< std::string > names)
 True if volume contains any of names as a substring. More...
 
- Protected Member Functions inherited from EDEPTrajectory
const EDEPHit * FindHit (int id) const
 
- Protected Attributes inherited from EDEPTrajectory
sand::vec_4d p0_ {0, 0, 0, 0}
 Initial momentum of the trajectory.
 
EDEPHitsMap hit_map_
 Map of hits associated with the trajectory.
 
EDEPTrajectoryPoints trajectory_points_
 Trajectory points.
 
std::vector< EDEPTrajectory * > children_
 Children trajectories.
 
std::array< bool, sand::kNumComponents > exiting_ {}
 Map indicating whether the trajectory is exiting a sand::subdetector_t.
 
std::array< bool, sand::kNumComponents > entering_ {}
 Map indicating whether the trajectory is entering a sand::subdetector_t.
 
std::array< std::vector< EDEPTrajectoryPoint >, sand::kNumComponents > last_points_
 Map of all the first points in each sand::subdetector_t.
 
std::array< std::vector< EDEPTrajectoryPoint >, sand::kNumComponents > first_points_
 Map of all the last points in each sand::subdetector_t.
 
EDEPTrajectory * parent_trajectory_ = nullptr
 Pointer to the parent trajectory.
 
int id_ = -1
 ID of the trajectory.
 
int parent_id_ = -99
 Parent ID of the trajectory.
 
int pdg_code_ = 0
 PDG code of the trajectory.
 
int depth_ = -1
 Depth of the trajectory.
 
int interaction_number_ = -1
 Number of the interaction that generated this trajectory.
 
std::string reaction_
 String corresponding to the reaction that generated this trajectory.
 
- Static Protected Attributes inherited from EDEPTrajectory
static constexpr std::size_t kMaxPoints = 10000
 

The documentation for this class was generated from the following file: