]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
methods for geometry definition with double precision overloading original ones ...
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 8 Aug 2001 10:11:09 +0000 (10:11 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 8 Aug 2001 10:11:09 +0000 (10:11 +0000)
TGeant4/TGeant4.cxx

index 6e07bda6ce4c10e5832d3c9d156a55b2040b5221..55ea2a532a6e34f730a443b5ef338ec89b8b501f 100644 (file)
@@ -15,6 +15,7 @@
 
 #include "AliDecayer.h"
 
+//_____________________________________________________________________________
 TGeant4::TGeant4(const char* name, const char* title,
                  TG4VRunConfiguration* configuration, int argc, char** argv)
   : AliMC(name, title),
@@ -51,6 +52,7 @@ TGeant4::TGeant4(const char* name, const char* title,
     new TG4Messenger(fGeometryManager, fPhysicsManager, fStepManager);
 }
     
+//_____________________________________________________________________________
 TGeant4::TGeant4(const char* name, const char* title,
                  TG4VRunConfiguration* configuration)
   : AliMC(name, title),
@@ -87,15 +89,18 @@ TGeant4::TGeant4(const char* name, const char* title,
     new TG4Messenger(fGeometryManager, fPhysicsManager, fStepManager);
 }
     
+//_____________________________________________________________________________
 TGeant4::TGeant4() {
 //
 }
 
+//_____________________________________________________________________________
 TGeant4::TGeant4(const TGeant4& right) {
 // 
   TG4Globals::Exception("TGeant4 is protected from copying.");
 }
 
+//_____________________________________________________________________________
 TGeant4::~TGeant4() {
 //
   delete fRunManager;
@@ -108,6 +113,7 @@ TGeant4::~TGeant4() {
 
 // operators
 
+//_____________________________________________________________________________
 TGeant4& TGeant4::operator=(const TGeant4& right)
 {
   // check assignement to self
@@ -122,11 +128,13 @@ TGeant4& TGeant4::operator=(const TGeant4& right)
 // methods for building/management of geometry
 // ------------------------------------------------
 
+//_____________________________________________________________________________
 void TGeant4::FinishGeometry() {
 //
   fGeometryManager->Ggclos();
 } 
 
+//_____________________________________________________________________________
 void TGeant4::Gfmate(Int_t imat, char *name, Float_t &a, Float_t &z,  
                         Float_t &dens, Float_t &radl, Float_t &absl,
                         Float_t* ubuf, Int_t& nbuf) {
@@ -135,6 +143,7 @@ void TGeant4::Gfmate(Int_t imat, char *name, Float_t &a, Float_t &z,
     ->Gfmate(imat, name, a, z, dens, radl, absl, ubuf, nbuf);
 } 
 
+//_____________________________________________________________________________
 void TGeant4::Material(Int_t& kmat, const char* name, Float_t a, 
                      Float_t z, Float_t dens, Float_t radl, Float_t absl,
                      Float_t* buf, Int_t nwbuf) {
@@ -143,6 +152,7 @@ void TGeant4::Material(Int_t& kmat, const char* name, Float_t a,
     ->Material(kmat, name, a, z, dens, radl, absl, buf, nwbuf); 
 } 
 
+//_____________________________________________________________________________
 void TGeant4::Mixture(Int_t& kmat, const char *name, Float_t *a, 
                      Float_t *z, Float_t dens, Int_t nlmat, Float_t *wmat) {
 //
@@ -150,6 +160,7 @@ void TGeant4::Mixture(Int_t& kmat, const char *name, Float_t *a,
      ->Mixture(kmat, name, a, z, dens, nlmat, wmat); 
 } 
 
+//_____________________________________________________________________________
 void TGeant4::Medium(Int_t& kmed, const char *name, Int_t nmat, 
                      Int_t isvol, Int_t ifield, Float_t fieldm, Float_t tmaxfd, 
                      Float_t stemax, Float_t deemax, Float_t epsil, 
@@ -160,6 +171,16 @@ void TGeant4::Medium(Int_t& kmed, const char *name, Int_t nmat,
         epsil, stmin, ubuf, nbuf);
 } 
 
+//_____________________________________________________________________________
+void TGeant4::Matrix(Int_t& krot, Double_t thetaX, Double_t phiX, 
+                     Double_t thetaY, Double_t phiY, Double_t thetaZ, 
+                    Double_t phiZ) {
+//                  
+  fGeometryManager
+    ->Matrix(krot, thetaX, phiX, thetaY, phiY, thetaZ, phiZ); 
+} 
+
+//_____________________________________________________________________________
 void TGeant4::Matrix(Int_t& krot, Float_t thetaX, Float_t phiX, 
                      Float_t thetaY, Float_t phiY, Float_t thetaZ, 
                     Float_t phiZ) {
@@ -168,46 +189,90 @@ void TGeant4::Matrix(Int_t& krot, Float_t thetaX, Float_t phiX,
     ->Matrix(krot, thetaX, phiX, thetaY, phiY, thetaZ, phiZ); 
 } 
 
+//_____________________________________________________________________________
 void TGeant4::Gstpar(Int_t itmed, const char *param, Float_t parval) {
 //
   fGeometryManager->Gstpar(itmed, param, parval); 
 }    
 
+//_____________________________________________________________________________
+Int_t TGeant4::Gsvolu(const char *name, const char *shape, Int_t nmed,  
+                         Double_t *upar, Int_t np)  {
+//
+  return fGeometryManager->Gsvolu(name, shape, nmed, upar, np); 
+}
+//_____________________________________________________________________________
 Int_t TGeant4::Gsvolu(const char *name, const char *shape, Int_t nmed,  
                          Float_t *upar, Int_t np)  {
 //
   return fGeometryManager->Gsvolu(name, shape, nmed, upar, np); 
 }
  
+//_____________________________________________________________________________
 void TGeant4::Gsdvn(const char *name, const char *mother, Int_t ndiv, 
                         Int_t iaxis) {
 //
   fGeometryManager->Gsdvn(name, mother, ndiv, iaxis); 
 } 
 
+//_____________________________________________________________________________
+void TGeant4::Gsdvn2(const char *name, const char *mother, Int_t ndiv, 
+                         Int_t iaxis, Double_t c0i, Int_t numed) {
+//
+  fGeometryManager->Gsdvn2(name, mother, ndiv, iaxis, c0i, numed); 
+} 
+
+//_____________________________________________________________________________
 void TGeant4::Gsdvn2(const char *name, const char *mother, Int_t ndiv, 
                          Int_t iaxis, Float_t c0i, Int_t numed) {
 //
   fGeometryManager->Gsdvn2(name, mother, ndiv, iaxis, c0i, numed); 
 } 
 
+//_____________________________________________________________________________
+void TGeant4::Gsdvt(const char *name, const char *mother, Double_t step, 
+                        Int_t iaxis, Int_t numed, Int_t ndvmx) {
+//                     
+  fGeometryManager->Gsdvt(name, mother, step, iaxis, numed, ndvmx); 
+} 
+
+//_____________________________________________________________________________
 void TGeant4::Gsdvt(const char *name, const char *mother, Float_t step, 
                         Int_t iaxis, Int_t numed, Int_t ndvmx) {
 //                     
   fGeometryManager->Gsdvt(name, mother, step, iaxis, numed, ndvmx); 
 } 
 
+//_____________________________________________________________________________
+void TGeant4::Gsdvt2(const char *name, const char *mother, Double_t step, 
+                         Int_t iaxis, Double_t c0, Int_t numed, Int_t ndvmx) { 
+//
+  fGeometryManager->Gsdvt2(name, mother, step, iaxis, c0, numed, ndvmx); 
+} 
+
+//_____________________________________________________________________________
 void TGeant4::Gsdvt2(const char *name, const char *mother, Float_t step, 
                          Int_t iaxis, Float_t c0, Int_t numed, Int_t ndvmx) { 
 //
   fGeometryManager->Gsdvt2(name, mother, step, iaxis, c0, numed, ndvmx); 
 } 
 
+//_____________________________________________________________________________
 void TGeant4::Gsord(const char *name, Int_t iax) {
 //
   fGeometryManager->Gsord(name, iax); 
 } 
 
+//_____________________________________________________________________________
+void TGeant4::Gspos(const char *name, Int_t nr, const char *mother,  
+                        Double_t x, Double_t y, Double_t z, Int_t irot, 
+                        const char *konly) {
+//
+  fGeometryManager->Gspos(name, nr, mother, x, y, z, irot, konly); 
+} 
+
+//_____________________________________________________________________________
 void TGeant4::Gspos(const char *name, Int_t nr, const char *mother,  
                         Float_t x, Float_t y, Float_t z, Int_t irot, 
                         const char *konly) {
@@ -215,6 +280,15 @@ void TGeant4::Gspos(const char *name, Int_t nr, const char *mother,
   fGeometryManager->Gspos(name, nr, mother, x, y, z, irot, konly); 
 } 
 
+//_____________________________________________________________________________
+void TGeant4::Gsposp(const char *name, Int_t nr, const char *mother,  
+                         Double_t x, Double_t y, Double_t z, Int_t irot,
+                         const char *konly, Double_t *upar, Int_t np)  {
+//
+  fGeometryManager->Gsposp(name, nr, mother, x, y, z, irot, konly, upar, np); 
+} 
+
+//_____________________________________________________________________________
 void TGeant4::Gsposp(const char *name, Int_t nr, const char *mother,  
                          Float_t x, Float_t y, Float_t z, Int_t irot,
                          const char *konly, Float_t *upar, Int_t np)  {
@@ -222,33 +296,39 @@ void TGeant4::Gsposp(const char *name, Int_t nr, const char *mother,
   fGeometryManager->Gsposp(name, nr, mother, x, y, z, irot, konly, upar, np); 
 } 
 
+//_____________________________________________________________________________
 void TGeant4::SetCerenkov(Int_t itmed, Int_t npckov, Float_t *ppckov,
                   Float_t *absco, Float_t *effic, Float_t *rindex) {
 //
   fGeometryManager->SetCerenkov(itmed, npckov, ppckov, absco, effic, rindex);
 }  
     
+//_____________________________________________________________________________
 void TGeant4::WriteEuclid(const char* fileName, const char* topVol, 
                           Int_t number, Int_t nlevel) {
 //
   fGeometryManager->WriteEuclid(fileName, topVol, number, nlevel); 
 } 
                               
+//_____________________________________________________________________________
 Int_t TGeant4::VolId(const Text_t* volName) const {
 //
   return fGeometryManager->VolId(volName); 
 } 
 
+//_____________________________________________________________________________
 const char* TGeant4::VolName(Int_t id) const {
 //
   return fGeometryManager->VolName(id); 
 }
  
+//_____________________________________________________________________________
 Int_t TGeant4::NofVolumes() const {
 //
   return fGeometryManager->NofVolumes(); 
 } 
 
+//_____________________________________________________________________________
 Int_t TGeant4::VolId2Mate(Int_t id) const {
 //
   return fGeometryManager->VolId2Mate(id); 
@@ -259,47 +339,56 @@ Int_t TGeant4::VolId2Mate(Int_t id) const {
 // methods for physics management
 // ------------------------------------------------
  
+//_____________________________________________________________________________
 void TGeant4::BuildPhysics() {
 //
   fPhysicsManager->BuildPhysics();
 }  
 
+//_____________________________________________________________________________
 void TGeant4::SetCut(const char* cutName, Float_t cutValue) { 
 //
   fPhysicsManager->SetCut(cutName, cutValue);
 }  
 
+//_____________________________________________________________________________
 void TGeant4::SetProcess(const char* flagName, Int_t flagValue) {
 //
   fPhysicsManager->SetProcess(flagName, flagValue);
 }  
  
+//_____________________________________________________________________________
 Float_t TGeant4::Xsec(char* reac, Float_t energy, Int_t part, Int_t mate) {
 //
   return fPhysicsManager->Xsec(reac, energy, part, mate);
 }  
 
+//_____________________________________________________________________________
 void TGeant4::SetExternalDecayer(AliDecayer* decayer) {
 //
   fPhysicsManager->SetExternalDecayer(decayer);
 }
 
+//_____________________________________________________________________________
 AliDecayer* TGeant4::Decayer() const {
 //
   return fPhysicsManager->Decayer(); 
 }
   
 
+//_____________________________________________________________________________
 Int_t TGeant4::IdFromPDG(Int_t pdgID) const { 
 //
   return fPhysicsManager->IdFromPDG(pdgID);
 }  
 
+//_____________________________________________________________________________
 Int_t TGeant4::PDGFromId(Int_t mcID) const {
 //
   return fPhysicsManager->PDGFromId(mcID);
 }  
 
+//_____________________________________________________________________________
 void TGeant4::DefineParticles() { 
 //
   fPhysicsManager->DefineParticles();
@@ -313,16 +402,19 @@ void TGeant4::DefineParticles() {
 // ------------------------------------------------
 
 #ifdef G4VIS_USE
+//_____________________________________________________________________________
 void TGeant4::DrawOneSpec(const char* name) {
 //
   fVisManager->DrawOneSpec(name); 
 } 
 
+//_____________________________________________________________________________
 void TGeant4::Gsatt(const char* name, const char* att, Int_t val) {
 //
   fVisManager->Gsatt(name, att, val); 
 } 
 
+//_____________________________________________________________________________
 void TGeant4::Gdraw(const char* name, Float_t theta, Float_t phi,
                        Float_t psi, Float_t u0, Float_t v0,
                        Float_t ul, Float_t vl) {
@@ -331,16 +423,19 @@ void TGeant4::Gdraw(const char* name, Float_t theta, Float_t phi,
 } 
 
 #else
+//_____________________________________________________________________________
 void TGeant4::DrawOneSpec(const char* name) {
 //
   TG4Globals:: Warning("TGeant4::DrawOneSpec(): no visualization available."); 
 } 
 
+//_____________________________________________________________________________
 void TGeant4::Gsatt(const char* name, const char* att, Int_t val) {
 //
   TG4Globals:: Warning("TGeant4::Gsatt(): no visualization available."); 
 } 
 
+//_____________________________________________________________________________
 void TGeant4::Gdraw(const char* p1, Float_t theta, Float_t phi,
                        Float_t psi, Float_t u0, Float_t v0,
                        Float_t ul, Float_t vl) {
@@ -353,41 +448,49 @@ void TGeant4::Gdraw(const char* p1, Float_t theta, Float_t phi,
 // methods for run control
 // ------------------------------------------------
 
+//_____________________________________________________________________________
 void TGeant4::Init() { 
 //
   fRunManager->Initialize();
 }  
   
+//_____________________________________________________________________________
 void TGeant4::ProcessEvent() { 
 //
   fRunManager->ProcessEvent();
 }  
 
+//_____________________________________________________________________________
 void TGeant4::ProcessRun(Int_t nofEvents) {
 //
   fRunManager->ProcessRun(nofEvents);
 }  
 
+//_____________________________________________________________________________
 void TGeant4::StartGeantUI() {
 //
   fRunManager->StartGeantUI();
 }  
 
+//_____________________________________________________________________________
 void TGeant4::StartRootUI() {
 //
   fRunManager->StartRootUI();
 }  
 
+//_____________________________________________________________________________
 void TGeant4::ProcessGeantMacro(const char* macroName) {
 //
   fRunManager->ProcessGeantMacro(macroName);
 }  
   
+//_____________________________________________________________________________
 void TGeant4::ProcessGeantCommand(const char* command) {
 //
   fRunManager->ProcessGeantCommand(command);
 }  
   
+//_____________________________________________________________________________
 Int_t TGeant4::CurrentEvent() const {
 //
   return fRunManager->CurrentEvent(); 
@@ -397,63 +500,75 @@ Int_t TGeant4::CurrentEvent() const {
 // !!! need to be transformed to common interface
 // ------------------------------------------------
     
+//_____________________________________________________________________________
 void TGeant4::Gdopt(const char* name, const char* value) {
 //
   TG4Globals:: Warning("TGeant4::Gdopt(..) is not implemented."); 
 }
 
+//_____________________________________________________________________________
 void TGeant4::SetClipBox(const char *name, Float_t xmin, Float_t xmax,
                     Float_t ymin, Float_t ymax, Float_t zmin, Float_t zmax) { 
 //
   TG4Globals:: Warning("TGeant4::SetClipBox(..) is not implemented."); 
 }
 
+//_____________________________________________________________________________
 void TGeant4::DefaultRange() { 
 //
   TG4Globals:: Warning("TGeant4::DefaultRange() is not implemented."); 
 }
 
+//_____________________________________________________________________________
 void TGeant4::Gdhead(Int_t isel, const char* name, Float_t chrsiz) { 
 //
   TG4Globals:: Warning("TGeant4::Gdhead(..) is not implemented."); 
 }
 
+//_____________________________________________________________________________
 void TGeant4::Gdman(Float_t u, Float_t v, const char* type) { 
 //
   TG4Globals:: Warning("TGeant4::Gdman(..) is not implemented."); 
 }
 
+//_____________________________________________________________________________
 void TGeant4::SetColors() { 
 //
   TG4Globals:: Warning("TGeant4::SetColours() is not implemented."); 
 }
 
+//_____________________________________________________________________________
 void TGeant4::Gtreve() { 
 //
   TG4Globals:: Warning("TGeant4::Gtreve() is not implemented."); 
 }
 
+//_____________________________________________________________________________
 void TGeant4::GtreveRoot() { 
 //
   TG4Globals:: Warning("TGeant4::GtreveRoot() is not implemented."); 
 }
 
+//_____________________________________________________________________________
 void TGeant4::Gckmat(Int_t itmed, char* natmed) { 
 //
   TG4Globals:: Warning("TGeant4::Gckmat(..) is not implemented."); 
 }
 
+//_____________________________________________________________________________
 void TGeant4::InitLego() { 
 //
   TG4Globals:: Warning("TGeant4::InitLego() is not implemented."); 
 }
 
+//_____________________________________________________________________________
 void TGeant4::Gfpart(Int_t ipart, char *name, Int_t& itrtyp,  
                     Float_t& amass, Float_t& charge, Float_t& tlife) { 
 //
   TG4Globals:: Warning("TGeant4::Gfpart(..) is not implemented."); 
 }
 
+//_____________________________________________________________________________
 void TGeant4::Gspart(Int_t ipart, const char *name, Int_t itrtyp,  
                     Float_t amass, Float_t charge, Float_t tlife) {  
 //