EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
g3Config.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file g3Config.C
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 {
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  // FIXME: these printouts crash in Jana plugin mode;
14  //@@@cout << "-I- G3Config: Geant3 with TGeo has been created." << endl;
15  }else{
16  geant3
17  = new TGeant3("C++ Interface to Geant3");
18  // FIXME: these printouts crash in Jana plugin mode;
19  //@@@cout << "-I- G3Config: Geant3 native has been created." << endl;
20  }
21  // create Cbm Specific Stack
22  PndStack *st = new PndStack();
23  st->SetMinPoints(1);
24  st->StoreSecondaries(kTRUE);
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->SetHADR(1);
33 
34  geant3->SetRAYL(1);
35  geant3->SetSTRA(0);
36  geant3->SetAUTO(0); //Select automatic STMIN etc... calc. (AUTO 1) or manual (AUTO 0)
37  geant3->SetABAN(0); //Restore 3.16 behaviour for abandoned tracks
38  geant3->SetOPTI(2); //Select optimisation level for GEANT geometry searches (0,1,2)
39  geant3->SetERAN(5.e-7);
40  geant3->SetCKOV(0); // cerenkov photons
41  // set common stuff
42 }
43 
44