18 #include "Riostream.h"
21 #include "TGeoManager.h"
22 #include "TGeoMatrix.h"
56 if (GetNumber() < ((
KVLayer*) obj)->GetNumber())
58 else if (GetNumber() > ((
KVLayer*) obj)->GetNumber())
75 static TString fDyName;
76 if (!strcmp(fName.Data(),
"")) {
77 fDyName.Form(
"Layer %d", GetNumber());
95 TGeoVolume* mother_vol = gGeoManager->MakeVolumeAssembly(GetName());
97 TIter next(GetStructures());
99 while ((det = (
KVRing*)next())) {
102 TGeoTranslation* tr =
new TGeoTranslation(0, 0, det->
GetDistance());
103 mother_vol->AddNode(det_vol, 1, tr);
116 if (!gGeoManager)
return;
119 TGeoVolume* vol = GetGeoVolume();
122 TGeoTranslation* tr =
new TGeoTranslation(0, 0, 0);
125 gGeoManager->GetTopVolume()->AddNode(vol, 1, tr);
Set of detectors at a similar distance from target (obsolete)
virtual TGeoVolume * GetGeoVolume()
Create and return TGeoVolume representing detectors in this layer.
const Char_t * GetName() const
virtual void AddToGeometry()
Construct and position a TGeoVolume shape to represent this layer in the current geometry.
Int_t Compare(const TObject *obj) const
For sorting lists of layer according to layer number.
virtual Double_t GetDistance(void) const
Ring in INDRA array (obsolete)
virtual TGeoVolume * GetGeoVolume()
Create and return TGeoVolume representing detectors in this ring.