1 #include "KVGeoDNTrajectory.h"
2 #include "KVDetector.h"
4 #include <TPluginManager.h>
8 Int_t KVGeoDNTrajectory::fGDNTrajNumber = 0;
25 : fNodes(3, 0), fIDTelescopes(kFALSE), fPathInTitle(kTRUE), fAddToNodes(kTRUE)
37 :
KVBase(), fNodes(3, 0), fIDTelescopes(kFALSE), fPathInTitle(kTRUE), fAddToNodes(kTRUE)
63 TPluginHandler* ph =
LoadPlugin(
"KVGeoDNTrajectory", plugin);
75 void KVGeoDNTrajectory::init()
77 fIter_idx = fIter_idx_sav = -1;
79 if (fPathInTitle) SetName(Form(
"GDNTraj_%d", fGDNTrajNumber));
80 else SetTitle(Form(
"GDNTraj_%d", fGDNTrajNumber));
92 void KVGeoDNTrajectory::rebuild_title()
106 if (fPathInTitle) SetTitle(t);
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;
163 if (fPathInTitle) SetTitle(
"");
176 int idx = fNodes.GetEntries();
183 for (idx = 0; idx < N; ++idx) fNodes.AddAt(tmp[idx], idx);
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
const Char_t * GetName() const override
Name of node is same as name of associated detector.
void Copy(TObject &obj) const override