SND@LHC Software
|
Functions | |
get_work_dir (run_number, tag=None) | |
init () | |
Variables | |
str | mcEngine = "TGeant4" |
str | simEngine = "Pythia8" |
int | runnr = 1 |
int | nev = 1000 |
bool | checkOverlap = True |
bool | G4only = False |
bool | storeOnlyMuons = False |
bool | skipNeutrinos = False |
bool | withEvtGen = True |
int | boostDiMuon = 1. |
int | boostFactor = 1. |
bool | charm = False |
bool | beauty = False |
float | chicc = 1.7e-3 |
float | chibb = 1.6e-7 |
int | npot = 5E13 |
int | nStart = 0 |
str | charmInputFile = ROOT.gSystem.Getenv("EOSSHIP")+"/eos/experiment/ship/data/Charm/Cascade-parp16-MSTP82-1-MSEL4-76Mpot_1.root" |
str | outputDir = "." |
str | work_dir = "./" |
float | ecut = 0.5 |
int | dy = 10. |
int | dv = 6 |
int | ds = 9 |
int | nud = 3 |
logger = logging.getLogger(os.path.splitext(os.path.basename(os.sys.argv[0]))[0]) | |
args = init() | |
ship_geo = ConfigRegistry.loadpy("$FAIRSHIP/geometry/geometry_config.py", Yheight = dy, tankDesign = dv, muShieldDesign = ds, nuTauTargetDesign=nud) | |
str | txt = 'pythia8_Geant4_' |
str | outFile = outputDir+'/'+txt+str(runnr)+'_'+str(ecut)+'.root' |
str | parFile = outputDir+'/ship.params.'+txt+str(runnr)+'_'+str(ecut)+'.root' |
timer = ROOT.TStopwatch() | |
run = ROOT.FairRunSim() | |
rtdb = run.GetRuntimeDb() | |
cave = ROOT.ShipCave("CAVE") | |
TargetStation | |
slices_length = ROOT.std.vector('float')() | |
slices_material = ROOT.std.vector('std::string')() | |
MuonShield | |
sensPlane = ROOT.exitHadronAbsorber() | |
primGen = ROOT.FairPrimaryGenerator() | |
P8gen = ROOT.FixedTargetGenerator() | |
gMC = ROOT.TVirtualMC.GetMC() | |
fStack = gMC.GetStack() | |
gProcessTable = ROOT.G4ProcessTable.GetProcessTable() | |
procAnnihil = gProcessTable.FindProcess(ROOT.G4String('AnnihiToMuPair'),ROOT.G4String('e+')) | |
procGMuPair = gProcessTable.FindProcess(ROOT.G4String('GammaToMuPair'),ROOT.G4String('gamma')) | |
rtime = timer.RealTime() | |
ctime = timer.CpuTime() | |
str | tmpFile = outFile+"tmp" |
fin = ROOT.gROOT.GetListOfFiles()[0] | |
fHeader = fin.FileHeader | |
poteq = P8gen.GetPotForCharm() | |
str | info = "POT equivalent = %7.3G"%(poteq) |
str | conditions = " with ecut="+str(ecut) |
nt = fin.Get('4DP') | |
tf = ROOT.TFile('FourDP.root','recreate') | |
tnt = nt.CloneTree(0) | |
rc = nt.GetEvent(i) | |
t = fin.cbmsim | |
fout = ROOT.TFile(tmpFile,'recreate' ) | |
sTree = t.CloneTree(0) | |
int | nEvents = 0 |
x = fin.Get(k.GetName()) | |
className = x.Class().GetName() | |
xcopy = x.Clone() | |
ff = fin.FileHeader.Clone(fout.GetName()) | |
rc1 = os.system("rm "+outFile) | |
rc2 = os.system("mv "+tmpFile+" "+outFile) | |
sGeo = ROOT.gGeoManager | |
run_fixedTarget.get_work_dir | ( | run_number, | |
tag = None |
|||
) |
Definition at line 52 of file run_fixedTarget.py.
run_fixedTarget.init | ( | ) |
Definition at line 61 of file run_fixedTarget.py.
run_fixedTarget.args = init() |
Definition at line 150 of file run_fixedTarget.py.
bool run_fixedTarget.beauty = False |
Definition at line 19 of file run_fixedTarget.py.
int run_fixedTarget.boostDiMuon = 1. |
Definition at line 16 of file run_fixedTarget.py.
int run_fixedTarget.boostFactor = 1. |
Definition at line 17 of file run_fixedTarget.py.
run_fixedTarget.cave = ROOT.ShipCave("CAVE") |
Definition at line 176 of file run_fixedTarget.py.
bool run_fixedTarget.charm = False |
Definition at line 18 of file run_fixedTarget.py.
str run_fixedTarget.charmInputFile = ROOT.gSystem.Getenv("EOSSHIP")+"/eos/experiment/ship/data/Charm/Cascade-parp16-MSTP82-1-MSEL4-76Mpot_1.root" |
Definition at line 25 of file run_fixedTarget.py.
bool run_fixedTarget.checkOverlap = True |
Definition at line 11 of file run_fixedTarget.py.
float run_fixedTarget.chibb = 1.6e-7 |
Definition at line 21 of file run_fixedTarget.py.
float run_fixedTarget.chicc = 1.7e-3 |
Definition at line 20 of file run_fixedTarget.py.
run_fixedTarget.className = x.Class().GetName() |
Definition at line 310 of file run_fixedTarget.py.
Definition at line 276 of file run_fixedTarget.py.
run_fixedTarget.ctime = timer.CpuTime() |
Definition at line 256 of file run_fixedTarget.py.
int run_fixedTarget.ds = 9 |
Definition at line 34 of file run_fixedTarget.py.
int run_fixedTarget.dv = 6 |
Definition at line 33 of file run_fixedTarget.py.
int run_fixedTarget.dy = 10. |
Definition at line 32 of file run_fixedTarget.py.
float run_fixedTarget.ecut = 0.5 |
Definition at line 30 of file run_fixedTarget.py.
run_fixedTarget.ff = fin.FileHeader.Clone(fout.GetName()) |
Definition at line 315 of file run_fixedTarget.py.
run_fixedTarget.fHeader = fin.FileHeader |
Definition at line 267 of file run_fixedTarget.py.
run_fixedTarget.fin = ROOT.gROOT.GetListOfFiles()[0] |
Definition at line 264 of file run_fixedTarget.py.
run_fixedTarget.fout = ROOT.TFile(tmpFile,'recreate' ) |
Definition at line 298 of file run_fixedTarget.py.
run_fixedTarget.fStack = gMC.GetStack() |
Definition at line 232 of file run_fixedTarget.py.
bool run_fixedTarget.G4only = False |
Definition at line 12 of file run_fixedTarget.py.
run_fixedTarget.gMC = ROOT.TVirtualMC.GetMC() |
Definition at line 231 of file run_fixedTarget.py.
run_fixedTarget.gProcessTable = ROOT.G4ProcessTable.GetProcessTable() |
Definition at line 244 of file run_fixedTarget.py.
str run_fixedTarget.info = "POT equivalent = %7.3G"%(poteq) |
Definition at line 272 of file run_fixedTarget.py.
run_fixedTarget.logger = logging.getLogger(os.path.splitext(os.path.basename(os.sys.argv[0]))[0]) |
Definition at line 48 of file run_fixedTarget.py.
str run_fixedTarget.mcEngine = "TGeant4" |
Definition at line 7 of file run_fixedTarget.py.
run_fixedTarget.MuonShield |
Definition at line 190 of file run_fixedTarget.py.
int run_fixedTarget.nev = 1000 |
Definition at line 10 of file run_fixedTarget.py.
int run_fixedTarget.nEvents = 0 |
Definition at line 300 of file run_fixedTarget.py.
int run_fixedTarget.npot = 5E13 |
Definition at line 22 of file run_fixedTarget.py.
int run_fixedTarget.nStart = 0 |
Definition at line 23 of file run_fixedTarget.py.
run_fixedTarget.nt = fin.Get('4DP') |
Definition at line 287 of file run_fixedTarget.py.
int run_fixedTarget.nud = 3 |
Definition at line 35 of file run_fixedTarget.py.
Definition at line 159 of file run_fixedTarget.py.
str run_fixedTarget.outputDir = "." |
Definition at line 28 of file run_fixedTarget.py.
run_fixedTarget.P8gen = ROOT.FixedTargetGenerator() |
Definition at line 205 of file run_fixedTarget.py.
Definition at line 160 of file run_fixedTarget.py.
run_fixedTarget.poteq = P8gen.GetPotForCharm() |
Definition at line 271 of file run_fixedTarget.py.
run_fixedTarget.primGen = ROOT.FairPrimaryGenerator() |
Definition at line 204 of file run_fixedTarget.py.
run_fixedTarget.procAnnihil = gProcessTable.FindProcess(ROOT.G4String('AnnihiToMuPair'),ROOT.G4String('e+')) |
Definition at line 245 of file run_fixedTarget.py.
run_fixedTarget.procGMuPair = gProcessTable.FindProcess(ROOT.G4String('GammaToMuPair'),ROOT.G4String('gamma')) |
Definition at line 246 of file run_fixedTarget.py.
run_fixedTarget.rc = nt.GetEvent(i) |
Definition at line 292 of file run_fixedTarget.py.
run_fixedTarget.rc1 = os.system("rm "+outFile) |
Definition at line 321 of file run_fixedTarget.py.
run_fixedTarget.rc2 = os.system("mv "+tmpFile+" "+outFile) |
Definition at line 322 of file run_fixedTarget.py.
run_fixedTarget.rtdb = run.GetRuntimeDb() |
Definition at line 171 of file run_fixedTarget.py.
run_fixedTarget.rtime = timer.RealTime() |
Definition at line 255 of file run_fixedTarget.py.
run_fixedTarget.run = ROOT.FairRunSim() |
Definition at line 167 of file run_fixedTarget.py.
int run_fixedTarget.runnr = 1 |
Definition at line 9 of file run_fixedTarget.py.
run_fixedTarget.sensPlane = ROOT.exitHadronAbsorber() |
Definition at line 195 of file run_fixedTarget.py.
run_fixedTarget.sGeo = ROOT.gGeoManager |
Definition at line 329 of file run_fixedTarget.py.
run_fixedTarget.ship_geo = ConfigRegistry.loadpy("$FAIRSHIP/geometry/geometry_config.py", Yheight = dy, tankDesign = dv, muShieldDesign = ds, nuTauTargetDesign=nud) |
Definition at line 155 of file run_fixedTarget.py.
str run_fixedTarget.simEngine = "Pythia8" |
Definition at line 8 of file run_fixedTarget.py.
bool run_fixedTarget.skipNeutrinos = False |
Definition at line 14 of file run_fixedTarget.py.
run_fixedTarget.slices_length = ROOT.std.vector('float')() |
Definition at line 182 of file run_fixedTarget.py.
run_fixedTarget.slices_material = ROOT.std.vector('std::string')() |
Definition at line 183 of file run_fixedTarget.py.
bool run_fixedTarget.storeOnlyMuons = False |
Definition at line 13 of file run_fixedTarget.py.
run_fixedTarget.sTree = t.CloneTree(0) |
Definition at line 299 of file run_fixedTarget.py.
run_fixedTarget.t = fin.cbmsim |
Definition at line 297 of file run_fixedTarget.py.
run_fixedTarget.TargetStation |
Definition at line 180 of file run_fixedTarget.py.
run_fixedTarget.tf = ROOT.TFile('FourDP.root','recreate') |
Definition at line 289 of file run_fixedTarget.py.
run_fixedTarget.timer = ROOT.TStopwatch() |
Definition at line 163 of file run_fixedTarget.py.
str run_fixedTarget.tmpFile = outFile+"tmp" |
Definition at line 262 of file run_fixedTarget.py.
run_fixedTarget.tnt = nt.CloneTree(0) |
Definition at line 290 of file run_fixedTarget.py.
run_fixedTarget.txt = 'pythia8_Geant4_' |
Definition at line 157 of file run_fixedTarget.py.
bool run_fixedTarget.withEvtGen = True |
Definition at line 15 of file run_fixedTarget.py.
str run_fixedTarget.work_dir = "./" |
Definition at line 29 of file run_fixedTarget.py.
run_fixedTarget.x = fin.Get(k.GetName()) |
Definition at line 309 of file run_fixedTarget.py.
run_fixedTarget.xcopy = x.Clone() |
Definition at line 312 of file run_fixedTarget.py.