1 void slowClusterCreate() {
3 /////////////////////////////////////////////////////////////////////////
5 // Creates cluster from the digit information.
7 /////////////////////////////////////////////////////////////////////////
9 // Dynamically link some shared libs
10 if (gClassTable->GetID("AliRun") < 0) {
11 gROOT->LoadMacro("loadlibs.C");
13 cout << "Loaded shared libraries" << endl;
16 // Input and output file names
17 Char_t *infile = "galice.root";
18 Char_t *outfile = "AliTRDclusters.root";
20 // Create the clusterizer
21 AliTRDclusterizerV1 *Clusterizer =
22 new AliTRDclusterizerV1("clusterizer","slow clusterizer class");
24 // Define output file name
25 Clusterizer->Init(outfile);
27 // Open the AliRoot file
28 Clusterizer->Open(infile);
31 Clusterizer->ReadDigits();
34 Clusterizer->MakeClusters();
36 // Write the cluster tree into file AliTRDclusters.root
37 Clusterizer->WriteClusters(-1);
39 // Save the clusterizer class in the AliROOT file
40 // Clusterizer->Write();