4#ifndef __KVGEOSTRUCELEMENT_H
5#define __KVGEOSTRUCELEMENT_H
8#include "KVUniqueNameList.h"
89 if (det !=
nullptr)
return kTRUE;
#define ClassDef(name, id)
Base class for KaliVeda framework.
Base class for detector geometry description.
Base class describing elements of array geometry.
virtual Bool_t Fired(Option_t *opt="any") const
const KVSeqCollection * GetStructures() const
void SortStructures(Bool_t order=kSortAscending)
void SetOwnsDetectors(Bool_t yes=kTRUE)
void RemoveParentStructure(KVGeoStrucElement *)
KVUniqueNameList fDetectors
detectors in this structure element
virtual Bool_t Contains(KVBase *name) const
void Sort(Bool_t order=kSortAscending)
void Print(Option_t *option="") const
void SortDetectors(Bool_t order=kSortAscending)
void AddParentStructure(KVGeoStrucElement *)
KVGeoStrucElement * GetStructure(const Char_t *name) const
KVDetector * GetDetector(const Char_t *name) const
Return detector in this structure with given name.
KVUniqueNameList fStructures
daughter structures
bool OwnsDetectors() const
KVSeqCollection * GetDetectors()
virtual void Remove(KVBase *)
KVSeqCollection * GetDetectorTypeList(const Char_t *type) const
KVUniqueNameList fParentStrucList
parent structures
KVDetector * GetDetectorAny(const Char_t *name)
void SetOwnsDaughters(Bool_t yes=kTRUE)
KVGeoStrucElement()
Default constructor.
virtual ~KVGeoStrucElement()
Destructor.
KVSeqCollection * GetStructureTypeList(const Char_t *type) const
void Clear(Option_t *opt="")
Empty lists of detectors, daughter structures, and parent structures.
void ClearStructures(const Char_t *type="")
const KVSeqCollection * GetParents() const
void init()
Default initialisations.
KVSeqCollection * GetDetectorNameList(const Char_t *name) const
KVGeoStrucElement * GetParentStructure(const Char_t *type, const Char_t *name="") const
bool OwnsDaughters() const
void ClearDetectors(const Char_t *type="")
const KVSeqCollection * GetDetectors() const
KVDetector * GetDetectorByType(const Char_t *type) const
Return detector in this structure with given type.
void Sort(Bool_t order=kSortAscending)
KaliVeda extensions to ROOT collection classes.
virtual TObject * FindObject(const char *name) const
virtual void SetOwner(Bool_t enable=kTRUE)
Optimised list in which named objects can only be placed once.
virtual TObject * FindObject(const char *name) const