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

Classes

class  DrawTracks
 
class  EventLoop
 
class  IO
 
class  Rulers
 

Functions

 evExit ()
 
 printMCTrack (n, MCTrack)
 
 dump (pcut=0)
 
 printFittedTracks ()
 
 printParticles ()
 
 projection ()
 
 projection_prescale ()
 
 storeCameraSetting (fname='camSetting.root')
 
 readCameraSetting (fname='camSetting.root')
 
 speedUp ()
 
 DisplayNuDetector ()
 
 switchOf (tag)
 
 switchOn (tag)
 
 switchOfRock ()
 
 switchOfAll (exc)
 
 switchOnAll (exc)
 
 select (pattern)
 
 search (lvdict, tag)
 
 rename (name='ship.TGeant4.root')
 
 mydebug ()
 
 debugStraw (n)
 
 DrawCharmTracks ()
 
 DrawMuonTrack ()
 
 positionText (r, x, y, z, angle, txt, size=200, color=ROOT.kBlue, mode=ROOT.TGLFont.kExtrude, light=ROOT.kTRUE)
 
 PRVersion ()
 

Variables

 fMan = None
 
 fRun = None
 
 pdg = ROOT.TDatabasePDG.Instance()
 
 g = ROOT.gROOT
 
 gEnv = ROOT.gEnv
 
str mcEngine = "TGeant4"
 
str simEngine = "Pythia8"
 
bool withGeo = False
 
bool withMCTracks = True
 
dict transparentMaterials
 
 parser = ArgumentParser()
 
 dest
 
 help
 
 required
 
 False
 
 default
 
 action
 
 options = parser.parse_args()
 
 geoFile
 
 InputFile
 
 inFile = ROOT.FairFileSource(options.InputFile)
 
 OutputFile
 
 rtdb = fRun.GetRuntimeDb()
 
 parInput1 = ROOT.FairParRootFileIo()
 
int verbose = 0
 
 Track = ROOT.FairMCTracks("Monte-Carlo Tracks",verbose)
 
 GTrack = ROOT.FairMCTracks("GeoTracks",verbose)
 
 ShipGeo = ConfigRegistry.loadpy("$FAIRSHIP/geometry/geometry_config.py", Yheight = float(dy), EcalGeoFile = ecalGeoFile)
 
 upkl = Unpickler( fRun.GetGeoFile() )
 
dict mcHits = {}
 
 fRman = ROOT.FairRootManager.Instance()
 
 sTree = fRman.GetInChain()
 
 lsOfGlobals = ROOT.gROOT.GetListOfGlobals()
 
 sGeo = ROOT.gGeoManager
 
 top = sGeo.GetTopVolume()
 
 gEve = ROOT.gEve
 
 geoMat = ROOT.genfit.TGeoMaterialInterface()
 
 fM = ROOT.genfit.FieldManager.getInstance()
 
 br = gEve.GetBrowser()
 
 rulers = Rulers()
 
 SHiPDisplay = EventLoop()
 

Function Documentation

◆ debugStraw()

eventDisplay_shipLHC.debugStraw (   n)

Definition at line 831 of file eventDisplay_shipLHC.py.

831def debugStraw(n):
832 sGeo = ROOT.gGeoManager
833 vols = sGeo.GetListOfVolumes()
834 sTree = g.FindObjectAny('cbmsim')
835 sTree.GetEntry(n)
836 for s in sTree.strawtubesPoint:
837 print(vols[s.GetDetectorID()-1].GetName())
838
839
840#----Load the default libraries------

◆ DisplayNuDetector()

eventDisplay_shipLHC.DisplayNuDetector ( )

Definition at line 612 of file eventDisplay_shipLHC.py.

612def DisplayNuDetector():
613 for x in ["Wall"]:
614 xvol = sGeo.GetVolume(x)
615 if not xvol: continue
616 xvol.SetVisDaughters(0)
617 xvol.SetVisibility(1)
618 sc = gEve.GetScenes()
619 geoscene = sc.FindChild('Geometry scene')
620 gEve.ElementChanged(geoscene,True,True)

