1 #include "KVGeoDNTrajectory.h"
2 #include "KVDetector.h"
8 Int_t KVGeoDNTrajectory::fGDNTrajNumber = 0;
25 : fNodes(3, 0), fIDTelescopes(
kFALSE), fPathInTitle(
kTRUE), fAddToNodes(
kTRUE)
75 void KVGeoDNTrajectory::init()
77 fIter_idx = fIter_idx_sav = -1;
79 if (fPathInTitle)
SetName(
Form(
"GDNTraj_%d", fGDNTrajNumber));
92 void KVGeoDNTrajectory::rebuild_title()
115 void KVGeoDNTrajectory::increment_identified_particle_counters(
int identified,
int unidentified)
const
136 CastedObj.fAddToNodes = fAddToNodes;
138 fIDTelescopes.
Copy(CastedObj.fIDTelescopes);
139 CastedObj.fPathInTitle = fPathInTitle;
148 if (&t !=
this) t.
Copy(*
this);
162 fIter_idx = fIter_idx_sav = -1;
183 for (idx = 0; idx <
N; ++idx) fNodes.
AddAt(tmp[idx], idx);
char * Form(const char *fmt,...)
Base class for KaliVeda framework.
virtual void SetNumber(UInt_t num)
void Copy(TObject &) const override
Make a copy of this object.
static TPluginHandler * LoadPlugin(const Char_t *base, const Char_t *uri="0")
void IncrementIdentifiedParticles(Int_t n=1)
void IncrementUnidentifiedParticles(Int_t n=1)
Path taken by particles through multidetector geometry.
KVGeoDNTrajectory()
Default constructor.
KVGeoDetectorNode * GetNextNode() const
void Clear(Option_t *="") override
Clear list of nodes in trajectory.
void ReverseOrder()
Reverse the order of the nodes in the trajectory.
void AddLast(KVGeoDetectorNode *n)
void AddToNodes()
Add reference to this trajectory to all nodes on it.
void IterateFrom(const KVGeoDetectorNode *node0=nullptr) const
void Copy(TObject &obj) const override
virtual ~KVGeoDNTrajectory()
Destructor.
KVGeoDNTrajectory & operator=(const KVGeoDNTrajectory &)
Information on relative positions of detectors & particle trajectories.
void AddTrajectory(KVGeoDNTrajectory *)
KVDetector * GetDetector() const
void Copy(TObject &obj) const override
virtual void SetTitle(const char *title="")
virtual void SetName(const char *name)
void AddAt(TObject *obj, Int_t idx) override
void Clear(Option_t *option="") override
Int_t GetEntries() const override
Longptr_t ExecPlugin(int nargs)