X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=TFluka%2FTFlukaMCGeometry.h;h=5541baa4221bbf332e657fe9a2ab5b50d1e061a3;hp=ca69c1881637c6aa906e172d4f5086e3f151d282;hb=d11bf3cab53c18f0ac0e7def58436ed09c22458d;hpb=2bc4c610de1e6edb6c958e5732ef61b49411e1ad diff --git a/TFluka/TFlukaMCGeometry.h b/TFluka/TFlukaMCGeometry.h index ca69c188163..5541baa4221 100644 --- a/TFluka/TFlukaMCGeometry.h +++ b/TFluka/TFlukaMCGeometry.h @@ -26,6 +26,11 @@ class TFlukaMCGeometry : public TVirtualMCGeometry { public: + enum EFlukaLatticeTypes { + kLttcOutside = 999999999, + kLttcVirtual = 1000000000 + }; + TFlukaMCGeometry(); TFlukaMCGeometry(const char* name, const char* title); virtual ~TFlukaMCGeometry(); @@ -124,7 +129,10 @@ class TFlukaMCGeometry : public TVirtualMCGeometry { Bool_t IsDebugging() const {return fDebug;} void SetDebugMode(Bool_t flag=kTRUE) {fDebug = flag;} void SetMreg(Int_t mreg); + void SetCurrentRegion(Int_t mreg, Int_t latt); + void GetCurrentRegion(Int_t &mreg, Int_t &latt) const {mreg=fCurrentRegion; latt=fCurrentLattice;} void SetNextRegion(Int_t mreg, Int_t latt); + void GetNextRegion(Int_t &mreg, Int_t &latt) const {mreg=fNextRegion; latt=fNextLattice;} Int_t RegionId() const; void ToFlukaString(TString &str) const; @@ -138,6 +146,8 @@ class TFlukaMCGeometry : public TVirtualMCGeometry { static TFlukaMCGeometry* fgInstance; // singleton instance Bool_t fDebug; // debug flag Int_t fLastMaterial; // last FLUKA material index + 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