◆ DrawCharmTracks()

eventDisplay_shipLHC.DrawCharmTracks ( )

Definition at line 943 of file eventDisplay_shipLHC.py.

943def DrawCharmTracks():
944 i = -1
945 for aTrack in sTree.MCTrack:
946 i+=1
947 if i<2: continue
948 if aTrack.GetMotherId()==1:
949 pa = pdg.GetParticle(sTree.MCTrack[i] .GetPdgCode())
950 if pa.Lifetime()>1.E-12:
951 print(sTree.MCTrack[i])
952 SHiPDisplay.tracks.DrawMCTrack(i)
953

◆ DrawMuonTrack()

eventDisplay_shipLHC.DrawMuonTrack ( )

Definition at line 954 of file eventDisplay_shipLHC.py.

954def DrawMuonTrack():
955 i = -1
956 for aTrack in sTree.MCTrack:
957 i+=1
958 if abs(aTrack.GetPdgCode())==13:
959 print(sTree.MCTrack[i])
960 SHiPDisplay.tracks.DrawMCTrack(i)
961

◆ dump()

eventDisplay_shipLHC.dump (   pcut = 0)

Definition at line 62 of file eventDisplay_shipLHC.py.

62def dump(pcut=0):
63 print(' # pid px py pz vx vy vz mid')
64 n=-1
65 for mcp in sTree.MCTrack:
66 n+=1
67 if mcp.GetP()/u.GeV < pcut : continue
68 printMCTrack(n,sTree.MCTrack)

◆ evExit()

eventDisplay_shipLHC.evExit ( )
Prevent double delete due to a FairRoot bug.

Definition at line 17 of file eventDisplay_shipLHC.py.

17def evExit():
18 """Prevent double delete due to a FairRoot bug."""
19 # Check whether the Eve window was closed/destructed
20 if ROOT.addressof(ROOT.gEve) == 0:
21 # Prevent the FairEventManager destructor from being called
22 ROOT.SetOwnership(fMan, False)
23

◆ mydebug()

eventDisplay_shipLHC.mydebug ( )

Definition at line 797 of file eventDisplay_shipLHC.py.

797def mydebug():
798 t = g.FindObjectAny('cbmsim')
799 nev = t.GetEntriesFast()
800 t.GetEntry(0)
801# Loop over Geo tracks
802 for i in range( min(5,nev) ) :
803 t.GetEntry(i)
804 for gTr in t.GeoTracks:
805 gTr.Print()
806 part = gTr.GetParticle()
807 lorv = ROOT.TLorentzVector()
808 print('xyz E pxpypz',gTr.GetPoint(0)[0],gTr.GetPoint(0)[1] ,gTr.GetPoint(0)[2],lorv.E(),lorv.Px(),lorv.Py(),lorv.Pz())
809# Loop over MC tracks
810 for i in range( min(5,nev) ) :
811 t.GetEntry(i)
812 for gMCTr in t.MCTrack:
813 gMCTr.Print()
814 print(gMCTr.GetPdgCode(),gMCTr.GetMass(),gMCTr.GetP())
815# MC event header
816 for i in range( nev ) :
817 t.GetEntry(i)
818 print(t.MCEventHeader.GetEventID(),t.MCEventHeader.GetRunID(),t.MCEventHeader.GetZ())
819# geometrie
820 sGeo = ROOT.gGeoManager
821 cave = sGeo.GetTopVolume()
822 cave.Draw('ogl')
823# eve
824 gEve = ROOT.gEve
825#
826 sc = gEve.GetScenes()
827 geoscene = sc.FindChild('Geometry scene')
828 topnode = geoscene.FindChild('cave_1')
829 topnode.SetVisLevel(4)
830 gEve.ElementChanged(geoscene,True,True)

◆ positionText()

eventDisplay_shipLHC.positionText (   r,
  x,
  y,
  z,
  angle,
  txt,
  size = 200,
  color = ROOT.kBlue,
  mode = ROOT.TGLFont.kExtrude,
  light = ROOT.kTRUE 
)

Definition at line 962 of file eventDisplay_shipLHC.py.

962def positionText(r,x,y,z,angle,txt,size=200,color=ROOT.kBlue,mode=ROOT.TGLFont.kExtrude,light=ROOT.kTRUE):
963 tt = ROOT.TEveText(txt)
964 tt.SetFontSize(size)
965 tt.RefMainTrans().SetPos(x,y,z)
966 tt.PtrMainTrans().RotateLF(1, 3, angle)
967 tt.SetMainColor(color)
968 tt.SetFontMode(mode)
969 tt.SetLighting(light)
970 r.AddElement(tt)

◆ printFittedTracks()

eventDisplay_shipLHC.printFittedTracks ( )

Definition at line 69 of file eventDisplay_shipLHC.py.

69def printFittedTracks():
70 print(' # converged Ndf chi2/Ndf P Pt MCid')
71 n=-1
72 for ft in sTree.FitTracks:
73 n+=1
74 fitStatus = ft.getFitStatus()
75 fitState = ft.getFittedState()
76 mom = fitState.getMom()
77 print('%3i %6i %4i %6.3F %6.3F %6.3F %6i '%(n,fitStatus.isFitConverged(),\
78 fitStatus.getNdf(),fitStatus.getChi2()/fitStatus.getNdf(),\
79 mom.Mag()/u.GeV,mom.Pt()/u.GeV,sTree.fitTrack2MC[n] ))

◆ printMCTrack()

eventDisplay_shipLHC.printMCTrack (   n,
  MCTrack 
)

Definition at line 58 of file eventDisplay_shipLHC.py.

58def printMCTrack(n,MCTrack):
59 mcp = MCTrack[n]
60 print(' %6i %7i %6.3F %6.3F %7.3F %7.3F %7.3F %7.3F %6i '%(n,mcp.GetPdgCode(),mcp.GetPx()/u.GeV,mcp.GetPy()/u.GeV,mcp.GetPz()/u.GeV, \
61 mcp.GetStartX()/u.m,mcp.GetStartY()/u.m,mcp.GetStartZ()/u.m,mcp.GetMotherId() ))

◆ printParticles()

eventDisplay_shipLHC.printParticles ( )

Definition at line 80 of file eventDisplay_shipLHC.py.

80def printParticles():
81 print(' # P Pt[GeV/c] DOCA[mm] Rsq Vz[m] d1 d2')
82 n=-1
83 for aP in sTree.Particles:
84 n+=1
85 doca = -1.
86 if aP.GetMother(1)==99: # DOCA is set
87 doca = aP.T()
88 Rsq = (aP.Vx()/(2.45*u.m) )**2 + (aP.Vy()/((10./2.-0.05)*u.m) )**2
89 print('%3i %6.3F %6.3F %9.3F %6.3F %6.3F %4i %4i '%(n,aP.P()/u.GeV,aP.Pt()/u.GeV,\
90 doca/u.mm,Rsq,aP.Vz()/u.m,aP.GetDaughter(0),aP.GetDaughter(1) ))
91

◆ projection()

eventDisplay_shipLHC.projection ( )

Definition at line 535 of file eventDisplay_shipLHC.py.

535def projection():
536#if 1>0:
537 # camera
538 s = ROOT.gEve.SpawnNewScene("Projected Event")
539 ROOT.gEve.GetDefaultViewer().AddScene(s)
540 v = ROOT.gEve.GetDefaultGLViewer()
541 v.SetCurrentCamera(ROOT.TGLViewer.kCameraOrthoXOY)
542 cam = v.CurrentCamera()
543 cam.SetZoomMinMax(0.2, 20)
544 # projections
545 mng = ROOT.TEveProjectionManager(ROOT.TEveProjection.kPT_RPhi)
546 s.AddElement(mng)
547 axes = ROOT.TEveProjectionAxes(mng)
548 axes.SetTitle("TEveProjections demo")
549 s.AddElement(axes)
550 ROOT.gEve.AddToListTree(axes, ROOT.kTRUE)
551 ROOT.gEve.AddToListTree(mng, ROOT.kTRUE)
552

◆ projection_prescale()

eventDisplay_shipLHC.projection_prescale ( )

Definition at line 553 of file eventDisplay_shipLHC.py.

553def projection_prescale():
554#if 1>0:
555 v = gEve.GetViewers()
556 vw = v.FindChild('Viewer 1')
557 if vw: vw.SetName('3d')
558 sev = ROOT.gEve.SpawnNewViewer("Scaled 2D")
559 smng = ROOT.TEveProjectionManager(ROOT.TEveProjection.kPP_Plane)
560 sp = smng.GetProjection()
561 sp.SetUsePreScale(ROOT.kTRUE)
562 sp.AddPreScaleEntry(2, 100000000., 0.1)
563 ss = ROOT.gEve.SpawnNewScene("Scaled Geom")
564 sev.AddScene(ss)
565 ss.AddElement(smng)
566 N = sGeo.GetTopNode()
567 TNod=ROOT.TEveGeoTopNode(sGeo, N, 1, 3, 10)
568 ss.AddElement(TNod)
569 eventscene = ROOT.gEve.SpawnNewScene('Scaled event')
570 eventscene.AddElement(ROOT.FairEventManager.Instance())
571 sev.AddScene(eventscene)
572 eventscene.AddElement(smng)
573 ROOT.gEve.GetBrowser().GetTabRight().SetTab(1)
574 ROOT.gEve.FullRedraw3D(ROOT.kTRUE)
575

◆ PRVersion()

eventDisplay_shipLHC.PRVersion ( )

Definition at line 971 of file eventDisplay_shipLHC.py.

