FairRoot/PandaRoot
g3ConfigNoMC.C
Go to the documentation of this file.
1 // $Id: g3Config.C,v 1.1.1.1 2005/06/23 07:14:09 dbertini Exp $
2 //
3 // Configuration macro for Geant3 VirtualMC
4 
5 void Config()
6 {
7  FairRunSim *fRun = FairRunSim::Instance();
8  TString* gModel = fRun->GetGeoModel();
9  TGeant3* geant3 = NULL;
10  if ( strncmp(gModel->Data(),"TGeo",4) == 0 ) {
11  geant3
12  = new TGeant3TGeo("C++ Interface to Geant3");
13  cout << "-I- G3Config: Geant3 with TGeo has been created."
14  << endl;
15  }else{
16  geant3
17  = new TGeant3("C++ Interface to Geant3");
18  cout << "-I- G3Config: Geant3 native has been created."
19  << endl;
20  }
21  // create Cbm Specific Stack
22  PndStack *st = new PndStack();
23  st->SetMinPoints(1);
24  st->SetPersistence(false);
25  st->StoreSecondaries(kTRUE);
26  geant3->SetStack( st ) ;
27 
28  // ******* GEANT3 specific configuration for simulated Runs *******
29  geant3->SetTRIG(1); //Number of events to be processed
30  geant3->SetSWIT(4, 100);
31  geant3->SetDEBU(0, 0, 1);
32 
33  geant3->SetRAYL(1);
34  geant3->SetSTRA(0);
35  geant3->SetAUTO(0); //Select automatic STMIN etc... calc. (AUTO 1) or manual (AUTO 0)
36  geant3->SetABAN(0); //Restore 3.16 behaviour for abandoned tracks
37  geant3->SetOPTI(2); //Select optimisation level for GEANT geometry searches (0,1,2)
38  geant3->SetERAN(5.e-7);
39  geant3->SetCKOV(0); // cerenkov photons
40  // set common stuff
41 }
42 
43 
void SetMinPoints(Int_t min)
Definition: PndStack.h:171
FairRunAna * fRun
Definition: hit_dirc.C:58
void SetPersistence(Bool_t choice)
Definition: PndStack.h:174
void StoreSecondaries(Bool_t choice=kTRUE)
Definition: PndStack.h:170