]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/slowClusterCreate.C
Add PPR macros
[u/mrichter/AliRoot.git] / TRD / slowClusterCreate.C
CommitLineData
d5a17faf 1void 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
16 // Input (and output) file name
793ff80c 17 Char_t *alifile = "galice.root";
5c7f4665 18
851d3db9 19 // Create the clusterizer
20 AliTRDclusterizerV1 *Clusterizer =
21 new AliTRDclusterizerV1("clusterizer","slow clusterizer class");
5c7f4665 22
851d3db9 23 // Open the AliRoot file
24 Clusterizer->Open(alifile);
5c7f4665 25
851d3db9 26 // Load the digits
27 Clusterizer->ReadDigits();
5c7f4665 28
793ff80c 29 // Clean output branch
30 Clusterizer->WriteClusters(-2);
31
851d3db9 32 // Find the cluster
793ff80c 33 Clusterizer->MakeClusters();
5c7f4665 34
851d3db9 35 // Write the cluster into the input file
793ff80c 36 Clusterizer->WriteClusters(-1);
5c7f4665 37
851d3db9 38 // Save the clusterizer class in the AliROOT file
39 Clusterizer->Write();
5c7f4665 40
41}