HannaPlusPlusTools

Aus HERMESwiki
Zur Navigation springen Zur Suche springen

Page maintainer: Andreas

Checked.png This page is considered done. It been reviewed by Dietmar. There may be missing elements, but they are all flagged and the text has no errors.

The following page is a description of the tools provided with Hanna++.

hppconfig

Program that returns the Hanna++ compile time configuration options.

[geordi] ~ $ hppconfig --help
Usage: hppconfig [--help] [--stdlibs] [--incflags] [--cflags] [--cxxflags] [--ldflags] [--libs]
                 [--hrccore] [--hrclibs_<version>] [--hrcversions] [--udstlibs_<version>] [--udstversions]
   --help                  Display this help text
   --stdlibs               Print standard libraries
   --incflags              Print include flags
   --cflags                Print c-compiler options
   --cxxflags              Print c++-compiler option
   --ldflags               Print linker flags
   --libs                  Print libraries
   --hrccore               Print core HRC/XTC libraries
   --hrclibs<version>      Print HRC ddl version specific libraries
                             1   for old recoil ddl
                             2   for new recoil ddl
   --hrcversions           Print list of supported HRC versions
   --udsttree              Print libraries for working with uDST trees
   --udstlibs_<version>    Print uDST version specific libraries
                           <version> is the uDST version (example: 05c1)
   --udstversions          Print list of supported uDST versions


mkModule.py

A simple script to create a skeleton analysis module from various templates. With additional command line arguments the script will just print usage information:

[geordi] ~ $ mkModule.py
usage: mkModule.py [uDST_Sel_HRC] classname

When just the classname is provided, the option uDST is assumed. The option uDST creates a standard analysis module for uDST data:

[geordi] ~ $ mkModule.py uDST MyTestModule
created ./MyTestModule.hh
created ./MyTestModule.cc

The option HRC will create a standard analysis module for HRC data. The option Sel will create a skeleton event selection module for uDST data. In addition the corresponding Info class is created:

[geordi] ~ $ mkModule.py Sel MyTestSelector
created ./MyTestSelector.hh
created ./MyTestSelector.cc
created ./MyTestSelectorInfo.hh
created ./MyTestSelectorInfo.cc

udst2root

Program to convert uDST data files into ROOT format. Different groups of data can be turned off. Please see the program help text for details:

[geordi] ~ $ udst2root_07c1 --help
Created uDST analysis object (v0.9.1 - 2305)
uDST: built for 07c1 (version code: 20070201)
Usage  : udst2root_07c1 [option [value]] [--] [file [...]]
Options:
 --split  nruns        - Split trees in chunks of nruns
 --idx                 - Create tree index for event and run numbers

 --nogen               - Do not process general tables
                         (g1Beam, g1DAQ, g1Quality, g1Target, g1TrkEffi)
 --nomc                - Do not process MC tables
                         (g1MEvent, g1MVert, g1MTrack, g1MCUser)
 --nospec              - Do not process spectrometer tables
                         (smCluster, g1Track, smTrack, smRICH, smLumi)
 --nolw                - Do not process LW tables
                         (g1LWTrk, g1LW)
 --nord                - Do not process recoil tables
                         (g1RDTrack, g1RDTrackPar, g1RDPID, g1PD)
 ...

hrc2root

Program to convert HRC/XTC data files into ROOT format. Different groups of data can be turned off. Please see the program help text for details:

[geordi] ~ $hrc2root_V2 --help
Created HRC analysis object
Usage  : hrc2root_V2 [option [value]] [--] [file [...]]
Options:
 --split  nruns        - Split trees in chunks of nruns
 --idx                 - Create tree index for event and run numbers

 --nogen               - Do not process general tables
                         (dcEvInfo)
 --noraw               - Do not process raw tables
                         (dataSiliRec, dataSciRec, ...)
 --nomc                - Do not process MC tables
                         (mcEvent, mcRadCor, mcUser, mcVert, mcTrack, mcHit)
 --nospec              - Do not process spectrometer tables
                         (rcVertex, rcTrack, rcPartTrack, rcCluster, rcRaw)
 --nord                - Do not process recoil tables
                         (rdSET, rdTrack, rdTrackPar, rdSpacePoint, ...)
 ...