SND@LHC Software
|
Functions | |
get_work_dir (run_number, tag=None) | |
init () | |
Variables | |
str | mcEngine = "TGeant4" |
str | simEngine = "Pythia8" |
int | runnr = 1000 |
int | nev = 500 |
bool | checkOverlap = False |
bool | G4only = False |
bool | storeOnlyMuons = 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://eoslhcb.cern.ch//eos/ship/data/Charm/Cascade-parp16-MSTP82-1-MSEL4-76Mpot_1.root" |
str | outputDir = "." |
theSeed = int(10000 * time.time() % 10000000) | |
str | work_dir = "./" |
float | ecut = 0.5 |
int | dy = 10. |
int | dv = 5 |
int | ds = 7 |
int | nud = 1 |
logger = logging.getLogger(os.path.splitext(os.path.basename(os.sys.argv[0]))[0]) | |
args = init() | |
ship_geo = ConfigRegistry.loadpy("$FAIRSHIP/geometry/charm-geometry_config.py", Setup = args.CharmdetSetup, cTarget = args.CharmTarget) | |
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() | |
modules = shipDet_conf.configure(run,ship_geo) | |
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() | |
t = fin.cbmsim | |
fout = ROOT.TFile(tmpFile,'recreate' ) | |
sTree = t.CloneTree(0) | |
int | nEvents = 0 |
rc = t.GetEvent(n) | |
xcopy = x.Clone() | |
ff = fin.FileHeader.Clone(fout.GetName()) | |
sGeo = ROOT.gGeoManager | |
run_MufluxfixedTarget.get_work_dir | ( | run_number, | |
tag = None |
|||
) |
Definition at line 52 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.init | ( | ) |
Definition at line 61 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.args = init() |
Definition at line 147 of file run_MufluxfixedTarget.py.
bool run_MufluxfixedTarget.beauty = False |
Definition at line 18 of file run_MufluxfixedTarget.py.
int run_MufluxfixedTarget.boostDiMuon = 1. |
Definition at line 15 of file run_MufluxfixedTarget.py.
int run_MufluxfixedTarget.boostFactor = 1. |
Definition at line 16 of file run_MufluxfixedTarget.py.
bool run_MufluxfixedTarget.charm = False |
Definition at line 17 of file run_MufluxfixedTarget.py.
str run_MufluxfixedTarget.charmInputFile = "root://eoslhcb.cern.ch//eos/ship/data/Charm/Cascade-parp16-MSTP82-1-MSEL4-76Mpot_1.root" |
Definition at line 24 of file run_MufluxfixedTarget.py.
bool run_MufluxfixedTarget.checkOverlap = False |
Definition at line 11 of file run_MufluxfixedTarget.py.
float run_MufluxfixedTarget.chibb = 1.6e-7 |
Definition at line 20 of file run_MufluxfixedTarget.py.
float run_MufluxfixedTarget.chicc = 1.7e-3 |
Definition at line 19 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.ctime = timer.CpuTime() |
Definition at line 238 of file run_MufluxfixedTarget.py.
int run_MufluxfixedTarget.ds = 7 |
Definition at line 34 of file run_MufluxfixedTarget.py.
int run_MufluxfixedTarget.dv = 5 |
Definition at line 33 of file run_MufluxfixedTarget.py.
int run_MufluxfixedTarget.dy = 10. |
Definition at line 32 of file run_MufluxfixedTarget.py.
float run_MufluxfixedTarget.ecut = 0.5 |
Definition at line 30 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.ff = fin.FileHeader.Clone(fout.GetName()) |
Definition at line 274 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.fHeader = fin.FileHeader |
Definition at line 249 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.fin = ROOT.gROOT.GetListOfFiles()[0] |
Definition at line 247 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.fout = ROOT.TFile(tmpFile,'recreate' ) |
Definition at line 259 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.fStack = gMC.GetStack() |
Definition at line 213 of file run_MufluxfixedTarget.py.
bool run_MufluxfixedTarget.G4only = False |
Definition at line 12 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.gMC = ROOT.TVirtualMC.GetMC() |
Definition at line 212 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.gProcessTable = ROOT.G4ProcessTable.GetProcessTable() |
Definition at line 225 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.logger = logging.getLogger(os.path.splitext(os.path.basename(os.sys.argv[0]))[0]) |
Definition at line 48 of file run_MufluxfixedTarget.py.
str run_MufluxfixedTarget.mcEngine = "TGeant4" |
Definition at line 7 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.modules = shipDet_conf.configure(run,ship_geo) |
Definition at line 175 of file run_MufluxfixedTarget.py.
int run_MufluxfixedTarget.nev = 500 |
Definition at line 10 of file run_MufluxfixedTarget.py.
int run_MufluxfixedTarget.nEvents = 0 |
Definition at line 261 of file run_MufluxfixedTarget.py.
int run_MufluxfixedTarget.npot = 5E13 |
Definition at line 21 of file run_MufluxfixedTarget.py.
int run_MufluxfixedTarget.nStart = 0 |
Definition at line 22 of file run_MufluxfixedTarget.py.
int run_MufluxfixedTarget.nud = 1 |
Definition at line 35 of file run_MufluxfixedTarget.py.
Definition at line 157 of file run_MufluxfixedTarget.py.
str run_MufluxfixedTarget.outputDir = "." |
Definition at line 27 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.P8gen = ROOT.FixedTargetGenerator() |
Definition at line 179 of file run_MufluxfixedTarget.py.
Definition at line 158 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.poteq = P8gen.GetPotForCharm() |
Definition at line 253 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.primGen = ROOT.FairPrimaryGenerator() |
Definition at line 178 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.procAnnihil = gProcessTable.FindProcess(ROOT.G4String('AnnihiToMuPair'),ROOT.G4String('e+')) |
Definition at line 226 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.procGMuPair = gProcessTable.FindProcess(ROOT.G4String('GammaToMuPair'),ROOT.G4String('gamma')) |
Definition at line 227 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.rc = t.GetEvent(n) |
Definition at line 263 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.rtdb = run.GetRuntimeDb() |
Definition at line 169 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.rtime = timer.RealTime() |
Definition at line 237 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.run = ROOT.FairRunSim() |
Definition at line 165 of file run_MufluxfixedTarget.py.
int run_MufluxfixedTarget.runnr = 1000 |
Definition at line 9 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.sGeo = ROOT.gGeoManager |
Definition at line 286 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.ship_geo = ConfigRegistry.loadpy("$FAIRSHIP/geometry/charm-geometry_config.py", Setup = args.CharmdetSetup, cTarget = args.CharmTarget) |
Definition at line 153 of file run_MufluxfixedTarget.py.
str run_MufluxfixedTarget.simEngine = "Pythia8" |
Definition at line 8 of file run_MufluxfixedTarget.py.
bool run_MufluxfixedTarget.storeOnlyMuons = False |
Definition at line 13 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.sTree = t.CloneTree(0) |
Definition at line 260 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.t = fin.cbmsim |
Definition at line 258 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.theSeed = int(10000 * time.time() % 10000000) |
Definition at line 28 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.timer = ROOT.TStopwatch() |
Definition at line 161 of file run_MufluxfixedTarget.py.
str run_MufluxfixedTarget.tmpFile = outFile+"tmp" |
Definition at line 246 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.txt = 'pythia8_Geant4_' |
Definition at line 155 of file run_MufluxfixedTarget.py.
bool run_MufluxfixedTarget.withEvtGen = True |
Definition at line 14 of file run_MufluxfixedTarget.py.
str run_MufluxfixedTarget.work_dir = "./" |
Definition at line 29 of file run_MufluxfixedTarget.py.
run_MufluxfixedTarget.xcopy = x.Clone() |
Definition at line 271 of file run_MufluxfixedTarget.py.