ROOT logo
void AliTOFhits2sdigits(Int_t evNumber1=-1, Int_t numberOfEvents=0)
{

  /////////////////////////////////////////////////////////////////////////
  //
  // Creates TOF summable digits from the hits for all event in the header file
  //
  // Use case:
  // start root
  // // load the macro
  // root[0] .L AliTOFhits2sdigits.C
  // root[1] AliTOFhits2sdigits()
  //
  // By default, it creates sdigits for all the events in the header file.
  //
  // If you want create sdigits only the 3th event (existing in the header file)
  // you can use the following line:
  //
  // root[0] .L AliTOFhits2sdigits.C
  // root[1] AliTOFhits2sdigits(3,1)
  //
  // Created by: F. Pierella
  // Updated to the new I/O: C. Zampolli
  //
  // Report problems to decaro@sa.infn.it
  //
  /////////////////////////////////////////////////////////////////////////

  // Dynamically link some shared libs

  if (gClassTable->GetID("AliRun") < 0) {
    gROOT->LoadMacro("loadlibs.C");
    loadlibs();
    cout << "Loaded shared libraries" << endl;
  } 
  
  if (gAlice)
    {
      delete AliRunLoader::Instance();
      delete gAlice;
      gAlice = 0x0;
    }
  
  // Create the TOF sdigitzer and sdigitize all events by default
  AliTOFSDigitizer *sdigitizer = new AliTOFSDigitizer("galice.root",evNumber1,numberOfEvents);

  // Activate this line if you want to print the parameters
  // used in sdigitization
  // sdigitizer->PrintParameters();

  // e.g. Activate this line if you want to sdigitize only hits 
  // with the plate number 3 and the sector number 15
  // pay attention that sector must be in the range [0,17]
  //                and plate  must be in the range [0,4]
  // by default we sdigitize hits of all plates in all sectors
  // sdigitizer->SelectSectorAndPlate(15,3);

  // performs sdigitization with "all" verbose option
  // "tim" option is also available for benchmarking only

  sdigitizer->Exec("all");

  sdigitizer = 0x0;
  delete sdigitizer;

  if (gAlice)
    {
      delete AliRunLoader::Instance();
      delete gAlice;
      gAlice = 0x0;
    }

}
 AliTOFhits2sdigits.C:1
 AliTOFhits2sdigits.C:2
 AliTOFhits2sdigits.C:3
 AliTOFhits2sdigits.C:4
 AliTOFhits2sdigits.C:5
 AliTOFhits2sdigits.C:6
 AliTOFhits2sdigits.C:7
 AliTOFhits2sdigits.C:8
 AliTOFhits2sdigits.C:9
 AliTOFhits2sdigits.C:10
 AliTOFhits2sdigits.C:11
 AliTOFhits2sdigits.C:12
 AliTOFhits2sdigits.C:13
 AliTOFhits2sdigits.C:14
 AliTOFhits2sdigits.C:15
 AliTOFhits2sdigits.C:16
 AliTOFhits2sdigits.C:17
 AliTOFhits2sdigits.C:18
 AliTOFhits2sdigits.C:19
 AliTOFhits2sdigits.C:20
 AliTOFhits2sdigits.C:21
 AliTOFhits2sdigits.C:22
 AliTOFhits2sdigits.C:23
 AliTOFhits2sdigits.C:24
 AliTOFhits2sdigits.C:25
 AliTOFhits2sdigits.C:26
 AliTOFhits2sdigits.C:27
 AliTOFhits2sdigits.C:28
 AliTOFhits2sdigits.C:29
 AliTOFhits2sdigits.C:30
 AliTOFhits2sdigits.C:31
 AliTOFhits2sdigits.C:32
 AliTOFhits2sdigits.C:33
 AliTOFhits2sdigits.C:34
 AliTOFhits2sdigits.C:35
 AliTOFhits2sdigits.C:36
 AliTOFhits2sdigits.C:37
 AliTOFhits2sdigits.C:38
 AliTOFhits2sdigits.C:39
 AliTOFhits2sdigits.C:40
 AliTOFhits2sdigits.C:41
 AliTOFhits2sdigits.C:42
 AliTOFhits2sdigits.C:43
 AliTOFhits2sdigits.C:44
 AliTOFhits2sdigits.C:45
 AliTOFhits2sdigits.C:46
 AliTOFhits2sdigits.C:47
 AliTOFhits2sdigits.C:48
 AliTOFhits2sdigits.C:49
 AliTOFhits2sdigits.C:50
 AliTOFhits2sdigits.C:51
 AliTOFhits2sdigits.C:52
 AliTOFhits2sdigits.C:53
 AliTOFhits2sdigits.C:54
 AliTOFhits2sdigits.C:55
 AliTOFhits2sdigits.C:56
 AliTOFhits2sdigits.C:57
 AliTOFhits2sdigits.C:58
 AliTOFhits2sdigits.C:59
 AliTOFhits2sdigits.C:60
 AliTOFhits2sdigits.C:61
 AliTOFhits2sdigits.C:62
 AliTOFhits2sdigits.C:63
 AliTOFhits2sdigits.C:64
 AliTOFhits2sdigits.C:65
 AliTOFhits2sdigits.C:66
 AliTOFhits2sdigits.C:67
 AliTOFhits2sdigits.C:68
 AliTOFhits2sdigits.C:69
 AliTOFhits2sdigits.C:70
 AliTOFhits2sdigits.C:71
 AliTOFhits2sdigits.C:72
 AliTOFhits2sdigits.C:73
 AliTOFhits2sdigits.C:74