SND@LHC Software
Loading...
Searching...
No Matches
ShipReco Namespace Reference

Functions

 mem_monitor ()
 

Variables

bool withHists = True
 
bool pidProton = False
 
 parser = ArgumentParser()
 
 dest
 
 help
 
 required
 
 False
 
 default
 
 type
 
 action
 
 choices
 
 None
 
 options = parser.parse_args()
 
 vertexing = not options.noVertexing
 
 tmp = options.inputFile.split('.')
 
 dy = float( tmp[1]+'.'+tmp[2] )
 
 outFile = options.inputFile
 
 inputFile
 
 geoFile
 
 fgeo = ROOT.TFile.Open(options.geoFile)
 
 geoMat = ROOT.genfit.TGeoMaterialInterface()
 
 upkl = Unpickler(fgeo)
 
 ShipGeo = upkl.load('ShipGeo')
 
 ecalGeoFile = ShipGeo.ecal.File
 
dict h = {}
 
dict log = {}
 
 run = ROOT.FairRunSim()
 
 rtdb = run.GetRuntimeDb()
 
 modules = shipDet_conf.configure(run,ShipGeo)
 
 fieldMaker = geomGeant4.addVMCFields(ShipGeo, '', True,withVirtualMC = False)
 
 debug
 
 withT0
 
 realPR
 
 EcalDebugDraw
 
 withNoStrawSmearing
 
 iEvent
 
 SHiP = shipDigiReco.ShipDigiReco(outFile,fgeo)
 
 nEvents
 
 rc = SHiP.sTree.GetEvent(global_variables.iEvent)
 

Function Documentation

◆ mem_monitor()

ShipReco.mem_monitor ( )

Definition at line 10 of file ShipReco.py.

10def mem_monitor():
11 # Getting virtual memory size
12 pid = os.getpid()
13 with open(os.path.join("/proc", str(pid), "status")) as f:
14 lines = f.readlines()
15 _vmsize = [l for l in lines if l.startswith("VmSize")][0]
16 vmsize = int(_vmsize.split()[1])
17 #Getting physical memory size
18 pmsize = resource.getrusage(resource.RUSAGE_SELF).ru_maxrss
19 print("memory: virtuell = %5.2F MB physical = %5.2F MB"%(vmsize/1.0E3,pmsize/1.0E3))
20

Variable Documentation

◆ action

ShipReco.action

Definition at line 34 of file ShipReco.py.

◆ choices

ShipReco.choices

Definition at line 44 of file ShipReco.py.

◆ debug

ShipReco.debug

Definition at line 116 of file ShipReco.py.

◆ default

ShipReco.default

Definition at line 32 of file ShipReco.py.

◆ dest

ShipReco.dest

Definition at line 31 of file ShipReco.py.

◆ dy

ShipReco.dy = float( tmp[1]+'.'+tmp[2] )

Definition at line 58 of file ShipReco.py.

◆ EcalDebugDraw

ShipReco.EcalDebugDraw

Definition at line 125 of file ShipReco.py.

◆ ecalGeoFile

ShipReco.ecalGeoFile = ShipGeo.ecal.File

Definition at line 89 of file ShipReco.py.

◆ False

ShipReco.False

Definition at line 32 of file ShipReco.py.

◆ fgeo

ShipReco.fgeo = ROOT.TFile.Open(options.geoFile)

Definition at line 81 of file ShipReco.py.

◆ fieldMaker

ShipReco.fieldMaker = geomGeant4.addVMCFields(ShipGeo, '', True,withVirtualMC = False)

Definition at line 113 of file ShipReco.py.

◆ geoFile

ShipReco.geoFile

Definition at line 79 of file ShipReco.py.

◆ geoMat

ShipReco.geoMat = ROOT.genfit.TGeoMaterialInterface()

Definition at line 82 of file ShipReco.py.

◆ h

ShipReco.h = {}

Definition at line 91 of file ShipReco.py.

◆ help

ShipReco.help

Definition at line 31 of file ShipReco.py.

◆ iEvent

ShipReco.iEvent

Definition at line 129 of file ShipReco.py.

◆ inputFile

ShipReco.inputFile

Definition at line 67 of file ShipReco.py.

◆ log

ShipReco.log = {}

Definition at line 92 of file ShipReco.py.

◆ modules

ShipReco.modules = shipDet_conf.configure(run,ShipGeo)

Definition at line 107 of file ShipReco.py.

◆ nEvents

ShipReco.nEvents

Definition at line 135 of file ShipReco.py.

◆ None

ShipReco.None

Definition at line 45 of file ShipReco.py.

◆ options

ShipReco.options = parser.parse_args()

Definition at line 48 of file ShipReco.py.

◆ outFile

ShipReco.outFile = options.inputFile

Definition at line 66 of file ShipReco.py.

◆ parser

ShipReco.parser = ArgumentParser()

Definition at line 29 of file ShipReco.py.

◆ pidProton

ShipReco.pidProton = False

Definition at line 7 of file ShipReco.py.

◆ rc

ShipReco.rc = SHiP.sTree.GetEvent(global_variables.iEvent)

Definition at line 140 of file ShipReco.py.

◆ realPR

ShipReco.realPR

Definition at line 120 of file ShipReco.py.

◆ required

ShipReco.required

Definition at line 31 of file ShipReco.py.

◆ rtdb

ShipReco.rtdb = run.GetRuntimeDb()

Definition at line 105 of file ShipReco.py.

◆ run

ShipReco.run = ROOT.FairRunSim()

Definition at line 101 of file ShipReco.py.

◆ SHiP

Definition at line 134 of file ShipReco.py.

◆ ShipGeo

ShipReco.ShipGeo = upkl.load('ShipGeo')

Definition at line 88 of file ShipReco.py.

◆ tmp

ShipReco.tmp = options.inputFile.split('.')

Definition at line 56 of file ShipReco.py.

◆ type

ShipReco.type

Definition at line 32 of file ShipReco.py.

◆ upkl

ShipReco.upkl = Unpickler(fgeo)

Definition at line 87 of file ShipReco.py.

◆ vertexing

ShipReco.vertexing = not options.noVertexing

Definition at line 49 of file ShipReco.py.

◆ withHists

bool ShipReco.withHists = True

Definition at line 6 of file ShipReco.py.

◆ withNoStrawSmearing

ShipReco.withNoStrawSmearing

Definition at line 126 of file ShipReco.py.

◆ withT0

ShipReco.withT0

Definition at line 119 of file ShipReco.py.