ATLAS Offline Software
Functions
python.trigbs_rd1Only Namespace Reference

Functions

def ints2bits (info)
 
def modify (event)
 

Function Documentation

◆ ints2bits()

def python.trigbs_rd1Only.ints2bits (   info)

Definition at line 14 of file trigbs_rd1Only.py.

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 

◆ modify()

def python.trigbs_rd1Only.modify (   event)
filter out events not triggered by L1_RD1_FILLED (bit 63) 

Definition at line 26 of file trigbs_rd1Only.py.

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