]>
Commit | Line | Data |
---|---|---|
d5a17faf | 1 | void slowClusterCreate() { |
5c7f4665 | 2 | |
3 | ///////////////////////////////////////////////////////////////////////// | |
4 | // | |
851d3db9 | 5 | // Creates cluster from the digit information. |
5c7f4665 | 6 | // |
7 | ///////////////////////////////////////////////////////////////////////// | |
8 | ||
9 | // Dynamically link some shared libs | |
10 | if (gClassTable->GetID("AliRun") < 0) { | |
11 | gROOT->LoadMacro("loadlibs.C"); | |
12 | loadlibs(); | |
851d3db9 | 13 | cout << "Loaded shared libraries" << endl; |
5c7f4665 | 14 | } |
15 | ||
bbf92647 | 16 | // Input and output file names |
17 | Char_t *infile = "galice.root"; | |
18 | Char_t *outfile = "AliTRDclusters.root"; | |
5c7f4665 | 19 | |
851d3db9 | 20 | // Create the clusterizer |
21 | AliTRDclusterizerV1 *Clusterizer = | |
22 | new AliTRDclusterizerV1("clusterizer","slow clusterizer class"); | |
5c7f4665 | 23 | |
bbf92647 | 24 | // Define output file name |
25 | Clusterizer->Init(outfile); | |
26 | ||
851d3db9 | 27 | // Open the AliRoot file |
bbf92647 | 28 | Clusterizer->Open(infile); |
5c7f4665 | 29 | |
851d3db9 | 30 | // Load the digits |
31 | Clusterizer->ReadDigits(); | |
793ff80c | 32 | |
851d3db9 | 33 | // Find the cluster |
793ff80c | 34 | Clusterizer->MakeClusters(); |
5c7f4665 | 35 | |
bbf92647 | 36 | // Write the cluster tree into file AliTRDclusters.root |
793ff80c | 37 | Clusterizer->WriteClusters(-1); |
5c7f4665 | 38 | |
851d3db9 | 39 | // Save the clusterizer class in the AliROOT file |
bbf92647 | 40 | // Clusterizer->Write(); |
5c7f4665 | 41 | |
42 | } |