]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - TRD/AliTRDcreateCluster.C
Bugfix in SetZ0, which is actually the first point
[u/mrichter/AliRoot.git] / TRD / AliTRDcreateCluster.C
... / ...
CommitLineData
1Int_t AliTRDcreateCluster()
2{
3 //
4 // Creates the cluster from the digits
5 //
6
7 Int_t rc = 0;
8
9 // Create the clusterizer
10 AliTRDclusterizerV1 *clusterizer =
11 new AliTRDclusterizerV1("clusterizer","Clusterizer class");
12
13 // Set the parameter
14 clusterizer->SetClusMaxThresh(0);
15 clusterizer->SetClusSigThresh(0);
16 clusterizer->Dump();
17
18 // Open the file
19 if (!(clusterizer->Open("TRD_test.root",0))) {
20 rc = 1;
21 return rc;
22 }
23
24 // Load the digits
25 if (!(clusterizer->ReadDigits())) {
26 rc = 2;
27 return rc;
28 }
29
30 // Find the cluster
31 if (!(clusterizer->MakeClusters())) {
32 rc = 3;
33 return rc;
34 }
35
36 // Write the cluster tree into the file
37 if (!(clusterizer->WriteClusters(-1))) {
38 rc = 4;
39 return rc;
40 }
41
42 // Save the clusterizer class in the file
43 if (!(clusterizer->Write())) {
44 rc = 5;
45 return rc;
46 }
47
48 return rc;
49
50}