KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVRing.h
Go to the documentation of this file.
1 #ifndef KVRING_H
2 #define KVRING_H
3 
4 #define KVR_RCPRC_CNXN 1
5 #define KVR_NORCPRC_CNXN 0
6 
7 #include "KVPosition.h"
8 #include "KVGeoStrucElement.h"
9 #include "KVList.h"
10 #include "TGeoVolume.h"
11 class KVTelescope;
12 
19 class KVRing : public KVGeoStrucElement, public KVPosition {
20 
21  void init();
22 
23 public:
24 
25  KVRing();
26  virtual ~ KVRing();
27 
28  void Add(KVBase*);
29 
31  {
32  return GetStructures();
33  }
34  KVTelescope* GetTelescope(Float_t phi) const;
35  KVTelescope* GetTelescope(const Char_t* name) const;
36 
38  {
39  return kTRUE;
40  };
41  Int_t Compare(const TObject* obj) const;
42 
43  Double_t GetSolidAngle(void) const;
44  virtual TGeoVolume* GetGeoVolume();
45  virtual void AddToGeometry();
46 
47  ClassDef(KVRing, 3)//Class representing one ring of an axially symmetric multidetector array
48 };
49 
50 #endif
int Int_t
char Char_t
bool Bool_t
double Double_t
float Float_t
const Bool_t kTRUE
#define ClassDef(name, id)
Base class for KaliVeda framework.
Definition: KVBase.h:135
Base class describing elements of array geometry.
const KVSeqCollection * GetStructures() const
Base class used for handling geometry in a multidetector array.
Definition: KVPosition.h:90
Ring in INDRA array (obsolete)
Definition: KVRing.h:19
virtual TGeoVolume * GetGeoVolume()
Create and return TGeoVolume representing detectors in this ring.
Definition: KVRing.cpp:139
const KVSeqCollection * GetTelescopes() const
Definition: KVRing.h:30
Bool_t IsSortable() const
Definition: KVRing.h:37
KVTelescope * GetTelescope(Float_t phi) const
give pointer to telescope in ring which covers azimuthal angle phi
Definition: KVRing.cpp:73
void init()
Definition: KVRing.cpp:41
void Add(KVBase *)
Only KVTelescope-derived structures can be placed in a KVRing.
Definition: KVRing.cpp:59
virtual void AddToGeometry()
Construct and position a TGeoVolume shape to represent this ring in the current geometry.
Definition: KVRing.cpp:184
Double_t GetSolidAngle(void) const
Definition: KVRing.cpp:118
KVRing()
Definition: KVRing.cpp:32
virtual ~ KVRing()
Int_t Compare(const TObject *obj) const
rings are sorted according to lower edge polar angle
Definition: KVRing.cpp:101
KaliVeda extensions to ROOT collection classes.
Associates two detectors placed one behind the other.
Definition: KVTelescope.h:35