Functions | |
def | parseDir |
Variables | |
string | comdir = "common/" |
common_basedir = comdir | |
string | csc_basedir = '/' |
list | dd = dt_basedir+wheel[0] |
string | default = '' |
string | dest = "inputDir" |
string | dt_basedir = '/MB/' |
tuple | ff = open("tree_items.js",mode="w") |
string | help = "[REQUIRED] input directory: should contain 'iter1', 'iterN' and 'common' directories filled with alignment_validation_plots.py. The resulting tree_items.js is also dumped into this directory" |
string | iteration1 = "iter1" |
main script | |
iteration_directory = iterationN | |
open root and py result files | |
string | iterationN = "iterN" |
list | mytree = [] |
dictionary | NAME_TO_TITLE |
tuple | parser = optparse.OptionParser(usage) |
tuple | pp = pprint.PrettyPrinter(indent=2) |
string | schamber = "%02d" |
string | ssector = "%02d" |
list | tree_level1 = ['test',''] |
tuple | tree_level2 = parseDir(dt_basedir,"MB",iteration1,iterationN) |
tuple | tree_level3 = parseDir(dd,wheel[0],iteration1,iterationN) |
tuple | tree_level4 = parseDir(dd,station[0],iteration1,iterationN) |
tuple | tree_level5 = parseDir(dd,"%s/%d" % (station[0],sector),iteration1,iterationN) |
string | type = "string" |
string | usage = '%prog [options]\n' |
functions definitions |
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 109 of file createTree.py.
00110 : 00111 """it1 and itN are the first and the last iterations' directory names 00112 dir is some directory with the results from for the LAST 00113 iteration, so it must contain a itN substring 00114 label is a label for tree's folder for this directory""" 00115 if len(itN)>0 and dir.find(itN)==-1: 00116 print "directory ", dir, "has no ", itN, " in it!!" 00117 return ["problem!!!",""] 00118 res = [label,dir] 00119 files = os.listdir(dir) 00120 files.sort() 00121 for f in files: 00122 if re.match(".+\.png", f): 00123 if len(it1)>0 and len(itN)>0: 00124 lnN = [itN,dir+'/'+f] 00125 dir1 = dir.replace(itN,it1) 00126 if not os.access(dir1+'/'+f,os.F_OK): 00127 print "WARNING: no ",dir1+'/'+f," file found!!!" 00128 ln1 = [it1,dir1+'/'+f] 00129 ln = [NAME_TO_TITLE[f],dir+'/'+f,ln1,lnN] 00130 res.append(ln) 00131 else: 00132 ln = [NAME_TO_TITLE[f],dir+'/'+f] 00133 #print ln 00134 res.append(ln) 00135 #pp.pprint(res) 00136 return res 00137
string createTree::comdir = "common/" |
Definition at line 101 of file createTree.py.
Definition at line 194 of file createTree.py.
string createTree::csc_basedir = '/' |
Definition at line 167 of file createTree.py.
list createTree::dd = dt_basedir+wheel[0] |
Definition at line 145 of file createTree.py.
Referenced by PedsFullNoiseAlgorithm::analyse(), EBBeamCaloTask::analyze(), EEBeamCaloTask::analyze(), SiStripPsuDetIdMap::checkMapInputValues(), L1Comparator::compareFedRawCollections(), DeDwNorm(), DeDwProd(), BackToBackKinematicConstraint::deviations(), DTConfigTraco::DTConfigTraco(), CaloTowerTopology::east(), NtupleManager::FillMeasurements(), DataReducer< T >::getReducedDataList(), TrackAssociatorByPosition::getState(), edm::service::MessageLoggerDefaults::limit(), ESListOfFEDSProducer::ListOfFEDS(), EcalRawToRecHitRoI::ListOfFEDS(), EcalListOfFEDSProducer::ListOfFEDS(), HLTAlCa::ListOfFEDS(), MLP_Stochastic(), CaloTowerTopology::north(), TwoTrackMinimumDistanceHelixLine::oneIteration(), Generator::particleAssignDaughters(), HcalCableMapper::process(), edm::service::MessageLoggerDefaults::reportEvery(), edm::service::MessageLoggerDefaults::sev_limit(), edm::service::MessageLoggerDefaults::sev_reportEvery(), edm::service::MessageLoggerDefaults::sev_timespan(), HPDNoiseLibraryReader::shuffleData(), CaloTowerTopology::south(), edm::service::MessageLoggerDefaults::threshold(), edm::service::MessageLoggerDefaults::timespan(), TwoTrackMinimumDistanceHelixLine::updateCoeffs(), and CaloTowerTopology::west().
int createTree::default = '' |
Definition at line 64 of file createTree.py.
string createTree::dest = "inputDir" |
Definition at line 65 of file createTree.py.
string createTree::dt_basedir = '/MB/' |
Definition at line 142 of file createTree.py.
tuple createTree::ff = open("tree_items.js",mode="w") |
Definition at line 204 of file createTree.py.
Referenced by ZMuPtScaleAnalyzer::analyze(), DQMFileReader::beginJob(), StripClusterizerAlgorithm::clusterize_(), TowerBlockFormatter::DigiToRaw(), VVIObjDetails::dzero(), JetFlavourFilter::filter(), JetFlavourCutFilter::filter(), TwoTrackMinimumDistanceHelixLine::oneIteration(), HcalDigiMonitor::process_Digi(), TwoTrackMinimumDistanceHelixLine::updateCoeffs(), edmNew::DetSetVector< T >::updateImpl(), edm::writeParameterValue::writeValue(), and edm::writeParameterValue::writeVector().
string createTree::help = "[REQUIRED] input directory: should contain 'iter1', 'iterN' and 'common' directories filled with alignment_validation_plots.py. The resulting tree_items.js is also dumped into this directory" |
Definition at line 62 of file createTree.py.
string createTree::iteration1 = "iter1" |
main script
Definition at line 99 of file createTree.py.
open root and py result files
Definition at line 106 of file createTree.py.
string createTree::iterationN = "iterN" |
Definition at line 100 of file createTree.py.
list createTree::mytree = [] |
Definition at line 138 of file createTree.py.
dictionary createTree::NAME_TO_TITLE |
Definition at line 18 of file createTree.py.
tuple createTree::parser = optparse.OptionParser(usage) |
Definition at line 59 of file createTree.py.
tuple createTree::pp = pprint.PrettyPrinter(indent=2) |
Definition at line 15 of file createTree.py.
Referenced by FWGUIManager::addTo(), TestTrackHits::analyze(), PixelTrackBuilder::build(), CommissioningHistosUsingDb::buildDetInfo(), AnalyticalCurvilinearJacobian::computeFullJacobian(), VVIObjDetails::cosint(), DTTrigGeom::dumpGeom(), DTTrigGeom::dumpLUT(), NtupleManager::FillOptObjects(), RunDCSHVDat::fillTheMapByTime(), PythiaFilterEMJetHeep::filter(), doubleEMEnrichingFilterAlgo::filterIsoGenPar(), EMEnrichingFilterAlgo::filterIsoGenPar(), SequentialPartitionGenerator::first_part(), cms::HICFTSfromL1orL2::FTSfromL2(), cms::HICFTSfromL1orL2::FTSfromStandAlone(), funct::GaussLegendreIntegrator::GaussLegendreIntegrator(), gen::Pythia6JetGun::generateEvent(), DTTrigGeom::getGeom(), FWGUIManager::getSwapCandidate(), ThePEG::HepMCConverter< HepMCEventT, Traits >::init(), SteppingHelixPropagator::makeAtomStep(), SequentialPartitionGenerator::next_part(), TtDilepLRSignalSelObservables::operator()(), L1GTDigiToRaw::packGMT(), TkTransientTrackingRecHitBuilderESProducer::produce(), FSimTrack::setEcal(), FSimTrack::setHcal(), FSimTrack::setLayer1(), FSimTrack::setLayer2(), FSimTrack::setVFcal(), VVIObjDetails::sincosint(), VVIObjDetails::sinint(), EventShape::thrust(), TreatSecondary::tracks(), MonPNBlueDat::writeArrayDB(), MonPNGreenDat::writeArrayDB(), MonPNLed1Dat::writeArrayDB(), MonPNLed2Dat::writeArrayDB(), MonPNRedDat::writeArrayDB(), MonPNMGPADat::writeArrayDB(), DCULVRVoltagesDat::writeArrayDB(), and MonPNIRedDat::writeArrayDB().
string createTree::schamber = "%02d" |
Definition at line 181 of file createTree.py.
string createTree::ssector = "%02d" |
Definition at line 153 of file createTree.py.
list createTree::tree_level1 = ['test',''] |
Definition at line 139 of file createTree.py.
tuple createTree::tree_level2 = parseDir(dt_basedir,"MB",iteration1,iterationN) |
Definition at line 143 of file createTree.py.
tuple createTree::tree_level3 = parseDir(dd,wheel[0],iteration1,iterationN) |
Definition at line 147 of file createTree.py.
tuple createTree::tree_level4 = parseDir(dd,station[0],iteration1,iterationN) |
Definition at line 151 of file createTree.py.
tuple createTree::tree_level5 = parseDir(dd,"%s/%d" % (station[0],sector),iteration1,iterationN) |
Definition at line 156 of file createTree.py.
string createTree::type = "string" |
Definition at line 63 of file createTree.py.
string createTree::usage = '%prog [options]\n' |