SND@LHC Software
Loading...
Searching...
No Matches
g4Ex.py File Reference

Go to the source code of this file.

Classes

class  g4Ex.MyGeneratorAction
 
class  g4Ex.MyRunAction
 
class  g4Ex.MyEventAction
 
class  g4Ex.MySteppingAction
 
class  g4Ex.MyTrackingAction
 
class  g4Ex.ScoreSD
 

Namespaces

namespace  g4Ex
 

Functions

 g4Ex.ConstructGeom ()
 

Variables

bool g4Ex.debug = False
 
bool g4Ex.withNtuple = True
 
bool g4Ex.muonNuclear = True
 
str g4Ex.model = "QGSP_BERT_EMX"
 
int g4Ex.runnr = 1
 
int g4Ex.nev = 100
 
int g4Ex.nevTot = 0
 
int g4Ex.myEventnr = 0
 
int g4Ex.mytrack = 1
 
int g4Ex.scoreLog = 1
 
dict g4Ex.myTimer = {'total':0,'pythia':0,'geant4_conv':0}
 
int g4Ex.ecut = 10
 
bool g4Ex.tauOnly = False
 
 g4Ex.myPythia = ROOT.TPythia8()
 
 g4Ex.rnr = ROOT.TRandom()
 
 g4Ex.R = int(time.time()%900000000)
 
dict g4Ex.h = {}
 
 g4Ex.f = ROOT.TFile.Open('pythia8_Geant4_'+str(runnr)+'_'+str(ecut)+'.root', 'RECREATE')
 
list g4Ex.leptons = [12,13,14,15,16]
 
list g4Ex.pionkaons = [211,321]
 
list g4Ex.rest = [130,310,3122]
 
list g4Ex.allPart = []
 
list g4Ex.notWanted = [22,11,-11,990]
 
 g4Ex.rand_engine = Ranlux64Engine()
 
 g4Ex.physList = Geant4.FTFP_BERT()
 
 g4Ex.factory = G4physicslists.G4PhysListFactory()
 
 g4Ex.xx = factory.GetReferencePhysList(model)
 
 g4Ex.myGE = MyGeneratorAction()
 
 g4Ex.myTA = MyTrackingAction()
 
 g4Ex.myRA = MyRunAction()
 
 g4Ex.myEA = MyEventAction()
 
 g4Ex.sens = ScoreSD('Score')
 
 g4Ex.t0 = time.time()
 
 g4Ex.t1 = time.time()