]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/fastClusterCreate.C
Macro for Bari's 1D pattern recognition
[u/mrichter/AliRoot.git] / TRD / fastClusterCreate.C
1 void fastClusterCreate() {
2
3 ///////////////////////////////////////////////////////////////////////// 
4 //
5 // Creates cluster from the hit information (fast simulator). 
6 // An additional hit-tree is added to the input file.
7 //
8 ///////////////////////////////////////////////////////////////////////// 
9
10   // Dynamically link some shared libs
11   if (gClassTable->GetID("AliRun") < 0) {
12     gROOT->LoadMacro("loadlibs.C");
13     loadlibs();
14   }
15
16   // Input (and output) file name
17   Char_t *alifile = "galice_r_v0.root";
18
19   // Create the clusterizer
20   AliTRDclusterizerV0 *Clusterizer = 
21     new AliTRDclusterizerV0("clusterizer","fast clusterizer class"); 
22
23   // Open the AliRoot file 
24   Clusterizer->Open(alifile);
25
26   // Find the cluster
27   Clusterizer->MakeCluster();
28
29   // Write the cluster into the input file
30   Clusterizer->WriteCluster();
31
32   // Save the clusterizer class in the AliROOT file
33   Clusterizer->Write();
34
35 }