Public Member Functions | Public Attributes | List of all members
experiment_utilities.MetaDataKey Class Reference

Public Member Functions

def __init__ (self)
 
def metadataList (self)
 
def translateKey (self, key)
 

Public Attributes

 expname
 

Detailed Description

Definition at line 143 of file experiment_utilities.py.

Constructor & Destructor Documentation

def experiment_utilities.MetaDataKey.__init__ (   self)

Member Function Documentation

def experiment_utilities.MetaDataKey.metadataList (   self)

Definition at line 148 of file experiment_utilities.py.

148  def metadataList(self):
149  return [self.expname + elt for elt in ('lbneMCGenerators','lbneMCName','lbneMCDetectorType','StageName')]
150 
151 
def experiment_utilities.MetaDataKey.translateKey (   self,
  key 
)

Definition at line 152 of file experiment_utilities.py.

152  def translateKey(self, key):
153  if key == 'lbneMCDetectorType':
154  return 'lbne_MC.detector_type'
155  elif key == 'StageName':
156  return 'lbne_MC.miscellaneous'
157  else:
158  prefix = key[:4]
159  stem = key[4:]
160  projNoun = stem.split("MC")
161  return prefix + "_MC." + projNoun[1]

Member Data Documentation

experiment_utilities.MetaDataKey.expname

Definition at line 146 of file experiment_utilities.py.


The documentation for this class was generated from the following file: