]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/digits2cluster.C
Added #include<stdlib.h> and log
[u/mrichter/AliRoot.git] / TRD / digits2cluster.C
CommitLineData
d2829bc1 1void digits2cluster()
2{
3
4/////////////////////////////////////////////////////////////////////////
5//
6// Creates cluster from the digit information.
7//
8/////////////////////////////////////////////////////////////////////////
9
10 // Dynamically link some shared libs
11 if (gClassTable->GetID("AliRun") < 0) {
12 gROOT->LoadMacro("loadlibs.C");
13 loadlibs();
14 cout << "Loaded shared libraries" << endl;
15 }
16
17 // Input and output file names
18 Char_t *infile = "galice.root";
19 Char_t *outfile = "TRDclusters.root";
20
21 // Create the clusterizer
22 AliTRDclusterizerV1 *clusterizer =
23 new AliTRDclusterizerV1("clusterizer","Clusterizer class");
24
25 // Set the parameter
26 clusterizer->SetClusMaxThresh(0);
27 clusterizer->SetClusSigThresh(0);
28 //clusterizer->SetVerbose(1);
29 clusterizer->Dump();
30
31 // Open the AliRoot file
32 clusterizer->Open(infile,0);
33 //clusterizer->Open(infile,outfile,0);
34
35 // Load the digits
36 clusterizer->ReadDigits();
37
38 // Find the cluster
39 clusterizer->MakeClusters();
40
41 // Write the cluster tree into file AliTRDclusters.root
42 clusterizer->WriteClusters(-1);
43
44 // Save the clusterizer class in the AliROOT file
45 // clusterizer->Write();
46
47}