4 #include "KVGeoStrucElement.h"
5 #include "KVDetector.h"
16 void KVGeoStrucElement::init()
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");
114 dummy.
AddAll(&fStructures);
118 if (!strcmp(
type,
e->GetType()) || !strcmp(
type,
"")) {
120 if (fStructures.
IsOwner())
delete e;
124 dummy.
Clear(
"nodelete");
143 fDetectors.
Add(element);
144 dynamic_cast<KVDetector*
>(element)->AddParentStructure(
this);
147 fStructures.
Add(element);
167 fDetectors.
Remove(element);
168 dynamic_cast<KVDetector*
>(element)->RemoveParentStructure(
this);
171 fStructures.
Remove(element);
190 fParentStrucList.
Clear();
343 if (strcmp(
name,
"")) {
364 cout <<
"DETECTORS : " << endl << endl;
368 while ((
d = next())) {
370 cout <<
" " <<
d->GetName() << endl;
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t UChar_t Atom_t typelist
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
Base class for KaliVeda framework.
virtual const Char_t * GetType() const
Base class for detector geometry description, interface to energy-loss calculations.
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 Clear(Option_t *opt="") override
Empty lists of detectors, daughter structures, and parent structures.
void Print(Option_t *option="") const override
virtual KVDetector * GetDetector(const Char_t *name) const
Return detector in this structure with given name.
const KVSeqCollection * GetDetectors() const
ParentClass * GetParentStructure() const
virtual void Remove(KVBase *)
KVSeqCollection * GetDetectorTypeList(const Char_t *type) const
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 ClearStructures(const Char_t *type="")
KVSeqCollection * GetDetectorNameList(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.
KVSeqCollection * GetSubListWithName(const Char_t *retvalue) const
TObject * Remove(TObject *obj) override
Remove object from list.
TObject * FindObject(const char *name) const override
KVSeqCollection * GetSubListWithType(const Char_t *retvalue) const
void Clear(Option_t *option="") override
virtual TObject * FindObjectByType(const Char_t *) const
virtual TObject * FindObjectWithNameAndType(const Char_t *name, const Char_t *type) const
void Add(TObject *obj) override
virtual void AddAll(const TCollection *col)
void Clear(Option_t *option="") override
const char * GetName() const override
virtual const char * ClassName() const
virtual Bool_t InheritsFrom(const char *classname) const
static Int_t IncreaseDirLevel()
static void IndentLevel()
static Int_t DecreaseDirLevel()
void Error(UserClass p, const char *location, const char *va_(fmt),...)