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