| 
| def  | __init__ (self, Name, Type='float', Index=-1, Scale=1) | 
|   | 
| def  | toTool (self) | 
|   | 
| def  | vname (self) | 
|   | 
| def  | __str__ (self) | 
|   | 
| def  | clone (self, newname, **args) | 
|   | 
| def  | clone (self, **kwargs) | 
|   | 
| def  | defineHisto (self, parentAlg, monhelper, path) | 
|   | 
| def  | __getattr__ (self, attr) | 
|   | 
| def  | __setattr__ (self, attr, value) | 
|   | 
| def  | __setitem__ (self, attr, value) | 
|   | 
| def  | dump (self, out=None) | 
|   | 
 | 
| def  | _dump (self, writeFunc) | 
|   | 
A dictionary specialized to contain a jet variable specification
 
Definition at line 203 of file JetMonitoringConfig.py.
 
◆ __init__()
      
        
          | def JetMonitoringConfig.VarSpec.__init__  | 
          ( | 
            | 
          self,  | 
        
        
           | 
           | 
            | 
          Name,  | 
        
        
           | 
           | 
            | 
          Type = 'float',  | 
        
        
           | 
           | 
            | 
          Index = -1,  | 
        
        
           | 
           | 
            | 
          Scale = 1  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 205 of file JetMonitoringConfig.py.
  205     def __init__(self, Name , Type='float', Index=-1, Scale=1):
 
  207         if Name.endswith(
':GeV'):
 
  208             Scale=1./SystemOfUnits.GeV
 
  214             if Type[:3] != 
'vec': Type=
'vec'+Type
 
  219         ConfigDict.__init__(self)
 
 
 
 
◆ __getattr__()
  
  
      
        
          | def JetMonitoringConfig.ConfigDict.__getattr__  | 
          ( | 
            | 
          self,  | 
         
        
           | 
           | 
            | 
          attr  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inherited   | 
  
 
Definition at line 47 of file JetMonitoringConfig.py.
   47     def __getattr__(self, attr):
 
   51             dict.__getattribute__(self,attr)
 
 
 
 
◆ __setattr__()
  
  
      
        
          | def JetMonitoringConfig.ConfigDict.__setattr__  | 
          ( | 
            | 
          self,  | 
         
        
           | 
           | 
            | 
          attr,  | 
         
        
           | 
           | 
            | 
          value  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inherited   | 
  
 
Definition at line 54 of file JetMonitoringConfig.py.
   55         if attr 
in [
'keys', 
'clear', 
'update', 
'pop', 
'iteritems', 
'values',
'setdefault',
'get',
'has_key',
'copy']:
 
   56             print(
'ConfigDict ERROR can not assign attribute ', attr)
 
   58         dict.__setitem__(self, attr,  value)
 
   59         dict.__setattr__(self, attr,  value)
 
 
 
 
◆ __setitem__()
  
  
      
        
          | def JetMonitoringConfig.ConfigDict.__setitem__  | 
          ( | 
            | 
          self,  | 
         
        
           | 
           | 
            | 
          attr,  | 
         
        
           | 
           | 
            | 
          value  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inherited   | 
  
 
Definition at line 60 of file JetMonitoringConfig.py.
   61         if attr 
in [
'keys', 
'clear', 
'update', 
'pop', 
'iteritems', 
'values',
'setdefault',
'get',
'has_key',
'copy']:
 
   62             print(
'ConfigDict ERROR can not assign attribute ', attr)
 
   64         dict.__setitem__(self, attr,  value)
 
   65         dict.__setattr__(self, attr,  value)
 
 
 
 
◆ __str__()
      
        
          | def JetMonitoringConfig.VarSpec.__str__  | 
          ( | 
            | 
          self | ) | 
           | 
        
      
 
Definition at line 233 of file JetMonitoringConfig.py.
  234         if self.Index==-1: 
return 'VarSpec("{n}",{t})'.
format(n=self.Name, t=self.Type)
 
  235         else: 
return 'VarSpec("{n}[{i}]",{t})'.
format(n=self.Name, t=self.Type, i=self.Index)
 
 
 
 
◆ _dump()
  
  
      
        
          | def JetMonitoringConfig.VarSpec._dump  | 
          ( | 
            | 
          self,  | 
         
        
           | 
           | 
            | 
          writeFunc  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
private   | 
  
 
 
◆ clone() [1/2]
  
  
      
        
          | def JetMonitoringConfig.ConfigDict.clone  | 
          ( | 
            | 
          self,  | 
         
        
           | 
           | 
          **  | 
          kwargs  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inherited   | 
  
 
 
◆ clone() [2/2]
  
  
      
        
          | def JetMonitoringConfig.ToolSpec.clone  | 
          ( | 
            | 
          self,  | 
         
        
           | 
           | 
            | 
          newname,  | 
         
        
           | 
           | 
          **  | 
          args  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inherited   | 
  
 
 
◆ defineHisto()
  
  
      
        
          | def JetMonitoringConfig.ToolSpec.defineHisto  | 
          ( | 
            | 
          self,  | 
         
        
           | 
           | 
            | 
          parentAlg,  | 
         
        
           | 
           | 
            | 
          monhelper,  | 
         
        
           | 
           | 
            | 
          path  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inherited   | 
  
 
 
◆ dump()
  
  
      
        
          | def JetMonitoringConfig.ConfigDict.dump  | 
          ( | 
            | 
          self,  | 
         
        
           | 
           | 
            | 
          out = None  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inherited   | 
  
 
prints the content of this dict on stdout (default) or in the file 'out' 
 
Definition at line 76 of file JetMonitoringConfig.py.
   76     def dump(self, out=None):
 
   77         """ prints the content of this dict on stdout (default) or in the file 'out' """ 
   79             from sys 
import stdout
 
   82         def write(s, e='\n'): _write(s+e)
 
 
 
 
◆ toTool()
      
        
          | def JetMonitoringConfig.VarSpec.toTool  | 
          ( | 
            | 
          self | ) | 
           | 
        
      
 
Reimplemented from JetMonitoringConfig.ToolSpec.
Definition at line 222 of file JetMonitoringConfig.py.
  223         from AthenaConfiguration.ComponentFactory 
import CompFactory
 
  224         self.pop(
'topLevelDir', 
None)
 
  225         self.pop(
'bottomLevelDir', 
None)
 
  226         return CompFactory.JetHistoVarTool(self.Name, **self)
 
 
 
 
◆ vname()
      
        
          | def JetMonitoringConfig.VarSpec.vname  | 
          ( | 
            | 
          self | ) | 
           | 
        
      
 
 
◆ Index
      
        
          | JetMonitoringConfig.VarSpec.Index | 
        
      
 
 
◆ klass
  
  
      
        
          | JetMonitoringConfig.ToolSpec.klass | 
         
       
   | 
  
inherited   | 
  
 
 
◆ name
  
  
      
        
          | JetMonitoringConfig.ToolSpec.name | 
         
       
   | 
  
inherited   | 
  
 
 
◆ Name
      
        
          | JetMonitoringConfig.VarSpec.Name | 
        
      
 
 
◆ Scale
      
        
          | JetMonitoringConfig.VarSpec.Scale | 
        
      
 
 
◆ Type
      
        
          | JetMonitoringConfig.VarSpec.Type | 
        
      
 
 
The documentation for this class was generated from the following file: