ATLAS Offline Software
Trigger
TrigTools
TrigByteStreamTools
python
trigbs_rd1Only.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
3
# Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
4
"""
5
Module for applying L1 prescales to the input data
6
7
Used as a "-Z" plugin to athenaMT/PT:
8
athenaMT/PT -Z TrigByteStreamTools.trigbs_prescaleL1 ...
9
"""
10
11
import
cppyy
12
cppyy.load_library(
'libTrigByteStreamToolsDict'
)
13
14
def
ints2bits
(info):
15
if
type
(info)==int:
16
info=[info]
17
bits=[]
18
cnt=0
19
for
word
in
info:
20
for
i
in
range
(32):
21
if
word&(1<<i):
22
bits+=[cnt]
23
cnt+=1
24
return
bits
25
26
def
modify
(event):
27
"""filter out events not triggered by L1_RD1_FILLED (bit 63) """
28
29
L1TAV=
ints2bits
(event.lvl1_trigger_info()[16:24])
30
if
63
in
L1TAV:
31
#print 'ACCEPTED'
32
return
event
33
else
:
34
#print 'REJECTED'
35
return
False
36
python.trigbs_rd1Only.ints2bits
def ints2bits(info)
Definition:
trigbs_rd1Only.py:14
plotBeamSpotVxVal.range
range
Definition:
plotBeamSpotVxVal.py:195
python.trigbs_rd1Only.modify
def modify(event)
Definition:
trigbs_rd1Only.py:26
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
Generated on Thu Nov 7 2024 21:29:23 for ATLAS Offline Software by
1.8.18