19 fStructures.SetOwner();
20 fStructures.SetCleanup();
21 fDetectors.SetCleanup();
22 fParentStrucList.SetCleanup();
31 fParentStrucList.Add(
e);
40 fParentStrucList.Remove(
e);
93 if (!strcmp(
type,
d->GetType()) || !strcmp(
type,
"")) {
99 dummy.
Clear(
"nodelete");
118 if (!strcmp(
type,
e->GetType()) || !strcmp(
type,
"")) {
124 dummy.
Clear(
"nodelete");
146 else if (element->
InheritsFrom(KVGeoStrucElement::Class())) {
151 Error(
"Add",
"Cannot add elements of class %s", element->
ClassName());
170 else if (element->
InheritsFrom(KVGeoStrucElement::Class())) {
175 Error(
"Add",
"Cannot add elements of class %s", element->
ClassName());
327 if (strcmp(name,
"")) {
348 cout <<
"DETECTORS : " << endl << endl;
352 while ((
d = next())) {
354 cout <<
" " <<
d->GetName() << endl;
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
Base class for KaliVeda framework.
virtual const Char_t * GetType() const
Base class for detector geometry description.
virtual Bool_t Fired(Option_t *opt="any") const
Base class describing elements of array geometry.
virtual Bool_t Fired(Option_t *opt="any") const
void RemoveParentStructure(KVGeoStrucElement *)
KVUniqueNameList fDetectors
detectors in this structure element
void Print(Option_t *option="") const
void AddParentStructure(KVGeoStrucElement *)
KVDetector * GetDetector(const Char_t *name) const
Return detector in this structure with given name.
KVUniqueNameList fStructures
daughter structures
const KVSeqCollection * GetDetectors() const
virtual void Remove(KVBase *)
KVSeqCollection * GetDetectorTypeList(const Char_t *type) const
KVUniqueNameList fParentStrucList
parent structures
const KVSeqCollection * GetStructures() const
KVDetector * GetDetectorAny(const Char_t *name)
KVGeoStrucElement()
Default constructor.
virtual void Add(KVBase *)
virtual ~KVGeoStrucElement()
Destructor.
KVSeqCollection * GetStructureTypeList(const Char_t *type) const
KVGeoStrucElement * GetStructure(const Char_t *name) const
void Clear(Option_t *opt="")
Empty lists of detectors, daughter structures, and parent structures.
void ClearStructures(const Char_t *type="")
void init()
Default initialisations.
KVGeoStrucElement * GetParentStructure(const Char_t *type, const Char_t *name="") const
void ClearDetectors(const Char_t *type="")
KVDetector * GetDetectorByType(const Char_t *type) const
Return detector in this structure with given type.
KaliVeda extensions to ROOT collection classes.
virtual void Clear(Option_t *option="")
KVSeqCollection * GetSubListWithType(const Char_t *retvalue) const
virtual TObject * FindObjectByType(const Char_t *) const
virtual TObject * FindObjectWithNameAndType(const Char_t *name, const Char_t *type) const
virtual TObject * Remove(TObject *obj)
Remove object from list.
virtual TObject * FindObject(const char *name) const
virtual void Add(TObject *obj)
virtual void AddAll(const TCollection *col)
virtual void Clear(Option_t *option="")
virtual const char * GetName() const
virtual const char * ClassName() const
virtual Bool_t InheritsFrom(const char *classname) const
virtual void Error(const char *method, const char *msgfmt,...) const
static Int_t IncreaseDirLevel()
static void IndentLevel()
static Int_t DecreaseDirLevel()