CMS 3D CMS Logo

Functions | Variables
cppFunctionSkipper Namespace Reference

Functions

def delLines (string, startPosition, endPosition)
 
def filterFile (file)
 
def filterFiles (fileList)
 

Variables

 __author__
 
 __date__
 
 cv_decl
 
 decl_param
 
 declarator
 
 dm_init
 
 exception
 
 functStart_re
 
 operator
 

Function Documentation

◆ delLines()

def cppFunctionSkipper.delLines (   string,
  startPosition,
  endPosition 
)

Definition at line 79 of file cppFunctionSkipper.py.

References str, and gpuVertexFinder.while().

Referenced by filterFile().

79 def delLines(string, startPosition, endPosition):
80  i = startPosition - 1
81  end = startPosition
82  while(True):
83  if i != -1 and string[i] != '\n':
84  i -= 1
85  else:
86  string = string[:i+1] + (end - i - 1)*' ' + string[end:]
87  break
88 
89  i = startPosition
90  start = startPosition
91  while(i != endPosition):
92  if string[i] != '\n':
93  i += 1
94  else:
95  string = string[:start] + (i-start)*str(" ") + string[i:]
96  i = i+1
97  start = i
98  string = string[:start] + (endPosition-start)*str(" ") + string[endPosition:]
99 
100  return string
101 
def delLines(string, startPosition, endPosition)
while(__syncthreads_or(more))
#define str(s)

◆ filterFile()

def cppFunctionSkipper.filterFile (   file)

Definition at line 30 of file cppFunctionSkipper.py.

References delLines(), print(), fileinputsource_cfi.read, and gpuVertexFinder.while().

Referenced by filterFiles().

30 def filterFile(file):
31 
32  lines = ""
33 
34  if type(file).__name__ != 'list':
35  lines = open(file, errors='replace').read()
36  else:
37  for line in file:
38  lines += line
39  fileLines = lines[:]
40  prevEndPosition = 0
41  endPosition = 0
42  while(True):
43  m = functStart_re.search(lines)
44  if m != None:
45  openBracket = 1
46  closeBracket = 0
47  startPosition = m.start()
48  #print "MATCH: " + lines[m.start():m.end()]
49  for i, character in enumerate(lines[m.end():]):
50  if character == "{":
51  openBracket += 1
52  elif character == "}":
53  closeBracket += 1
54  if openBracket == closeBracket :
55  prevEndPosition += endPosition
56  endPosition = m.end() + i + 1
57  break
58  if openBracket != closeBracket:#if there is error in file
59  print("Error in file. To much open brackets. Run commentSkipper before you run functionSkipper.")
60  break
61  else:
62  #print "LINES: \n" + lines[startPosition:endPosition]
63  #print "#############################################";
64  lines = delLines(lines, startPosition, endPosition)
65  fileLines = fileLines[:prevEndPosition] + lines
66  lines = lines[endPosition:]
67  else:
68  break
69 
70  listOfLines = []
71  startLine = 0
72  for index, character in enumerate(fileLines):
73  if character == "\n":
74  listOfLines.append(fileLines[startLine:index+1])
75  startLine = index + 1
76  listOfLines.append(fileLines[startLine:])
77  return listOfLines
78 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def delLines(string, startPosition, endPosition)
while(__syncthreads_or(more))

◆ filterFiles()

def cppFunctionSkipper.filterFiles (   fileList)

Definition at line 16 of file cppFunctionSkipper.py.

References filterFile(), and FastTimerService_cff.range.

16 def filterFiles(fileList):
17  files = []
18 
19  for i in range(len(fileList)):
20  if type(fileList[0]).__name__ != 'tuple':
21  file = fileList[i]
22  fileLines = filterFile(fileList[i])
23  else:
24  file = fileList[i][0]
25  fileLines = filterFile(fileList[i][1])
26 
27  files.append((file, fileLines))
28  return files
29 
def filterFiles(fileList)

Variable Documentation

◆ __author__

cppFunctionSkipper.__author__
private

Definition at line 3 of file cppFunctionSkipper.py.

◆ __date__

cppFunctionSkipper.__date__
private

Definition at line 4 of file cppFunctionSkipper.py.

◆ cv_decl

cppFunctionSkipper.cv_decl

Definition at line 9 of file cppFunctionSkipper.py.

◆ decl_param

cppFunctionSkipper.decl_param

