1 // YS Subatech Mai 2002
2 // YK Subatech 6 Aug 2002
4 // Reconstruction chain:
5 // Hits -> SDigits -> Digits -> RecPoints -> TrackSegments -> RecParticles
11 #include "STEER/AliRun.h"
12 #include "PHOS/AliPHOSSDigitizer.h"
13 #include "PHOS/AliPHOSDigitizer.h"
14 #include "PHOS/AliPHOSClusterizerv1.h"
15 #include "PHOS/AliPHOSTrackSegmentMakerv1.h"
16 #include "PHOS/AliPHOSPIDv1.h"
17 #include "EMCAL/AliEMCALSDigitizer.h"
18 #include "EMCAL/AliEMCALDigitizer.h"
19 #include "EMCAL/AliEMCALClusterizerv1.h"
21 void Hits2SDigits( Bool_t split=kFALSE, TString fileName = "galice.root") {
24 // 1. write SDigits in the same file as Hits --------------- (OK)
25 //root [0] .L Reconstruct.C++
26 //root [1] SDigits2Digits()
27 // 2. write SDigits in a separate file, one per detector, from Hits --------------- (OK)
28 //root [0] .L Reconstruct.C++
29 //root [1] SDigits2Digits(kTRUE) // SDigits saved in [DET}.SDigits.root (DET=PHOS, EMCAL)
34 AliPHOSSDigitizer * sdp = new AliPHOSSDigitizer(fileName) ;
37 sdp->ExecuteTask("deb") ;
41 // AliEMCALSDigitizer * sde = new AliEMCALSDigitizer(fileName) ;
43 // sde->SetSplitFile() ;
44 // sde->ExecuteTask("deb") ;
50 //________________________________________________________________________
51 void SDigits2Digits( Bool_t split=kFALSE, TString fileName = "galice.root") {
54 // 1. write SDigits in the same file as SDigits --------------- (OK)
55 //root [0] .L Reconstruct.C++
56 //root [1] SDigits2Digits()
57 // 2. write SDigits in a separate file, one per detector, from SDigits --------------- (OK)
58 //root [0] .L Reconstruct.C++
59 //root [1] SDigitsDigits(kTRUE) // Digits saved in [DET}.Digits.root (DET=PHOS, EMCAL)
65 AliPHOSDigitizer * dp = 0 ;
68 dp = new AliPHOSDigitizer("PHOS.SDigits.root") ;
69 dp->SetSplitFile() ; }
71 dp = new AliPHOSDigitizer(fileName) ;
73 dp->ExecuteTask("deb") ;
78 // AliEMCALDigitizer * de = 0 ;
81 // de = new AliEMCALDigitizer("EMCAL.SDigits.root") ;
82 // de->SetSplitFile() ;
84 // de = new AliEMCALDigitizer(fileName) ;
86 // de->ExecuteTask("deb") ;
91 //________________________________________________________________________
92 void Digits2RecPoints( Bool_t split=kFALSE, TString fileName = "galice.root") {
95 // 1. write RecPoints in the same file as Digits --------------- OK
96 //root [0] .L Reconstruct.C++
97 //root [1] Digits2RecPoints()
98 // 2. write RecPoints in a separate file, one per detector, from Digits --------------- OK
99 //root [0] .L Reconstruct.C++
100 //root [1] Digits2RecPoints(kTRUE) // RecPoints saved in [DET}.RecPoints.root (DET=PHOS, EMCAL)
106 AliPHOSClusterizer * cp = 0 ;
109 cp = new AliPHOSClusterizerv1("PHOS.Digits.root") ;
110 cp->SetSplitFile() ; }
112 cp = new AliPHOSClusterizerv1(fileName) ;
114 cp->ExecuteTask("deb") ;
119 // AliEMCALClusterizerv1 * ce = 0 ;
122 // ce = new AliEMCALClusterizerv1("EMCAL.Digits.root") ;
123 // ce->SetSplitFile() ;
125 // ce = new AliEMCALClusterizerv1(fileName) ;
127 // ce->ExecuteTask("deb") ;
132 //________________________________________________________________________
133 void RecPoints2TrackSegments( Bool_t split=kFALSE, TString fileName = "galice.root") {
136 // 1. write TrackSegments in the same file as RecPoints --------------- (OK)
137 //root [0] .L Reconstruct.C++
138 //root [1] RecPoints2TrackSegments()
139 // 2. write TrackSegments in a separate file, one per detector, from RecPoints --------------- (Not needed)
140 //root [0] .L Reconstruct.C++
141 //root [1] RecPoints2TrackSegments(kTRUE) // TrackSegments saved in [DET}.RecData.root (DET=PHOS, EMCAL)
146 AliPHOSTrackSegmentMaker * tmp = 0 ;
149 tmp = new AliPHOSTrackSegmentMakerv1("PHOS.RecData.root") ;
151 tmp = new AliPHOSTrackSegmentMakerv1(fileName) ;
153 tmp->ExecuteTask("deb") ;
158 //________________________________________________________________________
159 void TrackSegments2RecParticles( Bool_t split=kFALSE, TString fileName = "galice.root") {
162 // 1. write RecParticles in the same file as TrackSegments --------------- (OK)
163 //root [0] .L Reconstruct.C++
164 //root [1] TrackSegments2RecParticles()
165 // 2. write RecParticles in a separate file, one per detector, from TrackSegments --------------- (Not needed)
166 //root [0] .L Reconstruct.C++
167 //root [1] TrackSegments2RecParticles(kTRUE) // RecParticles saved in [DET}.RecData.root (DET=PHOS, EMCAL)
172 AliPHOSPID * pp = 0 ;
175 pp = new AliPHOSPIDv1("PHOS.RecData.root") ;
177 pp = new AliPHOSPIDv1(fileName) ;
179 pp->ExecuteTask("deb") ;
184 //________________________________________________________________________
185 void Digits2RecParticles( Bool_t split=kFALSE, TString fileName = "galice.root") {
188 // 1. write RecPoints, TrackSegments and RecParticles in the same file as Digits --------------- (OK)
189 //root [0] .L Reconstruct.C++
190 //root [1] Digits2RecParticles()
191 // 2. write RecPoints , TrackSegments and RecParticles in a separate file, one per detector, from Digits --------------- (OK)
192 //root [0] .L Reconstruct.C++
193 //root [1] Digits2RecParticles(kTRUE) // TrackSegments saved in [DET}.RecData.root (DET=PHOS, EMCAL)
200 AliPHOSClusterizer * cp = 0 ;
203 cp = new AliPHOSClusterizerv1("PHOS.Digits.root") ;
204 cp->SetSplitFile() ; }
206 cp = new AliPHOSClusterizerv1(fileName) ;
208 cp->ExecuteTask("deb") ;
213 AliPHOSTrackSegmentMaker * tmp = 0 ;
216 tmp = new AliPHOSTrackSegmentMakerv1("PHOS.RecData.root") ;
218 tmp = new AliPHOSTrackSegmentMakerv1(fileName) ;
220 tmp->ExecuteTask("deb") ;
222 AliPHOSPID * pp = 0 ;
225 pp = new AliPHOSPIDv1("PHOS.RecData.root") ;
227 pp = new AliPHOSPIDv1(fileName) ;
229 pp->ExecuteTask("deb") ;
235 //________________________________________________________________________
236 void Hits2Digits (Bool_t split=kFALSE, TString fileName = "galice.root") {
238 // 1. write (S)Digits in the same file as Hits --------------- (OK)
239 //root [0] .L Reconstruct.C++
240 //root [1] Hits2Digits()
241 // 2. write (S)Digits in a separate file, one per detector, from Hits --------------- (OK)
242 //root [0] .L Reconstruct.C++
243 //root [1] Hits2Digits(kTRUE) // SDigits saved in [DET}.SDigits.root (DET=PHOS, EMCAL)
244 // Digits saved in [DET}.Digits.root (DET=PHOS, EMCAL)
250 AliPHOSSDigitizer * sdp = new AliPHOSSDigitizer(fileName) ;
252 sdp->SetSplitFile() ;
253 sdp->ExecuteTask("deb") ;
258 AliPHOSDigitizer * dp = 0 ;
261 dp = new AliPHOSDigitizer("PHOS.SDigits.root") ;
262 dp->SetSplitFile() ; }
264 dp = new AliPHOSDigitizer(fileName) ;
266 dp->ExecuteTask("deb") ;
277 // AliEMCALSDigitizer * sde = new AliEMCALSDigitizer(fileName) ;
279 // sde->SetSplitFile() ;
280 // sde->ExecuteTask("deb") ;
284 // AliEMCALDigitizer * de = 0 ;
286 // de = new AliEMCALDigitizer("EMCAL.SDigits.root") ;
287 // de->SetSplitFile() ;
289 // de = new AliEMCALDigitizer(fileName) ;
291 // de->ExecuteTask("deb") ;