CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edmTracerLogToSimpleConfig.ConsumesParser Class Reference
Inheritance diagram for edmTracerLogToSimpleConfig.ConsumesParser:

Public Member Functions

def __init__ (self)
 
def finish (self)
 
def parse (self, line)
 

Private Attributes

 __preramble
 
 _consumesForModule
 
 _isAnalyzer
 
 _presentConsumes
 
 _presentModuleName
 

Detailed Description

Definition at line 48 of file edmTracerLogToSimpleConfig.py.

Constructor & Destructor Documentation

◆ __init__()

def edmTracerLogToSimpleConfig.ConsumesParser.__init__ (   self)

Definition at line 49 of file edmTracerLogToSimpleConfig.py.

49  def __init__(self):
50  self._consumesForModule = dict()
51  self._isAnalyzer = set()
52  self._presentConsumes = []
53  self._presentModuleName = None
54  self.__preramble = ' '

Member Function Documentation

◆ finish()

def edmTracerLogToSimpleConfig.ConsumesParser.finish (   self)

Definition at line 67 of file edmTracerLogToSimpleConfig.py.

67  def finish(self):
68  if self._presentModuleName:
69  self._consumesForModule[self._presentModuleName] = self._presentConsumes

References edmTracerLogToSimpleConfig.ConsumesParser._consumesForModule, edmTracerLogToSimpleConfig.ConsumesParser._presentConsumes, and edmTracerLogToSimpleConfig.ConsumesParser._presentModuleName.

Referenced by progressbar.ProgressBar.__next__().

◆ parse()

def edmTracerLogToSimpleConfig.ConsumesParser.parse (   self,
  line 
)

Definition at line 55 of file edmTracerLogToSimpleConfig.py.

55  def parse(self,line):
56  if line[:len(self.__preramble)] != self.__preramble:
57  if self._presentModuleName:
58  self._consumesForModule[self._presentModuleName] = self._presentConsumes
59  start = line.find("'")+1
60  length = line[start:].find("'")
61  self._presentModuleName = fixName(line[start:length+start])
62  self._presentConsumes = []
63  if -1 != l.find("Analyzer"):
64  self._isAnalyzer.add(self._presentModuleName)
65  else:
66  self._presentConsumes.append( fixName(line[line.find("'")+1:-2]) )

References edmTracerLogToSimpleConfig.ConsumesParser.__preramble, edmTracerLogToSimpleConfig.ConsumesParser._consumesForModule, edmTracerLogToSimpleConfig.ConsumesParser._isAnalyzer, edmTracerLogToSimpleConfig.ConsumesParser._presentConsumes, edmTracerLogToSimpleConfig.ConsumesParser._presentModuleName, PVValHelper.add(), mps_setup.append, spr.find(), and edmTracerLogToSimpleConfig.fixName().

Member Data Documentation

◆ __preramble

edmTracerLogToSimpleConfig.ConsumesParser.__preramble
private

◆ _consumesForModule

edmTracerLogToSimpleConfig.ConsumesParser._consumesForModule
private

◆ _isAnalyzer

edmTracerLogToSimpleConfig.ConsumesParser._isAnalyzer
private

◆ _presentConsumes

edmTracerLogToSimpleConfig.ConsumesParser._presentConsumes
private

◆ _presentModuleName

edmTracerLogToSimpleConfig.ConsumesParser._presentModuleName
private
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
dumpparser.parse
def parse(path, config)
Definition: dumpparser.py:13
PVValHelper::add
void add(std::map< std::string, TH1 * > &h, TH1 *hist)
Definition: PVValidationHelpers.cc:12
mps_setup.append
append
Definition: mps_setup.py:85
edmTracerLogToSimpleConfig.fixName
def fixName(name)
Definition: edmTracerLogToSimpleConfig.py:22