1 void AliTOFhits2sdigits(Int_t evNumber1=-1, Int_t numberOfEvents=0)
4 /////////////////////////////////////////////////////////////////////////
6 // Creates TOF summable digits from the hits for all event in the header file
11 // root[0] .L AliTOFhits2sdigits.C
12 // root[1] AliTOFhits2sdigits()
14 // By default, it creates sdigits for all the events in the header file.
16 // If you want create sdigits only the 3th event (existing in the header file)
17 // you can use the following line:
19 // root[0] .L AliTOFhits2sdigits.C
20 // root[1] AliTOFhits2sdigits(3,1)
22 // Created by: F. Pierella
23 // Updated to the new I/O: C. Zampolli
25 // Report problems to decaro@sa.infn.it
27 /////////////////////////////////////////////////////////////////////////
29 // Dynamically link some shared libs
31 if (gClassTable->GetID("AliRun") < 0) {
32 gROOT->LoadMacro("loadlibs.C");
34 cout << "Loaded shared libraries" << endl;
39 delete gAlice->GetRunLoader();
44 // Create the TOF sdigitzer and sdigitize all events by default
45 AliTOFSDigitizer *sdigitizer = new AliTOFSDigitizer("galice.root",evNumber1,numberOfEvents);
47 // Activate this line if you want to print the parameters
48 // used in sdigitization
49 // sdigitizer->PrintParameters();
51 // e.g. Activate this line if you want to sdigitize only hits
52 // with the plate number 3 and the sector number 15
53 // pay attention that sector must be in the range [0,17]
54 // and plate must be in the range [0,4]
55 // by default we sdigitize hits of all plates in all sectors
56 // sdigitizer->SelectSectorAndPlate(15,3);
58 // performs sdigitization with "all" verbose option
59 // "tim" option is also available for benchmarking only
61 sdigitizer->Exec("all");
68 delete gAlice->GetRunLoader();