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 47 of file edmTracerLogToSimpleConfig.py.

Constructor & Destructor Documentation

◆ __init__()

def edmTracerLogToSimpleConfig.ConsumesParser.__init__ (   self)

Definition at line 48 of file edmTracerLogToSimpleConfig.py.

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

Member Function Documentation

◆ finish()

def edmTracerLogToSimpleConfig.ConsumesParser.finish (   self)

Definition at line 66 of file edmTracerLogToSimpleConfig.py.

66  def finish(self):
67  if self._presentModuleName:
68  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 54 of file edmTracerLogToSimpleConfig.py.

54  def parse(self,line):
55  if line[:len(self.__preramble)] != self.__preramble:
56  if self._presentModuleName:
57  self._consumesForModule[self._presentModuleName] = self._presentConsumes
58  start = line.find("'")+1
59  length = line[start:].find("'")
60  self._presentModuleName = fixName(line[start:length+start])
61  self._presentConsumes = []
62  if -1 != l.find("Analyzer"):
63  self._isAnalyzer.add(self._presentModuleName)
64  else:
65  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:21