]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/hits2sdigits.C
New platform for ICC/IFC compiler (Intel)
[u/mrichter/AliRoot.git] / TRD / hits2sdigits.C
1 void hits2sdigits() 
2 {
3
4   /////////////////////////////////////////////////////////////////////////
5   //
6   // Creates summable digits from the hit information. 
7   //
8   /////////////////////////////////////////////////////////////////////////
9
10   // Dynamically link some shared libs
11   if (gClassTable->GetID("AliRun") < 0) {
12     gROOT->LoadMacro("loadlibs.C");
13     loadlibs();
14     cout << "Loaded shared libraries" << endl;
15   }
16
17   // Input (and output) file name
18   Char_t *alifile = "galice.root"; 
19
20   // Create the TRD digitzer 
21   AliTRDdigitizer *digitizer = new AliTRDdigitizer("TRDdigitizer"
22                                                   ,"TRD digitizer class");
23
24   // Set the parameter
25   digitizer->SetDebug(1);
26
27   // For the summable digits
28   digitizer->SetSDigits(kTRUE);
29
30   // Open the AliRoot file
31   digitizer->Open(alifile);
32
33   // For uncompressed hits
34   digitizer->SetHitTypeStandard();
35
36   // Create the digits
37   digitizer->MakeDigits();
38
39   // Write the digits into the input file
40   digitizer->WriteDigits();
41
42   // Save the digitizer class in the AliROOT file
43   digitizer->Write();
44
45 }