]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/slowClusterCreate.C
Class to generate combinations for merging
[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 = "TRDclusters.root";
19
20   // Create the clusterizer
21   AliTRDclusterizerV1 *Clusterizer = 
22     new AliTRDclusterizerV1("clusterizer","slow clusterizer class"); 
23
24   // Set the parameter
25   Clusterizer->SetClusMaxThresh(0);
26   Clusterizer->SetClusSigThresh(0);
27   //Clusterizer->SetVerbose(1);
28   Clusterizer->Dump();
29
30   // Open the AliRoot file 
31   Clusterizer->Open(infile,0);
32   //Clusterizer->Open(infile,outfile,0);
33
34   // Load the digits
35   Clusterizer->ReadDigits();
36  
37   // Find the cluster
38   Clusterizer->MakeClusters();
39
40   // Write the cluster tree into file AliTRDclusters.root
41   Clusterizer->WriteClusters(-1);
42
43   // Save the clusterizer class in the AliROOT file
44   // Clusterizer->Write();
45
46 }