Class Reference for E1039 Core & Analysis Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
draw_real_dst.cc File Reference

Go to the source code of this file.

Functions

TTree * GetTree (const int run)
 ROOT macro to look into the E1039 DST file in a simple way. More...
 
void PrintTreeElements (TTree *tree)
 Sub-function to just print out the list of tree variables. More...
 
void draw_real_dst (const int run=318)
 Main function. More...
 

Function Documentation

void draw_real_dst ( const int  run = 318)

Main function.

Definition at line 25 of file draw_real_dst.cc.

References c1, GetTree(), and run().

+ Here is the call graph for this function:

TTree * GetTree ( const int  run)

ROOT macro to look into the E1039 DST file in a simple way.

Sub-function to open the ROOT file and get the tree.

This macro uses TTree::Draw() to plot the contents of the E1039 DST file, rather than the Fun4All event loop. Anyone can try it for quick checks, but not recommended to use it for serious analyses because it cannot make use of the mapping and calibration info of the e1039-core framework.

It still needs the library file of the e1039-core framework to interpret the SQ data structure. On "seaquestdaq01" and "e1039-monitor", you can just execute the following command before running this macro; source /data2/e1039/this-e1039.sh

The variable name that you can use in TTree::Draw() is given in the e1039-core header files, e.g. /data2/e1039/core/include/interface_main/SQHit.h

Definition at line 55 of file draw_real_dst.cc.

Referenced by draw_real_dst().

+ Here is the caller graph for this function:

void PrintTreeElements ( TTree *  tree)

Sub-function to just print out the list of tree variables.

Definition at line 75 of file draw_real_dst.cc.