CMS 3D CMS Logo

Functions | Variables
findAndChange Namespace Reference

Functions

def digest_path (path)
 
def find_and_change (keys, var, alt=digest_path)
 
def get_all_keys (var)
 
def get_root_color (value)
 

Variables

 _file = pfnInPath(path_to_check)
 
 op
 
 path_d = path_expanded.split("://")[1]
 
 path_expanded = os.path.expandvars(path)
 
 path_s = path_d.split(os.sep)
 
 path_to_check = os.path.join(*path_s[:placeholderIdx[0]])
 
list placeholderIdx = []
 
 post
 
 pre
 
string protocol = ""
 
list reserved_keys = ["customrighttitle","title"]
 

Function Documentation

◆ digest_path()

def findAndChange.digest_path (   path)

Definition at line 6 of file findAndChange.py.

6 def digest_path(path):
def digest_path(path)
Definition: findAndChange.py:6

◆ find_and_change()

def findAndChange.find_and_change (   keys,
  var,
  alt = digest_path 
)

Definition at line 107 of file findAndChange.py.

References get_all_keys(), and get_root_color().

107 def find_and_change(keys, var, alt=digest_path):
def find_and_change(keys, var, alt=digest_path)

◆ get_all_keys()

def findAndChange.get_all_keys (   var)

Definition at line 86 of file findAndChange.py.

Referenced by find_and_change().

86 def get_all_keys(var):
def get_all_keys(var)

◆ get_root_color()

def findAndChange.get_root_color (   value)

Definition at line 66 of file findAndChange.py.

References caHitNtupletGeneratorKernels.if(), and createfilelist.int.

Referenced by find_and_change().

66 def get_root_color(value):
def get_root_color(value)

Variable Documentation

◆ _file

findAndChange._file = pfnInPath(path_to_check)
private

◆ op

findAndChange.op

Definition at line 75 of file findAndChange.py.

Referenced by L1GtVhdlWriterCore.addJetCountsToCond2IntMap(), BPHMultiSelectBase< T >.BPHMultiSelectBase(), BTagCalibrationReader::BTagCalibrationReaderImpl.BTagCalibrationReaderImpl(), BTagEntry.BTagEntry(), LMFDat.buildSelectSql(), TtSemiLepJetComb.combinedBTags(), TtSemiLepJetComb.combinedBTagsForLightQuarks(), edm::Hash< EntryDescriptionType >.compareUsing(), CSCSkim.doLongSATrack(), fwlite::IOVSyncValue.doOp(), edm::IOVSyncValue.doOp(), edm::LuminosityBlockID.doOp(), fwlite::Event.draw(), edm::pathStatusExpression::BinaryOperator< T >.evaluate(), fwlite::DataGetterHelper.getBranchData(), L1GtVhdlWriterCore.getCaloSetupContentFromTriggerMenu(), L1GtVhdlWriterCore.getCondChipVhdContentFromTriggerMenu(), getConfigurationDescription4CCC(), L1GtVhdlWriterCore.getDefValsFromTriggerMenu(), L1GtVhdlWriterCore.getEsumsSetupContentFromTriggerMenu(), L1GtVhdlWriterCore.getMuonSetupContentFromTriggerMenu(), edm::MessageLoggerQ.handshaked(), LocalTrajectoryParameters.momentum(), multiTrajectoryStateMode.momentumFromModePPhiEta(), SiPixelDigiMorphing.morph(), edm::GlobalSchedule.processOneGlobalAsync(), edm::StreamSchedule.processOneStreamAsync(), SiStripRegFEDSelector.produce(), SelectedElectronFEDListProducer< TEle, TCand >.produce(), conifer.reduce(), L1SCJetEmu.reduce(), fwlite::Event.scan(), DDSpecificsFilter.setCriteria(), jsoncollector::DataPoint.setOperation(), riemannFit.transformToPerigeePlane(), lumi::Lumi2DB.writeAllLumiDataToSchema2(), lumi::HLTV32DB.writeHltDataToSchema2(), edm::OutputModuleCommunicatorT< T >.writeLumiAsync(), edm::Schedule.writeLumiAsync(), edm::EventProcessor.writeLumiAsync(), edm::OutputModuleCommunicatorT< T >.writeProcessBlockAsync(), edm::Schedule.writeProcessBlockAsync(), edm::EventProcessor.writeProcessBlockAsync(), edm::OutputModuleCommunicatorT< T >.writeRunAsync(), edm::Schedule.writeRunAsync(), edm::EventProcessor.writeRunAsync(), lumi::TRGScalers2DB.writeTrgDataToSchema2(), L1GtVmeWriterCore.writeVME(), and edm::EventProcessor.~EventProcessor().

◆ path_d

string findAndChange.path_d = path_expanded.split("://")[1]

Definition at line 26 of file findAndChange.py.

◆ path_expanded

findAndChange.path_expanded = os.path.expandvars(path)
Ensure that everything is done for path to exist
Arguments:
- path: String that can be both directory and file 
Return:
- general: environmental variables are expanded
- directory: is checked to exist
- file: is checked to exist with backup directory being searched in cms-data

Definition at line 20 of file findAndChange.py.

◆ path_s

findAndChange.path_s = path_d.split(os.sep)

Definition at line 34 of file findAndChange.py.

◆ path_to_check

findAndChange.path_to_check = os.path.join(*path_s[:placeholderIdx[0]])

Definition at line 45 of file findAndChange.py.

◆ placeholderIdx

list findAndChange.placeholderIdx = []

Definition at line 36 of file findAndChange.py.

◆ post

findAndChange.post

◆ pre

findAndChange.pre

◆ protocol

string findAndChange.protocol = ""

◆ reserved_keys

list findAndChange.reserved_keys = ["customrighttitle","title"]
   Generate all keys for nested dictionary
   - reserved keywords are not picked up

Definition at line 92 of file findAndChange.py.