]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/slowClusterCreate.C
removed unnecessary includes
[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.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   // Clean output branch
30   Clusterizer->WriteClusters(-2);
31  
32   // Find the cluster
33   Clusterizer->MakeClusters();
34
35   // Write the cluster into the input file
36   Clusterizer->WriteClusters(-1);
37
38   // Save the clusterizer class in the AliROOT file
39   Clusterizer->Write();
40
41 }