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

Public Member Functions

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

Public Attributes

 expname
 

Detailed Description

Definition at line 103 of file extractor_prod.py.

Constructor & Destructor Documentation

def extractor_prod.MetaDataKey.__init__ (   self)

Definition at line 105 of file extractor_prod.py.

Member Function Documentation

def extractor_prod.MetaDataKey.metadataList (   self)

Definition at line 108 of file extractor_prod.py.

108  def metadataList(self):
109  return [self.expname + elt for elt in ('lbneMCGenerators','lbneMCName','lbneMCDetectorType','StageName')]
110 
def extractor_prod.MetaDataKey.translateKey (   self,
  key 
)

Definition at line 111 of file extractor_prod.py.

111  def translateKey(self, key):
112  if key == 'lbneMCDetectorType':
113  return 'lbne_MC.detector_type'
114  elif key == 'StageName':
115  return 'lbne_MC.miscellaneous'
116  else:
117  prefix = key[:4]
118  stem = key[4:]
119  projNoun = stem.split("MC")
120  return prefix + "_MC." + projNoun[1]
121 
122 
123 

Member Data Documentation

extractor_prod.MetaDataKey.expname

Definition at line 106 of file extractor_prod.py.


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