1 void AliTOFhits2sdigits(Int_t firstEvent=0,Int_t nEvents=1)
4 /////////////////////////////////////////////////////////////////////////
6 // Creates TOF summable digits from the hit information.
8 // Report problems to pierella@bo.infn.it
13 // root[0] .L AliTOFhits2sdigits.C
14 // root[1] AliTOFhits2sdigits()
16 // Updated to the new I/O: C. Zampolli
18 /////////////////////////////////////////////////////////////////////////
20 // Dynamically link some shared libs
22 if (gClassTable->GetID("AliRun") < 0) {
23 gROOT->LoadMacro("loadlibs.C");
25 cout << "Loaded shared libraries" << endl;
30 delete gAlice->GetRunLoader();
35 // Create the TOF sdigitzer and sdigitize by default the first event
36 // (in fact by default Int_t firstEvent=0,Int_t nEvents=1)
37 AliTOFSDigitizer *sdigitizer = new AliTOFSDigitizer("galice.root",firstEvent,nEvents); // it is the same nevents numbering
39 // Activate this line if you want to print the parameters
40 // used in sdigitization
41 // sdigitizer->PrintParameters();
43 // e.g. Activate this line if you want to sdigitize only hits from plate 3
45 // pay attention that sector must be in the range [1,18]
46 // and plate must be in the range [1,5]
47 // by default we sdigitize hits of all plates in all sectors
48 // sdigitizer->SelectSectorAndPlate(15,3);
51 // performs sdigitization of the above events with "all" verbose option
52 // "tim" option is also available for benchmarking only
53 //sdigitizer->Exec("all");
55 // N.B.: in order to maintain the functionality to sdigitize
56 // all events in current file add a second option
57 sdigitizer->Exec("all","all");
58 // the second "all" option overrides the previous settings for
59 // lower and upper bounds for event to sdigitize and allow
60 // the sdigitization for ALL events in fileNameHits
67 delete gAlice->GetRunLoader();