STAR Tutorial Github Codespace <- click

For successfull running one can submit an application for Free Github Education benefits.

This is an example analysis of StPicoDst:

  • St stands for STAR, all classes start from it
  • Pico means the tree data format where only small number of numerous qualities are saved, exist also Micro and Mini,
  • Dst means Data Summary Table)

It is based on Grigory’s presentation on PicoDst 2019

Introduction

The star-sw version is here, which corresponds to the latest version star pro with compiler gcc4.85 and ROOT 5.34 version.

STAR uses cons command to compile. This is similar to compiling projects using Make file or performing g++ command within complex C++ projects (whic STAR is). The cons command will:

  • create a directory .sl7X_gccXX where all compiled libraries will go which are used in your project
  • perform compilation of all your files with .cxx(important!) and connected headers .h under StRoot directory.

Run instructions:

  1. First, you’ll need to enter the container, for that, type:
    star-shell
    
  2. To compile a project, perform cons command
    cons
    
  3. Now, one can run event analysis macro using
    root -l -b macros/runPicoDstAnalysisMaker.C
    

    It will create a .root file with your TTree and some QA histograms. If you are interested what are these ROOT flags : -l - no splash screen, -b - stands for batchmode (no pictures showed), -q - quit after executing.

  4. Now, one can perform your analysis on this newly created TTree with compiled (!) macro - notice + at the end
    root -l -b -q macros/readMyTreeEvent.C+
    

Some old presentation on DST tutorials: