]>
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"; | |
928866d3 | 18 | Char_t *outfile = "TRDclusters.root"; |
5c7f4665 | 19 | |
851d3db9 | 20 | // Create the clusterizer |
21 | AliTRDclusterizerV1 *Clusterizer = | |
22 | new AliTRDclusterizerV1("clusterizer","slow clusterizer class"); | |
5c7f4665 | 23 | |
928866d3 | 24 | // Set the parameter |
25 | Clusterizer->SetClusMaxThresh(0); | |
26 | Clusterizer->SetClusSigThresh(0); | |
27 | //Clusterizer->SetVerbose(1); | |
28 | Clusterizer->Dump(); | |
bbf92647 | 29 | |
851d3db9 | 30 | // Open the AliRoot file |
928866d3 | 31 | Clusterizer->Open(infile,0); |
32 | //Clusterizer->Open(infile,outfile,0); | |
5c7f4665 | 33 | |
851d3db9 | 34 | // Load the digits |
35 | Clusterizer->ReadDigits(); | |
793ff80c | 36 | |
851d3db9 | 37 | // Find the cluster |
793ff80c | 38 | Clusterizer->MakeClusters(); |
5c7f4665 | 39 | |
bbf92647 | 40 | // Write the cluster tree into file AliTRDclusters.root |
793ff80c | 41 | Clusterizer->WriteClusters(-1); |
5c7f4665 | 42 | |
851d3db9 | 43 | // Save the clusterizer class in the AliROOT file |
bbf92647 | 44 | // Clusterizer->Write(); |
5c7f4665 | 45 | |
46 | } |