| SND@LHC Software
    | 
| Functions | |
| pyExit () | |
| goodEvent (event) | |
| userProcessing (event) | |
| bunchXtype () | |
| getSciFiHitDensity (g, x_range=0.5) | |
| drawLegend (max_density, max_QDC, n_legend_points) | |
| drawSciFiHits (g, colour) | |
| loopEvents (start=0, save=False, goodEvents=False, withTrack=-1, withHoughTrack=-1, nTracks=0, minSipmMult=1, withTiming=False, option=None, Setup='TI18', verbose=0, auto=False, hitColour=None, FilterScifiHits=None) | |
| addTrack (OT, scifi=False) | |
| twoTrackEvent (sMin=10, dClMin=7, minDistance=1.5, sepDistance=0.5) | |
| drawDetectors () | |
| zoom (xmin=None, xmax=None, ymin=None, ymax=None, zmin=None, zmax=None) | |
| dumpVeto () | |
| MuFilter_PlaneBars (detID) | |
| checkOtherTriggers (event, deadTime=100, debug=False) | |
| cleanTracks () | |
| timingOfEvent (makeCluster=False, debug=False) | |
| mufiNoise () | |
| firstTimeStamp (event) | |
| dumpChannels (D='Digi_MuFilterHits') | |
| fillNode (node, color=None) | |
| drawInfo (pad, k, run, event, timestamp, moreEventInfo=[]) | |
| drawCollisionAxis (pad, k) | |
| Variables | |
| format | |
| level | |
| A | |
| B | |
| dict | eventComment = {} | 
| dict | h = {} | 
| parser = ArgumentParser() | |
| dest | |
| help | |
| type | |
| int | |
| required | |
| False | |
| default | |
| action | |
| options = parser.parse_args() | |
| int | resolution_factor = 1 | 
| storePic | |
| bool | trans2local = False | 
| bool | runInfo = False | 
| fg = ROOT.TFile.Open(options.server+options.p+"RunInfodict.root") | |
| pkl = Unpickler(fg) | |
| geo = SndlhcGeo.GeoInterface(options.geoFile) | |
| lsOfGlobals = ROOT.gROOT.GetListOfGlobals() | |
| dict | detSize = {} | 
| em = geo.snd_geo.EmulsionDet | |
| si = geo.snd_geo.Scifi | |
| mi = geo.snd_geo.MuFilter | |
| vetoXdim | |
| bool | withDetector = True | 
| bool | with2Points = False | 
| bool | mc = False | 
| int | firstScifi_z = 300 * u.cm | 
| logger = ROOT.FairLogger.GetLogger() | |
| run = ROOT.FairRunAna() | |
| ioman = ROOT.FairRootManager.Instance() | |
| f = ROOT.TFile.Open(options.path+'sndsw_raw_'+str(options.runNumber).zfill(6)+'.root') | |
| eventTree = f.cbmsim | |
| str | runId = 'sim' | 
| outFile = ROOT.TMemFile('dummy','CREATE') | |
| source = ROOT.FairFileSource(f) | |
| sink = ROOT.FairRootFileSink(outFile) | |
| dict | HT_tasks | 
| trackTask = SndlhcTracking.Tracking() | |
| xrdb = ROOT.FairRuntimeDb.instance() | |
| OT = sink.GetOutTree() | |
| Digi_MuFilterHits | |
| nav = ROOT.gGeoManager.GetCurrentNavigator() | |
| runNumber = eventTree.EventHeader.GetRunId() | |
| FSdict = pkl.load('FSdict') | |
| fsdict = False | |
| int | Nlimit = 4 | 
| bool | onlyScifi = False | 
| 2dEventDisplay.addTrack | ( | OT, | |
| scifi = False | |||
| ) | 
Definition at line 660 of file 2dEventDisplay.py.
| 2dEventDisplay.bunchXtype | ( | ) | 
Definition at line 224 of file 2dEventDisplay.py.
| 2dEventDisplay.checkOtherTriggers | ( | event, | |
| deadTime = 100, | |||
| debug = False | |||
| ) | 
Definition at line 924 of file 2dEventDisplay.py.
| 2dEventDisplay.cleanTracks | ( | ) | 
Definition at line 976 of file 2dEventDisplay.py.
| 2dEventDisplay.drawCollisionAxis | ( | pad, | |
| k | |||
| ) | 
Definition at line 1207 of file 2dEventDisplay.py.
| 2dEventDisplay.drawDetectors | ( | ) | 
Definition at line 797 of file 2dEventDisplay.py.
| 2dEventDisplay.drawInfo | ( | pad, | |
| k, | |||
| run, | |||
| event, | |||
| timestamp, | |||
| moreEventInfo = [] | |||
| ) | 
Definition at line 1155 of file 2dEventDisplay.py.
| 2dEventDisplay.drawLegend | ( | max_density, | |
| max_QDC, | |||
| n_legend_points | |||
| ) | 
Draws legend for hit colour
Definition at line 262 of file 2dEventDisplay.py.
| 2dEventDisplay.drawSciFiHits | ( | g, | |
| colour | |||
| ) | 
Takes TGraph g and draws the graphs markers with the TColor given in list colour.
Definition at line 290 of file 2dEventDisplay.py.
| 2dEventDisplay.dumpChannels | ( | D = 'Digi_MuFilterHits' | ) | 
Definition at line 1106 of file 2dEventDisplay.py.
| 2dEventDisplay.dumpVeto | ( | ) | 
Definition at line 894 of file 2dEventDisplay.py.
| 2dEventDisplay.fillNode | ( | node, | |
| color = None | |||
| ) | 
Definition at line 1127 of file 2dEventDisplay.py.
| 2dEventDisplay.firstTimeStamp | ( | event | ) | 
Definition at line 1090 of file 2dEventDisplay.py.
| 2dEventDisplay.getSciFiHitDensity | ( | g, | |
| x_range = 0.5 | |||
| ) | 
Takes ROOT TGraph g and returns array with number of hits within x_range cm of each hit.
Definition at line 247 of file 2dEventDisplay.py.
| 2dEventDisplay.goodEvent | ( | event | ) | 
Definition at line 180 of file 2dEventDisplay.py.
| 2dEventDisplay.loopEvents | ( | start = 0, | |
| save = False, | |||
| goodEvents = False, | |||
| withTrack = -1, | |||
| withHoughTrack = -1, | |||
| nTracks = 0, | |||
| minSipmMult = 1, | |||
| withTiming = False, | |||
| option = None, | |||
| Setup = 'TI18', | |||
| verbose = 0, | |||
| auto = False, | |||
| hitColour = None, | |||
| FilterScifiHits = None | |||
| ) | 
Definition at line 306 of file 2dEventDisplay.py.
| 2dEventDisplay.MuFilter_PlaneBars | ( | detID | ) | 
Definition at line 913 of file 2dEventDisplay.py.
| 2dEventDisplay.mufiNoise | ( | ) | 
Definition at line 1047 of file 2dEventDisplay.py.
| 2dEventDisplay.pyExit | ( | ) | 
Definition at line 24 of file 2dEventDisplay.py.
Definition at line 1001 of file 2dEventDisplay.py.
| 2dEventDisplay.twoTrackEvent | ( | sMin = 10, | |
| dClMin = 7, | |||
| minDistance = 1.5, | |||
| sepDistance = 0.5 | |||
| ) | 
Definition at line 710 of file 2dEventDisplay.py.
| 2dEventDisplay.userProcessing | ( | event | ) | 
User hook to add action after event is plotted.
Useful for adding special objects to the display for example.
An example for display of 3-track events with external reco:
```python
trackTask.multipleTrackCandidates(
    nMaxCl=8, dGap=0.2, dMax=0.8, dMax3=0.8, ovMax=1, doublet=True, debug=False
)
n3D = [0, 0]
for p in range(2):
    tc = h['simpleDisplay'].cd(-p + 2)
    for trackId in trackTask.multipleTrackStore['trackCand'][p]:
        if trackId < 100000 and not trackTask.multipleTrackStore['doublet']:
            continue
        if trackId in trackTask.multipleTrackStore['cloneCand'][p]:
            continue
        n3D[p] += 1
        rc = trackTask.multipleTrackStore['trackCand'][p][trackId].Fit('pol1', 'SQ')
        trackTask.multipleTrackStore['trackCand'][p][trackId].Draw('same')
    tc.Update()
print('Number of full tracks', n3D)
return True
```
 
