Odd Software Tricks

command-level things

  • to get CMS defaults, source /afs/cern.ch/cms/sw/cmsset_default.sh
  • also, try souce /etc/profile
  • env -i bash will give you a shell similar to what a cron job sees
  • scram project CMSSW can be replaced by cmsrel 
  • eval `scram ...` can be replaced by the single word cmsenv
  • showtags -t -r -c shows the tags in a given release area
  • for traceback when exception occurs, igtrace -tt cmsRun xxx.cfg
  • to compile quicker, scramv1 b -j n where n is the number of CPU's on the machine
  • For granting access to afs areas, go to the required directory, and issue fs setacl -dir . -acl system:anyuser rl

CMSSW things

  • to load the right conditions, do either
    process.GlobalTag.globaltag = "STARTUP_V4::All" or "IDEAL_V2::All" or...
  • nifty debug tools in CMSSW
  • FIREWORKS: /afs/cern.ch/cms/fireworks/cmsShow21/cmsShow -c /afs/cern.ch/cms/fireworks/cmsShow21/cmsShow/cosmics.fwc data.root
  • to suppress per-event printout:
process.MessageLogger.cerr.FwkReport.reportEvery = 1000
  • when having trouble with missing plugin, try edmPluginDump and edmPluginRefresh
  • edmEventSize -d RelVal_HLT_8E29.root -v

-- MichaelSchmitt - 04 Aug 2008

Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r10 - 2009-06-05 - MichaelSchmitt
    • 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-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback