]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/slowClusterCreate.C
update info about cvs installation using cvs account
[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
6f1e466d 17 Char_t *alifile = "galice_r_v1.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
851d3db9 29 // Find the cluster
30 Clusterizer->MakeCluster();
5c7f4665 31
851d3db9 32 // Write the cluster into the input file
33 Clusterizer->WriteCluster();
5c7f4665 34
851d3db9 35 // Save the clusterizer class in the AliROOT file
36 Clusterizer->Write();
5c7f4665 37
38}