FairRoot/PandaRoot
Functions
outdated/mpiTools/macros/gconfig/g3Config.C File Reference

Go to the source code of this file.

Functions

void Config ()
 

Function Documentation

void Config ( )

Definition at line 5 of file outdated/mpiTools/macros/gconfig/g3Config.C.

References cut, cuts, fRun, PndStack::SetMinPoints(), PndStack::StoreSecondaries(), and TString.

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(0);
24  st->StoreSecondaries(kFALSE);
25  geant3->SetStack( st ) ;
26 
27  // ******* GEANT3 specific configuration for simulated Runs *******
28  geant3->SetTRIG(1); //Number of events to be processed
29  geant3->SetSWIT(4, 100);
30  geant3->SetDEBU(0, 0, 1);
31 
32  geant3->SetRAYL(1);
33  geant3->SetSTRA(1);
34  geant3->SetAUTO(0); //Select automatic STMIN etc... calc. (AUTO 1) or manual (AUTO 0)
35  geant3->SetABAN(0); //Restore 3.16 behaviour for abandoned tracks
36  geant3->SetOPTI(2); //Select optimisation level for GEANT geometry searches (0,1,2)
37  geant3->SetERAN(5.e-7);
38  geant3->SetCKOV(1); // cerenkov photons
39  // set common stuff
40  TString configm(gSystem->Getenv("CONFIG_DIR"));
41  TString cuts = configm + "/SetCuts.C";
42  cout << "Physics cuts with script \n "<< cuts.Data() << endl;
43  Int_t cut=gROOT->LoadMacro(cuts.Data());
44  if(cut==0)gInterpreter->ProcessLine("SetCuts()");
45 
46 }
TString cuts[MAX]
Definition: autocutx.C:35
void SetMinPoints(Int_t min)
Definition: PndStack.h:171
FairRunAna * fRun
Definition: hit_dirc.C:58
double cut[MAX]
Definition: autocutx.C:36
void StoreSecondaries(Bool_t choice=kTRUE)
Definition: PndStack.h:170