]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/fastClusterCreate.C
J.Chudoba's changes merged correctly with the HEAD
[u/mrichter/AliRoot.git] / TRD / fastClusterCreate.C
CommitLineData
d5a17faf 1void fastClusterCreate() {
5c7f4665 2
3/////////////////////////////////////////////////////////////////////////
4//
5// Creates cluster from the hit information (fast simulator).
6// An additional hit-tree is added to the input file.
7//
8/////////////////////////////////////////////////////////////////////////
9
10 // Dynamically link some shared libs
11 if (gClassTable->GetID("AliRun") < 0) {
12 gROOT->LoadMacro("loadlibs.C");
13 loadlibs();
14 }
15
16 // Input (and output) file name
6f1e466d 17 Char_t *alifile = "galice_r_v0.root";
5c7f4665 18
6f1e466d 19 // Create the clusterizer
20 AliTRDclusterizerV0 *Clusterizer =
21 new AliTRDclusterizerV0("clusterizer","fast clusterizer class");
5c7f4665 22
6f1e466d 23 // Open the AliRoot file
24 Clusterizer->Open(alifile);
5c7f4665 25
6f1e466d 26 // Find the cluster
27 Clusterizer->MakeCluster();
5c7f4665 28
6f1e466d 29 // Write the cluster into the input file
30 Clusterizer->WriteCluster();
5c7f4665 31
6f1e466d 32 // Save the clusterizer class in the AliROOT file
33 Clusterizer->Write();
5c7f4665 34
35}