971def PRVersion():
972 readCameraSetting()
973 for x in ['moreShieldingSide', 'moreShieldingTopBot','CoatWall','CoatVol','AbsorberVol']:
974 vol = ROOT.gGeoManager.FindVolumeFast(x)
975 vol.SetVisibility(0)
976 ROOT.gGeoManager.GetMaterial('Concrete').SetTransparency(0)
977 r = rulers.ruler
978 ticks = 5
979 r.DestroyElements()
980 r.OpenCompound()
981 xpos,ypos = -500., -1500.
982 zstart = ShipGeo.target.z0
983 zlength = ShipGeo.MuonStation3.z - zstart + 10*u.m
984 z=zstart
985 for i in range(int(zlength/100/ticks)):
986 m = ROOT.TEveLine()
987 m.SetNextPoint(xpos,ypos, z)
988 m.SetNextPoint(xpos-1*u.m,ypos,z)
989 m.SetMainColor(ROOT.kRed)
990 m.SetLineWidth(5)
991 r.AddElement(m)
992 t1 = ROOT.TEveText(str(i*ticks)+'m')
993 t1.SetMainColor(ROOT.kGray+3)
994 t1.SetFontSize(5)
995 t1.RefMainTrans().SetPos(xpos-0.1*u.m,ypos+0.2*u.m,z)
996 r.AddElement(t1)
997 z+=ticks*u.m
998 xpos,ypos = 0., 0.
999 z = ShipGeo.MuonStation3.z+6*u.m
1000 ylength = 7*u.m
1001 ypos=-ylength
1002 for i in range(-int(ylength/100),int(ylength/100),1):
1003 m = ROOT.TEveLine()
1004 m.SetNextPoint(xpos,ypos, z)
1005 m.SetNextPoint(xpos+0.05*u.m,ypos,z)
1006 m.SetMainColor(ROOT.kRed)
1007 m.SetLineWidth(3)
1008 r.AddElement(m)
1009 t1 = ROOT.TEveText(str(i)+'m')
1010 t1.SetMainColor(ROOT.kGray+3)
1011 t1.SetFontSize(5)
1012 t1.RefMainTrans().SetPos(xpos-0.5*u.m,ypos,z)
1013 r.AddElement(t1)
1014 ypos+=1*u.m
1015 ty = ROOT.TEveText("y-axis")
1016 ty.SetFontSize(10)
1017 ty.RefMainTrans().SetPos(0.,ypos+1*u.m,z)
1018 ty.SetMainColor(ROOT.kRed-2)
1019 r.AddElement(ty)
1020 xpos,ypos = 0., 0.
1021 z = ShipGeo.MuonStation3.z+10*u.m
1022 xlength = 3*u.m
1023 xpos=-xlength
1024 for i in range(-int(xlength/100),int(xlength/100),1):
1025 m = ROOT.TEveLine()
1026 m.SetNextPoint(xpos,ypos, z)
1027 m.SetNextPoint(xpos,ypos-0.05*u.m,z)
1028 m.SetMainColor(ROOT.kRed)
1029 m.SetLineWidth(3)
1030 r.AddElement(m)
1031 t1 = ROOT.TEveText(str(i)+'m')
1032 t1.SetMainColor(ROOT.kGray+3)
1033 t1.SetFontSize(5)
1034 t1.RefMainTrans().SetPos(xpos,ypos-0.1*u.m,z)
1035 r.AddElement(t1)
1036 xpos+=1*u.m
1037 tx = ROOT.TEveText("x-axis")
1038 tx.SetFontSize(10)
1039 tx.RefMainTrans().SetPos(xpos+1*u.m,0.,z)
1040 tx.SetMainColor(ROOT.kRed-2)
1041 r.AddElement(tx)
1042 rotAngle = ROOT.TMath.Pi()+ROOT.TMath.PiOver2()*5./2.
1043 positionText(r,0.,900.,ShipGeo.TrackStation1.z-20*u.m,rotAngle,"SHiP",200,ROOT.kOrange-2)
1044 positionText(r,0.,750.,ShipGeo.TrackStation1.z-40*u.m,rotAngle,"Vacuum decay vessel",200,ROOT.kGray+1)
1045 positionText(r,0.,100.,ShipGeo.target.z-6*u.m,rotAngle,"Target",200,ROOT.kBlue)
1046 positionText(r,0.,600.,ShipGeo.muShield.z-10*u.m,rotAngle,"Active muon shield",200,ROOT.kGreen-2)
1047 positionText(r,0.,600.,ShipGeo.tauMudet.zMudetC-10*u.m,rotAngle,"Tau neutrino detector",200,ROOT.kRed-2)
1048 positionText(r,0.,900.,ShipGeo.Bfield.z-5*u.m,rotAngle,"Dipole Magnet",200,ROOT.kBlue+2)
1049 positionText(r,-1500.,-800.,ShipGeo.TrackStation3.z-2*u.m,rotAngle,"Strawtracker",200,ROOT.kRed+2)
1050 positionText(r,0.,730.,ShipGeo.ecal.z-1*u.m,rotAngle,"Ecal",200,ROOT.kOrange)
1051 positionText(r,0.,700.,ShipGeo.MuonFilter2.z,rotAngle,"Muon",200,ROOT.kGreen+2)
1052 r.CloseCompound()
1053 sc = gEve.GetScenes()
1054 geoscene = sc.FindChild('Geometry scene')
1055 gEve.ElementChanged(geoscene,True,True)
1056
1057

◆ readCameraSetting()

eventDisplay_shipLHC.readCameraSetting (   fname = 'camSetting.root')

Definition at line 581 of file eventDisplay_shipLHC.py.

581def readCameraSetting(fname='camSetting.root'):
582 f = ROOT.TFile.Open(fname)
583 cam = ROOT.gEve.GetDefaultGLViewer().CurrentCamera()
584 f.GetKey(cam.ClassName()).Read(cam)
585 cam.IncTimeStamp()
586 gEve.GetDefaultGLViewer().RequestDraw()
587 f.Close()

◆ rename()

eventDisplay_shipLHC.rename (   name = 'ship.TGeant4.root')

Definition at line 685 of file eventDisplay_shipLHC.py.

