]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/slowClusterCreate.C
Only one declaration of iDict in MakeDigits()
[u/mrichter/AliRoot.git] / TRD / slowClusterCreate.C
1 void slowClusterCreate() {
2
3 ///////////////////////////////////////////////////////////////////////// 
4 //
5 // Creates cluster from the digit information. 
6 //
7 ///////////////////////////////////////////////////////////////////////// 
8
9   // Dynamically link some shared libs
10   if (gClassTable->GetID("AliRun") < 0) {
11     gROOT->LoadMacro("loadlibs.C");
12     loadlibs();
13     cout << "Loaded shared libraries" << endl;
14   }
15
16   // Input (and output) file name
17   Char_t *alifile = "galice_c_v1.root";
18
19   // Create the clusterizer
20   AliTRDclusterizerV1 *Clusterizer = 
21     new AliTRDclusterizerV1("clusterizer","slow clusterizer class"); 
22
23   // Open the AliRoot file 
24   Clusterizer->Open(alifile);
25
26   // Load the digits
27   Clusterizer->ReadDigits();
28
29   // Find the cluster
30   Clusterizer->MakeCluster();
31
32   // Write the cluster into the input file
33   Clusterizer->WriteCluster();
34
35   // Save the clusterizer class in the AliROOT file
36   Clusterizer->Write();
37
38 }