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 = ' '
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ finish()

def edmTracerLogToSimpleConfig.ConsumesParser.finish (   self)

Definition at line 66 of file edmTracerLogToSimpleConfig.py.

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

Referenced by progressbar.ProgressBar.__next__().

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

◆ parse()

def edmTracerLogToSimpleConfig.ConsumesParser.parse (   self,
  line 
)

Definition at line 54 of file edmTracerLogToSimpleConfig.py.

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().

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]) )
vector< string > parse(string line, const string &delimiter)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
void add(std::map< std::string, TH1 *> &h, TH1 *hist)

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