|
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) | |
| drawShowerAxis (pad, k, shower_start, ref_point, shower_direction) | |
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.Get("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 706 of file 2dEventDisplay.py.
| 2dEventDisplay.bunchXtype | ( | ) |
Definition at line 226 of file 2dEventDisplay.py.
| 2dEventDisplay.checkOtherTriggers | ( | event, | |
deadTime = 100, |
|||
debug = False |
|||
| ) |
Definition at line 982 of file 2dEventDisplay.py.
| 2dEventDisplay.cleanTracks | ( | ) |
Definition at line 1034 of file 2dEventDisplay.py.
| 2dEventDisplay.drawCollisionAxis | ( | pad, | |
| k | |||
| ) |
Definition at line 1265 of file 2dEventDisplay.py.
| 2dEventDisplay.drawDetectors | ( | ) |
Definition at line 844 of file 2dEventDisplay.py.
| 2dEventDisplay.drawInfo | ( | pad, | |
| k, | |||
| run, | |||
| event, | |||
| timestamp, | |||
moreEventInfo = [] |
|||
| ) |
Definition at line 1213 of file 2dEventDisplay.py.
| 2dEventDisplay.drawLegend | ( | max_density, | |
| max_QDC, | |||
| n_legend_points | |||
| ) |
Draws legend for hit colour
Definition at line 264 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 292 of file 2dEventDisplay.py.
| 2dEventDisplay.drawShowerAxis | ( | pad, | |
| k, | |||
| shower_start, | |||
| ref_point, | |||
| shower_direction | |||
| ) |
Definition at line 1282 of file 2dEventDisplay.py.
| 2dEventDisplay.dumpChannels | ( | D = 'Digi_MuFilterHits' | ) |
Definition at line 1164 of file 2dEventDisplay.py.
| 2dEventDisplay.dumpVeto | ( | ) |
Definition at line 952 of file 2dEventDisplay.py.
| 2dEventDisplay.fillNode | ( | node, | |
color = None |
|||
| ) |
Definition at line 1185 of file 2dEventDisplay.py.
| 2dEventDisplay.firstTimeStamp | ( | event | ) |
Definition at line 1148 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 249 of file 2dEventDisplay.py.
| 2dEventDisplay.goodEvent | ( | event | ) |
Definition at line 182 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 308 of file 2dEventDisplay.py.
| 2dEventDisplay.MuFilter_PlaneBars | ( | detID | ) |
Definition at line 971 of file 2dEventDisplay.py.
| 2dEventDisplay.mufiNoise | ( | ) |
Definition at line 1105 of file 2dEventDisplay.py.
| 2dEventDisplay.pyExit | ( | ) |
Definition at line 24 of file 2dEventDisplay.py.
Definition at line 1059 of file 2dEventDisplay.py.
| 2dEventDisplay.twoTrackEvent | ( | sMin = 10, |
|
dClMin = 7, |
|||
minDistance = 1.5, |
|||
sepDistance = 0.5 |
|||
| ) |
Definition at line 757 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 198 of file 2dEventDisplay.py.
| 2dEventDisplay.zoom | ( | xmin = None, |
|
xmax = None, |
|||
ymin = None, |
|||
ymax = None, |
|||
zmin = None, |
|||
zmax = None |
|||
| ) |
Definition at line 937 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 80 of file 2dEventDisplay.py.
| 2dEventDisplay.Digi_MuFilterHits |
Definition at line 162 of file 2dEventDisplay.py.
| 2dEventDisplay.em = geo.snd_geo.EmulsionDet |
Definition at line 81 of file 2dEventDisplay.py.
| dict 2dEventDisplay.eventComment = {} |
Definition at line 32 of file 2dEventDisplay.py.
| 2dEventDisplay.eventTree = f.Get("cbmsim") |
Definition at line 111 of file 2dEventDisplay.py.
| 2dEventDisplay.f = ROOT.TFile.Open(options.path+'sndsw_raw_'+str(options.runNumber).zfill(6)+'.root') |
Definition at line 106 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 67 of file 2dEventDisplay.py.
| int 2dEventDisplay.firstScifi_z = 300 * u.cm |
Definition at line 94 of file 2dEventDisplay.py.
| 2dEventDisplay.format |
Definition at line 18 of file 2dEventDisplay.py.
| 2dEventDisplay.FSdict = pkl.load('FSdict') |
Definition at line 171 of file 2dEventDisplay.py.
| bool 2dEventDisplay.fsdict = False |
Definition at line 173 of file 2dEventDisplay.py.
| 2dEventDisplay.geo = SndlhcGeo.GeoInterface(options.geoFile) |
Definition at line 74 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 124 of file 2dEventDisplay.py.
| 2dEventDisplay.int |
Definition at line 37 of file 2dEventDisplay.py.
| 2dEventDisplay.ioman = ROOT.FairRootManager.Instance() |
Definition at line 103 of file 2dEventDisplay.py.
| 2dEventDisplay.level |
Definition at line 18 of file 2dEventDisplay.py.
| 2dEventDisplay.logger = ROOT.FairLogger.GetLogger() |
Definition at line 96 of file 2dEventDisplay.py.
| 2dEventDisplay.lsOfGlobals = ROOT.gROOT.GetListOfGlobals() |
Definition at line 76 of file 2dEventDisplay.py.
| 2dEventDisplay.mc = False |
Definition at line 92 of file 2dEventDisplay.py.
| 2dEventDisplay.mi = geo.snd_geo.MuFilter |
Definition at line 84 of file 2dEventDisplay.py.
| 2dEventDisplay.nav = ROOT.gGeoManager.GetCurrentNavigator() |
Definition at line 164 of file 2dEventDisplay.py.
| int 2dEventDisplay.Nlimit = 4 |
Definition at line 179 of file 2dEventDisplay.py.
| bool 2dEventDisplay.onlyScifi = False |
Definition at line 180 of file 2dEventDisplay.py.
| 2dEventDisplay.options = parser.parse_args() |
Definition at line 55 of file 2dEventDisplay.py.
| 2dEventDisplay.OT = sink.GetOutTree() |
Definition at line 151 of file 2dEventDisplay.py.
| 2dEventDisplay.outFile = ROOT.TMemFile('dummy','CREATE') |
Definition at line 118 of file 2dEventDisplay.py.
| 2dEventDisplay.parser = ArgumentParser() |
Definition at line 36 of file 2dEventDisplay.py.
Definition at line 68 of file 2dEventDisplay.py.
| 2dEventDisplay.required |
Definition at line 37 of file 2dEventDisplay.py.
| int 2dEventDisplay.resolution_factor = 1 |
Definition at line 57 of file 2dEventDisplay.py.
| 2dEventDisplay.run = ROOT.FairRunAna() |
Definition at line 102 of file 2dEventDisplay.py.
| str 2dEventDisplay.runId = 'sim' |
Definition at line 112 of file 2dEventDisplay.py.
| 2dEventDisplay.runInfo = False |
Definition at line 65 of file 2dEventDisplay.py.
| 2dEventDisplay.runNumber = eventTree.EventHeader.GetRunId() |
Definition at line 168 of file 2dEventDisplay.py.
| 2dEventDisplay.si = geo.snd_geo.Scifi |
Definition at line 82 of file 2dEventDisplay.py.
| 2dEventDisplay.sink = ROOT.FairRootFileSink(outFile) |
Definition at line 121 of file 2dEventDisplay.py.
| 2dEventDisplay.source = ROOT.FairFileSource(f) |
Definition at line 119 of file 2dEventDisplay.py.
| 2dEventDisplay.storePic |
Definition at line 63 of file 2dEventDisplay.py.
| 2dEventDisplay.trackTask = SndlhcTracking.Tracking() |
Definition at line 131 of file 2dEventDisplay.py.
| bool 2dEventDisplay.trans2local = False |
Definition at line 64 of file 2dEventDisplay.py.
| 2dEventDisplay.type |
Definition at line 37 of file 2dEventDisplay.py.
| 2dEventDisplay.vetoXdim |
Definition at line 85 of file 2dEventDisplay.py.
| bool 2dEventDisplay.with2Points = False |
Definition at line 91 of file 2dEventDisplay.py.
| bool 2dEventDisplay.withDetector = True |
Definition at line 90 of file 2dEventDisplay.py.
| 2dEventDisplay.xrdb = ROOT.FairRuntimeDb.instance() |
Definition at line 136 of file 2dEventDisplay.py.