CMS 3D CMS Logo

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

Public Member Functions

def __init__ (self)
 
def get (self, transition, index)
 
def lumiFor (self, index)
 
def runFor (self, index)
 
def setLumi (self, index, runNumber, lumiNumber)
 
def setRun (self, index, runNumber)
 
def setStream (self, index, runNumber, lumiNumber, eventNumber)
 
def streamFor (self, index)
 

Private Attributes

 _lumis
 
 _runs
 
 _streams
 

Detailed Description

Definition at line 214 of file edmModuleAllocMonitorAnalyze.py.

Constructor & Destructor Documentation

◆ __init__()

def edmModuleAllocMonitorAnalyze.SyncValues.__init__ (   self)

Definition at line 215 of file edmModuleAllocMonitorAnalyze.py.

215  def __init__(self):
216  self._runs = []
217  self._lumis = []
218  self._streams = []
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

◆ get()

def edmModuleAllocMonitorAnalyze.SyncValues.get (   self,
  transition,
  index 
)

Definition at line 237 of file edmModuleAllocMonitorAnalyze.py.

References edmModuleAllocMonitorAnalyze.SyncValues.lumiFor(), edmModuleAllocMonitorAnalyze.SyncValues.runFor(), TTDTC.setStream(), edmModuleAllocMonitorAnalyze.SyncValues.setStream(), edmModuleAllocMonitorAnalyze.SyncValues.streamFor(), and edmModuleAllocMonitorAnalyze.transitionIsGlobal().

Referenced by Options.Options.__getitem__(), betterConfigParser.BetterConfigParser.__updateDict(), submitPVValidationJobs.BetterConfigParser.__updateDict(), betterConfigParser.BetterConfigParser.getCompares(), betterConfigParser.BetterConfigParser.getGeneral(), betterConfigParser.BetterConfigParser.getResultingSection(), and submitPVValidationJobs.BetterConfigParser.getResultingSection().

237  def get(self, transition, index):
238  if transition == Phase.construction or transition == Phase.destruction:
239  return ()
240  if transition == Phase.beginJob or transition == Phase.endJob or transition == Phase.openFile:
241  return ()
242  if transition == Phase.globalBeginRun or transition == Phase.globalEndRun or transition == Phase.globalWriteRun:
243  return (self.runFor(index),)
244  if transition == Phase.globalBeginLumi or transition == Phase.globalEndLumi or transition == Phase.globalWriteLumi:
245  return self.lumiFor(index)
246  if transition == Phase.getNextTransition:
247  return ()
248  if transition == Phase.writeProcessBlock:
249  return ()
250  if transition == Phase.beginStream:
251  self.setStream(index, 0,0,0)
252  return ()
253  if not transitionIsGlobal(transition):
254  return self.streamFor(index)
255  raise RuntimeError("Unknown transition {}".format(transition))
256 

◆ lumiFor()

def edmModuleAllocMonitorAnalyze.SyncValues.lumiFor (   self,
  index 
)

Definition at line 229 of file edmModuleAllocMonitorAnalyze.py.

References edmModuleAllocMonitorAnalyze.SyncValues._lumis.

Referenced by edmModuleAllocMonitorAnalyze.SyncValues.get().

229  def lumiFor(self, index):
230  return self._lumis[index]

◆ runFor()

def edmModuleAllocMonitorAnalyze.SyncValues.runFor (   self,
  index 
)

Definition at line 223 of file edmModuleAllocMonitorAnalyze.py.

References edmModuleAllocMonitorAnalyze.SyncValues._runs, and hcaldqm::quantity::RunNumber._runs.

Referenced by edmModuleAllocMonitorAnalyze.SyncValues.get().

223  def runFor(self,index):
224  return self._runs[index]

◆ setLumi()

def edmModuleAllocMonitorAnalyze.SyncValues.setLumi (   self,
  index,
  runNumber,
  lumiNumber 
)

Definition at line 225 of file edmModuleAllocMonitorAnalyze.py.

References edmModuleAllocMonitorAnalyze.SyncValues._lumis, and mps_setup.append.

225  def setLumi(self, index, runNumber, lumiNumber):
226  while len(self._lumis) <= index:
227  self._lumis.append((0,0))
228  self._lumis[index] = (runNumber, lumiNumber)

◆ setRun()

def edmModuleAllocMonitorAnalyze.SyncValues.setRun (   self,
  index,
  runNumber 
)

Definition at line 219 of file edmModuleAllocMonitorAnalyze.py.

References edmModuleAllocMonitorAnalyze.SyncValues._runs, hcaldqm::quantity::RunNumber._runs, and mps_setup.append.

219  def setRun(self, index, runNumber):
220  while len(self._runs) <= index:
221  self._runs.append(0)
222  self._runs[index] = runNumber

◆ setStream()

def edmModuleAllocMonitorAnalyze.SyncValues.setStream (   self,
  index,
  runNumber,
  lumiNumber,
  eventNumber 
)

Definition at line 231 of file edmModuleAllocMonitorAnalyze.py.

References edmModuleAllocMonitorAnalyze.SyncValues._streams, edmTracerCompactLogViewer.Containers._streams, edmTracerCompactLogViewer.ModuleCentricContainers._streams, and mps_setup.append.

Referenced by edmModuleAllocMonitorAnalyze.SyncValues.get().

231  def setStream(self, index, runNumber, lumiNumber, eventNumber):
232  while len(self._streams) <= index:
233  self._streams.append((0,0,0))
234  self._streams[index] = (runNumber, lumiNumber, eventNumber)

◆ streamFor()

def edmModuleAllocMonitorAnalyze.SyncValues.streamFor (   self,
  index 
)

Member Data Documentation

◆ _lumis

edmModuleAllocMonitorAnalyze.SyncValues._lumis
private

◆ _runs

edmModuleAllocMonitorAnalyze.SyncValues._runs
private

◆ _streams

edmModuleAllocMonitorAnalyze.SyncValues._streams
private