1 import ROOT,os,sys,getopt
5 from ShipGeoConfig
import ConfigRegistry
7 PDG = ROOT.TDatabasePDG.Instance()
16 opts, args = getopt.getopt(sys.argv[1:],
"n:f:g:A:Y:i", [
"nEvents=",
"geoFile="])
17 except getopt.GetoptError:
19 print ' enter file name'
24 if o
in (
"-g",
"--geoFile"):
28 if o
in (
"-n",
"--nEvents="):
33 tmp = inputFile.split(
'.')
35 dy = float( tmp[1]+
'.'+tmp[2] )
39 inputFile =
'ship.'+str(dy)+
'.Pythia8-TGeant4_rec.root'
42 geoFile = inputFile.replace(
'ship.',
'geofile_full.').replace(
'_rec.',
'.')
44 f = ROOT.TFile(inputFile)
49 from LoopAnalyse
import LoopAnalyse
54 plotVertexDetailed =
False,