1 // YS Subatech Mai 2002
7 #include "PHOS/AliPHOSSDigitizer.h"
8 #include "PHOS/AliPHOSDigitizer.h"
9 #include "EMCAL/AliEMCALSDigitizer.h"
10 #include "EMCAL/AliEMCALDigitizer.h"
12 void Hits2SDigits( Bool_t split=kFALSE, TString fileName = "galice.root") {
15 // 1. write SDigits in the same file as Hits --------------- (OK)
16 //root [0] .L Reconstruct.C++
17 //root [1] SDigits2Digits()
18 // 2. write SDigits in a separate file, one per detector, from Hits --------------- (OK)
19 //root [0] .L Reconstruct.C++
20 //root [1] SDigits2Digits(kTRUE) // SDigits saved in [DET}.SDigits.root (DET=PHOS, EMCAL)
22 AliPHOSSDigitizer * sdp = new AliPHOSSDigitizer(fileName) ;
25 sdp->ExecuteTask("deb") ;
27 AliEMCALSDigitizer * sde = new AliEMCALSDigitizer(fileName) ;
30 sde->ExecuteTask("deb") ;
37 //________________________________________________________________________
38 void SDigits2Digits( Bool_t split=kFALSE, TString fileName = "galice.root") {
41 // 1. write SDigits in the same file as Hits --------------- (OK)
42 //root [0] .L Reconstruct.C++
43 //root [1] Hits2Digits()
44 // 2. write SDigits in a separate file, one per detector, from Hits --------------- (OK)
45 //root [0] .L Reconstruct.C++
46 //root [1] Hits2Digits(kTRUE) // Digits saved in [DET}.Digits.root (DET=PHOS, EMCAL)
48 AliPHOSDigitizer * dp ;
49 AliEMCALDigitizer * de ;
51 dp = new AliPHOSDigitizer("PHOS.SDigits.root") ;
52 dp->SetSplitFile() ; }
54 dp = new AliPHOSDigitizer(fileName) ;
56 dp->ExecuteTask("deb") ;
59 de = new AliEMCALDigitizer("EMCAL.SDigits.root") ;
62 de = new AliEMCALDigitizer(fileName) ;
64 de->ExecuteTask("deb") ;
70 //________________________________________________________________________
71 void Hits2Digits (Bool_t split=kFALSE, TString fileName = "galice.root") {
73 // 1. write (S)Digits in the same file as Hits --------------- (OK)
74 //root [0] .L Reconstruct.C++
75 //root [1] Hits2Digits()
76 // 2. write (S)Digits in a separate file, one per detector, from Hits --------------- (OK)
77 //root [0] .L Reconstruct.C++
78 //root [1] Hits2Digits(kTRUE) // SDigits saved in [DET}.SDigits.root (DET=PHOS, EMCAL)
79 // Digits saved in [DET}.Digits.root (DET=PHOS, EMCAL)
81 Hits2SDigits(split, fileName) ;
82 SDigits2Digits(split, fileName) ;