Definition at line 11 of file cppFunctionSkipper.py.

◆ declarator

cppFunctionSkipper.declarator

Definition at line 8 of file cppFunctionSkipper.py.

◆ dm_init

cppFunctionSkipper.dm_init

Definition at line 13 of file cppFunctionSkipper.py.

◆ exception

cppFunctionSkipper.exception

Definition at line 10 of file cppFunctionSkipper.py.

Referenced by TrackingTruthAccumulator.accumulateEvent(), MatrixMeschach.AddData(), edm::ExceptionCollector.addException(), FWRecoGeometryESProducer.addGEMGeometry(), FWTGeoRecoGeometryESProducer.addGEMGeometry(), FWRecoGeometryESProducer.addME0Geometry(), FWTGeoRecoGeometryESProducer.addME0Geometry(), edm.addToMissingDictionariesException(), SiStripHitResolFromCalibTree.algoAnalyze(), SiStripHitEffFromCalibTree.algoAnalyze(), KVFTrackUpdate.analyze(), SiStripDetVOffFakeBuilder.analyze(), cms::SiPixelPerformanceSummaryBuilder.analyze(), SiPixelLorentzAngleDBLoader.analyze(), SiPixelLorentzAngleDB.analyze(), SiPixelVCalDB.analyze(), SiPixelDynamicInefficiencyDB.analyze(), EcalBarrelMonitorDbModule.analyze(), MonitorElementsDb.analyze(), HLTBTagPerformanceAnalyzer.analyze(), cms::SiPixelCondObjBuilder.analyze(), cms::SiPixelCondObjOfflineBuilder.analyze(), cms::SiPixelCondObjForHLTBuilder.analyze(), SiStripApvGainFromFileBuilder.analyze(), CmsShowNavigator.appendFile(), cond::service::PoolDBOutputService.appendOneIOV(), cond::service::PoolDBOutputService.appendSinceTime(), FWGeometryTableManagerBase.applyTransparencyFromEditor(), cms::DDNamespace.assembly(), FWFFLooper.beginRun(), beginServer(), FWTrackingParticleProxyBuilderFullFramework.build(), FWTrackProxyBuilderFullFramework.build(), Model.BuildMeasurementsFromOA(), FWPFTauProxyBuilder.buildViewType(), MeasurementDistancemeter.calculateSimulatedValue(), MeasurementDistancemeter3dim.calculateSimulatedValue(), MeasurementDiffEntry.calculateSimulatedValue(), Herwig7Interface.callHerwigGenerator(), trklet::ChannelAssignment.ChannelAssignment(), trklet::ChannelAssignment.channelId(), tt::Setup.checkDTCId(), tt::Setup.checkGeometry(), tt::Setup.checkTFPIdentifier(), tt::Setup.checkTKLayoutId(), DTUserKeyedConfigHandler.chkConfigList(), DTKeyedConfigHandler.chkConfigList(), edm::InputFile.Close(), cond::service::PoolDBOutputService.closeIOV(), CmsShowMain.CmsShowMain(), CocoaBestUnit.CocoaBestUnit(), CocoaDaqReaderRoot.CocoaDaqReaderRoot(), dqmservices::DQMFileIterator.collect(), EcalDccWeightBuilder.computeAllWeights(), SiPixelGainCalibScaler.computeAndStorePalyoads(), evf::EvFDaqDirector.contactFileBroker(), sistrip::DigiToRaw.createFedBuffers_(), cond::service::PoolDBOutputService.createNewIOV(), cond::service::PoolDBOutputService.createOneIOV(), FWEventItem.data(), edm.decode(), edm::releaseversion::DecomposedReleaseVersion.DecomposedReleaseVersion(), cond.default_deserialize(), tt::Setup.dPhi(), BeamSpotDipServer.dqmBeginRun(), SiStripLorentzAnglePCLHarvester.dqmEndJob(), SiPixelLorentzAnglePCLHarvester.dqmEndJob(), SiPixelLorentzAnglePCLHarvesterMCS.dqmEndJob(), BeamSpotDipServer.dqmEndLuminosityBlock(), DTGeometryParserFromDDD.DTGeometryParserFromDDD(), tt::Setup.dZ(), EcalCondDBReader.EcalCondDBReader(), ecaldqm::EcalDQMonitor.EcalDQMonitor(), FWModelChangeManager.endChanges(), cond::service::PoolDBOutputService.eraseSinceTime(), helper::ScannerBase.eval(), DTMeanTimerFitter.evaluateVDriftAndReso(), evf::EvFDaqDirector.EvFDaqDirector(), AllInOneConfig.exceptions(), ecaldqm::EcalDQMonitor.executeOnWorkers_(), BeamSpotDipServer.fakeRcd(), fakeRcd(), edm::service::ProcInfoFetcher.fetch(), LMFUnique.fetchAll(), helper::ScannerBase.fill1D(), helper::ScannerBase.fill2D(), SiPixelGainCalibrationRejectNoisyAndDead.fillDatabase(), helper::ScannerBase.fillGraph(), HGCalTriggerGeometryV9Imp3.fillMaps(), helper::ScannerBase.fillProf(), Model.FindOptAlignInfoByType(), CandKinematicVertexFitter.fit(), CandCommonVertexFitter< Fitter >.fit(), FakeBeamMonitor.FitAndFill(), BeamMonitor.FitAndFill(), FittedEntriesReader.FittedEntriesReader(), DTMeanTimerFitter.fitTMax(), BPHDecayVertex.fitVertex(), PFDisplacedVertexFinder.fitVertexFromSeed(), cond::service::PoolDBOutputService.forceInit(), FWFFHelper.FWFFHelper(), Herwig7Hadronizer.generatePartonsAndHadronize(), DTKeyedConfigCache.get(), HcalQLPlotHistoMgr.GetAHistogramImpl(), edm::RootTree.getEntry(), TestHistoMgr.getHisto1(), TestHistoMgr.getHisto1FromSecondFile(), TestHistoMgr.getHisto2(), TestHistoMgr.getHistoProf1(), TestHistoMgr.getHistoProf2(), popcon::EcalSRPHandler.getNewObjects(), popcon::EcalTPGPhysicsConstHandler.getNewObjects(), popcon::EcalTPGTPModeHandler.getNewObjects(), popcon::EcalTPGWeightIdMapHandler.getNewObjects(), popcon::EcalTPGFineGrainEBIdMapHandler.getNewObjects(), popcon::EcalTPGBadStripHandler.getNewObjects(), popcon::EcalTPGBadTTHandler.getNewObjects(), popcon::EcalTPGLinConstHandler.getNewObjects(), popcon::EcalTPGLutIdMapHandler.getNewObjects(), popcon::EcalTPGOddWeightIdMapHandler.getNewObjects(), popcon::EcalTPGBadXTHandler.getNewObjects(), popcon::EcalTPGFineGrainEBGroupHandler.getNewObjects(), popcon::EcalTPGFineGrainTowerEEHandler.getNewObjects(), popcon::EcalTPGSlidingWindowHandler.getNewObjects(), popcon::EcalTPGWeightGroupHandler.getNewObjects(), popcon::EcalTPGOddWeightGroupHandler.getNewObjects(), popcon::EcalTPGPedestalsHandler.getNewObjects(), popcon::EcalTPGFineGrainStripEEHandler.getNewObjects(), popcon::EcalTPGSpikeThresholdHandler.getNewObjects(), popcon::EcalTPGLutGroupHandler.getNewObjects(), dqm::RamdiskMonitor.globalBeginLuminosityBlock(), AlcaBeamMonitor.globalBeginLuminosityBlock(), evf::EvFDaqDirector.grabNextJsonFile(), evf::EvFDaqDirector.grabNextJsonFileAndUnlock(), Herwig7Hadronizer.hadronize(), SiStripConfigDb.handleException(), XrdAdaptor::ClientRequest.HandleResponse(), HLTHcalSimpleRecHitFilter.hltFilter(), PixelToLNKAssociateFromAscii.init(), PixelToFEDAssociateFromAscii.init(), edm::FileLocator.init(), FedRawDataInputSource.initFileList(), DAQSource.initFileList(), PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo.inspect(), cond::service::PoolDBOutputService.isNewTagRequest(), EEDetId.ix(), EEDetId.iy(), BPHKinematicFit.kinematicTree(), L1FPGATrackProducer.L1FPGATrackProducer(), trackerDTC::LayerEncoding.LayerEncoding(), trklet::ChannelAssignment.layerId(), L1GtTriggerMenuConfigOnlineProd.lexical_cast_from_hex(), AdaptiveVertexFitter.linearizeTracks(), load_dddefinition(), DTCCablingMapProducer.LoadModulesToDTCCablingMapFromCSV(), main(), edm::eventsetup::CallbackExternalWork< T, TAcquireFunc, TAcquireReturn, TProduceFunc, TProduceReturn, TRecord, TDecorator >.makeExceptionHandlerTask(), edm::PrincipalGetAdapter.makeFailToGetException(), edm.makeNotFoundException(), FWEveViewManager.newItem(), CmsShowNavigator.openFile(), reco.operator<<(), dqmservices::DQMMonitoringService.outputUpdate(), HcalPatternXMLParser.parse(), polling(), edm::DelayedReaderInputProductResolver.prefetchAsync_(), helper::ScannerBase.print(), tfwliteselectortest::ThingsWorker.process(), tfwliteselectortest::ThingsTSelector.process(), TFWLiteSelectorBasic.Process(), PhotonConversionTrajectorySeedProducerFromQuadruplets.produce(), TriggerMatchProducer< object >.produce(), Onia2MuMuPAT.produce(), RecoTauPiZeroProducer.produce(), trklet::ProducerTBout.produce(), PFRecoTauChargedHadronProducer.produce(), tt::Setup.produceSensorModules(), BeamSpotDipServer.publishRcd(), publishRcd(), RunInfoRead.readData(), DQMSummaryReader.readData(), ErrorCorrelationMgr.readFromReportFile(), JetHtPlotConfiguration.readJsonFile(), BeamSpotDipServer.readRcd(), readRcd(), popcon::EcalTPGOddWeightIdMapHandler.readtxtFile(), popcon::EcalTPGWeightIdMapHandler.readtxtFile(), popcon::EcalTPGTPModeHandler.readtxtFile(), popcon::EcalTPGWeightGroupHandler.readtxtFile(), popcon::EcalTPGOddWeightGroupHandler.readtxtFile(), edm::storage::XrdFile.readv(), popcon::EcalTPGOddWeightIdMapHandler.readxmlFile(), popcon::EcalTPGWeightIdMapHandler.readxmlFile(), popcon::EcalTPGWeightGroupHandler.readxmlFile(), popcon::EcalTPGOddWeightGroupHandler.readxmlFile(), AdaptiveVertexFitter.reLinearizeTracks(), edm::DelayedReaderInputProductResolver.resolveProduct_(), AdaptiveVertexFitter.reWeightTracks(), cond::Utilities.run(), FWEventItem.runFilter(), cond::persistency::Logger.saveOnDb(), FWPathsPopup.scheduleReloadEvent(), tt::Setup.sensorModule(), cond.serialize(), ALIRmDataFromFile.setAngle(), MeasurementDistancemeter.setConversionFactor(), MeasurementDistancemeter3dim.setConversionFactor(), CocoaDaqReader.SetDaqReader(), HcalQLPlotAnalAlgos.SetEventType(), ecaldqm::DQWorker.setME(), TTDTC.setStream(), CocoaToDDLMgr.so(), edm::service::SiteLocalConfigService.storageDescriptionPath(), TTDTC.stream(), cond::service::PoolDBOutputService.tagInfo(), TagProbeFitTreeAnalyzer.TagProbeFitTreeAnalyzer(), helper::ScannerBase.test(), mkfit::ConfigJson.test_Patcher(), edm.throwAmbiguousException(), edm::PrincipalGetAdapter.throwAmbiguousException(), edm.throwMissingDictionariesException(), edm::DataManagingProductResolver.throwProductDeletedException(), edm.throwProductDeletedException(), BeamSpotDipServer.tkStatus(), tkStatus(), BeamSpotDipServer.trueRcd(), trueRcd(), trackerTFP::DataFormatKF.updateRangeActual(), MultiVertexFitter.updateSeeds(), edm::Path.workerFinished(), edm::convertException.wrap(), MonPulseShapeDat.writeDB(), cond::service::PoolDBOutputService.writeMany(), cond::service::PoolDBOutputService.writeOneIOV(), DTCalibDBUtils.writeToDB(), and InputFile.~InputFile().

◆ functStart_re

cppFunctionSkipper.functStart_re

Definition at line 14 of file cppFunctionSkipper.py.

◆ operator

cppFunctionSkipper.operator

Definition at line 12 of file cppFunctionSkipper.py.