TWiki> Main Web>TWikiUsers>RebeccaCarney>TestBeamAna (revision 1)EditAttachPDF


Documentation and examples of testBeamAnalysis. Intended as a clustering analysis for RAW FE-I4 data from the RCE DAQ system (USBPix - in progress).

STATUS: Under development!

Source Code

Supported platforms

  • Mac OSX
  • Rhel
  • Runs on LXPlus


The software was developed in C++98 and with a bash shell. The analysis itself can be run as is but if use of the plotting functions is required, access to ROOT libraries is needed and is expected to be compiled and findable. This framework was developed with version 5.34.

GIT repository in bitBucket

The source code can be found in this git repo:

  • URL:
Contact the author to get access.


The code is compiled expecting the folder structured outlined below. It also expects class files to end in '.cpp', header files to end in '.h', and main files to end in '.cxx'.

  • Makefile : Makefile to compile the code
  • README : Textfile with basic information
  • ana/ : Analysis objects and namespaces
  • bin/ : Folder for compiled executables
  • build/ : Folder for compiled objects
  • plots/ : Output folder for plotting functions
  • src/ : Folder for mains


The makefile should take care of everything. Expected output:

            $ make
            [Compiling] build/Algorithm.o
            [Compiling] build/Cluster.o
            [Compiling] build/DataReader.o
            [Compiling] build/Event.o
            [Compiling] build/Hit.o
            [Compiling] build/Plot.o
            [Compiling] build/RCEDataReader.o
            [Creating] build/libTB_ana.a
            [Compiling] build/sgnTest.o
            [Linking] bin/sgnTest
            [Compiling] build/testMain.o
            [Linking] bin/testMain

Running the code

Currently the main executable is:

  • anaData
Currently the only parameter passed to the program is the raw data file. This may change so watch the repo for updates. Run like:

            ./bin/anaData $PATH/filename.dat

testBeamAna containers and functions

Short description of some of the tools that can be used in an analysis. Click the links for more details.

Name Filename Author Description
Algorithm Algorithm.h Rebecca Clusters hits in each event within 1 bcid of each other. Please see class description for details.
Cluster Cluster.h Rebecca Cluster object, stores hits and other cluster information.
DataReader - base class DataReader.h Rebecca Raw data reader base class.
RCEDataReader - derived class RCEDataReader.h Rebecca RCE raw data formatted record file reader and import
Event Event.h Rebecca Event object, stores all hits with the same LV1ID
Hit Hit.h Rebecca Hit object, stores the bcid, tot, column, and row of each hit.
Plot Plot.h Rebecca Plotting functions, makes use of root libraries to save and display plots.

testBeamAna results

A link to the graphs from analysis

Sensor type Angle [degrees] Run, date (dd/mm/yy), log file Description Data added by Date added (dd/mm/yy) plots (CCE)
3D 2 lorem ipsum dolor bla sometime link
Planar 2 lorem ipsum dolor bla sometime link

Major updates:
-- RebeccaCarney - 30-November-2014

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r1 - 2014-12-01 - RebeccaCarney
    • 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