ATLAS Offline Software
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
geo_id.GeometryIdentifier Class Reference
Collaboration diagram for geo_id.GeometryIdentifier:

Public Member Functions

def __init__ (self, value)
 
def vol_id (self)
 
def bnd_id (self)
 
def lay_id (self)
 
def app_id (self)
 
def sen_id (self)
 
def chn_id (self)
 
def value (self, mask=None)
 
def __repr__ (self)
 

Static Public Attributes

 volume_mask
 
 boundary_mask
 
 layer_mask
 
 approach_mask
 
 sensitive_mask
 
 channel_mask
 

Private Member Functions

def _ffs (self, x)
 

Private Attributes

 _value
 

Detailed Description

Definition at line 9 of file geo_id.py.

Constructor & Destructor Documentation

◆ __init__()

def geo_id.GeometryIdentifier.__init__ (   self,
  value 
)

Definition at line 17 of file geo_id.py.

17  def __init__(self, value):
18  assert type(value) == long
19  self._value = value
20 

Member Function Documentation

◆ __repr__()

def geo_id.GeometryIdentifier.__repr__ (   self)

Definition at line 55 of file geo_id.py.

55  def __repr__(self):
56  fmt = "GeometryIdentifier(vol={}, bnd={}, lay={}, app={}, sen={}, chn={})"
57  return fmt.format(self.vol_id,
58  self.bnd_id,
59  self.lay_id,
60  self.app_id,
61  self.sen_id,
62  self.chn_id)
63 
64 # infile = ROOT.TFile.Open(file)
65 
66 # tree = infile.Get("MaterialTracks")
67 
68 # for idx, event in enumerate(tree):

◆ _ffs()

def geo_id.GeometryIdentifier._ffs (   self,
  x 
)
private
Returns the index, counting from 0, of the
least significant set bit in `x`.

Definition at line 21 of file geo_id.py.

21  def _ffs(self, x):
22  """Returns the index, counting from 0, of the
23  least significant set bit in `x`.
24  """
25  return (x&-x).bit_length()-1
26 

◆ app_id()

def geo_id.GeometryIdentifier.app_id (   self)

Definition at line 40 of file geo_id.py.

40  def app_id(self):
41  return self.value(self.approach_mask)
42 

◆ bnd_id()

def geo_id.GeometryIdentifier.bnd_id (   self)

Definition at line 32 of file geo_id.py.

32  def bnd_id(self):
33  return self.value(self.boundary_mask)
34 

◆ chn_id()

def geo_id.GeometryIdentifier.chn_id (   self)

Definition at line 48 of file geo_id.py.

48  def chn_id(self):
49  return self.value(self.channel_mask)
50 

◆ lay_id()

def geo_id.GeometryIdentifier.lay_id (   self)

Definition at line 36 of file geo_id.py.

36  def lay_id(self):
37  return self.value(self.layer_mask)
38 

◆ sen_id()

def geo_id.GeometryIdentifier.sen_id (   self)

Definition at line 44 of file geo_id.py.

44  def sen_id(self):
45  return self.value(self.sensitive_mask)
46 

◆ value()

def geo_id.GeometryIdentifier.value (   self,
  mask = None 
)

Definition at line 51 of file geo_id.py.

51  def value(self, mask = None):
52  if mask == None: return self._value
53  return (self._value & mask) >> self._ffs(mask)
54 

◆ vol_id()

def geo_id.GeometryIdentifier.vol_id (   self)

Definition at line 28 of file geo_id.py.

28  def vol_id(self):
29  return self.value(self.volume_mask)
30 

Member Data Documentation

◆ _value

geo_id.GeometryIdentifier._value
private

Definition at line 19 of file geo_id.py.

◆ approach_mask

geo_id.GeometryIdentifier.approach_mask
static

Definition at line 13 of file geo_id.py.

◆ boundary_mask

geo_id.GeometryIdentifier.boundary_mask
static

Definition at line 11 of file geo_id.py.

◆ channel_mask

geo_id.GeometryIdentifier.channel_mask
static

Definition at line 15 of file geo_id.py.

◆ layer_mask

geo_id.GeometryIdentifier.layer_mask
static

Definition at line 12 of file geo_id.py.

◆ sensitive_mask

geo_id.GeometryIdentifier.sensitive_mask
static

Definition at line 14 of file geo_id.py.

◆ volume_mask

geo_id.GeometryIdentifier.volume_mask
static

Definition at line 10 of file geo_id.py.


The documentation for this class was generated from the following file:
athena.value
value
Definition: athena.py:124
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78