CMSSW Fallback

The patch attached to this page allows a CMSSW run to fallback from the normal TFC access to an xrootd-based URL.

Whenever an error occurs when opening a CMS file, the application will switch to the Xrootd service.

This is only tested on CMSSW_3_7_0 or later.

CMSSW Patches

Before you apply any patches, make sure you have your CMS environment set up correctly. From the CMSSW_3_7_x directory, do:


Now, apply patches and build the new code:

addpkg IOPool/Input
addpkg FWCore/Services
/usr/bin/curl -k | patch -p0
scram b -j4 USER_CXXFLAGS="-g"
It might take 3-5 minutes depending on the speed of your computer.

Add the xrootd service to the CMSSW run

Add the following line to your CMSSW .py file:
process.source.fallbackUrl = cms.untracked.string("root://")

You can run CMSSW as normal; whenever CMSSW runs into a file it can't open, it will start using the CMS Data Access Testbed.

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatpatch cmssw_fallback.patch r1 manage 6.9 K 2010-06-15 - 03:48 BrianBockelman  
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r1 - 2010-06-15 - BrianBockelman
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback