Variables | |
castorToLFN = eosToLFN | |
createCastorDir = createEOSDir | |
string | eos_select = '/afs/cern.ch/project/eos/installation/cms/bin/eos.select' |
isCastorDir = isEOSDir | |
isCastorFile = isEOSFile | |
lfnToCastor = lfnToEOS | |
|
private |
def eostools.cat | ( | path | ) |
cat, works on EOS and locally
Definition at line 400 of file eostools.py.
Referenced by EnergyScaleCorrection_class.AddScale(), EnergyScaleCorrection_class.AddSmearing(), MVAJetTagPlotter.analyzeTag(), TrackAnalyzer.bookHistosForEfficiencyFromHitPatter(), CSCStripAmpResponse.calculateAmpResponse(), CutBasedElectronID.cicSelection(), CutBasedElectronID.classify(), fwlite::Scanner< Collection >.fillDataSet(), edm::service::ELstatistics.formSummary(), GsfEleMVACut.operator()(), PhoMVACut.operator()(), DDStreamer.parts_read(), DDLLogicalPart.processElement(), AlgorithmCalibration< T, CO >.readCategories(), edm::service::ELstatistics.summaryForJobReport(), and TagProbeFitTreeAnalyzer.TagProbeFitTreeAnalyzer().
def eostools.chmod | ( | path, | |
mode | |||
) |
Does chmod on a file or directory
Definition at line 293 of file eostools.py.
Referenced by evf::EvFDaqDirector.initRun(), L1GtVhdlWriterCore.makeFirmware(), evf::EvFDaqDirector.openFULockfileStream(), L1GtVhdlWriterCore.writeAlgoSetup(), L1GtVhdlWriterCore.writeCond2intMap2File(), L1GtVhdlWriterCore.writeCondChipPkg(), L1GtVhdlWriterCore.writeConditionChipSetup(), L1GtVhdlWriterCore.writeDefValPkg(), L1GtVhdlWriterCore.writeEtmSetup(), L1GtVhdlWriterCore.writeMuonSetupVhdl(), and L1GtVhdlWriterCore.writeQsfSetupFiles().
def eostools.cmsStage | ( | absDestDir, | |
files, | |||
force | |||
) |
def eostools.createEOSDir | ( | path | ) |
Makes a directory in EOS ???Will, I'm quite worried by the fact that if this path already exists, and is a file, everything will 'work'. But then we have a file, and not a directory, while we expect a dir...
Definition at line 229 of file eostools.py.
Referenced by cmsStage().
def eostools.datasetNotEmpty | ( | path, | |
regexp | |||
) |
Definition at line 528 of file eostools.py.
def eostools.eosDirSize | ( | path | ) |
def eostools.eosToLFN | ( | path | ) |
Converts a EOS PFN to an LFN. Just strip out /eos/cms from path. If this string is not found, return path. ??? Shouldn't we raise an exception instead?
Definition at line 65 of file eostools.py.
References python.rootplot.root2matplotlib.replace().
Referenced by cmsStage(), createEOSDir(), eosDirSize(), isEOSDir(), cmsBatch.rootfiles_to_eos_script(), runEOSCommand(), and runXRDCommand().
def eostools.fileExists | ( | path | ) |
Returns true if path is a file or directory stored locally, or on EOS. This function checks for the file or directory existence.
Definition at line 197 of file eostools.py.
def eostools.isDirectory | ( | path | ) |
Returns True if path is a directory on EOS. Tests for file existence. This function returns False for EOS files, and crashes with local paths ???Will, this function also seems to work for paths like: /eos/cms/... ??? I think that it should work also for local files, see isFile.
Definition at line 260 of file eostools.py.
Referenced by createEOSDir().
def eostools.isEOS | ( | path | ) |
Tests whether this path is a CMS EOS (name starts with /eos...)
Definition at line 61 of file eostools.py.
Referenced by cat().
def eostools.isEOSDir | ( | path | ) |
Returns True if path is either: /store/... or /eos/cms/store/... or root://eoscms.cern.ch//eos/cms/ Otherwise, returns False. WARNING!! This function does not check for path existence, and returns true also for plain files. !!! Will, is my summary correct?
Definition at line 121 of file eostools.py.
References eosToLFN(), and lfnToPFN().
Referenced by cmsStage(), and fileExists().
def eostools.isEOSFile | ( | path, | |
tfcProt = 'rfio' |
|||
) |
Returns True if path is a file or directory stored on EOS (checks for path existence) ??? This function does not behave well if passed a non EOS path... returns lots of error messages like: >>> eostools.isEOSFile('/store/asdfasfd') Command (['ls', '/', 's', 't', 'o', 'r', 'e', '/', 'a', 's', 'd', 'f', 'a', 's', 'f', 'd', '/store']) failed with return code: 2 ls: s: No such file or directory ls: t: No such file or directory ls: o: No such file or directory ls: r: No such file or directory ls: e: No such file or directory ls: a: No such file or directory ls: s: No such file or directory ls: d: No such file or directory ls: f: No such file or directory ls: a: No such file or directory ls: s: No such file or directory ls: f: No such file or directory ls: d: No such file or directory ls: /store: No such file or directory ls: s: No such file or directory ls: t: No such file or directory ls: o: No such file or directory ls: r: No such file or directory ls: e: No such file or directory ls: a: No such file or directory ls: s: No such file or directory ls: d: No such file or directory ls: f: No such file or directory ls: a: No such file or directory ls: s: No such file or directory ls: f: No such file or directory ls: d: No such file or directory ls: /store: No such file or directory False
Definition at line 152 of file eostools.py.
Referenced by createEOSDir(), and fileExists().
def eostools.isFile | ( | path | ) |
Returns True if a path is a file. Tests for file existence. Returns False for directories. Works on EOS and local paths. ???This function works with local files, so not the same as isDirectory... isFile and isDirectory should behave the same.
Definition at line 273 of file eostools.py.
def eostools.isLFN | ( | path | ) |
Tests whether this path is a CMS LFN (name starts with /store...)
Definition at line 56 of file eostools.py.
Referenced by lfnToEOS().
def eostools.lfnToEOS | ( | path | ) |
Converts LFN to EOS. If path is not an LFN in the first place, return path. ??? shouldn't we raise an exception?
Definition at line 107 of file eostools.py.
References isLFN().
Referenced by cat().
def eostools.lfnToPFN | ( | path, | |
tfcProt = 'rfio' |
|||
) |
Converts an LFN to a PFN. For example: /store/cmst3/user/cbern/CMG/TauPlusX/Run2011A-03Oct2011-v1/AOD/V2/PAT_CMG_V2_4_0/H2TAUTAU_Nov21 -> root://eoscms//eos/cms/store/cmst3/user/cbern/CMG/TauPlusX/Run2011A-03Oct2011-v1/AOD/V2/PAT_CMG_V2_4_0/H2TAUTAU_Nov21?svcClass=cmst3&stageHost=castorcms This function only checks path, and does not access the storage system. If the path is in /store/cmst3, it assumes that the CMST3 svcClass is to be used. Otherwise, is uses the default one. ??? what is tfcprot?
Definition at line 76 of file eostools.py.
Referenced by isEOSDir(), runEOSCommand(), and runXRDCommand().
Provides a simple list of the specified directory, works on EOS and locally
Definition at line 348 of file eostools.py.
Referenced by FWPFCandidateDetailView.addClusters(), HcalLaserEventFilter2012.addEventString(), LumiMonitor.analyze(), PSMonitor.analyze(), DisplayGeom.analyze(), PixelLumiDQM.beginLuminosityBlock(), DQMProvInfo.blankPreviousLumiSections(), FWBeamSpotProxyBuilder.build(), FWPFClusterRPZProxyBuilder.build(), FWSiPixelClusterProxyBuilder.build(), FWPFClusterRPZUtils.buildRhoPhiClusterLineSet(), FWPFClusterRPZUtils.buildRhoZClusterLineSet(), evf::EvFDaqDirector.bumpFile(), L1TSync.certifyLSBlock(), CompositeLogicalTrajectoryFilter.CompositeLogicalTrajectoryFilter(), L1TSync.doFractionInSync(), PixelLumiDQM.endLuminosityBlock(), L1TRate.endLuminosityBlock(), RawEventFileWriterForBU.endOfLS(), RateBuffer.fill(), EcalDeadCellTriggerPrimitiveFilter.filter(), RawEventFileWriterForBU.finishFileWrite(), RateBuffer.getLSAlgoRate(), RateBuffer.getLSRate(), RateBuffer.getLSTechRate(), BeamSpotWorkflow.getNewRunList(), IdealZDCTrapezoid.initCorners(), IdealCastorTrapezoid.initCorners(), EcalDeadCellTriggerPrimitiveFilter.loadEventInfo(), FWBeamSpotProxyBuilder.localModelChanges(), ls_cert_type(), lsbs_cert(), copyAndRename.main(), copyFromCastor.main(), rename.main(), copyFiles.main(), main(), splitter.main(), checkRuns.main(), nlumis(), evf::EvFDaqDirector.preGlobalEndLumi(), AlpgenSource.readAlpgenEvent(), FedRawDataInputSource.readSupervisor(), evf::FastMonitoringService.reportLockWait(), lumi::TRGScalers2DB.retrieveData(), GenericTripletGenerator.run(), GenericPairGenerator.run(), BeamHaloPairGenerator.run(), fffnaming.runLumiPrefix(), fffnaming.runLumiPrefixFill(), MonitorElement.setLumi(), DIPLumiDetail.setOrigin(), DIPLumiSummary.setOrigin(), FWPFClusterRPZProxyBuilder.sharedBuild(), TT6CMNSubtractor.subtract_(), IteratedMedianCMNSubtractor.subtract_(), SimpleCosmicBONSeeder.triplets(), evf::EvFDaqDirector.updateFuLock(), DTTimeEvolutionHisto.updateTimeSlot(), and RawEventOutputModuleForBU< Consumer >.write().
Provides a simple list of the specified directory, works on EOS only, but is faster than the xrd version
Definition at line 352 of file eostools.py.
Referenced by datasetNotEmpty().
def eostools.matchingFiles | ( | path, | |
regexp | |||
) |
def eostools.mkdir | ( | path | ) |
Create a directory, either on EOS or locally
Definition at line 250 of file eostools.py.
Referenced by L1GtVhdlWriter.analyze(), spu.create_dir(), dd_to_html(), MillePedeMonitor.init(), evf::EvFDaqDirector.initRun(), LaserSorter.LaserSorter(), L1GtVhdlWriterCore.makeFirmware(), pos::PixelConfigFile.makeNewVersion(), L1MuGlobalMuonTrigger.produce(), EgammaObjects.saveHistos(), VariablePlotter.setDir(), LaserSorter.streamFileName(), WatcherStreamFileReader.WatcherStreamFileReader(), and RawEventFileWriterForBU.writeJsds().
def eostools.move | ( | src, | |
dest | |||
) |
Move filename1 to filename2 locally to the same server
Definition at line 510 of file eostools.py.
Referenced by CompatibleDetToGroupAdder.add(), tracking::TempMeasurements.add(), TkGluedMeasurementDet::HitCollectorForFastMeasurements.add(), edm::Principal.addAliasedProduct(), TrajectorySegmentBuilder.addGroup(), CosmicTrajectoryBuilder.AddHit(), edm::Principal.addInputProduct(), edmNew::DetSetVector< edm::Ref< edmNew::DetSetVector< SiStripCluster >, SiStripCluster, edmNew::DetSetVector< SiStripCluster >::FindForDetSetVector > >.addItem(), edm::Principal.addProductOrThrow(), TkGluedMeasurementDet::HitCollectorForRecHits.addProjected(), edm::Principal.addScheduledProduct(), edm::Principal.addSourceProduct(), BaseCkfTrajectoryBuilder.addToResult(), edm::Principal.addUnscheduledProduct(), GroupedCkfTrajectoryBuilder.advanceOneLayer(), MultiTrackValidator.analyze(), DTCCBConfig.appendConfigKey(), LHESource.beginRun(), JME::bimap< Binning, std::string >.bimap(), DQMStore.book(), Basic2DGenericPFlowClusterizer.buildClusters(), PFlow2DClusterizerWithTime.buildClusters(), DetIdAssociator.buildMap(), SeedFromConsecutiveHitsCreator.buildSeed(), TrackProducerAlgorithm< reco::GsfTrack >.buildTrack(), TrackProducerAlgorithm< reco::Track >.buildTrack(), DTReadOutMapping.cacheMap(), TrackingParticleNumberOfLayers.calculate(), clangcms::FiniteMathChecker.checkPreStmt(), XrdAdaptor::RequestManager.checkSourcesImpl(), DAClusterizerInZ_vect.clusterize(), PixelThresholdClusterizer.clusterizeDetUnit(), edm::LuminosityBlock.commit_(), edm::Run.commit_(), edm::Event.commit_aux(), CaloTowersCreationAlgo.convert(), edm.convert_handle(), edm::SharedResourcesRegistry.createAcquirer(), edm::SharedResourcesRegistry.createAcquirerForSourceDelayedReader(), edm::impl.createCommunicatorIfNeeded(), StandAloneMuonFilter.createDefaultTrajectory(), edm::OutputModuleCommunicatorT< T >.createIfNeeded(), BareRootProductGetter.createNewBuffer(), ESDigitizer.createNoisyList(), edm::maker::ModuleHolderT< T >.createOutputModuleCommunicator(), CosmicTrajectoryBuilder.createStartingTrajectory(), CRackTrajectoryBuilder.createStartingTrajectory(), KinematicTree.currentProductionVertex(), PFRecoTauDiscriminationByIsolation.discriminate(), edm::RecordInParentless< PROD >.do_it(), edm::RecordInParentfull< PROD >.do_it(), OutsideInMuonSeeder.doLayer(), EcalTBDigiProducer.EcalTBDigiProducer(), MillePedeFileConverter.endLuminosityBlockProduce(), LHESource.endRun(), MeasurementDet.fastMeasurements(), lhef::LHEReader::FileSource.FileSource(), edm::RootOutputFile.fillBranches(), HcalGeometry.fillDetIds(), edm::RootFile.fillIndexIntoFile(), PhotonMVAEstimatorRun2Phys14NonTrig.fillMVAVariables(), PhotonMVAEstimatorRun2Spring15NonTrig.fillMVAVariables(), ElectronMVAEstimatorRun2Phys14NonTrig.fillMVAVariables(), ElectronMVAEstimatorRun2Spring15Trig.fillMVAVariables(), ElectronMVAEstimatorRun2Spring15NonTrig.fillMVAVariables(), HPDNoiseGenerator.fillNoiseSignals(), L1GTPrescaler.filter(), L1TGlobalPrescaler.filter(), TkStripMeasurementDet.filteredRecHits(), cms::SiPixelDigitizer.finalizeEvent(), LocalFileSystem.findCachePath(), LocalMaximumSeedFinder.findSeeds(), V0Fitter.fitAll(), edm::ProvenanceAdaptor.fixProcessHistory(), reco::FormulaEvaluator.FormulaEvaluator(), edm::EventBase.get(), edm::eventsetup::EventSetupRecord.get(), edm::Event.get(), edm.getAnyPtr(), PileUpEventPrincipal.getByLabel(), edm::EventBase.getByLabel(), edm::RunBase.getByLabel(), edm::LuminosityBlockBase.getByLabel(), edm::LuminosityBlock.getByLabel(), edm::Run.getByLabel(), edm::Event.getByLabel(), edm::LuminosityBlock.getByToken(), edm::Run.getByToken(), edm::Event.getByToken(), edm::PrincipalGetAdapter.getManyByType(), SeedFinder.getSeed(), edm::StreamerOutputModuleBase.getTriggerResults(), edm::OutputModule.getTriggerResults(), edm.getWrapperBasePtr(), PixelForwardLayer.groupedCompatibleDetsV(), PixelForwardLayerPhase1.groupedCompatibleDetsV(), TECLayer.groupedCompatibleDetsV(), CompositeTECWedge.groupedCompatibleDetsV(), Phase2OTEndcapLayer.groupedCompatibleDetsV(), TIDRing.groupedCompatibleDetsV(), TBLayer.groupedCompatibleDetsV(), TIBRing.groupedCompatibleDetsV(), Phase2OTEndcapRing.groupedCompatibleDetsV(), PixelBlade.groupedCompatibleDetsV(), TOBRod.groupedCompatibleDetsV(), Phase1PixelBlade.groupedCompatibleDetsV(), Phase2OTBarrelRod.groupedCompatibleDetsV(), CompositeTECPetal.groupedCompatibleDetsV(), LayerMeasurements.groupedMeasurements(), XrdAdaptor::RequestManager.handle(), XrdAdaptor::RequestManager::OpenHandler.HandleResponseWithHosts(), SeedingLayerSetsBuilder.hits(), RectangularEtaPhiTrackingRegion.hits(), MultiHitGeneratorFromChi2.hitSets(), HLTConfigDataEx.HLTConfigDataEx(), PFHBHERecHitCreator.importRecHits(), PFHGCalRecHitCreator< DET, Layer, subdet >.importRecHits(), PFEcalRecHitCreator< Geometry, Layer, Detector >.importRecHits(), PFPSRecHitCreator.importRecHits(), HitTripletGeneratorFromPairAndLayers.init(), MultiHitGeneratorFromPairAndLayers.init(), edm::EventProcessor.init(), DTCCBConfig.initialize(), XrdAdaptor::RequestManager.initialize(), initializeDummyPSet(), PFEGammaAlgo.initializeProtoCands(), TransientInitialStateEstimator.innerState(), edm::ParentageRegistry.insertMapped(), GeomDetCompatibilityChecker.isCompatible(), JME::JetParameters.JetParameters(), L1MuBMTFSetup.L1MuBMTFSetup(), L1MuDTTFSetup.L1MuDTTFSetup(), SeedingLayerSetsBuilder::LayerSpec.LayerSpec(), CkfTrajectoryBuilder.limitedCandidates(), edm.makeESHandleExceptionFactory(), edm.makeHandleExceptionFactory(), edm::RootFile.makeProvenanceReaderMaker(), TSGForOI.makeSeedsFromHits(), TrajectoryFitter.makeVect(), TkPixelMeasurementDet.measurements(), DQMStore.mergeAndResetMEsLuminositySummaryCache(), DQMStore.mergeAndResetMEsRunSummaryCache(), edm::ProductHolderBase.mergeProduct(), edm::InputProductHolder.mergeProduct_(), edm::ProducedProductHolder.mergeProduct_(), edm::AliasProductHolder.mergeProduct_(), DetGroupMerger.mergeTwoLevels(), KinematicTree.movePointerToTheTop(), edm::soahelper::SoATupleHelper< I, Args >.moveToNew(), BaseCkfTrajectoryBuilder.moveToResult(), MuonAssociatorByHits.MuonAssociatorByHits(), MuonToSimAssociatorByHits.MuonToSimAssociatorByHits(), PhotonMVAEstimatorRun2Phys14NonTrig.mvaValue(), PhotonMVAEstimatorRun2Spring15NonTrig.mvaValue(), ElectronMVAEstimatorRun2Phys14NonTrig.mvaValue(), ElectronMVAEstimatorRun2Spring15Trig.mvaValue(), ElectronMVAEstimatorRun2Spring15NonTrig.mvaValue(), LocalStorageMaker.open(), DCacheStorageMaker.open(), XrdStorageMaker.open(), StormStorageMaker.open(), StormLcgGtStorageMaker.open(), StorageFactory.open(), RFIOStorageMaker.open(), CaloTDigitizerDefaultRun< Traits >.operator()(), extstd::clone_ptr< Bounds >.operator=(), DetGroupElement.operator=(), edm::InputTag.operator=(), ProxyBase11< T >.operator=(), reco::TransientTrack.operator=(), edm::RefVectorBase< key_type >.operator=(), edm::RefVector< JetEisolAssociationCollection >.operator=(), pat::PackedGenParticle.operator=(), edmNew::dstvdetails::DetSetVectorTrans::Item.operator=(), DetGroupMerger.orderAndMergeTwoLevels(), PFRecoTauDiscriminationByIsolation.PFRecoTauDiscriminationByIsolation(), PixelTrackReconstruction.PixelTrackReconstruction(), TFWLiteSelectorBasic.Process(), edm::SubProcess.process(), MultiTrackSelector.processMVA(), QualityFilter.produce(), TrackingParticleConversionSelector.produce(), edm::EventAuxiliaryHistoryProducer.produce(), SeedCombiner.produce(), TrackingParticleNumberOfLayersProducer.produce(), GeneratorSmearedProducer.produce(), EmptySimHits.produce(), VertexAssociatorByPositionAndTracksProducer.produce(), evf::EvFFEDSelector.produce(), VertexAssociatorByTracksProducer.produce(), CandIsoDepositProducer.produce(), MuIsoDepositCopyProducer.produce(), FastTrackerRecHitCombiner.produce(), JetTracksAssociationToTrackRefs.produce(), FastTrackerRecHitMaskProducer.produce(), BaseEvtVtxGenerator.produce(), MuonReSeeder.produce(), TrackListMerger.produce(), ClusterTPAssociationProducer.produce(), FastTrackerRecHitMatcher.produce(), MixEvtVtxGenerator.produce(), edm::LogErrorHarvester.produce(), JetCorrectorProducer< T >.produce(), edm::TriggerResultInserter.produce(), TrackMVAClassifierBase.produce(), FakeTrackProducer< T >.produce(), TrackMCQuality.produce(), TrackCandidateProducer.produce(), TrackAssociatorByPositionProducer.produce(), HLTScoutingMuonProducer.produce(), QuickTrackAssociatorByHitsProducer.produce(), ExtraFromSeeds.produce(), HLTScoutingEgammaProducer.produce(), TrackAssociatorByChi2Producer.produce(), GenHIEventProducer.produce(), SiTrackerGaussianSmearingRecHitConverter.produce(), TcdsRawToDigi.produce(), TrackAssociatorByHitsProducer.produce(), TracksToTrajectories.produce(), MixBoostEvtVtxGenerator.produce(), BetaBoostEvtVtxGenerator.produce(), CorrectedECALPFClusterProducer.produce(), PFEGammaProducer.produce(), PixelJetPuId.produce(), MuonIdProducer.produce(), TrajectorySeedProducer.produce(), ChainedJetCorrectorProducer.produce(), SmearedJetProducerT< T >.produce(), MuonToTrackingParticleAssociatorEDProducer.produce(), cms::CkfTrackCandidateMakerBase.produceBase(), edm::ProductProvenance.ProductProvenance(), TkGluedMeasurementDet.projectOnGluedDet(), reco::PFCluster.pruneUsing(), TempTrajectory.push(), edmNew::DetSetVector< T >::FastFiller.push_back(), edmNew::DetSetVector< T >::TSFastFiller.push_back(), edm::RunPrincipal.put(), edm::LuminosityBlockPrincipal.put(), edm::Run.put(), edm::LuminosityBlock.put(), edm::Event.put(), edm::EventPrincipal.put(), KfTrackProducerBase.putInEvt(), GsfTrackProducerBase.putInEvt(), DAFTrackProducer.putInEvtTrajAnn(), edm::EventPrincipal.putOnRead(), edm::Principal.putOrMerge(), edm::ProductHolderBase.putProduct(), edm::InputProductHolder.putProduct_(), edm::ProducedProductHolder.putProduct_(), edm::AliasProductHolder.putProduct_(), edm::DataMixingTrackingParticleWorker.putTrackingParticle(), FedRawDataInputSource.read(), edm::StreamerInputSource.read(), edm::RootFile.readCurrentEvent(), LHESource.readEvent_(), edm::PoolSource.readFile_(), edm::EventPrincipal.readFromSource_(), GroupedCkfTrajectoryBuilder.rebuildSeedingRegion(), GroupedCkfTrajectoryBuilder.rebuildTrajectories(), SimpleDAFHitCollector.recHits(), TkStripMeasurementDet.recHits(), RecoTauDiscriminantCutMultiplexer.RecoTauDiscriminantCutMultiplexer(), TrajectorySegmentBuilder.redoMeasurements(), edm::ESProxyFactoryProducer.registerFactoryWithKey(), VertexFitterManager.registerFitter(), edm::Principal.resolveProductImmediately(), ESDigitizer.run(), MultiTrackSelector.run(), PixelForwardLayer.searchNeighbors(), PixelForwardLayerPhase1.searchNeighbors(), TIBRing.searchNeighbors(), CRackTrajectoryBuilder.seedMeasurements(), CaloTower.setConstituents(), edm::storage::StatisticsSenderService.setCurrentServer(), reco::PFTau.setisolationPiZeroCandidates(), reco::PFTau.setIsolationPiZeroCandidatesRefs(), reco::PFTau.setIsolationTauChargedHadronCandidates(), reco::PFTau.setIsolationTauChargedHadronCandidatesRefs(), reco::formula::BinaryOperatorEvaluatorBase.setLeftEvaluator(), edm::InputProductHolder.setProduct(), reco::formula::BinaryOperatorEvaluatorBase.setRightEvaluator(), reco::PFTau.setsignalPiZeroCandidates(), reco::PFTau.setSignalPiZeroCandidatesRefs(), reco::PFTau.setSignalTauChargedHadronCandidates(), reco::PFTau.setSignalTauChargedHadronCandidatesRefs(), HLTJets.setup(), L1MuDTTrackFinder.setup(), L1MuBMTrackFinder.setup(), edm::ProductData.setWrapper(), edm::service::SiteLocalConfigService.SiteLocalConfigService(), DDValue::StringHolder.StringHolder(), edm::SubProcess.SubProcess(), TempTrajectory.TempTrajectory(), DTSegtoRPC.thePoints(), CSCSegtoRPC.thePoints(), TracktoRPC.thePoints(), TrackingLayer.toIdString(), TrackingLayer.toString(), edm::service::Tracer.Tracer(), TrajectorySmoother.trajectories(), TrajectoryBuilder.trajectories(), edm::ProductData.unsafe_setWrapper(), MuonTrajectoryUpdator.update(), TrajectorySegmentBuilder.updateCandidatesWithBestHit(), TrajectorySegmentBuilder.updateTrajectory(), CkfTrajectoryBuilder.updateTrajectory(), edm::detail::TriggerResultsBasedEventSelector.wantEvent(), StorageFactory.wrapNonLocalFile(), VirtualJetProducer.writeJets(), TrackCollectionCloner::Producer.~Producer(), and edmNew::DetSetVector< T >::TSFastFiller.~TSFastFiller().
Remove a list of files and directories, possibly recursively Colin: Is that obsolete? why not use rm?
Definition at line 381 of file eostools.py.
rm, works on EOS and locally. Colin: should implement a -f mode and a confirmation when deleting dirs recursively.
Definition at line 362 of file eostools.py.
Referenced by remove().
def eostools.runEOSCommand | ( | path, | |
cmd, | |||
args | |||
) |
Run an eos command. !!! Will, when the EOS command fails, it passes silently... I think we should really try and raise an exception in case of problems. should be possible as the return code is provided in the tuple returned by runner.
Definition at line 38 of file eostools.py.
References eosToLFN(), and lfnToPFN().
Referenced by chmod(), createEOSDir(), eosDirSize(), ls_EOS(), and rm().
def eostools.runXRDCommand | ( | path, | |
cmd, | |||
args | |||
) |
Run an xrd command. !!! Will, what is happening in case of problem? ??? At some point, should return a list of lines instead of a string.
Definition at line 22 of file eostools.py.
References eosToLFN(), and lfnToPFN().
Referenced by cat(), isDirectory(), isFile(), listFiles(), and move().
def eostools.setCAFPath | ( | ) |
Hack to get the CAF scripts on the PYTHONPATH
Definition at line 13 of file eostools.py.
def eostools.which | ( | cmd | ) |
Definition at line 335 of file eostools.py.
Referenced by OOTPileupCorrData.apply(), MuonResidualsFitter.computeHistogramRangeAndBinning(), gen::EvtGenInterface.decay(), pat::PATSingleVertexSelector.filter_(), ConstantStepOdeSolver.getCoordinate(), OOTPileupCorrData.getCorrectionByID(), HBHENegativeEFilter.getEtaIndex(), LMFDat.getNeighbour(), AbsElectronicODERHS.getParameter(), ConstantStepOdeSolver.getPeakTime(), ConstantStepOdeSolver.integrateCoordinate(), ConstantStepOdeSolver.interpolateCoordinate(), MuonResidualsTwoBin.mean(), PiecewiseScalingPolynomial.operator()(), MuonResidualsTwoBin.read(), InputTagDistributorService.retrieve(), TrackMultiSelector.select(), MuonResidualsFitter.selectPeakResiduals(), AbsElectronicODERHS.setParameter(), MuonResidualsTwoBin.stdev(), ConstantStepOdeSolver.truncateCoordinate(), MuonResidualsTwoBin.wmean(), MuonResidualsTwoBin.write(), MuonResidualsFitter.write(), and ConstantStepOdeSolver.writeHistory().
def eostools.xrdcp | ( | src, | |
dest | |||
) |
Does a copy of files using xrd. Colin: implement a generic cp interface as done for rm, ls, etc?
Definition at line 429 of file eostools.py.
eostools.castorToLFN = eosToLFN |
Definition at line 74 of file eostools.py.
eostools.createCastorDir = createEOSDir |
Definition at line 248 of file eostools.py.
string eostools.eos_select = '/afs/cern.ch/project/eos/installation/cms/bin/eos.select' |
Definition at line 11 of file eostools.py.
eostools.isCastorDir = isEOSDir |
Definition at line 149 of file eostools.py.
eostools.isCastorFile = isEOSFile |
Definition at line 194 of file eostools.py.
eostools.lfnToCastor = lfnToEOS |
Definition at line 119 of file eostools.py.