1 void AliTOFhits2sdigits(TString fileNameHits, 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("galice.root",0,1)
15 /////////////////////////////////////////////////////////////////////////
17 // Dynamically link some shared libs
18 if (gClassTable->GetID("AliRun") < 0) {
19 gROOT->LoadMacro("loadlibs.C");
21 cout << "Loaded shared libraries" << endl;
25 // Create the TOF sdigitzer and sdigitize by default the first event
26 // (in fact by default Int_t firstEvent=0,Int_t nEvents=1)
27 AliTOFSDigitizer *sdigitizer = new AliTOFSDigitizer(fileNameHits.Data(),fileNameHits.Data(),firstEvent,nEvents); // it is the same nevents numbering
28 // scheme used by STEER/AliHits2SDigits.C
30 // Activate this line if you want to print the parameters
31 // used in sdigitization
32 // sdigitizer->PrintParameters();
34 // performs sdigitization of the above events with "all" verbose option
35 // "tim" option is also available for benchmarking only
36 sdigitizer->Exec("all");
38 // N.B.: in order to maintain the functionality to sdigitize
39 // all events in current file add a second option
40 // sdigitizer->Exec("all","all");
41 // the second "all" option overrides the previous settings for
42 // lower and upper bounds for event to sdigitize and allow
43 // the sdigitization for ALL events in fileNameHits