AliRoot Core  3dc7879 (3dc7879)
readClusters.C File Reference

Macro to read TPC clusters from TPC.RecPoints.root and AliESDfriends.root and fill THnSparse with the content. More...

Go to the source code of this file.

Functions

void FillFriends (AliESDfriend *esdFriend, THnSparseF *sparse)
 
void FillRecPoints (TTree *tree, THnSparseF *sparse)
 
void FillClusters (THnSparseF *sparse, AliTPCclusterMI *cl)
 
void SetupStyle ()
 
THnSparseF * CreateTHnSparse (Char_t *name)
 
void readClusters (Char_t *folder="/lustre/alice/jthaeder/data/compressionSGE/data_2011-08-06_Pythia", Char_t *type="Pythia", Char_t *version="8", Int_t minId=30000, Int_t maxId=30020, Bool_t useFriends=kFALSE)
 

Detailed Description

Macro to read TPC clusters from TPC.RecPoints.root and AliESDfriends.root and fill THnSparse with the content.

Used for the HLT-TPC cluster verification

Usage:

aliroot -b -l -q readClusters.C'("<Folder w/ sim/rec output>", "<Simulation Id>", "<Simulation Version>",
<minimal folder Id>, <maximal folder Id>, <use ESDfriends 0 or 1>)'

Example:

aliroot -b -l -q readClusters.C'("/lustre/alice/jthaeder/data/compressionSGE/data_2011-08-06_Pythia","Pythia","20a",30000,30001,1)'

Will read :

  • /lustre/alice/jthaeder/data/compressionSGE/data_2011-08-06_Pythia/30000/offline20a/AliESDfriends.root
  • /lustre/alice/jthaeder/data/compressionSGE/data_2011-08-06_Pythia/30000/HLThw20a/AliESDfriends.root
  • /lustre/alice/jthaeder/data/compressionSGE/data_2011-08-06_Pythia/30000/HLThwRedux20a/AliESDfriends.root
  • /lustre/alice/jthaeder/data/compressionSGE/data_2011-08-06_Pythia/30001/offline20a/AliESDfriends.root
  • /lustre/alice/jthaeder/data/compressionSGE/data_2011-08-06_Pythia/30001/HLThw20a/AliESDfriends.root
  • /lustre/alice/jthaeder/data/compressionSGE/data_2011-08-06_Pythia/30001/HLThwRedux20a/AliESDfriends.root

Will write :

  • $CWD/results/results_friends_Pythia_20a.root
Author
Jochen Thaeder joche.nosp@m.n@th.nosp@m.aeder.nosp@m..de

Definition in file readClusters.C.

Function Documentation

THnSparseF * CreateTHnSparse ( Char_t *  name)

– Create new THnSparse

Definition at line 350 of file readClusters.C.

Referenced by readClusters().

void FillClusters ( THnSparseF *  sparse,
AliTPCclusterMI cl 
)

– Fill cluster into THnSparse

Definition at line 245 of file readClusters.C.

Referenced by FillFriends(), and FillRecPoints().

void FillFriends ( AliESDfriend esdFriend,
THnSparseF *  sparse 
)

– Fill friends per event (out of TPC.RecPoints)

Definition at line 204 of file readClusters.C.

Referenced by readClusters().

void FillRecPoints ( TTree *  tree,
THnSparseF *  sparse 
)

– Fill friends per event (out of AliESDfriend.root)

Definition at line 227 of file readClusters.C.

Referenced by readClusters().

void readClusters ( Char_t *  folder = "/lustre/alice/jthaeder/data/compressionSGE/data_2011-08-06_Pythia",
Char_t *  type = "Pythia",
Char_t *  version = "8",
Int_t  minId = 30000,
Int_t  maxId = 30020,
Bool_t  useFriends = kFALSE 
)

– Setup

Definition at line 57 of file readClusters.C.

void SetupStyle ( )

– setup style

Definition at line 285 of file readClusters.C.

Referenced by readClusters().