ROOT logo
void DigitMaker (Int_t evNumber=1) 
{
  /////////////////////////////////////////////////////////////////////////
  //   This macro is a small example of a ROOT macro
  //   illustrating how to read the output of GALICE
  //   and fill some histograms.
  //   
  //     Root > .L anal.C   //this loads the macro in memory
  //     Root > anal();     //by default process first event   
  //     Root > anal(2);    //process third event
  //End_Html
  /////////////////////////////////////////////////////////////////////////
  
  
  // Dynamically link some shared libs
  if (gClassTable->GetID("AliRun") < 0) {
    gROOT->LoadMacro("loadlibs.C");
    loadlibs();
  }
  
  // Connect the Root Galice file containing Geometry, Kine and Hits
  TFile *file =  (TFile*)gROOT->GetListOfFiles()->FindObject("galice.root");
  if (!file) file = new TFile("galice.root","UPDATE");
  
  // Get AliRun object from file or create it if not on file
  if (!gAlice) {
    gAlice = (AliRun*)file->Get("gAlice");
    if (gAlice) printf("AliRun object found on file\n");
    if (!gAlice) gAlice = new AliRun("gAlice","Alice test program");
  }

  TParticle *particle;
  AliT0hit  *startHit;

  Int_t buffersize=256;
  Int_t split=1;

  digits= new AliT0digit();
  TBranch *bDig=0;
  printf("Branch\n");

  
  AliT0 *T0  = (AliT0*) gAlice->GetDetector("T0");
  
 // Event ------------------------- LOOP  
  
  for (j=0; j<evNumber; j++){

   
    T0->Hit2digit(j); 

  }// event loop

  file->Write();
  file->Close();
 

}//endmacro













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