4 #ifndef __KVGEONAVIGATOR_H
5 #define __KVGEONAVIGATOR_H
10 #include "KVDetector.h"
11 #include <KVNameValueList.h>
94 return (KVDetector*)(gdp ? gdp->
GetDetector() :
nullptr);
102 if (
p.Contains(
Form(
"DET_%s/SUBDET_", det->GetName())) &&
n.BeginsWith(
"SUBDET_")) {
#define ClassDef(name, id)
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize id
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
char * Form(const char *fmt,...)
Base class for KaliVeda framework.
Abstract base class container for multi-particle events.
Link physical path to node in geometry with detector.
KVDetector * GetDetector() const
KVGeoDetectorPath(const Char_t *path, KVDetector *det)
Base class for propagation of particles through array geometry.
virtual void AddPointToCurrentTrack(Double_t, Double_t, Double_t)
void FormatStructureName(const Char_t *type, Int_t number, KVString &name)
Bool_t IsTracking() const
const Char_t * GetDetectorNameFormat() const
TGeoHMatrix fCurrentMatrix
current global transformation matrix
void SetDetectorNameFormat(const Char_t *fmt)
void PropagateEvent(KVEvent *, TVector3 *TheOrigin=0)
const TGeoHMatrix * GetCurrentMatrix() const
Returns pointer to internal copy of current global transformation matrix.
void AbsorbDetectorPaths(KVGeoNavigator *GN)
TClonesArray fCurrentStructures
list of current structures deduced from path
TString fCurrentPath
current full path to physical node
void FormatDetectorName(const Char_t *basename, KVString &name)
TGeoNode * fCurrentDetectorNode
node for current detector
void ExtractDetectorNameFromPath(KVString &)
KVUniqueNameList fDetectorPaths
correspondance between physical node and detector objects
void PrintDetectorPaths()
TGeoNode * GetCurrentNode() const
TGeoNode * fMotherNode
mother node of current node
void SetTracking(Bool_t on=kTRUE)
KVGeoNavigator(TGeoManager *)
Constructor. Call with pointer to geometry.
Double_t GetStepSize() const
KVNameValueList fStrucNameFmt
list of user-defined formats for structure names
KVDetector * GetDetectorFromPath(const TString &p)
const TClonesArray & CurrentStructures() const
void SetNameCorrespondanceList(const Char_t *)
TVector3 fExitPoint
position of particle on exiting volume
TEnv * fDetStrucNameCorrespList
list(s) of correspondance for renaming structures/detectors
void SetStopPropagation(Bool_t stop=kTRUE)
virtual void PropagateParticle(KVNucleus *, TVector3 *TheOrigin=0)
Int_t fTrackID
track counter
TGeoVolume * GetCurrentDetectorNameAndVolume(KVString &, Bool_t &, Bool_t &segmented)
Bool_t fTracking
set to true when tracking particles
TGeoNode * GetCurrentDetectorNode() const
virtual void ParticleEntersNewVolume(KVNucleus *)
TString GetCurrentPath() const
TGeoVolume * GetCurrentVolume() const
Bool_t GetNameCorrespondance(const Char_t *, TString &)
Double_t fStepSize
distance to travel in volume
TGeoManager * fGeometry
geometry to navigate
Bool_t StopPropagation() const
TGeoNode * fCurrentNode
current node
Int_t GetSubDetectorFromPathAndNodeName(KVDetector *det, const TString &p, const TString &n)
virtual ~KVGeoNavigator()
Destructor.
TVector3 fEntryPoint
position of particle on entering volume
KVString fDetNameFmt
user-defined format for detector names
Int_t fCurStrucNumber
number of current parent structures
void ResetTrackID(Int_t id=0)
TGeoVolume * fCurrentVolume
current volume
const TVector3 & GetExitPoint() const
void SetStructureNameFormat(const Char_t *type, const Char_t *fmt)
const TVector3 & GetEntryPoint() const
TGeoManager * GetGeometry() const
void DrawTracks(KVNumberList *=nullptr)
Bool_t fStopPropagation
flag set by user when particle propagation should stop
Handles lists of named parameters with different types, a list of KVNamedParameter objects.
Description of properties and kinematics of atomic nuclei.
Strings used to represent a set of ranges of values.
TObject * FindObject(const char *name) const override
void SetOwner(Bool_t enable=kTRUE) override
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Optimised list in which named objects can only be placed once.
virtual void AddAll(const TCollection *col)
const char * GetName() const override
const char * Data() const
TString & Remove(EStripType s, char c)