4#include "KVGeoDetectorNode.h"
5#include "KVGeoDNTrajectory.h"
7#include "KVUniqueNameList.h"
147 std::cout <<
"Detector Node " <<
GetName() << std::endl;
149 std::cout <<
"In front:" << std::endl;
153 std::cout <<
"Behind:" << std::endl;
157 std::cout <<
"Trajectories:" << std::endl;
407 TList newTrajectories;
423 newTrajectories.
Add(newTraj);
430 list->
AddAll(&newTrajectories);
Base class for KaliVeda framework.
Base class for detector geometry description.
KVGeoDetectorNode * GetNode()
Path taken by particles through multidetector geometry.
Bool_t EndsAt(const Char_t *node_name) const
Bool_t BeginsAt(const Char_t *node_name) const
Information on relative positions of detectors & particle trajectories.
Bool_t IsInFrontOf(KVDetector *)
return true if this node is directly in front of the detector
void CalculateForwardsTrajectories()
Fill list with all trajectories going forwards from this node.
void BuildTrajectoriesForwards(TSeqCollection *)
void AddTrajectory(KVGeoDNTrajectory *)
void AddInFront(KVDetector *)
KVGeoDetectorNode()
Default constructor.
KVSeqCollection * fTrajB
list of trajectories passing through this node going backwards
const Char_t * GetName() const
Name of node is same as name of associated detector.
KVGeoDNTrajectory * FindTrajectory(const char *title) const
KVSeqCollection * GetForwardTrajectories() const
KVSeqCollection * GetTrajectories() const
KVDetector * fDetector
associated detector
KVDetector * GetDetector() const
Int_t fNTraj
number of trajectories passing through this node
Int_t fNTrajForwards
number of trajectories going forwards from this node
void ls(Option_t *option="") const
Int_t GetNTrajBackwards() const
Int_t fNTrajBackwards
number of trajectories going backwards from this node
KVSeqCollection * fBehind
list of detectors behind
Int_t GetNTraj() const
Returns number of trajectories passing through this node.
KVSeqCollection * GetBackwardTrajectories() const
Int_t GetNDetsBehind() const
Returns number of detectors directly behind this one.
Int_t GetNDetsInFront() const
Returns number of detectors directly in front of this one.
KVSeqCollection * fInFront
list of detectors in front
virtual ~KVGeoDetectorNode()
Destructor.
Int_t GetNTrajForwards() const
void SetDetector(KVDetector *)
void AddBehind(KVDetector *)
KVSeqCollection * fTrajF
list of trajectories passing through this node going forwards
Bool_t IsBehind(KVDetector *)
return true if this node is directly behind the detector
void CalculateBackwardsTrajectories()
Fill list with all trajectories going backwards from this node.
KVSeqCollection * fTraj
list of trajectories passing through this node
KaliVeda extensions to ROOT collection classes.
virtual TObject * FindObject(const char *name) const
virtual void SetCleanup(Bool_t enable=kTRUE)
virtual TObject * FindObjectByNumber(UInt_t num) const
virtual TObject * FindObjectByTitle(const Char_t *) const
Will return object with given title (value of TObject::GetTitle() method).
virtual void Add(TObject *obj)
Optimised list in which named objects can only be placed once.
virtual void Print(Option_t *option, const char *wildcard, Int_t recurse=1) const
virtual void AddAll(const TCollection *col)
virtual Int_t GetEntries() const
void Add(TObject *obj) override
const char * GetName() const override
void Add(TObject *obj) override