685def rename(name='ship.TGeant4.root'):
686 f = ROOT.TFile(name,'UPDATE')
687 t = f.Get('cbmsim')
688 for x in t.GetListOfBranches():
689 nm = x.GetName().replace('_1','')
690 x.SetName(nm)
691 t.Write()
692 f.Close()
693

◆ search()

eventDisplay_shipLHC.search (   lvdict,
  tag 
)

Definition at line 682 of file eventDisplay_shipLHC.py.

682def search(lvdict,tag):
683 for x in lvdict:
684 if not x.find(tag)<0: print(x)

◆ select()

eventDisplay_shipLHC.select (   pattern)

Definition at line 676 of file eventDisplay_shipLHC.py.

676def select(pattern):
677 exc = []
678 for v in sGeo.GetListOfVolumes():
679 vname = v.GetName()
680 if not vname.find(pattern) < 0 : exc.append(vname)
681 return exc

◆ speedUp()

eventDisplay_shipLHC.speedUp ( )

Definition at line 588 of file eventDisplay_shipLHC.py.

588def speedUp():
589 for x in ["wire","gas","rockD","rockS","rockSFe"]:
590 xvol = sGeo.GetVolume(x)
591 if xvol: xvol.SetVisibility(0)
592 for k in range(1,7):
593 va = sGeo.GetVolume("T"+str(k))
594 if not va: continue
595 for x in va.GetNodes():
596 nm = x.GetName()
597 if not nm.find("Inner")<0 and k < 3:
598 x.SetVisDaughters(False)
599 x.SetVisibility(False)
600 if not nm.find("LiSc")<0: x.SetVisDaughters(False)
601 if not nm.find("RibPhi")<0: x.SetVisDaughters(False)
602#
603 for x in ["Ecal","Hcal"]:
604 xvol = sGeo.GetVolume(x)
605 if not xvol: continue
606 xvol.SetVisDaughters(0)
607 xvol.SetVisibility(1)
608 if x=="Ecal": xvol.SetLineColor(ROOT.kYellow)
609 else: xvol.SetLineColor(ROOT.kOrange+3)
610
611# set display properties for tau nu target

◆ storeCameraSetting()

eventDisplay_shipLHC.storeCameraSetting (   fname = 'camSetting.root')

Definition at line 576 of file eventDisplay_shipLHC.py.

576def storeCameraSetting(fname='camSetting.root'):
577 f = ROOT.TFile.Open(fname, "RECREATE");
578 cam = ROOT.gEve.GetDefaultGLViewer().CurrentCamera()
579 cam.Write()
580 f.Close()

◆ switchOf()

eventDisplay_shipLHC.switchOf (   tag)

Definition at line 621 of file eventDisplay_shipLHC.py.

621def switchOf(tag):
622 sc = gEve.GetScenes()
623 geoscene = sc.FindChild('Geometry scene')
624 for v in top.GetNodes():
625 vname = v.GetName()
626 if not vname.find(tag)<0:
627 v.SetVisibility(0)
628 v.SetVisDaughters(0)
629 gEve.ElementChanged(geoscene,True,True)

◆ switchOfAll()

eventDisplay_shipLHC.switchOfAll (   exc)

Definition at line 649 of file eventDisplay_shipLHC.py.

649def switchOfAll(exc):
650 sc = gEve.GetScenes()
651 geoscene = sc.FindChild('Geometry scene')
652 for v in top.GetNodes():
653 vname = v.GetName()
654 if not vname.find('cave')< 0 : continue
655 todo = True
656 for tag in exc:
657 if not tag.find(vname)<0: todo = False
658 if todo:
659 v.SetVisibility(0)
660 v.SetVisDaughters(0)
661 gEve.ElementChanged(geoscene,True,True)

◆ switchOfRock()

eventDisplay_shipLHC.switchOfRock ( )

Definition at line 642 of file eventDisplay_shipLHC.py.

642def switchOfRock():
643 sc = gEve.GetScenes()
644 geoscene = sc.FindChild('Geometry scene')
645 for x in [ 'rockD', 'rockS']:
646 v = sGeo.FindVolumeFast(x)
647 v.SetVisibility(0)
648 gEve.ElementChanged(geoscene,True,True)

