-if(fManager)
+ if(fManager)
SetTitle("aliroot") ;
else if (strcmp(GetTitle(),"")==0)
- SetTitle("galice.root") ;
-
+ SetTitle("galice.root") ;
+
if( strcmp(GetName(), "") == 0 )
SetName("Default") ;
//____________________________________________________________________________
AliEMCALDigitizer::AliEMCALDigitizer(const char *headerFile,const char *name)
{
- SetName(name) ;
+ SetName(name) ;
SetTitle(headerFile) ;
fManager = 0 ; // We work in the standalong mode
Init() ;
cerr << "ERROR: AliEMCALDigitizer::Digitize -> SDigitizer with name " << GetName() << " not found " << endl ;
abort() ;
}
-
// loop through the sdigits posted to the White Board and add them to the noise
TCollection * folderslist = gime->SDigitsFolder()->GetListOfFolders() ;
TIter next(folderslist) ;
TObjArray * sdigArray = new TObjArray(2) ;
while ( (folder = (TFolder*)next()) )
if ( (sdigits = (TClonesArray*)folder->FindObject(GetName()) ) ) {
+ TString fileName(folder->GetName()) ;
+ fileName.ReplaceAll("_","/") ;
cout << "INFO: AliEMCALDigitizer::Digitize -> Adding SDigits "
- << GetName() << " from " << folder->GetName() << endl ;
+ << GetName() << " from " << fileName << endl ;
sdigArray->AddAt(sdigits, input) ;
input++ ;
}
gime->ReadTreeS(treeS,input) ;
}
}
- else
- gime->Event(ievent,"S") ;
+ else
+ gime->Event(ievent,"S") ;
Digitize(ievent) ; //Add prepared SDigits to digits and add the noise
{
//Initialize all lists
+ fDebug = 0 ;
+
fHeaderFile = headerFile ;
fBranchTitle = branchTitle ;
fSDigitsTitle = branchTitle ;
TString sdname(name) ;
sdname.Append(":") ;
sdname.Append(file);
+ sdname.ReplaceAll("/","_") ;
AliEMCALSDigitizer * emcalsd = dynamic_cast<AliEMCALSDigitizer *>(emcal->GetListOfTasks()->FindObject( sdname ));
if (!emcalsd) {
emcalsd = new AliEMCALSDigitizer() ;
if ( (subdir != "aliroot") && ( !folderslist->Contains(subdir) ) ){
emcalF->AddFolder(subdir, "");
}
-
+
TIter next(folderslist) ;
TFolder * folder = 0 ;
TFile * file;
cerr << "ERROR: AliEMCALGetter::ReadTreeS There is no SDigit Tree" << endl;
return ;
}
-
+
//set address of the SDigits and SDigitizer
TBranch * sdigitsBranch = 0;
TBranch * sdigitizerBranch = 0;
TTask * task = 0 ;
while((task = static_cast<TTask *>(it.Next()) )){
TString taskname(task->GetName()) ;
- if(taskname.BeginsWith(name))
- return task ;
+ if(taskname.BeginsWith(name)){
+ return task ;}
}
if(fDebug)
TObjArray * sdigArray = new TObjArray(2) ;
while ( (folder = (TFolder*)next()) )
if ( (sdigits = (TClonesArray*)folder->FindObject(GetName()) ) ) {
+ TString fileName(folder->GetName()) ;
+ fileName.ReplaceAll("_","/") ;
cout << "INFO: AliPHOSDigitizer::Digitize -> Adding SDigits "
- << GetName() << " from " << folder->GetName() << endl ;
+ << GetName() << " from " << fileName << endl ;
sdigArray->AddAt(sdigits, input) ;
input++ ;
}
{
//Initialize all lists
+ fDebug = 0 ;
+
fHeaderFile = headerFile ;
fBranchTitle = branchTitle ;
fSDigitsTitle = branchTitle ;
TString sdname(name) ;
sdname.Append(":") ;
sdname.Append(file);
+ sdname.ReplaceAll("/","_") ;
AliPHOSSDigitizer * phossd = dynamic_cast<AliPHOSSDigitizer *>(phos->GetListOfTasks()->FindObject( sdname ));
if (!phossd) {
phossd = new AliPHOSSDigitizer() ;