|
| | EDEPTree () |
| | Constructor for the EDEPTree class.
|
| |
|
iterator | begin () |
| |
|
const_iterator | begin () const |
| |
|
iterator | end () |
| |
|
const_iterator | end () const |
| |
| void | InizializeFromEdep (const TG4Event &edep_event, TGeoManager *geo) |
| | Initializes the tree from a TG4Event and TGeoManager.
|
| |
| void | InizializeFromTrj (const std::vector< EDEPTrajectory > &trajectories_vect) |
| | Initializes the tree from a vector of trajectories.
|
| |
| void | AddTrajectory (const EDEPTrajectory &trajectory) |
| | Adds a trajectory to the tree.
|
| |
| void | AddTrajectoryTo (const EDEPTrajectory &trajectory, iterator it) |
| | Adds a trajectory to the tree at a specified position.
|
| |
| void | RemoveTrajectory (int trj_id) |
| | Removes a trajectory from the tree.
|
| |
| void | RemoveTrajectoryFrom (int trj_id, iterator it) |
| | Removes a trajectory from the tree at a specified position.
|
| |
| void | MoveTrajectoryTo (int id_to_move, int next_parent_id) |
| | Moves a trajectory to a new parent trajectory.
|
| |
| bool | HasTrajectory (int trj_id) const |
| | Checks if the tree contains a trajectory with the given ID.
|
| |
| bool | IsTrajectoryIn (int trj_id, iterator it) |
| | Checks if a trajectory is in a specified subtree.
|
| |
| bool | IsTrajectoryIn (int trj_id, const_iterator it) const |
| | Checks if a trajectory is in a specified subtree.
|
| |
|
iterator | GetTrajectory (int trj_id) |
| |
|
const_iterator | GetTrajectory (int trj_id) const |
| |
| iterator | GetParentOf (int trj_id) |
| | Retrieves the parent trajectory of a trajectory with the given ID.
|
| |
| const_iterator | GetParentOf (int trj_id) const |
| | Retrieves the parent trajectory of a trajectory with the given ID.
|
| |
| iterator | GetParentOf (int trj_id, iterator it) |
| | Retrieves the parent trajectory of a trajectory with the given ID within a specified subtree.
|
| |
| const_iterator | GetParentOf (int trj_id, const_iterator it) const |
| | Retrieves the parent trajectory of a trajectory with the given ID within a specified subtree.
|
| |
| iterator | GetTrajectoryFrom (int trj_id, iterator it) |
| | Retrieves the iterator to the trajectory with the given ID within a specified subtree.
|
| |
| const_iterator | GetTrajectoryFrom (int trj_id, const_iterator it) const |
| | Retrieves the iterator to the trajectory with the given ID within a specified subtree.
|
| |
| iterator | GetTrajectoryEnd (iterator start) |
| | Retrieves the iterator to the end of the subtree starting from the specified iterator position.
|
| |
| const_iterator | GetTrajectoryEnd (const_iterator start) const |
| | Retrieves the iterator to the end of the subtree starting from the specified iterator position.
|
| |
| iterator | GetTrajectoryWithHitId (int id) |
| | Returns an iterator to the trajectory containing a hit with the specified ID.
|
| |
| const_iterator | GetTrajectoryWithHitId (int id) const |
| | Returns a const iterator to the trajectory containing a hit with the specified ID.
|
| |
| iterator | GetTrajectoryWithHitIdInDetector (int id, component component_name) |
| | Retrieves the iterator to the trajectory containing a hit with the given ID in the specified detector component.
|
| |
| const_iterator | GetTrajectoryWithHitIdInDetector (int id, component component_name) const |
| | Retrieves the iterator to the trajectory containing a hit with the given ID in the specified detector component.
|
| |
| template<typename OutputIterator, typename F> |
| OutputIterator | Filter (OutputIterator out_it, F &&funct) |
| | Filter trajectories based on a custom predicate and copy the results to an output iterator.
|
| |
|
| EDEPTrajectory (const TG4Trajectory &trajectory) |
| |
| | EDEPTrajectory (const TG4Trajectory &trajectory, const std::map< int, std::map< component, std::vector< EDEPHit > > > &hit_map, const TG4PrimaryVertexContainer &primaries, TGeoManager *geo) |
| | Constructs an EDEPTrajectory object from a TG4Trajectory and hit information.
|
| |
| | EDEPTrajectory (const EDEPTrajectory &trj) |
| | Copy constructor for the EDEPTrajectory class.
|
| |
| | EDEPTrajectory (EDEPTrajectory &&trj) |
| | Copy assignment operator for the EDEPTrajectory class.
|
| |
|
| ~EDEPTrajectory () |
| | Destructor for EDEPTrajectory.
|
| |
| bool | operator== (const EDEPTrajectory &trj) |
| | Equality operator for EDEPTrajectory.
|
| |
| EDEPTrajectory & | operator= (const EDEPTrajectory &trj) |
| | Assignment operator for EDEPTrajectory.
|
| |
| EDEPTrajectory & | operator= (EDEPTrajectory &&trj) |
| | Move assignment operator for EDEPTrajectory.
|
| |
| EDEPTrajectory * | Get () |
| | Get a pointer to this trajectory.
|
| |
| const EDEPTrajectory * | Get () const |
| | Get a const pointer to this trajectory.
|
| |
| EDEPTrajectory * | GetParent () const |
| | Get the parent trajectory of this trajectory.
|
| |
| int | GetId () const |
| | Get the ID of this trajectory.
|
| |
| int | GetDepth () const |
| | Get the depth of this trajectory.
|
| |
| int | GetInteractionNumber () const |
| | Get the number of the interaction that generated this trajectory.
|
| |
| std::string | GetReaction () const |
| | Get the reaction of the interaction that generated this trajectory.
|
| |
| int | GetParentId () const |
| | Get the parent ID of this trajectory.
|
| |
| int | GetPDGCode () const |
| | Get the PDG code of this trajectory.
|
| |
|
std::vector< EDEPTrajectoryPoint > & | GetFirstPointsInDetector (component component_name) |
| |
|
std::vector< EDEPTrajectoryPoint > & | GetLastPointsInDetector (component component_name) |
| |
| TLorentzVector | GetInitialMomentum () const |
| | Get the initial momentum of this trajectory.
|
| |
| std::vector< EDEPTrajectory > & | GetChildrenTrajectories () |
| | Get the children trajectories of this trajectory.
|
| |
| const std::vector< EDEPTrajectory > & | GetChildrenTrajectories () const |
| | Get the const children trajectories of this trajectory.
|
| |
| const EDEPHitsMap & | GetHitMap () const |
| | Get the hit map associated with this trajectory.
|
| |
| const EDEPTrajectoryPoints & | GetTrajectoryPoints () const |
| | Get the trajectory points associated with this trajectory.
|
| |
| std::vector< EDEPTrajectoryPoint > | GetTrajectoryPointsVect () const |
| | Get the trajectory points associated with this trajectory.
|
| |
| std::vector< EDEPTrajectoryPoint > | GetTrajectoryPointsInComponentVect (component component_name) const |
| | Get a time-ordered vector of the trajectory points associated with this trajectory, in the specified component.
|
| |
| void | SetId (int id) |
| | Set the ID of this trajectory.
|
| |
| void | SetDepth (int depth) |
| | Set the depth of this trajectory.
|
| |
| void | SetParentId (int parent_id) |
| | Set the parent ID of this trajectory.
|
| |
| void | SetParent (EDEPTrajectory *parent_trajectory) |
| | Set the parent trajectory of this trajectory.
|
| |
| void | AddChild (const EDEPTrajectory &trajectory) |
| | Add a child trajectory to this trajectory.
|
| |
| bool | RemoveChildWithId (int child_id) |
| | Removes a child trajectory with the given ID.
|
| |
|
void | ComputeDepth () |
| | Computes the depth of the trajectory in the tree.
|
| |
|
bool | HasHits () const |
| |
| bool | HasHitWithId (int id) const |
| | Checks if any hit in the trajectory has the specified ID.
|
| |
| bool | HasHitInDetector (component component_name) const |
| | Checks if the trajectory has hits in the specified detector component.
|
| |
|
std::vector< EDEPHit > | GetHitsInDetector (component component_name) const |
| |
|
double | GetPrimaryDepositedEnergy (component component_name) |
| |
| double | GetDepositedEnergy (component component_name) |
| | Calculates the total deposited energy in the specified detector component.
|
| |
| double | GetTotalDepositedEnergy () |
| | Calculates the total deposited energy ove all components.
|
| |
| double | GetRecursivePrimaryDepositedEnergy (component component_name) |
| | Calculates the total (scintillation + other) deposited energy in the specified detector component by a trajectory and all its children.
|
| |
| double | GetRecursiveDepositedEnergy (component component_name) |
| | Calculates the deposited energy from scintillation in the specified detector component by a trajectory and all its children.
|
| |
| double | GetTotalRecursiveDepositedEnergy () |
| | Calculates the deposited energy from scintillation over all components.
|
| |
| bool | HasHitBeforeTime (double start_time) const |
| | Checks if the trajectory has hits before a specified time.
|
| |
| bool | HasHitAfterTime (double stop_time) const |
| | Checks if the trajectory has hits after a specified time.
|
| |
| bool | IsTrajectorySaturated () const |
| | Checks if the trajectory is saturated (i.e., has reached the maximum number of points).
|
| |
| bool | HasHitInTime (double start_time, double stop_time) const |
| | Checks if the trajectory has hits within a specified time range.
|
| |
| bool | HasHitWithIdInDetector (int id, component component_name) const |
| | Checks if the trajectory has a hit with the specified ID in the specified detector component.
|
| |
| bool | HasHitNearPoint (TVector3 point, double distance) const |
| | Checks if any hit is within a given distance from a point.
|
| |
| bool | HasHitNear4DPoint (TLorentzVector point, double distance, double time) const |
| | Checks if any hit is within a given 4D distance (space and time) from a point.
|
| |
| std::vector< EDEPHit >::iterator | GetHitNear4DPoint (TLorentzVector point, double distance, double time) |
| | Returns an iterator to the hit near a given 4D point (space and time).
|
| |
| std::string | Print (std::string &full_out, int depth=100, int current_depth=0) const |
| | Prints the trajectory information to stdout and stores it in a string.
|
| |
| bool | IsEntering (component component_name) const |
| | Checks if the trajectory is entering the specified detector component.
|
| |
| bool | IsExiting (component component_name) const |
| | Checks if the trajectory is exiting the specified detector component.
|
| |
| component | GetStartDetector () const |
| | Retrieves the component containing the first point of the trajectory.
|
| |
| bool | StartsInDetector (component component_name) const |
| | Checks if the trajectory has its first TrajectoryPoint in the specified component.
|
| |
|
template<typename Funct> |
| bool | HasHitWhere (Funct &&f) const |
| |
|
template<typename Funct> |
| std::vector< EDEPHit >::iterator | GetHitWhere (Funct &&f) |
| |
| bool | Match (std::string volume, std::initializer_list< std::string > names) const |
| | Matches a given volume name against a list of names.
|
| |
| void | CheckInNext (bool *in, bool *next, TG4TrajectoryPoint it, TG4TrajectoryPoint next_it) |
| | Checks for transitions between detector components in a particle trajectory.
|
| |
Represents a tree structure of trajectories.
This class extends EDEPTrajectory to organize trajectories in a tree structure. It provides iterators for traversing the tree, as well as functions for adding, removing, and manipulating trajectories within the tree.