◆ switchOn()

eventDisplay_shipLHC.switchOn (   tag)

Definition at line 630 of file eventDisplay_shipLHC.py.

630def switchOn(tag):
631 sc = gEve.GetScenes()
632 geoscene = sc.FindChild('Geometry scene')
633 for v in top.GetNodes():
634 vname = v.GetName()
635 if not vname.find(tag)<0:
636 print('switch on ',vname)
637 v.SetVisibility(1)
638 v.SetVisDaughters(1)
639 gEve.ElementChanged(geoscene,True,True)
640
641# switch of drawing of rock

◆ switchOnAll()

eventDisplay_shipLHC.switchOnAll (   exc)

Definition at line 662 of file eventDisplay_shipLHC.py.

662def switchOnAll(exc):
663 sc = gEve.GetScenes()
664 geoscene = sc.FindChild('Geometry scene')
665 for v in top.GetNodes():
666 vname = v.GetName()
667 if not vname.find('cave')< 0 : continue
668 todo = True
669 for tag in exc:
670 if not tag.find(vname)<0: todo = False
671 if todo:
672 v.SetVisibility(1)
673 v.SetVisDaughters(1)
674 gEve.ElementChanged(geoscene,True,True)
675

Variable Documentation

◆ action

eventDisplay_shipLHC.action

Definition at line 51 of file eventDisplay_shipLHC.py.

◆ br

eventDisplay_shipLHC.br = gEve.GetBrowser()

Definition at line 917 of file eventDisplay_shipLHC.py.

◆ default

eventDisplay_shipLHC.default

Definition at line 50 of file eventDisplay_shipLHC.py.

◆ dest

eventDisplay_shipLHC.dest

Definition at line 48 of file eventDisplay_shipLHC.py.

◆ False

eventDisplay_shipLHC.False

Definition at line 50 of file eventDisplay_shipLHC.py.

◆ fM

eventDisplay_shipLHC.fM = ROOT.genfit.FieldManager.getInstance()

Definition at line 913 of file eventDisplay_shipLHC.py.

◆ fMan

eventDisplay_shipLHC.fMan = None

Definition at line 26 of file eventDisplay_shipLHC.py.

◆ fRman

eventDisplay_shipLHC.fRman = ROOT.FairRootManager.Instance()

Definition at line 901 of file eventDisplay_shipLHC.py.

◆ fRun

eventDisplay_shipLHC.fRun = None

Definition at line 27 of file eventDisplay_shipLHC.py.

◆ g

eventDisplay_shipLHC.g = ROOT.gROOT

Definition at line 29 of file eventDisplay_shipLHC.py.

◆ gEnv

eventDisplay_shipLHC.gEnv = ROOT.gEnv

Definition at line 30 of file eventDisplay_shipLHC.py.

◆ geoFile

eventDisplay_shipLHC.geoFile

Definition at line 845 of file eventDisplay_shipLHC.py.

◆ geoMat

eventDisplay_shipLHC.geoMat = ROOT.genfit.TGeoMaterialInterface()

Definition at line 911 of file eventDisplay_shipLHC.py.

◆ gEve

eventDisplay_shipLHC.gEve = ROOT.gEve

Definition at line 909 of file eventDisplay_shipLHC.py.

◆ GTrack

eventDisplay_shipLHC.GTrack = ROOT.FairMCTracks("GeoTracks",verbose)

Definition at line 874 of file eventDisplay_shipLHC.py.

◆ help

eventDisplay_shipLHC.help

Definition at line 48 of file eventDisplay_shipLHC.py.

◆ inFile

eventDisplay_shipLHC.inFile = ROOT.FairFileSource(options.InputFile)

Definition at line 850 of file eventDisplay_shipLHC.py.

◆ InputFile

eventDisplay_shipLHC.InputFile

Definition at line 848 of file eventDisplay_shipLHC.py.

◆ lsOfGlobals

eventDisplay_shipLHC.lsOfGlobals = ROOT.gROOT.GetListOfGlobals()

