Adaption to new fluka common blocks (E. Futo)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSReconstructioner.cxx
CommitLineData
d15a28e7 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
b2a60966 16/* $Id$ */
17
d15a28e7 18//_________________________________________________________________________
a3dfe79c 19//*--
7acf6008 20//*-- Author: Gines Martinez & Yves Schutz (SUBATECH)
f1aeaf5d 21//*-- Compleetely redesigned by Dmitri Peressounko (SUBATECH & RRC KI) March 2001
7acf6008 22/////////////////////////////////////////////////////////////////////////////////////
9a6ec61a 23// Wrapping class for reconstruction. Allows to produce reconstruction from
24// different steps: from previously produced hits,sdigits, etc. Each new reconstruction
a4e98857 25// flow (e.g. digits, made from them RecPoints, subsequently made TrackSegments,
26// subsequently made RecParticles) are distinguished by the title of created branches. One can
27// use this title as a comment, see use case below.
28// Thanks to getters, one can set
29// parameters to reconstruction briks. The full set of parameters is saved in the
30// corresponding branch: e.g. parameters of clusterizer are stored in branch
21cd0c07 31// TreeR::AliPHOSClusterizer with the same title as the branch containing the RecPoints. // TTree does not support overwriting, therefore one can not produce several
9a6ec61a 32// branches with the same names and titles - use different titles.
33//
a4e98857 34// Use case:
7acf6008 35//
36// root [0] AliPHOSReconstructioner * r = new AliPHOSReconstructioner("galice.root")
37// // Set the header file
38// root [1] r->ExecuteTask()
a4e98857 39// // Make full chain of reconstruction
7acf6008 40//
41// // One can specify the title for each branch
42// root [2] r->SetBranchFileName("RecPoints","RecPoints1") ;
7acf6008 43//
9a6ec61a 44// // One can change parameters of reconstruction algorithms
45// root [3] r->GetClusterizer()->SetEmcLocalMaxCut(0.02)
46//
47// // One can specify the starting point of the reconstruction and title of all
48// // branches produced in this pass
49// root [4] r->StartFrom("AliPHOSClusterizer","Local max cut 0.02")
50// // means that will use already generated Digits and produce only RecPoints,
51// // TS and RecParticles
7acf6008 52//
53// // And finally one can call ExecuteTask() with the following options
9a6ec61a 54// root [5] r->ExecuteTask("debug all timing")
7acf6008 55// // deb - prints the numbers of produced SDigits, Digits etc.
56// // deb all - prints in addition list of made SDigits, digits etc.
57// // timing - prints benchmarking results
9a6ec61a 58///////////////////////////////////////////////////////////////////////////////////////////////////
d15a28e7 59
60// --- ROOT system ---
61
d15a28e7 62// --- Standard library ---
364de5c6 63
d15a28e7 64// --- AliRoot header files ---
d15a28e7 65#include "AliPHOSReconstructioner.h"
7acf6008 66#include "AliPHOSClusterizerv1.h"
67#include "AliPHOSDigitizer.h"
68#include "AliPHOSSDigitizer.h"
69#include "AliPHOSTrackSegmentMakerv1.h"
70#include "AliPHOSPIDv1.h"
3e357865 71
d15a28e7 72
73ClassImp(AliPHOSReconstructioner)
74
d15a28e7 75//____________________________________________________________________________
7acf6008 76 AliPHOSReconstructioner::AliPHOSReconstructioner():TTask("AliPHOSReconstructioner","")
d15a28e7 77{
b2a60966 78 // ctor
fbf811ec 79 fToSplit = kFALSE ;
7acf6008 80 fDigitizer = 0 ;
81 fClusterizer = 0 ;
82 fTSMaker = 0 ;
83 fPID = 0 ;
84 fSDigitizer = 0 ;
9c88dd1b 85 fHeaderFileName = "galice.root" ;
d15a28e7 86
7acf6008 87 fIsInitialized = kFALSE ;
d15a28e7 88
6ad0bfa0 89}
90
6ad0bfa0 91//____________________________________________________________________________
fbf811ec 92AliPHOSReconstructioner::AliPHOSReconstructioner(const char* headerFile,const char * branchName,Bool_t toSplit):
108bc8df 93TTask("AliPHOSReconstructioner","")
d15a28e7 94{
7acf6008 95 // ctor
96
97 fHeaderFileName = headerFile ;
fbf811ec 98 fToSplit = toSplit ;
108bc8df 99 fSDigitsBranch= branchName;
fbf811ec 100 fSDigitizer = new AliPHOSSDigitizer(fHeaderFileName.Data(),fSDigitsBranch.Data(),toSplit) ;
7acf6008 101 Add(fSDigitizer) ;
102
108bc8df 103 fDigitsBranch=branchName ;
fbf811ec 104 fDigitizer = new AliPHOSDigitizer(fHeaderFileName.Data(),fDigitsBranch.Data(),toSplit) ;
7acf6008 105 Add(fDigitizer) ;
106
107
108bc8df 108 fRecPointBranch=branchName ;
fbf811ec 109 fClusterizer = new AliPHOSClusterizerv1(fHeaderFileName.Data(),fRecPointBranch.Data(),toSplit) ;
7acf6008 110 Add(fClusterizer) ;
2131115b 111
b73f246d 112
108bc8df 113 fTSBranch=branchName ;
fbf811ec 114 fTSMaker = new AliPHOSTrackSegmentMakerv1(fHeaderFileName.Data(),fTSBranch.Data(),toSplit) ;
7acf6008 115 Add(fTSMaker) ;
116
117
108bc8df 118 fRecPartBranch=branchName ;
fbf811ec 119 fPID = new AliPHOSPIDv1(fHeaderFileName.Data(),fRecPartBranch.Data(),toSplit) ;
7acf6008 120 Add(fPID) ;
121
122 fIsInitialized = kTRUE ;
123
124}
125//____________________________________________________________________________
a4e98857 126void AliPHOSReconstructioner::Exec(Option_t *option)
127{
7acf6008 128 //chesk, if the names of branches, which should be made conicide with already
129 //existing
130 if(!fIsInitialized)
131 Init() ;
132
21cd0c07 133 TString message(" ") ;
fbf811ec 134// gAlice->GetEvent(0) ;
135
136// if(fSDigitizer->IsActive()&& gAlice->TreeS()){ //Will produce SDigits
137// TBranch * sdigitsBranch = 0;
138// TBranch * sdigitizerBranch = 0;
139
140// TObjArray * branches = gAlice->TreeS()->GetListOfBranches() ;
141// Int_t ibranch;
142// Bool_t phosNotFound = kTRUE ;
143// Bool_t sdigitizerNotFound = kTRUE ;
144
145// for(ibranch = 0;ibranch <branches->GetEntries();ibranch++){
146// if(phosNotFound){
147// sdigitsBranch=(TBranch *) branches->At(ibranch) ;
148// if(( strcmp("PHOS",sdigitsBranch->GetName())==0 ) &&
149// (fSDigitsBranch.CompareTo(sdigitsBranch->GetTitle())== 0 ))
150// phosNotFound = kFALSE ;
151// }
152// if(sdigitizerNotFound){
153// sdigitizerBranch = (TBranch *) branches->At(ibranch) ;
154// if(( strcmp(sdigitizerBranch->GetName(),"AliPHOSSDigitizer") == 0) &&
155// (fSDigitsBranch.CompareTo(sdigitizerBranch->GetTitle())== 0 ) )
156// sdigitizerNotFound = kFALSE ;
157// }
158// }
7acf6008 159
fbf811ec 160// if(!(sdigitizerNotFound && phosNotFound)){
21cd0c07 161// message = " Branches PHOS or AliPHOSSDigitizer with title %s\n" ;
162// message += " already exist in TreeS. ROOT does not allow updating/overwriting.\n" ;
163// message += " Specify another title for branches or use StartFrom() method\n" ;
164// Error("Exec", message.Data(), fSDigitsBranch.Data() ) ;
fbf811ec 165// //mark all tasks as inactive
166// TIter next(fTasks);
167// TTask *task;
168// while((task=(TTask*)next()))
169// task->SetActive(kFALSE) ;
7acf6008 170
fbf811ec 171// return ;
172// }
173// }
59cd4405 174
fbf811ec 175// if(fDigitizer->IsActive() && gAlice->TreeD()){ //Will produce Digits
176// TBranch * digitsBranch = 0;
177// TBranch * digitizerBranch = 0;
7acf6008 178
fbf811ec 179// TObjArray * branches = gAlice->TreeD()->GetListOfBranches() ;
180// Int_t ibranch;
181// Bool_t phosNotFound = kTRUE ;
182// Bool_t digitizerNotFound = kTRUE ;
7acf6008 183
fbf811ec 184// for(ibranch = 0;ibranch <branches->GetEntries();ibranch++){
185// if(phosNotFound){
186// digitsBranch=(TBranch *) branches->At(ibranch) ;
187// if(( strcmp("PHOS",digitsBranch->GetName())==0 ) &&
188// (fDigitsBranch.CompareTo(digitsBranch->GetTitle())== 0 ))
189// phosNotFound = kFALSE ;
190// }
191// if(digitizerNotFound){
192// digitizerBranch = (TBranch *) branches->At(ibranch) ;
193// if(( strcmp(digitizerBranch->GetName(),"AliPHOSDigitizer") == 0) &&
194// (fDigitsBranch.CompareTo(digitizerBranch->GetTitle())== 0 ) )
195// digitizerNotFound = kFALSE ;
196// }
197// }
2aad621e 198
fbf811ec 199// if(!(digitizerNotFound && phosNotFound)){
21cd0c07 200// message = " Branches PHOS or AliPHOSDigitizer with title %s\n" ;
201// message += " already exist in TreeD. ROOT does not allow updating/overwriting.\n" ;
202// message += " Specify another title for branches or use StartFrom() method" ;
203// Error("Exec", message>Data(), fDigitsBranch.Data() ) ;
fbf811ec 204// //mark all tasks as inactive
205// TIter next(fTasks);
206// TTask *task;
207// while((task=(TTask*)next()))
208// task->SetActive(kFALSE) ;
7acf6008 209
fbf811ec 210// return ;
211// }
212// }
213
214// if(fClusterizer->IsActive() && gAlice->TreeR()){ //Will produce RecPoints
215// TBranch * emcBranch = 0;
216// TBranch * cpvBranch = 0;
217// TBranch * clusterizerBranch = 0;
7acf6008 218
fbf811ec 219// TObjArray * branches = gAlice->TreeR()->GetListOfBranches() ;
220// Int_t ibranch;
221// Bool_t emcNotFound = kTRUE ;
222// Bool_t cpvNotFound = kTRUE ;
223// Bool_t clusterizerNotFound = kTRUE ;
7acf6008 224
fbf811ec 225// for(ibranch = 0;ibranch <branches->GetEntries();ibranch++){
7acf6008 226
fbf811ec 227// if(emcNotFound){
228// emcBranch=(TBranch *) branches->At(ibranch) ;
229// if(fRecPointBranch.CompareTo(emcBranch->GetTitle())==0 )
230// if( strcmp(emcBranch->GetName(),"PHOSEmcRP") == 0)
231// emcNotFound = kFALSE ;
232// }
233// if(cpvNotFound){
234// cpvBranch=(TBranch *) branches->At(ibranch) ;
235// if(fRecPointBranch.CompareTo(cpvBranch->GetTitle())==0 )
236// if( strcmp(cpvBranch->GetName(),"PHOSCpvRP") == 0)
237// cpvNotFound = kFALSE ;
238// }
239// if(clusterizerNotFound){
240// clusterizerBranch = (TBranch *) branches->At(ibranch) ;
241// if( fRecPointBranch.CompareTo(clusterizerBranch->GetTitle()) == 0)
242// if( strcmp(clusterizerBranch->GetName(),"AliPHOSClusterizer") == 0)
243// clusterizerNotFound = kFALSE ;
244// }
245// }
246
247// if(!(clusterizerNotFound && emcNotFound && cpvNotFound)){
21cd0c07 248// message = " Branches PHOSEmcRP, PHOSCpvRP or AliPHOSClusterizer with title %s\n" ;
249// message += " already exist in TreeR. ROOT does not allow updating/overwriting.\n" ;
250// message += " Specify another title for branches or use StartFrom() method\n" ;
251// Error("Exec", message.Data(),fRecPointBranch.Data() ) ;
fbf811ec 252// //mark all tasks as inactive
253// TIter next(fTasks);
254// TTask *task;
255// while((task=(TTask*)next()))
256// task->SetActive(kFALSE) ;
257// return ;
258// }
259// }
2aad621e 260
fbf811ec 261// if(fTSMaker->IsActive() && gAlice->TreeR()){ //Produce TrackSegments
262// TBranch * tsMakerBranch = 0;
263// TBranch * tsBranch = 0;
7acf6008 264
fbf811ec 265// TObjArray * branches = gAlice->TreeR()->GetListOfBranches() ;
266// Int_t ibranch;
267// Bool_t tsMakerNotFound = kTRUE ;
268// Bool_t tsNotFound = kTRUE ;
7acf6008 269
fbf811ec 270// for(ibranch = 0;(ibranch <branches->GetEntries())&&(tsMakerNotFound||tsNotFound);ibranch++){
271// if(tsMakerNotFound){
272// tsMakerBranch=(TBranch *) branches->At(ibranch) ;
273// if( fTSBranch.CompareTo(tsMakerBranch->GetTitle())==0 )
274// if( strcmp(tsMakerBranch->GetName(),"AliPHOSTrackSegmentMaker") == 0)
275// tsMakerNotFound = kFALSE ;
276// }
277// if(tsNotFound){
278// tsBranch=(TBranch *) branches->At(ibranch) ;
279// if( fTSBranch.CompareTo(tsBranch->GetTitle())==0 )
280// if( strcmp(tsBranch->GetName(),"PHOSTS") == 0)
281// tsNotFound = kFALSE ;
282// }
283// }
7acf6008 284
fbf811ec 285// if(!(tsMakerNotFound &&tsNotFound) ){
21cd0c07 286// message = " Branches PHOSTS or AliPHOSTrackSegmentMaker with title %s\n" ;
287// message += " already exist in TreeR. ROOT does not allow updating/overwriting.\n" ;
288// message += " Specify another title for branches or use StartFrom() method\n" ;
289// Error("Exec", message.Data(),fTSBranch.Data() ) ;
fbf811ec 290// //mark all tasks as inactive
291// TIter next(fTasks);
292// TTask *task;
293// while((task=(TTask*)next()))
294// task->SetActive(kFALSE) ;
295// return ;
2aad621e 296
fbf811ec 297// }
7acf6008 298
fbf811ec 299// }
7acf6008 300
fbf811ec 301// if(fPID->IsActive() && gAlice->TreeR()){ //Produce RecParticles
302// TBranch * pidBranch = 0;
303// TBranch * rpBranch = 0;
2aad621e 304
fbf811ec 305// TObjArray * branches = gAlice->TreeR()->GetListOfBranches() ;
306// Int_t ibranch;
307// Bool_t pidNotFound = kTRUE ;
308// Bool_t rpNotFound = kTRUE ;
7acf6008 309
fbf811ec 310// for(ibranch = 0;(ibranch <branches->GetEntries()) && pidNotFound && rpNotFound ;ibranch++){
311// if(pidNotFound){
312// pidBranch=(TBranch *) branches->At(ibranch) ;
313// if( (strcmp(fRecPartBranch,pidBranch->GetTitle())==0 ) &&
314// (strcmp(pidBranch->GetName(),"AliPHOSPID") == 0) )
315// pidNotFound = kFALSE ;
316// }
317// if(rpNotFound){
318// rpBranch=(TBranch *) branches->At(ibranch) ;
319// if( (strcmp(fRecPartBranch,rpBranch->GetTitle())==0 ) &&
320// (strcmp(rpBranch->GetName(),"PHOSRP") == 0) )
321// rpNotFound = kFALSE ;
322// }
323// }
7acf6008 324
fbf811ec 325// if(!pidNotFound || !rpNotFound ){
21cd0c07 326// message = " Branches PHOSRP or AliPHOSPID with title %s\n" ;
327// message += " already exist in TreeR. ROOT does not allow updating/overwriting.\n" ;
328// message += " Specify another title for branches.\n" ;
329// Error("Exec", message.Data(), fRecPartBranch.Data() ) ;
fbf811ec 330// //mark all tasks as inactive
331// TIter next(fTasks);
332// TTask *task;
333// while((task=(TTask*)next()))
334// task->SetActive(kFALSE) ;
335// return ;
336// }
2aad621e 337
fbf811ec 338// }
7acf6008 339}
340//____________________________________________________________________________
341 void AliPHOSReconstructioner::Init()
342{
a4e98857 343 // initiliaze Reconstructioner if necessary: we can not do this in default constructor
7acf6008 344
345 if(!fIsInitialized){
346 // Initialisation
347
81b0fcd1 348 fSDigitsBranch="Default" ;
fbf811ec 349 fSDigitizer = new AliPHOSSDigitizer(fHeaderFileName.Data(),fSDigitsBranch.Data(),fToSplit) ;
7acf6008 350 Add(fSDigitizer) ;
351
81b0fcd1 352 fDigitsBranch="Default" ;
fbf811ec 353 fDigitizer = new AliPHOSDigitizer(fHeaderFileName.Data(),fDigitsBranch.Data(),fToSplit) ;
7acf6008 354 Add(fDigitizer) ;
355
81b0fcd1 356 fRecPointBranch="Default" ;
fbf811ec 357 fClusterizer = new AliPHOSClusterizerv1(fHeaderFileName.Data(),fRecPointBranch.Data(),fToSplit) ;
7acf6008 358 Add(fClusterizer) ;
359
81b0fcd1 360 fTSBranch="Default" ;
fbf811ec 361 fTSMaker = new AliPHOSTrackSegmentMakerv1(fHeaderFileName.Data(),fTSBranch.Data(),fToSplit) ;
7acf6008 362 Add(fTSMaker) ;
363
364
81b0fcd1 365 fRecPartBranch="Default" ;
fbf811ec 366 fPID = new AliPHOSPIDv1(fHeaderFileName.Data(),fRecPartBranch.Data(),fToSplit) ;
7acf6008 367 Add(fPID) ;
368
369 fIsInitialized = kTRUE ;
370 }
371}
372//____________________________________________________________________________
373AliPHOSReconstructioner::~AliPHOSReconstructioner()
374{
baef0810 375 // Delete data members if any
376
81b0fcd1 377// if(fSDigitizer)
378// delete fSDigitizer ;
83974468 379
81b0fcd1 380// if(fDigitizer)
381// delete fDigitizer ;
7acf6008 382
81b0fcd1 383// if(fClusterizer)
384// delete fClusterizer ;
7acf6008 385
81b0fcd1 386// if(fTSMaker)
387// delete fTSMaker ;
7acf6008 388
81b0fcd1 389// if(fPID)
390// delete fPID ;
2bd5457f 391
392// TFile * file = (TFile*) gROOT->GetFile(fHeaderFileName.Data()) ;
393
394// if(file != 0) {
395// file->Close();
396// delete file;
397// printf("File %s is closed\n",fHeaderFileName.Data());
398// }
399
7acf6008 400}
fbf811ec 401// //____________________________________________________________________________
402// void AliPHOSReconstructioner::SetBranchTitle(const char* branch, const char * title)
403// {
404// //Diverge correcpoinding branch to the file "title"
405
406// if(strcmp(branch,"SDigits") == 0){
407// fSDigitizer->SetSDigitsBranch(title) ;
408// fDigitizer->SetSDigitsBranch(title) ;
409// fSDigitsBranch = title ;
410// return ;
411// }
7acf6008 412
fbf811ec 413// if(strcmp(branch,"Digits") == 0){
414// fDigitizer->SetName(title) ;
415// fClusterizer->SetName(title) ;
416// fDigitsBranch = title ;
417// return ;
418// }
419
420// if(strcmp(branch,"RecPoints") == 0){
421// fClusterizer->SetRecPointsBranch(title) ;
422// fTSMaker->SetRecPointsBranch(title) ;
423// fRecPointBranch = title ;
424// return ;
425// }
426
427// if(strcmp(branch,"TrackSegments") == 0){
428// fTSMaker->SetTrackSegmentsBranch(title) ;
429// fPID->SetTrackSegmentsBranch(title) ;
430// fTSBranch = title ;
431// return ;
432// }
433
434// if(strcmp(branch,"RecParticles") == 0){
435// fPID->SetRecParticlesBranch(title) ;
436// fRecPartBranch = title ;
437// return ;
438// }
439
21cd0c07 440//
441// TString message ;
442// message = "There is no branch %s !\n" ;
443// message += "Available branches `SDigits', `Digits', `RecPoints', `TrackSegments' and `RecParticles'\n" ;
444// Warning("SetBranchTitle", message.Data(), branch ) ;
fbf811ec 445// }
446// //____________________________________________________________________________
447// void AliPHOSReconstructioner::StartFrom(char * module,char* title)
448// {
449// // in the next pass of reconstruction (call ExecuteTask()) reconstruction will
450// // start from the module "module", and in the case of non zero title all
451// // pruduced branches will have title "title". The following "modules" are recognized
452// // "SD" - AliPHOSSDigitizer,
453// // "D" - AliPHOSDigitizer
454// // "C" - AliPHOSClusterizer
455// // "TS" - AliPHOSTrackSegmentMaker
456// // "RP" - AliPHOSPID
457
458// if(!fIsInitialized)
459// Init() ;
460
461// char * moduleName = new char[30];
462// if(strstr(module,"SD"))
463// sprintf(moduleName,"AliPHOSSDigitizer") ;
464// else
465// if(strstr(module,"D") )
466// sprintf(moduleName,"AliPHOSDigitizer") ;
467// else
468// if(strstr(module,"C") || strstr(module,"RecPoint") )
469// sprintf(moduleName,"AliPHOSClusterizer") ;
470// else
471// if(strstr(module,"TS") || strstr(module,"Track") )
472// sprintf(moduleName,"AliPHOSTrackSegmentMaker") ;
473// else
474// if(strstr(module,"PID") || strstr(module,"Particle") || strstr(module,"RP") )
475// sprintf(moduleName,"AliPHOSPID") ;
476// else{
21cd0c07 477// Warning("StartFrom", "Do not know such a module / Rec Object ") ;
fbf811ec 478// return ;
479// }
9a6ec61a 480
fbf811ec 481// TIter next(fTasks);
482// TTask *task;
483// Bool_t active = kFALSE ;
484// while((task=(TTask*)next())){
485// if (strcmp(moduleName,task->GetName())==0)
486// active = kTRUE;
487// task->SetActive(active) ;
488// if(active && title){ // set title to branches
489// switch(strlen(task->GetName()) ) {
490// case 17: // "AliPHOSSDigitizer"
491// fSDigitizer->SetSDigitsBranch(title) ;
492// fDigitizer->SetSDigitsBranch(title) ;
493// fSDigitsBranch = title ;
494// break ;
495// case 16: //"AliPHOSDigitizer"
496// fDigitizer->SetName(title) ;
497// fClusterizer->SetName(title) ;
498// fDigitsBranch = title ;
499// break ;
500// case 18: //"AliPHOSClusterizer"
501// fClusterizer->SetRecPointsBranch(title) ;
502// fTSMaker->SetRecPointsBranch(title) ;
503// fRecPointBranch = title ;
504// break ;
505// case 24: //"AliPHOSTrackSegmentMaker"
506// fTSMaker->SetTrackSegmentsBranch(title) ;
507// fPID->SetTrackSegmentsBranch(title) ;
508// fTSBranch = title ;
509// break ;
510// case 10: // "AliPHOSPID"
511// fPID->SetRecParticlesBranch(title) ;
512// fRecPartBranch = title ;
513// break ;
514// }
9a6ec61a 515
fbf811ec 516// }
517// }
9a6ec61a 518
fbf811ec 519// delete [] moduleName;
520// }
7acf6008 521//____________________________________________________________________________
baef0810 522
523void AliPHOSReconstructioner::Print(Option_t * option)const {
524 // Print reconstructioner data
525
21cd0c07 526 TString message ;
527 message = "-----------------AliPHOSReconstructioner---------------\n" ;
528 message += " Reconstruction of the header file %s\n" ;
529 message += " with the following modules:\n" ;
7acf6008 530
531 if(fSDigitizer->IsActive()){
21cd0c07 532 message += " (+) %s to branch %s\n" ;
7acf6008 533 }
534 if(fDigitizer->IsActive()){
21cd0c07 535 message += " (+) %s to branch %s\n" ;
7acf6008 536 }
537
538 if(fClusterizer->IsActive()){
21cd0c07 539 message += " (+) %s to branch %s\n" ;
7acf6008 540 }
541
542 if(fTSMaker->IsActive()){
21cd0c07 543 message += " (+) %s to branch %s\n" ;
7acf6008 544 }
545
7acf6008 546 if(fPID->IsActive()){
21cd0c07 547 message += " (+) %s to branch %s\n" ;
7acf6008 548 }
21cd0c07 549 Info("Print", message.Data(),
550 fHeaderFileName.Data(),
551 fSDigitizer->GetName(), fSDigitsBranch.Data(),
552 fDigitizer->GetName(), fDigitsBranch.Data() ,
553 fClusterizer->GetName(), fRecPointBranch.Data(),
554 fTSMaker->GetName(), fTSBranch.Data() ,
555 fPID->GetName(), fRecPartBranch.Data() ) ;
51926850 556}