1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 //_________________________________________________________________________
19 //*-- Author : Dmitri Peressounko (SUBATECH & Kurchatov Institute)
20 //////////////////////////////////////////////////////////////////////////////
21 // Class performs digitization of Summable digits (in the PHOS case this is just
22 // sum of contributions of all primary particles into given cell).
23 // In addition it performs mixing of summable digits from different events.
25 // For each event two branches are created in TreeD:
26 // "PHOS" - list of digits
27 // "AliPHOSDigitizer" - AliPHOSDigitizer with all parameters used in digitization
29 // Note, that one cset title for new digits branch, and repeat digitization with
30 // another set of parameters.
33 // root[0] AliPHOSDigitizer * d = new AliPHOSDigitizer() ;
34 // root[1] d->ExecuteTask()
35 // Warning in <TDatabasePDG::TDatabasePDG>: object already instantiated
36 // //Digitizes SDigitis in all events found in file galice.root
38 // root[2] AliPHOSDigitizer * d1 = new AliPHOSDigitizer("galice1.root") ;
39 // // Will read sdigits from galice1.root
40 // root[3] d1->MixWith("galice2.root")
41 // Warning in <TDatabasePDG::TDatabasePDG>: object already instantiated
42 // // Reads another portion of sdigits from galice2.root
43 // root[3] d1->MixWith("galice3.root")
44 // // Reads another portion of sdigits from galice3.root
45 // root[4] d->ExecuteTask("deb timing")
46 // // Reads SDigits from files galice1.root, galice2.root ....
47 // // mixes them and stores produced Digits in file galice1.root
48 // // deb - prints number of produced digits
49 // // deb all - prints list of produced digits
50 // // timing - prints time used for digitization
53 // --- ROOT system ---
59 #include "TObjString.h"
60 #include "TBenchmark.h"
61 // --- Standard library ---
64 // --- AliRoot header files ---
67 #include "AliPHOSDigit.h"
68 #include "AliPHOSHit.h"
69 #include "AliPHOSv1.h"
70 #include "AliPHOSDigitizer.h"
71 #include "AliPHOSSDigitizer.h"
72 #include "AliPHOSGeometry.h"
74 ClassImp(AliPHOSDigitizer)
77 //____________________________________________________________________________
78 AliPHOSDigitizer::AliPHOSDigitizer():TTask("AliPHOSDigitizer","")
85 fEMCDigitThreshold = 0.01 ;
87 fCPVDigitThreshold = 0.09 ;
88 fPPSDNoise = 0.0000001;
89 fPPSDDigitThreshold = 0.0000002 ;
90 fInitialized = kFALSE ;
98 //____________________________________________________________________________
99 void AliPHOSDigitizer::Init(){
100 // Makes all memory allocations
104 fHeaderFiles = new TClonesArray("TObjString",1) ;
105 new((*fHeaderFiles)[0]) TObjString("galice.root") ;
107 //Test, if this file already open
109 TFile *file = (TFile*) gROOT->GetFile(((TObjString *) fHeaderFiles->At(0))->GetString() ) ;
112 file = new TFile(((TObjString *) fHeaderFiles->At(0))->GetString(),"update") ;
113 gAlice = (AliRun *) file->Get("gAlice") ;
116 file = new TFile(((TObjString *) fHeaderFiles->At(0))->GetString()) ;
120 fSDigitsTitles = new TClonesArray("TObjString",1);
121 new((*fSDigitsTitles)[0]) TObjString("") ;
123 fSDigits = new TClonesArray("TClonesArray",1) ;
124 new((*fSDigits)[0]) TClonesArray("AliPHOSDigit",1000) ;
130 fDigits = new TClonesArray("AliPHOSDigit",200000) ;
132 fIevent = new TArrayI(1) ;
133 fIevent->AddAt(-1,0 ) ;
134 fIeventMax = new TArrayI(1) ;
136 fIeventMax->AddAt((Int_t) gAlice->TreeE()->GetEntries(), 0 );
138 // add Task to //root/Tasks folder
139 TTask * roottasks = (TTask*)gROOT->GetRootFolder()->FindObject("Tasks") ;
140 roottasks->Add(this) ;
142 fInitialized = kTRUE ;
147 //____________________________________________________________________________
148 AliPHOSDigitizer::AliPHOSDigitizer(const char *headerFile,const char *sDigitsTitle):
149 TTask("AliPHOSDigitizer","")
152 fHeaderFiles = new TClonesArray("TObjString",1) ;
153 new((*fHeaderFiles)[0]) TObjString(headerFile) ;
155 // Header file, where result will be stored
156 TFile * file = (TFile*) gROOT->GetFile(((TObjString *) fHeaderFiles->At(0))->GetString() ) ;
158 if(((TObjString *) fHeaderFiles->At(0))->GetString().Contains("rfio"))
159 file = TFile::Open(((TObjString *) fHeaderFiles->At(0))->GetString(),"update") ;
161 file = new TFile(((TObjString *) fHeaderFiles->At(0))->GetString(),"update") ;
162 gAlice = (AliRun *) file->Get("gAlice") ; //If not read yet
167 fSDigitsTitles = new TClonesArray("TObjString",1); // Title name of the SDigits branch
168 new((*fSDigitsTitles)[0]) TObjString(sDigitsTitle) ;
170 fSDigits = new TClonesArray("TClonesArray",1) ; // here list of SDigits wil be stored
171 new((*fSDigits)[0]) TClonesArray("AliPHOSDigit",1000) ;
173 fDigits = new TClonesArray("AliPHOSDigit",200000) ;
180 fIevent = new TArrayI(1) ;
181 fIevent->AddAt(-1,0 ) ;
182 fIeventMax = new TArrayI(1) ;
184 // Get number of events to process
185 fIeventMax->AddAt((Int_t) gAlice->TreeE()->GetEntries(), 0 );
190 fEMCDigitThreshold = 0.01 ;
192 fCPVDigitThreshold = 0.09 ;
193 fPPSDNoise = 0.0000001;
194 fPPSDDigitThreshold = 0.0000002 ;
196 // add Task to //root/Tasks folder
197 TTask * roottasks = (TTask*)gROOT->GetRootFolder()->FindObject("Tasks") ;
198 roottasks->Add(this) ;
199 fInitialized = kTRUE ;
203 //____________________________________________________________________________
204 AliPHOSDigitizer::~AliPHOSDigitizer()
208 if(fHeaderFiles) delete fHeaderFiles ;
209 if(fSDigitsTitles) delete fSDigitsTitles ;
210 if(fSDigits) delete fSDigits ;
211 if(fDigits) delete fDigits ;
213 //____________________________________________________________________________
214 void AliPHOSDigitizer::Reset() {
215 //sets current event number to the first simulated event
221 for(inputs = 0; inputs < fNinputs ;inputs++)
222 fIevent->AddAt(-1, inputs ) ;
225 //____________________________________________________________________________
226 Bool_t AliPHOSDigitizer::Combinator() {
228 //Makes all desirable combinations Signal+Background,
229 // returns kFALSE when all combinations are made
230 // May be useful to introduce some options like "One-to-One", "All-to-One" and "All-to-All" ?
232 //realizing "One-to-One" option...
238 Bool_t endNotReached = kTRUE ;
240 for(inputs = 0; (inputs < fNinputs) && endNotReached ;inputs++){
241 if(fIevent->At(inputs)+1 < fIeventMax->At(inputs))
242 fIevent->AddAt(fIevent->At(inputs)+1, inputs ) ;
245 endNotReached = kFALSE ;
246 else //for inputs other than base one start from the beginning
247 fIevent->AddAt(0, inputs ) ;
250 return endNotReached ;
254 //____________________________________________________________________________
255 void AliPHOSDigitizer::Digitize(Option_t *option) {
257 // Makes the digitization of the collected summable digits
258 // for this it first creates the array of all PHOS modules
259 // filled with noise (different for EMC, CPV and PPSD) and
260 // after that adds contributions from SDigits. This design
261 // helps to avoid scanning over the list of digits to add
262 // contribution of any new SDigit.
269 AliPHOS * PHOS = (AliPHOS *) gAlice->GetDetector("PHOS") ;
270 AliPHOSGeometry *geom = AliPHOSGeometry::GetInstance( PHOS->GetGeometry()->GetName(), PHOS->GetGeometry()->GetTitle() );
272 //Making digits with noise, first EMC
273 Int_t nEMC = geom->GetNModules()*geom->GetNPhi()*geom->GetNZ();
278 TString name = geom->GetName() ;
280 if ( name == "IHEP" || name == "MIXT" )
281 nCPV =nEMC + geom->GetNumberOfCPVPadsZ()*geom->GetNumberOfCPVPadsPhi()*
282 geom->GetNCPVModules()*geom->GetNumberOfCPVLayers() ;
286 if ( name == "GPS2" || name == "MIXT" )
287 nPPSD =nCPV+2*geom->GetNPPSDModules()*geom->GetNumberOfModulesPhi()*geom->GetNumberOfModulesZ()*
288 geom->GetNumberOfPadsPhi()*geom->GetNumberOfPadsZ() ;
293 fDigits->Expand(nPPSD) ;
296 for(absID = 1; absID <= nEMC; absID++){
297 Float_t noise = gRandom->Gaus(0., fPinNoise) ;
298 new((*fDigits)[absID-1]) AliPHOSDigit( -1,absID,fSDigitizer->Digitize(noise) ) ;
301 for(absID = nEMC+1; absID <= nCPV; absID++){
302 Float_t noise = gRandom->Gaus(0., fCPVNoise) ;
303 new((*fDigits)[absID-1]) AliPHOSDigit( -1,absID,fSDigitizer->Digitize(noise) ) ;
306 for(absID = nCPV+1; absID <= nPPSD; absID++){
307 Float_t noise = gRandom->Gaus(0., fPPSDNoise) ;
308 new((*fDigits)[absID-1]) AliPHOSDigit( -1,absID,fSDigitizer->Digitize(noise) ) ;
312 // Now look throught (unsorted) list of SDigits and add corresponding digits
313 AliPHOSDigit *curSDigit ;
314 AliPHOSDigit *digit ;
317 for(inputs = 0; inputs< fNinputs ; inputs++){ //loop over (possible) merge sources
319 TClonesArray * sdigits= (TClonesArray *)fSDigits->At(inputs) ;
322 Int_t nSDigits = sdigits->GetEntries() ;
323 for(isdigit=0;isdigit< nSDigits; isdigit++){
324 curSDigit = (AliPHOSDigit *)sdigits->At(isdigit) ;
325 if(inputs) //Shift primaries for non-background sdigits
326 curSDigit->ShiftPrimary(inputs) ;
327 digit = (AliPHOSDigit *)fDigits->At(curSDigit->GetId() - 1);
328 *digit = *digit + *curSDigit ;
333 //remove digits below thresholds
334 for(absID = 0; absID < nEMC ; absID++)
335 if(fSDigitizer->Calibrate(((AliPHOSDigit*)fDigits->At(absID))->GetAmp()) < fEMCDigitThreshold)
336 fDigits->RemoveAt(absID) ;
337 for(absID = nEMC; absID < nCPV ; absID++)
338 if(fSDigitizer->Calibrate(((AliPHOSDigit*)fDigits->At(absID))->GetAmp()) < fCPVDigitThreshold)
339 fDigits->RemoveAt(absID) ;
340 for(absID = nCPV; absID < nPPSD ; absID++)
341 if(fSDigitizer->Calibrate(((AliPHOSDigit *)fDigits->At(absID))->GetAmp()) < fPPSDDigitThreshold)
342 fDigits->RemoveAt(absID) ;
344 fDigits->Compress() ;
346 Int_t ndigits = fDigits->GetEntriesFast() ;
348 fDigits->Expand(ndigits) ;
351 //Set indexes in list of digits
353 for (i = 0 ; i < ndigits ; i++) {
354 AliPHOSDigit * digit = (AliPHOSDigit *) fDigits->At(i) ;
355 digit->SetIndexInList(i) ;
358 //____________________________________________________________________________
359 void AliPHOSDigitizer::WriteDigits(){
361 // Made TreeD in the output file. Check if branch already exists: if yes, exits
362 // without writing: ROOT TTree does not suppert overwriting/updating of the
363 // already existing branches. Creates branch with Digits, named "PHOS", title "...",
364 // and branch "AliPHOSDigitizer", with the same title to keep all the parameters
365 // and names of files, from which digits are made.
367 gAlice->GetEvent(fIevent->At(0)) ; // Suitable only for One-To-One mixing
368 gAlice->SetEvent(fIevent->At(0)) ; // for all-to-all will produce a lot of branches in TreeD
370 if(gAlice->TreeD()==0)
371 gAlice->MakeTree("D") ;
373 //Check, if this branch already exits?
374 TBranch * digitsBranch = 0;
375 TBranch * digitizerBranch = 0;
377 TObjArray * branches = gAlice->TreeD()->GetListOfBranches() ;
379 Bool_t phosNotFound = kTRUE ;
380 Bool_t digitizerNotFound = kTRUE ;
382 for(ibranch = 0;ibranch <branches->GetEntries();ibranch++){
385 digitsBranch=(TBranch *) branches->At(ibranch) ;
386 if( (strcmp("PHOS",digitsBranch->GetName())==0 ) &&
387 (fDigitsTitle.CompareTo(digitsBranch->GetTitle()) == 0) )
388 phosNotFound = kFALSE ;
390 if(digitizerNotFound){
391 digitizerBranch = (TBranch *) branches->At(ibranch) ;
392 if( (strcmp(digitizerBranch->GetName(),"AliPHOSDigitizer") == 0) &&
393 (fDigitsTitle.CompareTo(digitizerBranch->GetTitle()) == 0))
394 digitizerNotFound = kFALSE ;
399 if(!(digitizerNotFound && phosNotFound)){
400 cout << "AliPHOSDigitizer error: " << endl ;
401 cout << " can not update/overwrite existing branches "<< endl ;
402 cout << " do not write " << endl ;
406 // create new branches
408 //First generate file name
410 if(gSystem->Getenv("CONFIG_SPLIT_FILE")){ //generating file name
411 file = new char[strlen(gAlice->GetBaseFile())+20] ;
412 sprintf(file,"%s/PHOS.Digits.root",gAlice->GetBaseFile()) ;
415 TDirectory *cwd = gDirectory;
417 //First create list of sdigits
418 Int_t bufferSize = 32000 ;
419 digitsBranch = gAlice->TreeD()->Branch("PHOS",&fDigits,bufferSize);
420 digitsBranch->SetTitle(fDigitsTitle.Data());
422 digitsBranch->SetFile(file);
423 TIter next( digitsBranch->GetListOfBranches());
425 while ((sbr=(TBranch*)next())) {
431 //second - create Digitizer
432 Int_t splitlevel = 0 ;
433 AliPHOSDigitizer * d = this ;
434 digitizerBranch = gAlice->TreeD()->Branch("AliPHOSDigitizer","AliPHOSDigitizer",
435 &d,bufferSize,splitlevel);
436 digitizerBranch->SetTitle(fDigitsTitle.Data());
438 digitizerBranch->SetFile(file);
439 TIter next( digitizerBranch->GetListOfBranches());
441 while ((sbr=(TBranch*)next())) {
447 digitsBranch->Fill() ;
448 digitizerBranch->Fill() ;
450 gAlice->TreeD()->Write(0,kOverwrite) ;
452 //remove fSDigitizer before new event.
461 //____________________________________________________________________________
462 void AliPHOSDigitizer::Exec(Option_t *option) {
465 if(!fInitialized) Init() ;
467 if(strstr(option,"tim"))
468 gBenchmark->Start("PHOSDigitizer");
470 //reset events numbers to start from the beginnig
475 if(!ReadSDigits()) //read sdigits event(s) evaluated by Combinator() from file(s)
478 Digitize(option) ; //Add prepared SDigits to digits and add the noise
481 if(strstr(option,"deb"))
486 if(strstr(option,"tim")){
487 gBenchmark->Stop("PHOSDigitizer");
488 cout << "AliPHOSDigitizer:" << endl ;
489 cout << " took " << gBenchmark->GetCpuTime("PHOSDigitizer") << " seconds for SDigitizing "
490 << gBenchmark->GetCpuTime("PHOSDigitizer")/(fIeventMax->At(0)) << " seconds per event " << endl ;
496 //__________________________________________________________________
497 Bool_t AliPHOSDigitizer::ReadSDigits(){
498 // Reads summable digits from the opened files for the particular set of events given by fIevent
500 if(!fInitialized) Init() ;
504 for(inputs = fNinputs-1; inputs >= 0; inputs --){
506 Int_t event = fIevent->At(inputs) ;
508 TFile * file = (TFile*) gROOT->GetFile(((TObjString *) fHeaderFiles->At(inputs))->GetString() ) ;
511 // Get SDigits Tree header from file
513 sprintf(treeName,"TreeS%d",event);
514 TTree * treeS = (TTree*)file->Get(treeName);
517 cout << "Error at AliPHOSDigitizer: no "<<treeName << " in file " << file->GetName() << endl ;
518 cout << "Do nothing " << endl ;
522 TBranch * sdigitsBranch = 0;
523 TBranch * sdigitizerBranch = 0;
525 TObjArray * branches = treeS->GetListOfBranches() ;
527 Bool_t phosNotFound = kTRUE ;
528 Bool_t sdigitizerNotFound = kTRUE ;
530 for(ibranch = 0;ibranch <branches->GetEntries();ibranch++){
533 sdigitsBranch=(TBranch *) branches->At(ibranch) ;
534 if(( strcmp("PHOS",sdigitsBranch->GetName())==0 ) &&
535 ((TObjString*) fSDigitsTitles->At(inputs))->GetString().CompareTo(sdigitsBranch->GetTitle())== 0 )
536 phosNotFound = kFALSE ;
540 if(sdigitizerNotFound){
541 sdigitizerBranch = (TBranch *) branches->At(ibranch) ;
542 if(( strcmp(sdigitizerBranch->GetName(),"AliPHOSSDigitizer") == 0) &&
543 ((TObjString*) fSDigitsTitles->At(inputs))->GetString().CompareTo(sdigitizerBranch->GetTitle())== 0 )
544 sdigitizerNotFound = kFALSE ;
549 if(sdigitizerNotFound || phosNotFound){
550 cout << "Can't find Branch with sdigits or SDigitizer in the file " ;
551 if( ((TObjString*)fSDigitsTitles->At(inputs))->GetString().IsNull() )
552 cout << file->GetName() << endl ;
554 cout << ((TObjString*)fSDigitsTitles->At(inputs))->GetString().Data() << endl ;
555 cout << "Do nothing" <<endl ;
559 TClonesArray * sdigits = (TClonesArray*) fSDigits->At(inputs) ;
560 sdigitsBranch->SetAddress(&sdigits) ;
562 AliPHOSSDigitizer *sDigitizer = new AliPHOSSDigitizer();
563 sdigitizerBranch->SetAddress(&sDigitizer) ;
565 sdigitsBranch->GetEntry(0) ;
566 sdigitizerBranch->GetEntry(0) ;
569 fSDigitizer = sDigitizer ;
571 if(!((*fSDigitizer)==(*sDigitizer)) ){
572 cout << "AliPHOSDigitizer ERROR:" << endl ;
573 cout << " you are using sdigits made with different SDigitizers" << endl ;
574 cout << "fSD " << fSDigitizer << " SD" << sDigitizer << endl ;
575 fSDigitizer->Print("") ;
576 sDigitizer->Print("") ;
577 cout << "Do Nothing " << endl ;
582 fPedestal = fSDigitizer->GetPedestalParameter() ;
583 fSlope = fSDigitizer->GetCalibrationParameter() ;
588 //__________________________________________________________________
589 void AliPHOSDigitizer::MixWith(char* HeaderFile, char* sDigitsTitle){
590 // Alows produce digits by superimposing background and signal event.
591 // It is assumed, that headers file with SIGNAL events is opened in
592 // constructor, and now we set the BACKGROUND event, with which we
593 // will mix. Thus we avoid writing (changing) huge and expencive
594 // backgound files: all output will be writen into SIGNAL, i.e.
595 // opened in constructor file.
597 // One can open as many files to mix with as one wants.
605 cout << "Specify at least header file to merge"<< endl ;
610 for(inputs = 0; inputs < fNinputs ; inputs++){
611 if(strcmp(((TObjString *)fHeaderFiles->At(inputs))->GetString(),HeaderFile) == 0 ){
612 if(sDigitsTitle == 0){
613 if(((TObjString*)fSDigitsTitles->At(inputs))->GetString().CompareTo("") == 0){
614 cout << "Entry already exists, do not add" << endl ;
619 if(((TObjString*)fSDigitsTitles->At(inputs))->GetString().CompareTo(sDigitsTitle)){
620 cout << "Entry already exists, do not add" << endl ;
626 fHeaderFiles->Expand(fNinputs+1) ;
627 new((*fHeaderFiles)[fNinputs]) TObjString(HeaderFile) ;
630 TFile * file = new TFile(((TObjString *) fHeaderFiles->At(fNinputs))->GetString()) ;
634 fSDigitsTitles->Expand(fNinputs+1) ;
635 new((*fSDigitsTitles)[fNinputs]) TObjString(sDigitsTitle) ;
637 fSDigits->Expand(fNinputs+1) ;
638 new((*fSDigits)[fNinputs]) TClonesArray("AliPHOSDigit",1000) ;
640 fIevent->Set(fNinputs+1) ;
641 fIevent->AddAt(-1, fNinputs) ;
643 fIeventMax->Set(fNinputs+1) ;
645 TTree * te = (TTree *) file->Get("TE") ;
646 fIeventMax->AddAt((Int_t) te->GetEntries(), fNinputs );
651 //__________________________________________________________________
652 void AliPHOSDigitizer::Print(Option_t* option)const {
656 cout << "------------------- "<< GetName() << " -------------" << endl ;
657 cout << "Digitizing sDigits from file(s): " <<endl ;
659 for(input = 0; input < fNinputs ; input++) {
660 cout << " " << ((TObjString *) fHeaderFiles->At(input))->GetString() <<
661 " Branch title:" << ((TObjString *) fSDigitsTitles->At(input))->GetString() << endl ;
664 cout << "Writing digits to " << ((TObjString *) fHeaderFiles->At(0))->GetString() << endl ;
667 cout << "With following parameters: " << endl ;
668 cout << " Electronics noise in EMC (fPinNoise) = " << fPinNoise << endl ;
669 cout << " Threshold in EMC (fEMCDigitThreshold) = " << fEMCDigitThreshold << endl ; ;
670 cout << " Noise in CPV (fCPVNoise) = " << fCPVNoise << endl ;
671 cout << " Threshold in CPV (fCPVDigitThreshold) = " << fCPVDigitThreshold << endl ;
672 cout << " Noise in PPSD (fPPSDNoise) = " << fPPSDNoise << endl ;
673 cout << " Threshold in PPSD (fPPSDDigitThreshold) = " << fPPSDDigitThreshold << endl ;
674 cout << "---------------------------------------------------" << endl ;
677 cout << "AliPHOSDigitizer not initialized " << endl ;
680 //__________________________________________________________________
681 void AliPHOSDigitizer::PrintDigits(Option_t * option){
683 cout << "AliPHOSDigitiser:"<< endl ;
684 cout << " Number of entries in Digits list " << fDigits->GetEntriesFast() << endl ;
686 if(strstr(option,"all")){
689 AliPHOSDigit * digit;
690 cout << "Digit Id " << " Amplitude " << " Index " << " Nprim " << " Primaries list " << endl;
692 for (index = 0 ; index < fDigits->GetEntries() ; index++) {
693 digit = (AliPHOSDigit * ) fDigits->At(index) ;
694 cout << setw(8) << digit->GetId() << " " << setw(3) << digit->GetAmp() << " "
695 << setw(6) << digit->GetIndexInList() << " "
696 << setw(5) << digit->GetNprimary() <<" ";
699 for (iprimary=0; iprimary<digit->GetNprimary(); iprimary++)
700 cout << setw(5) << digit->GetPrimary(iprimary+1) << " ";
706 //__________________________________________________________________
707 void AliPHOSDigitizer::SetSDigitsBranch(const char* title){
708 // we set title (comment) of the SDigits branch in the first! header file
709 if(!fInitialized) Init() ;
711 ((TObjString*) fSDigitsTitles->At(0) )->SetString((char*)title) ;
714 //__________________________________________________________________
715 void AliPHOSDigitizer::SetDigitsBranch(const char* title){
716 //Sets the title (comment) of the branch to which Digits branch
717 if(!fInitialized) Init() ;
719 fDigitsTitle = title ;