Definition at line 903 of file eventDisplay_shipLHC.py.

◆ mcEngine

str eventDisplay_shipLHC.mcEngine = "TGeant4"

Definition at line 33 of file eventDisplay_shipLHC.py.

◆ mcHits

dict eventDisplay_shipLHC.mcHits = {}

Definition at line 887 of file eventDisplay_shipLHC.py.

◆ options

eventDisplay_shipLHC.options = parser.parse_args()

Definition at line 55 of file eventDisplay_shipLHC.py.

◆ OutputFile

eventDisplay_shipLHC.OutputFile

Definition at line 855 of file eventDisplay_shipLHC.py.

◆ parInput1

eventDisplay_shipLHC.parInput1 = ROOT.FairParRootFileIo()

Definition at line 860 of file eventDisplay_shipLHC.py.

◆ parser

eventDisplay_shipLHC.parser = ArgumentParser()

Definition at line 46 of file eventDisplay_shipLHC.py.

◆ pdg

eventDisplay_shipLHC.pdg = ROOT.TDatabasePDG.Instance()

Definition at line 28 of file eventDisplay_shipLHC.py.

◆ required

eventDisplay_shipLHC.required

Definition at line 48 of file eventDisplay_shipLHC.py.

◆ rtdb

eventDisplay_shipLHC.rtdb = fRun.GetRuntimeDb()

Definition at line 859 of file eventDisplay_shipLHC.py.

◆ rulers

eventDisplay_shipLHC.rulers = Rulers()

Definition at line 923 of file eventDisplay_shipLHC.py.

◆ sGeo

eventDisplay_shipLHC.sGeo = ROOT.gGeoManager

Definition at line 905 of file eventDisplay_shipLHC.py.

◆ SHiPDisplay

eventDisplay_shipLHC.SHiPDisplay = EventLoop()

Definition at line 924 of file eventDisplay_shipLHC.py.

◆ ShipGeo

eventDisplay_shipLHC.ShipGeo = ConfigRegistry.loadpy("$FAIRSHIP/geometry/geometry_config.py", Yheight = float(dy), EcalGeoFile = ecalGeoFile)

Definition at line 881 of file eventDisplay_shipLHC.py.

◆ simEngine

str eventDisplay_shipLHC.simEngine = "Pythia8"

Definition at line 34 of file eventDisplay_shipLHC.py.

◆ sTree

eventDisplay_shipLHC.sTree = fRman.GetInChain()

Definition at line 902 of file eventDisplay_shipLHC.py.

◆ top

eventDisplay_shipLHC.top = sGeo.GetTopVolume()

Definition at line 906 of file eventDisplay_shipLHC.py.

◆ Track

eventDisplay_shipLHC.Track = ROOT.FairMCTracks("Monte-Carlo Tracks",verbose)

Definition at line 873 of file eventDisplay_shipLHC.py.

◆ transparentMaterials

dict eventDisplay_shipLHC.transparentMaterials
Initial value:
1= {'iron':80,'aluminium':80,'mylar':60,'STTmix9010_2bar':95,'steel':80,'Aluminum':80,'Scintillator':80,
2# tau nu detector
3 'CoilCopper':70,'copper':90,'HPTgas':70,'Bakelite':70,'RPCgas':70,
4# charm detector
5 'CoilAluminium':70,'molybdenum':80,'PlasticBase':70,'tantalum':70}

Definition at line 39 of file eventDisplay_shipLHC.py.

◆ upkl

eventDisplay_shipLHC.upkl = Unpickler( fRun.GetGeoFile() )

Definition at line 884 of file eventDisplay_shipLHC.py.

◆ verbose

int eventDisplay_shipLHC.verbose = 0

Definition at line 871 of file eventDisplay_shipLHC.py.

◆ withGeo

eventDisplay_shipLHC.withGeo = False

Definition at line 35 of file eventDisplay_shipLHC.py.

◆ withMCTracks

bool eventDisplay_shipLHC.withMCTracks = True

Definition at line 36 of file eventDisplay_shipLHC.py.