Using the File Checking Tool

Complete: 2

The script

N. B. The changes described below make this version of incompatible with all earlier versions. With the more flexible design of this version, additional changes should just add function but not alter older usage.

In the form described here, this script has been present since CMSSW_0_4_1_pre1.

In the scripts directory of FWCore/Modules is a script that provide a starting point for a utility for getting information about the contents of TTree objects in CMS Root files. At build time, this script and some subordinate items are moved into the appropriate bin directory and that directory is inserted into the user's path, making them automatically available.

The shell script is the only one users need to know how to use. The others (all CINT scripts) are driven by the shell script rendering them relatively hidden.

A short synopsis of the script follows. [-h | -t | -b treename] filename


  • -h produces a help text like this.

  • -t requests a list of names of the TTree objects in the selected file.

  • -b treename requests details on the branches of the named TTree object. treename is a required parameter.

  • filename is the name of the Root file of interest and is required.

If a specific tree name is given, the tree is inspected and a list of branch details is printed. If no such tree exists on the file, a message is issued. If the literal string "all" is given, all trees are considered.

At present, all that actually happens when this script is run is that the specified file is opened, the named tree is identified and the member function TTree::Print() is called. I suspect that will be quickly found insufficient but, at the same time, believe that it represents a reasonable starting point.

Review Status

Reviewer/Editor and Date (copy from screen) Comments
JohnMarraffino - 14 Feb 2006 page author
JennyWilliams - 31 Jan 2007 editing to include in SWGuide

Responsible: ChrisDJones
Last reviewed by: Reviewer

Edit | Attach | Watch | Print version | History: r12 < r11 < r10 < r9 < r8 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r12 - 2016-07-29 - ChrisDJones

    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CMSPublic All webs login

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