ATLAS Offline Software
Functions
TrigByteStreamConfig Namespace Reference

Functions

def getTrigByteStreamInputSvc (flags, name='ByteStreamInputSvc')
 
def getTrigByteStreamCnvSvc (flags, name='ByteStreamCnvSvc')
 
def TrigByteStreamCfg (flags, type_names=[])
 

Function Documentation

◆ getTrigByteStreamCnvSvc()

def TrigByteStreamConfig.getTrigByteStreamCnvSvc (   flags,
  name = 'ByteStreamCnvSvc' 
)

Definition at line 37 of file TrigByteStreamConfig.py.

37 def getTrigByteStreamCnvSvc(flags, name='ByteStreamCnvSvc'):
38  svc = CompFactory.TrigByteStreamCnvSvc(name)
39  svc.MonTool = GenericMonitoringTool(flags, 'MonTool', HistPath='HLTFramework/'+name)
40  svc.MonTool.defineHistogram('TIME_eventDone', path='EXPERT', type='TH1F',
41  title='Time of DataCollector::eventDone() calls;Time [ms];Calls',
42  xbins=400, xmin=0, xmax=2)
43  svc.MonTool.defineHistogram('TIME_eventDone;TIME_eventDone_extRange', path='EXPERT', type='TH1F',
44  title='Time of DataCollector::eventDone() calls;Time [ms];Calls',
45  xbins=400, xmin=0, xmax=200, opt='kCanRebin')
46  svc.MonTool.defineHistogram('StreamTags', path='EXPERT', type='TH1F',
47  title='Stream Tags produced by HLT;;Events',
48  xbins=10, xmin=0, xmax=10)
49  svc.MonTool.defineHistogram('StreamTagCorrA,StreamTagCorrB;StreamTagsCorr', path='EXPERT', type='TH2F',
50  title='Stream Tags (produced by HLT) correlation',
51  xbins=10, xmin=0, xmax=10, ybins=10, ymin=0, ymax=10)
52  svc.MonTool.defineHistogram('StreamTagsNum', path='EXPERT', type='TH1F',
53  title='Number of Stream Tags produced by HLT;Number of Stream Tags;Events',
54  xbins=20, xmin=0, xmax=20)
55  svc.MonTool.defineHistogram('StreamTagsType', path='EXPERT', type='TH1F',
56  title='Type of Stream Tags produced by HLT;;Events',
57  xbins=7, xmin=0, xmax=7,
58  xlabels=["physics", "calibration", "express", "monitoring", "debug", "reserved", "unknown"])
59  svc.MonTool.defineHistogram('StreamTagsPebRobsNum', path='EXPERT', type='TH1F',
60  title='Number of ROBs in PEB stream tags;Number of ROBs;Entries',
61  xbins=200, xmin=0, xmax=200,
62  cutmask="StreamTagIsPeb")
63  svc.MonTool.defineHistogram('StreamTagsPebSubDetsNum', path='EXPERT', type='TH1F',
64  title='Number of SubDetectors in PEB stream tags;Number of SubDetectors;Entries',
65  xbins=100, xmin=0, xmax=100,
66  cutmask="StreamTagIsPeb")
67  svc.MonTool.defineHistogram('StreamTagsPebSubDetsFromRobList', path='EXPERT', type='TH1F',
68  title='SubDetectors in PEB stream tags ROB list;;Entries',
69  xbins=20, xmin=0, xmax=20)
70  svc.MonTool.defineHistogram('StreamTagsPebSubDetsFromSubDetList', path='EXPERT', type='TH1F',
71  title='SubDetectors in PEB stream tags SubDetector list;;Entries',
72  xbins=20, xmin=0, xmax=20)
73  svc.MonTool.defineHistogram('ResultSizeTotal', path='EXPERT', type='TH1F',
74  title='HLT result total size (sum of all modules);Size [kB];Events',
75  xbins=200, xmin=0, xmax=2000, opt='kCanRebin')
76  svc.MonTool.defineHistogram('ResultSizeFullEvFrag', path='EXPERT', type='TH1F',
77  title='HLT output FullEventFragment size;Size [kB];Events',
78  xbins=200, xmin=0, xmax=2000, opt='kCanRebin')
79  svc.MonTool.defineHistogram('ResultModuleID,ResultModuleSize;ResultSizeByModule', path='EXPERT', type='TH2F',
80  title='HLT result size by module;Module ID;Size [kB]',
81  xbins=10, xmin=0, xmax=10, ybins=400, ymin=0, ymax=4000)
82  svc.MonTool.defineHistogram('StreamTags,ResultSizeStream;ResultSizeByStream', path='EXPERT', type='TH2F',
83  title='HLT result size by stream;;Size [kB]',
84  xbins=10, xmin=0, xmax=10, ybins=400, ymin=0, ymax=4000)
85  svc.MonTool.defineHistogram('OnlineErrorCode', path='EXPERT', type='TH1F',
86  title='Online error codes;;Events',
87  xbins=1, xmin=0, xmax=1)
88  svc.MonTool.defineHistogram('TIME_monitorRawEvent', path='EXPERT', type='TH1F',
89  title='Time of monitorRawEvent() calls;Time [us];Calls',
90  xbins=1000, xmin=0, xmax=1000)
91  return svc
92 

◆ getTrigByteStreamInputSvc()

def TrigByteStreamConfig.getTrigByteStreamInputSvc (   flags,
  name = 'ByteStreamInputSvc' 
)

Definition at line 10 of file TrigByteStreamConfig.py.

10 def getTrigByteStreamInputSvc(flags, name='ByteStreamInputSvc'):
11  svc = CompFactory.TrigByteStreamInputSvc(name)
12 
13  # Enable checking the CTP ROB with module ID 1 (the RoIB ROB), ATR-25217
14  svc.CheckCTPFragmentModuleID = 1 # ROB ID 0x770001
15 
16  svc.MonTool = GenericMonitoringTool(flags, 'MonTool', HistPath='HLTFramework/'+name)
17  svc.MonTool.defineHistogram('L1Result_NumROBs', path='EXPERT', type='TH1F',
18  title='Number of ROBs received in L1 result;Number of ROBs;Events',
19  xbins=100, xmin=0, xmax=100)
20  svc.MonTool.defineHistogram('L1Result_FullEvFragSize', path='EXPERT', type='TH1F',
21  title='Size of L1 result FullEventFragment;Size [kB];Events',
22  xbins=100, xmin=0, xmax=100)
23  svc.MonTool.defineHistogram('L1Result_SubDets', path='EXPERT', type='TH1F',
24  title='Source of ROBs in L1 result passed to HLT;;Total number of ROBs',
25  xbins=4, xmin=0, xmax=4)
26  svc.MonTool.defineHistogram('TIME_getNext', path='EXPERT', type='TH1F',
27  title='Time of DataCollector::getNext() calls;Time [ms];Calls',
28  xbins=400, xmin=0, xmax=200)
29  svc.MonTool.defineHistogram('TIME_getNext;TIME_getNext_extRange', path='EXPERT', type='TH1F',
30  title='Time of DataCollector::getNext() calls;Time [ms];Calls',
31  xbins=400, xmin=0, xmax=2000, opt='kCanRebin')
32  svc.MonTool.defineHistogram('getNext_LBN,getNext_noEvent;NoEventFraction', path='EXPERT', type='TProfile',
33  title='Fraction of getNext calls returning NO_EVENT;Lumi Block;Event fraction',
34  xbins=100, xmin=0, xmax=100, opt='kCanRebin')
35  return svc
36 

◆ TrigByteStreamCfg()

def TrigByteStreamConfig.TrigByteStreamCfg (   flags,
  type_names = [] 
)

Definition at line 93 of file TrigByteStreamConfig.py.

93 def TrigByteStreamCfg(flags, type_names=[]):
94  acc = ComponentAccumulator()
95 
96  bytestream_conversion = getTrigByteStreamCnvSvc(flags)
97  acc.addService(bytestream_conversion, primary=True)
98 
99  bytestream_input = getTrigByteStreamInputSvc(flags)
100  acc.addService(bytestream_input)
101 
102  event_selector = CompFactory.TrigEventSelectorByteStream(
103  name='EventSelectorByteStream',
104  ByteStreamInputSvc=bytestream_input.name)
105  acc.addService(event_selector)
106  acc.setAppProperty("EvtSel", event_selector.name)
107 
108  event_persistency = CompFactory.EvtPersistencySvc(
109  name="EventPersistencySvc",
110  CnvServices=[bytestream_conversion.name])
111  acc.addService(event_persistency)
112 
113  address_provider = CompFactory.ByteStreamAddressProviderSvc(
114  TypeNames=type_names)
115  acc.addService(address_provider)
116 
117  proxy = CompFactory.ProxyProviderSvc()
118  proxy.ProviderNames += [address_provider.name]
119  acc.addService(proxy)
120 
121  acc.merge(SGInputLoaderCfg(flags,
122  Load=address_provider.TypeNames,
123  FailIfNoProxy=flags.Input.FailOnUnknownCollections))
124 
125  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
GenericMonitoringTool
Definition: GenericMonitoringTool.h:53
TrigByteStreamConfig.getTrigByteStreamInputSvc
def getTrigByteStreamInputSvc(flags, name='ByteStreamInputSvc')
Definition: TrigByteStreamConfig.py:10
SGInputLoaderConfig.SGInputLoaderCfg
def SGInputLoaderCfg(flags, Load=None, **kwargs)
Definition: SGInputLoaderConfig.py:7
TrigByteStreamConfig.TrigByteStreamCfg
def TrigByteStreamCfg(flags, type_names=[])
Definition: TrigByteStreamConfig.py:93
TrigByteStreamConfig.getTrigByteStreamCnvSvc
def getTrigByteStreamCnvSvc(flags, name='ByteStreamCnvSvc')
Definition: TrigByteStreamConfig.py:37