#include "hspecgeompar.h" |
HSpecGeomPar
class description - source file - inheritance tree (.pdf)
public:
HSpecGeomPar(const char* name = "SpecGeomPar", const char* title = "Geometry of cave, sectors and target", const char* context = "GeomProduction", const Int_t maxSec = 6)
HSpecGeomPar(const HSpecGeomPar&)
~HSpecGeomPar()
void addCave(HGeomVolume* v)
void addSector(HGeomVolume*)
void addTarget(HGeomVolume*)
static TClass* Class()
virtual void clear()
void createTargets(const Int_t)
HGeomVolume* getCave()
Int_t getNumSectors()
Int_t getNumTargets()
HGeomVolume* getSector(const Int_t n)
Int_t getSectorIndex(const Text_t*)
HGeomShapes* getShapes()
HGeomVolume* getTarget(const Int_t n)
Int_t getTargetIndex(const Text_t*)
virtual Bool_t init(HParIo*)
virtual Bool_t init(HParIo*, Int_t*)
virtual TClass* IsA() const
Bool_t isFirstInitialization()
HSpecGeomPar& operator=(const HSpecGeomPar&)
void printParam()
void setNotFirstInit()
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
virtual Int_t write(HParIo*)
protected:
HGeomVolume* cave volume describing the cave
TObjArray* sectors array of sector volumes (type HGeomVolume)
TObjArray* targets array of target volumes (type HGeomVolume)
HGeomShapes* shapes ! pointer to the shape classes
Bool_t isFirstInit ! kTRUE before first initialization
HSpecGeomPar
Parameter container for the geometry of the cave, the sector(s) and the
target(s)
HSpecGeomPar(const char* name,const char* title,
const char* context,const Int_t maxSec)
: HParSet(name,title,context)
constructor takes a pointer to the shape classes
creates an empty array 'sectors' of size maxSec (default 0)
~HSpecGeomPar()
destructor deletes the arrays
Int_t getNumSectors()
returns the maximum index of the sectors
Int_t getNumTargets()
returns the number the targets
HGeomVolume* getSector(const Int_t n)
returns a pointer to the sector volume with index n
HGeomVolume* getTarget(const Int_t n)
returns a pointer to the target volume with index n
void createTargets(const Int_t n)
creates an empty array 'targets' of size n
if n==0 the array is deleted
void addCave(HGeomVolume* v)
void addSector(HGeomVolume* v)
Adds the given sector volume in the array 'sectors'.
The position in the array is retrieved from the name.
If the array does not exist it is created.
If the array it too small it is expanded.
void addTarget(HGeomVolume* v)
Adds the given target volume in the array 'target'.
The position in the array is retrieved from the name.
If the array does not exist it is created.
If the array it too small it is expanded.
Bool_t init(HParIo* io)
Initializes the container from the input(s) in the runtime database.
The sector or target informations have to be initialized completely from
one input. It is possible to take the sector informations from the first
input and the target informations from the second input, but it is not
possible to take the sector informations from two inputs.
Bool_t init(HParIo* inp,Int_t* set)
initializes the container from an input
Int_t write(HParIo* output)
writes the container to an output
void clear()
deletes the targets, but does not change cave and sectors
void printParam()
prints the parameters
Int_t getSectorIndex(const Text_t* name)
returns the module index retrieved from the module name SECx
Int_t getTargetIndex(const Text_t* name)
returns 0 if the target name has only 4 characters (only 1 target)
returns the index retrieved from the target name TARGxx
Inline Functions
HGeomVolume* getCave()
Bool_t isFirstInitialization()
void setNotFirstInit()
HGeomShapes* getShapes()
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
HSpecGeomPar HSpecGeomPar(const HSpecGeomPar&)
HSpecGeomPar& operator=(const HSpecGeomPar&)
Last update: 26/04/02 by Ilse Koenig
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.