CMS 3D CMS Logo

Functions | Variables
createTree Namespace Reference

Functions

def parseDir (dir, label, it1="", itN="")
 

Variables

 args
 
string comdir = "common/"
 
 common_basedir = comdir
 
string csc_basedir = iteration_directory+'/'
 
 dd = dt_basedir+wheel[0]
 
 default
 
 dest
 
string dt_basedir = iteration_directory+'/MB/'
 
 ff = open("tree_items.js",mode="w")
 
 file
 
 help
 
string iteration1 = "iter1"
 main script More...
 
 iteration_directory = iterationN
 open root and py result files More...
 
string iterationN = "iterN"
 
list mytree = []
 
dictionary NAME_TO_TITLE
 
 options
 
 parser = optparse.OptionParser(usage)
 
 pp = pprint.PrettyPrinter(indent=2)
 
string schamber = "%02d"
 
string ssector = "%02d"
 
list tree_level1 = ['test','']
 
 tree_level2 = parseDir(dt_basedir,"MB",iteration1,iterationN)
 
 tree_level3 = parseDir(dd,wheel[0],iteration1,iterationN)
 
 tree_level4 = parseDir(dd,station[0],iteration1,iterationN)
 
 tree_level5 = parseDir(dd,"%s/%d" % (station[0],sector),iteration1,iterationN)
 
 type
 
string usage = '%prog [options]\n'
 functions definitions More...
 

Function Documentation

def createTree.parseDir (   dir,
  label,
  it1 = "",
  itN = "" 
)
it1 and itN   are the first and the last iterations' directory names
   dir           is some directory with the results from for the LAST 
                 iteration, so it must contain a itN substring 
   label         is a label for tree's folder for this directory

Definition at line 118 of file createTree.py.

References edm.print().

118 def parseDir(dir,label,it1="",itN=""):
119  """it1 and itN are the first and the last iterations' directory names
120  dir is some directory with the results from for the LAST
121  iteration, so it must contain a itN substring
122  label is a label for tree's folder for this directory"""
123  if len(itN)>0 and dir.find(itN)==-1:
124  print("directory ", dir, "has no ", itN, " in it!!")
125  return ["problem!!!",""]
126  res = [label,dir]
127  files = sorted(os.listdir(dir))
128  for f in files:
129  if re.match(".+\.png", f):
130  if len(it1)>0 and len(itN)>0:
131  lnN = [itN,dir+'/'+f]
132  dir1 = dir.replace(itN,it1)
133  if not os.access(dir1+'/'+f,os.F_OK):
134  print("WARNING: no ",dir1+'/'+f," file found!!!")
135  ln1 = [it1,dir1+'/'+f]
136  ln = [NAME_TO_TITLE[f],dir+'/'+f,ln1,lnN]
137  res.append(ln)
138  else:
139  ln = [NAME_TO_TITLE[f],dir+'/'+f]
140  #print ln
141  res.append(ln)
142  #pp.pprint(res)
143  return res
144 
145 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:65
def parseDir(dir, label, it1="", itN="")
Definition: createTree.py:118

Variable Documentation

createTree.args

Definition at line 82 of file createTree.py.

string createTree.comdir = "common/"

Definition at line 110 of file createTree.py.

createTree.common_basedir = comdir

Definition at line 202 of file createTree.py.

string createTree.csc_basedir = iteration_directory+'/'

Definition at line 175 of file createTree.py.

string createTree.dd = dt_basedir+wheel[0]
createTree.default

Definition at line 73 of file createTree.py.

createTree.dest

Definition at line 74 of file createTree.py.

string createTree.dt_basedir = iteration_directory+'/MB/'

Definition at line 150 of file createTree.py.

createTree.ff = open("tree_items.js",mode="w")

Definition at line 212 of file createTree.py.

createTree.file

Definition at line 213 of file createTree.py.

createTree.help

Definition at line 71 of file createTree.py.

string createTree.iteration1 = "iter1"

main script

Definition at line 108 of file createTree.py.

createTree.iteration_directory = iterationN

open root and py result files

Definition at line 115 of file createTree.py.

string createTree.iterationN = "iterN"

Definition at line 109 of file createTree.py.

list createTree.mytree = []

Definition at line 146 of file createTree.py.

dictionary createTree.NAME_TO_TITLE

Definition at line 19 of file createTree.py.

createTree.options

Definition at line 82 of file createTree.py.

createTree.parser = optparse.OptionParser(usage)

Definition at line 68 of file createTree.py.

createTree.pp = pprint.PrettyPrinter(indent=2)