Definition at line 196 of file 2dEventDisplay.py.
| 2dEventDisplay.zoom | ( | xmin = None, | |
| xmax = None, | |||
| ymin = None, | |||
| ymax = None, | |||
| zmin = None, | |||
| zmax = None | |||
| ) | 
Definition at line 879 of file 2dEventDisplay.py.
| 2dEventDisplay.A | 
Definition at line 30 of file 2dEventDisplay.py.
| 2dEventDisplay.action | 
Definition at line 43 of file 2dEventDisplay.py.
| 2dEventDisplay.B | 
Definition at line 30 of file 2dEventDisplay.py.
| 2dEventDisplay.default | 
Definition at line 38 of file 2dEventDisplay.py.
| 2dEventDisplay.dest | 
Definition at line 37 of file 2dEventDisplay.py.
| dict 2dEventDisplay.detSize = {} | 
Definition at line 78 of file 2dEventDisplay.py.
| 2dEventDisplay.Digi_MuFilterHits | 
Definition at line 160 of file 2dEventDisplay.py.
| 2dEventDisplay.em = geo.snd_geo.EmulsionDet | 
Definition at line 79 of file 2dEventDisplay.py.
| dict 2dEventDisplay.eventComment = {} | 
Definition at line 32 of file 2dEventDisplay.py.
| 2dEventDisplay.eventTree = f.cbmsim | 
Definition at line 109 of file 2dEventDisplay.py.
| 2dEventDisplay.f = ROOT.TFile.Open(options.path+'sndsw_raw_'+str(options.runNumber).zfill(6)+'.root') | 
Definition at line 104 of file 2dEventDisplay.py.
| 2dEventDisplay.False | 
Definition at line 38 of file 2dEventDisplay.py.
| 2dEventDisplay.fg = ROOT.TFile.Open(options.server+options.p+"RunInfodict.root") | 
Definition at line 65 of file 2dEventDisplay.py.
| int 2dEventDisplay.firstScifi_z = 300 * u.cm | 
Definition at line 92 of file 2dEventDisplay.py.
| 2dEventDisplay.format | 
Definition at line 18 of file 2dEventDisplay.py.
| 2dEventDisplay.FSdict = pkl.load('FSdict') | 
Definition at line 169 of file 2dEventDisplay.py.
| bool 2dEventDisplay.fsdict = False | 
Definition at line 171 of file 2dEventDisplay.py.
| 2dEventDisplay.geo = SndlhcGeo.GeoInterface(options.geoFile) | 
Definition at line 72 of file 2dEventDisplay.py.
| dict 2dEventDisplay.h = {} | 
Definition at line 34 of file 2dEventDisplay.py.
| 2dEventDisplay.help | 
Definition at line 37 of file 2dEventDisplay.py.
| dict 2dEventDisplay.HT_tasks | 
Definition at line 122 of file 2dEventDisplay.py.
| 2dEventDisplay.int | 
Definition at line 37 of file 2dEventDisplay.py.
| 2dEventDisplay.ioman = ROOT.FairRootManager.Instance() | 
Definition at line 101 of file 2dEventDisplay.py.
| 2dEventDisplay.level | 
Definition at line 18 of file 2dEventDisplay.py.
| 2dEventDisplay.logger = ROOT.FairLogger.GetLogger() | 
Definition at line 94 of file 2dEventDisplay.py.
| 2dEventDisplay.lsOfGlobals = ROOT.gROOT.GetListOfGlobals() | 
Definition at line 74 of file 2dEventDisplay.py.
| 2dEventDisplay.mc = False | 
Definition at line 90 of file 2dEventDisplay.py.
| 2dEventDisplay.mi = geo.snd_geo.MuFilter | 
Definition at line 82 of file 2dEventDisplay.py.
| 2dEventDisplay.nav = ROOT.gGeoManager.GetCurrentNavigator() | 
Definition at line 162 of file 2dEventDisplay.py.
| int 2dEventDisplay.Nlimit = 4 | 
Definition at line 177 of file 2dEventDisplay.py.
| bool 2dEventDisplay.onlyScifi = False | 
Definition at line 178 of file 2dEventDisplay.py.
| 2dEventDisplay.options = parser.parse_args() | 
Definition at line 53 of file 2dEventDisplay.py.
| 2dEventDisplay.OT = sink.GetOutTree() | 
Definition at line 149 of file 2dEventDisplay.py.
| 2dEventDisplay.outFile = ROOT.TMemFile('dummy','CREATE') | 
Definition at line 116 of file 2dEventDisplay.py.
| 2dEventDisplay.parser = ArgumentParser() | 
Definition at line 36 of file 2dEventDisplay.py.
Definition at line 66 of file 2dEventDisplay.py.
| 2dEventDisplay.required | 
Definition at line 37 of file 2dEventDisplay.py.
| int 2dEventDisplay.resolution_factor = 1 | 
Definition at line 55 of file 2dEventDisplay.py.
| 2dEventDisplay.run = ROOT.FairRunAna() | 
Definition at line 100 of file 2dEventDisplay.py.
| str 2dEventDisplay.runId = 'sim' | 
Definition at line 110 of file 2dEventDisplay.py.
| 2dEventDisplay.runInfo = False | 
Definition at line 63 of file 2dEventDisplay.py.
| 2dEventDisplay.runNumber = eventTree.EventHeader.GetRunId() | 
Definition at line 166 of file 2dEventDisplay.py.
| 2dEventDisplay.si = geo.snd_geo.Scifi | 
Definition at line 80 of file 2dEventDisplay.py.
| 2dEventDisplay.sink = ROOT.FairRootFileSink(outFile) | 
Definition at line 119 of file 2dEventDisplay.py.
| 2dEventDisplay.source = ROOT.FairFileSource(f) | 
Definition at line 117 of file 2dEventDisplay.py.
| 2dEventDisplay.storePic | 
Definition at line 61 of file 2dEventDisplay.py.
| 2dEventDisplay.trackTask = SndlhcTracking.Tracking() | 
Definition at line 129 of file 2dEventDisplay.py.
| bool 2dEventDisplay.trans2local = False | 
Definition at line 62 of file 2dEventDisplay.py.
| 2dEventDisplay.type | 
Definition at line 37 of file 2dEventDisplay.py.
| 2dEventDisplay.vetoXdim | 
Definition at line 83 of file 2dEventDisplay.py.
| bool 2dEventDisplay.with2Points = False | 
Definition at line 89 of file 2dEventDisplay.py.
| bool 2dEventDisplay.withDetector = True | 
Definition at line 88 of file 2dEventDisplay.py.
| 2dEventDisplay.xrdb = ROOT.FairRuntimeDb.instance() | 
Definition at line 134 of file 2dEventDisplay.py.