]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/qaRec/macros/clusterSelection.C
protections and extended selection of tracks (Ben)
[u/mrichter/AliRoot.git] / TRD / qaRec / macros / clusterSelection.C
1 // Example macro to select TRD tracks
2 // The macro selects for displaying only the tracks 
3 // with less than 60 clusters
4 // 
5 // Authors:
6 // B.Hess <Hess@Stud.Uni-Heidelberg.de>
7 // A.Bercuci <A.Bercuci@gsi.de>
8 //
9
10 #if !defined(__CINT__) || defined(__MAKECINT__)
11 #include <TRD/AliTRDtrackV1.h>
12 #endif
13
14 Bool_t clusterSelection(const AliTRDtrackV1 *track)
15 {
16   if (!track) return kFALSE;
17   if (track->GetNumberOfClusters() > 60) return kFALSE;
18   return kTRUE;
19 }
20