ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
xAODRootTest.xAODTestDecor Class Reference
Collaboration diagram for xAODRootTest.xAODTestDecor:

Public Member Functions

def __init__ (self, decorName, offset=0, readPrefix='')
 
def execute (self, tree, event=None)
 

Public Attributes

 readPrefix
 
 offset
 
 decor
 

Detailed Description

Definition at line 319 of file xAODRootTest.py.

Constructor & Destructor Documentation

◆ __init__()

def xAODRootTest.xAODTestDecor.__init__ (   self,
  decorName,
  offset = 0,
  readPrefix = '' 
)

Definition at line 320 of file xAODRootTest.py.

320  def __init__ (self, decorName, offset=0, readPrefix = ''):
321  self.readPrefix = readPrefix
322  self.offset = offset
323  self.decor = ROOT.SG.Decorator(int)(decorName)
324  return
325 
326 

Member Function Documentation

◆ execute()

def xAODRootTest.xAODTestDecor.execute (   self,
  tree,
  event = None 
)

Definition at line 327 of file xAODRootTest.py.

327  def execute (self, tree, event=None):
328  cvec = getattr (tree, self.readPrefix + 'cvec')
329  for c in cvec:
330  self.decor.set(c, self.offset + c.anInt())
331 
332  ctrig = getattr (tree, self.readPrefix + 'ctrig')
333  for c in cvec:
334  self.decor.set(c, self.offset + c.anInt())
335 
336  cinfo = getattr (tree, self.readPrefix + 'cinfo')
337  self.decor.set(cinfo, self.offset + cinfo.anInt())
338  return
339 

Member Data Documentation

◆ decor

xAODRootTest.xAODTestDecor.decor

Definition at line 323 of file xAODRootTest.py.

◆ offset

xAODRootTest.xAODTestDecor.offset

Definition at line 322 of file xAODRootTest.py.

◆ readPrefix

xAODRootTest.xAODTestDecor.readPrefix

Definition at line 321 of file xAODRootTest.py.


The documentation for this class was generated from the following file:
LArG4FSStartPointFilterLegacy.execute
execute
Definition: LArG4FSStartPointFilterLegacy.py:20
CxxUtils::set
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
Definition: bitmask.h:232
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18