#include "TNamed.h"
#endif
+class TGeoMaterial;
+
+
class TFlukaMCGeometry :public TNamed {
public:
Int_t GetFlukaMaterial(Int_t imed) const;
Int_t GetLastMaterialIndex() const {return fLastMaterial;}
virtual Int_t NofVolumes() const;
-
// FLUKA specific methods
void CreateFlukaMatFile(const char *fname=0);
+ void CreatePemfFile();
void PrintHeader(ofstream &out, const char *text) const;
Bool_t IsDebugging() const {return fDebug;}
void SetDebugMode(Bool_t flag=kTRUE) {fDebug = flag;}
- void SetMreg(Int_t mreg);
+ void SetMreg(Int_t mreg, Int_t lttc);
void SetCurrentRegion(Int_t mreg, Int_t latt);
void GetCurrentRegion(Int_t &mreg, Int_t &latt) const {mreg=fCurrentRegion; latt=fCurrentLattice;}
+ Int_t GetDummyRegion() const {return fDummyRegion;}
+ Int_t GetDummyLattice() const {return kLttcVirtual;}
void SetNextRegion(Int_t mreg, Int_t latt);
void GetNextRegion(Int_t &mreg, Int_t &latt) const {mreg=fNextRegion; latt=fNextLattice;}
TGeoMaterial *GetMakeWrongMaterial(Double_t z);
static TFlukaMCGeometry* fgInstance; // singleton instance
Bool_t fDebug; // debug flag
Int_t fLastMaterial; // last FLUKA material index
+ Int_t fDummyRegion; // index of dummy region
Int_t fCurrentRegion; // current region number
Int_t fCurrentLattice; // current lattice history
Int_t fNextRegion; // next region number
Int_t fNextLattice; // next lattice history
Int_t *fRegionList; //! region list matching a given medium number
+ Int_t fIndmat; // material index where pemf file creation starts
TObjArray *fMatList; //! material list as known by FLUKA
TObjArray *fMatNames; //! list of FLUKA material names
ClassDef(TFlukaMCGeometry,1) //Virtual MonteCarlo Interface