Definition at line 16 of file createTree.py.

Referenced by FullModelReactionDynamics.AddBlackTrackParticles(), FWGUIManager.addTo(), ElasticPlotDQMSource.analyze(), TotemRPDQMSource.analyze(), TestTrackHits.analyze(), IsolatedGenParticles.analyze(), PixelTrackBuilder.build(), CommissioningHistosUsingDb.buildDetInfo(), AnalyticalCurvilinearJacobian.computeFullJacobian(), CMSEmStandardPhysics.ConstructProcess(), CMSEmStandardPhysicsXS.ConstructProcess(), CMSEmStandardPhysicsLPM.ConstructProcess(), CMSEmStandardPhysics95.ConstructProcess(), CMSEmStandardPhysics95msc93.ConstructProcess(), VVIObjDetails.cosint(), sistripvvi::VVIObjDetails.cosint(), DTTrigGeom.dumpGeom(), DTTrigGeom.dumpLUT(), NtupleManager.FillOptObjects(), RunDCSHVDat.fillTheMapByTime(), PythiaFilterEMJetHeep.filter(), EMEnrichingFilterAlgo.filterIsoGenPar(), doubleEMEnrichingFilterAlgo.filterIsoGenPar(), SequentialPartitionGenerator.first_part(), funct::GaussLegendreIntegrator.GaussLegendreIntegrator(), gen::Pythia6JetGun.generateEvent(), gen::Py8PtGun.generatePartonsAndHadronize(), gen::Py8EGun.generatePartonsAndHadronize(), gen::Py8JetGun.generatePartonsAndHadronize(), FullModelReactionDynamics.GenerateXandPt(), getDaughters(), BPHTrackReference.getFromPC(), DTTrigGeom.getGeom(), FWGUIManager.getSwapCandidate(), EcalBasicClusterLocalContCorrection.getValue(), SteppingHelixPropagator.makeAtomStep(), SequentialPartitionGenerator.next_part(), FullModelReactionDynamics.NuclearReaction(), TtDilepLRSignalSelObservables.operator()(), L1GTDigiToRaw.packGMT(), TkTransientTrackingRecHitBuilderESProducer.produce(), JetCoreClusterSplitter.produce(), FastPrimaryVertexWithWeightsProducer.produce(), FastPrimaryVertexProducer.produce(), FullModelReactionDynamics.Rotate(), KFBasedPixelFitter.run(), FSimTrack.setEcal(), FSimTrack.setEndVertex(), FSimTrack.setHcal(), FSimTrack.setHcalExit(), FSimTrack.setHO(), FSimTrack.setLayer1(), FSimTrack.setLayer2(), FSimTrack.setVFcal(), VVIObjDetails.sincosint(), sistripvvi::VVIObjDetails.sincosint(), VVIObjDetails.sinint(), sistripvvi::VVIObjDetails.sinint(), EventShape.thrust(), TreatSecondary.tracks(), TrajectoryManager.TrajectoryManager(), FullModelReactionDynamics.TwoBody(), FullModelReactionDynamics.TwoCluster(), edm::Provenance.write(), MonPNLed2Dat.writeArrayDB(), MonPNMGPADat.writeArrayDB(), MonPNBlueDat.writeArrayDB(), MonPNLed1Dat.writeArrayDB(), MonPNIRedDat.writeArrayDB(), MonPNGreenDat.writeArrayDB(), MonPNRedDat.writeArrayDB(), DCULVRVoltagesDat.writeArrayDB(), and BPHMassSymSelect.~BPHMassSymSelect().

string createTree.schamber = "%02d"

Definition at line 189 of file createTree.py.

string createTree.ssector = "%02d"

Definition at line 161 of file createTree.py.

list createTree.tree_level1 = ['test','']

Definition at line 147 of file createTree.py.

createTree.tree_level2 = parseDir(dt_basedir,"MB",iteration1,iterationN)

Definition at line 151 of file createTree.py.

createTree.tree_level3 = parseDir(dd,wheel[0],iteration1,iterationN)

Definition at line 155 of file createTree.py.

createTree.tree_level4 = parseDir(dd,station[0],iteration1,iterationN)

Definition at line 159 of file createTree.py.

createTree.tree_level5 = parseDir(dd,"%s/%d" % (station[0],sector),iteration1,iterationN)

Definition at line 164 of file createTree.py.

createTree.type

Definition at line 72 of file createTree.py.

string createTree.usage = '%prog [options]\n'

functions definitions

To parse commandline args

Definition at line 64 of file createTree.py.