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='', verbose=0, auto=False, hitColour=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=[]) | |
Variables | |
A | |
B | |
dict | eventComment = {} |
dict | h = {} |
parser = ArgumentParser() | |
dest | |
help | |
type | |
int | |
required | |
False | |
default | |
options = parser.parse_args() | |
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 = {} |
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 582 of file 2dEventDisplay.py.
2dEventDisplay.bunchXtype | ( | ) |
Definition at line 206 of file 2dEventDisplay.py.
2dEventDisplay.checkOtherTriggers | ( | event, | |
deadTime = 100 , |
|||
debug = False |
|||
) |
Definition at line 844 of file 2dEventDisplay.py.
2dEventDisplay.cleanTracks | ( | ) |
Definition at line 896 of file 2dEventDisplay.py.
2dEventDisplay.drawDetectors | ( | ) |
Definition at line 719 of file 2dEventDisplay.py.
2dEventDisplay.drawInfo | ( | pad, | |
k, | |||
run, | |||
event, | |||
timestamp, | |||
moreEventInfo = [] |
|||
) |
Definition at line 1075 of file 2dEventDisplay.py.
2dEventDisplay.drawLegend | ( | max_density, | |
max_QDC, | |||
n_legend_points | |||
) |
Draws legend for hit colour
Definition at line 244 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 272 of file 2dEventDisplay.py.
2dEventDisplay.dumpChannels | ( | D = 'Digi_MuFilterHits' | ) |
Definition at line 1026 of file 2dEventDisplay.py.
2dEventDisplay.dumpVeto | ( | ) |
Definition at line 814 of file 2dEventDisplay.py.
2dEventDisplay.fillNode | ( | node, | |
color = None |
|||
) |
Definition at line 1047 of file 2dEventDisplay.py.
2dEventDisplay.firstTimeStamp | ( | event | ) |
Definition at line 1010 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 229 of file 2dEventDisplay.py.
2dEventDisplay.goodEvent | ( | event | ) |
Definition at line 162 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 = '' , |
|||
verbose = 0 , |
|||
auto = False , |
|||
hitColour = None |
|||
) |
Definition at line 288 of file 2dEventDisplay.py.
2dEventDisplay.MuFilter_PlaneBars | ( | detID | ) |
Definition at line 833 of file 2dEventDisplay.py.
2dEventDisplay.mufiNoise | ( | ) |
Definition at line 967 of file 2dEventDisplay.py.
2dEventDisplay.pyExit | ( | ) |
Definition at line 19 of file 2dEventDisplay.py.
Definition at line 921 of file 2dEventDisplay.py.
2dEventDisplay.twoTrackEvent | ( | sMin = 10 , |
|
dClMin = 7 , |
|||
minDistance = 1.5 , |
|||
sepDistance = 0.5 |
|||
) |
Definition at line 632 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 178 of file 2dEventDisplay.py.
2dEventDisplay.zoom | ( | xmin = None , |
|
xmax = None , |
|||
ymin = None , |
|||
ymax = None , |
|||
zmin = None , |
|||
zmax = None |
|||
) |
Definition at line 799 of file 2dEventDisplay.py.
2dEventDisplay.A |
Definition at line 25 of file 2dEventDisplay.py.
2dEventDisplay.B |
Definition at line 25 of file 2dEventDisplay.py.
2dEventDisplay.default |
Definition at line 33 of file 2dEventDisplay.py.
2dEventDisplay.dest |
Definition at line 32 of file 2dEventDisplay.py.
dict 2dEventDisplay.detSize = {} |
Definition at line 61 of file 2dEventDisplay.py.
2dEventDisplay.Digi_MuFilterHits |
Definition at line 142 of file 2dEventDisplay.py.
dict 2dEventDisplay.eventComment = {} |
Definition at line 27 of file 2dEventDisplay.py.
2dEventDisplay.eventTree = f.cbmsim |
Definition at line 91 of file 2dEventDisplay.py.
2dEventDisplay.f = ROOT.TFile.Open(options.path+'sndsw_raw_'+str(options.runNumber).zfill(6)+'.root') |
Definition at line 86 of file 2dEventDisplay.py.
2dEventDisplay.False |
Definition at line 33 of file 2dEventDisplay.py.
2dEventDisplay.fg = ROOT.TFile.Open(options.server+options.p+"RunInfodict.root") |
Definition at line 48 of file 2dEventDisplay.py.
int 2dEventDisplay.firstScifi_z = 300 * u.cm |
Definition at line 74 of file 2dEventDisplay.py.
2dEventDisplay.FSdict = pkl.load('FSdict') |
Definition at line 151 of file 2dEventDisplay.py.
bool 2dEventDisplay.fsdict = False |
Definition at line 153 of file 2dEventDisplay.py.
2dEventDisplay.geo = SndlhcGeo.GeoInterface(options.geoFile) |
Definition at line 55 of file 2dEventDisplay.py.
dict 2dEventDisplay.h = {} |
Definition at line 29 of file 2dEventDisplay.py.
2dEventDisplay.help |
Definition at line 32 of file 2dEventDisplay.py.
dict 2dEventDisplay.HT_tasks |
Definition at line 104 of file 2dEventDisplay.py.
2dEventDisplay.int |
Definition at line 32 of file 2dEventDisplay.py.
2dEventDisplay.ioman = ROOT.FairRootManager.Instance() |
Definition at line 83 of file 2dEventDisplay.py.
2dEventDisplay.logger = ROOT.FairLogger.GetLogger() |
Definition at line 76 of file 2dEventDisplay.py.
2dEventDisplay.lsOfGlobals = ROOT.gROOT.GetListOfGlobals() |
Definition at line 57 of file 2dEventDisplay.py.
2dEventDisplay.mc = False |
Definition at line 72 of file 2dEventDisplay.py.
2dEventDisplay.mi = geo.snd_geo.MuFilter |
Definition at line 64 of file 2dEventDisplay.py.
2dEventDisplay.nav = ROOT.gGeoManager.GetCurrentNavigator() |
Definition at line 144 of file 2dEventDisplay.py.
int 2dEventDisplay.Nlimit = 4 |
Definition at line 159 of file 2dEventDisplay.py.
bool 2dEventDisplay.onlyScifi = False |
Definition at line 160 of file 2dEventDisplay.py.
2dEventDisplay.options = parser.parse_args() |
Definition at line 43 of file 2dEventDisplay.py.
2dEventDisplay.OT = sink.GetOutTree() |
Definition at line 131 of file 2dEventDisplay.py.
2dEventDisplay.outFile = ROOT.TMemFile('dummy','CREATE') |
Definition at line 98 of file 2dEventDisplay.py.
2dEventDisplay.parser = ArgumentParser() |
Definition at line 31 of file 2dEventDisplay.py.
Definition at line 49 of file 2dEventDisplay.py.
2dEventDisplay.required |
Definition at line 32 of file 2dEventDisplay.py.
2dEventDisplay.run = ROOT.FairRunAna() |
Definition at line 82 of file 2dEventDisplay.py.
str 2dEventDisplay.runId = 'sim' |
Definition at line 92 of file 2dEventDisplay.py.
2dEventDisplay.runInfo = False |
Definition at line 46 of file 2dEventDisplay.py.
2dEventDisplay.runNumber = eventTree.EventHeader.GetRunId() |
Definition at line 148 of file 2dEventDisplay.py.
2dEventDisplay.si = geo.snd_geo.Scifi |
Definition at line 62 of file 2dEventDisplay.py.
2dEventDisplay.sink = ROOT.FairRootFileSink(outFile) |
Definition at line 101 of file 2dEventDisplay.py.
2dEventDisplay.source = ROOT.FairFileSource(f) |
Definition at line 99 of file 2dEventDisplay.py.
2dEventDisplay.storePic |
Definition at line 44 of file 2dEventDisplay.py.
2dEventDisplay.trackTask = SndlhcTracking.Tracking() |
Definition at line 111 of file 2dEventDisplay.py.
bool 2dEventDisplay.trans2local = False |
Definition at line 45 of file 2dEventDisplay.py.
2dEventDisplay.type |
Definition at line 32 of file 2dEventDisplay.py.
2dEventDisplay.vetoXdim |
Definition at line 65 of file 2dEventDisplay.py.
bool 2dEventDisplay.with2Points = False |
Definition at line 71 of file 2dEventDisplay.py.
bool 2dEventDisplay.withDetector = True |
Definition at line 70 of file 2dEventDisplay.py.
2dEventDisplay.xrdb = ROOT.FairRuntimeDb.instance() |
Definition at line 116 of file 2dEventDisplay.py.