3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
11 class AliALIFE : public TObject {
13 AliALIFE(const char *name1, const char *name2);
15 AliALIFE(const AliALIFE &rhs);
17 virtual ~AliALIFE() {}
18 void Cylinder(Float_t rmin, Float_t rmax,
19 Float_t zmin, Float_t zmax,
22 const char* Field="MF",
23 const char* Cuts="$UNSHIELDED");
24 void OnionCylinder(Float_t* r, Int_t nr, Float_t zmin, Float_t zmax,
26 const char** Materials,
27 const char** Fields=0,
30 void Cone(Float_t rmin1, Float_t rmin2,
31 Float_t rmax1, Float_t rmax2,
32 Float_t zmin, Float_t zmax,
35 const char* Field="MF",
36 const char* Cuts="$UNSHIELDED");
38 void OnionCone(Float_t* r1, Float_t* r2, Int_t nr,
39 Float_t zmin, Float_t zmax,
41 const char** Materials,
42 const char** Fields=0,
45 void PolyCone(Float_t* rmin, Float_t* rmax, Float_t* z, Int_t nz,
48 const char* Field="MF",
49 const char* Cuts="$UNSHIELDED");
51 void OnionPolyCone(Float_t** r , Float_t* z, Int_t nr, Int_t nz,
53 const char** Materials,
54 const char** Fields=0,
57 void Comment(const char* Comment);
59 void Finish(Bool_t remove = 0);
61 void SetDefaultVolume(TString vol1, TString vol2)
62 {fDefaultVolume1=vol1; fDefaultVolume2=vol2;}
64 void SetDefaultVolume(TString vol)
65 {fDefaultVolume1=vol;}
68 Int_t fNBodies; // current number of bodies
69 Int_t fNVolumes; // current number of volumes
70 TString fBodyFile; // File for Fluka bodies
71 TString fVolumeFile; // File for Fluka volumes
72 FILE *fFile1; // ! output file for fluka geometry in ALIFE format
73 FILE *fFile2; // ! scratch file
74 TString fDefaultVolume1; // default external volume 1
75 TString fDefaultVolume2; // default external volume 2
79 void Copy(TObject &alife) const;
81 AliALIFE & operator = (const AliALIFE &rhs) {