]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/slowClusterCreate.C
Update of the macros
[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 names
17   Char_t *infile  = "galice.root";
18   Char_t *outfile = "AliTRDclusters.root";
19
20   // Create the clusterizer
21   AliTRDclusterizerV1 *Clusterizer = 
22     new AliTRDclusterizerV1("clusterizer","slow clusterizer class"); 
23
24   // Define output file name
25   Clusterizer->Init(outfile);
26
27   // Open the AliRoot file 
28   Clusterizer->Open(infile);
29
30   // Load the digits
31   Clusterizer->ReadDigits();
32  
33   // Find the cluster
34   Clusterizer->MakeClusters();
35
36   // Write the cluster tree into file AliTRDclusters.root
37   Clusterizer->WriteClusters(-1);
38
39   // Save the clusterizer class in the AliROOT file
40   // Clusterizer->Write();
41
42 }