// 2. gets the histogram title
Text_t title[100] ;
- sprintf(title,"Energy=%1.2f GeV ; Digits ; %d ", GetEnergy(), GetDigitsMultiplicity()) ;
+ snprintf(title,100,"Energy=%1.2f GeV ; Digits ; %d ", GetEnergy(), GetDigitsMultiplicity()) ;
if (!histo) {
delete histo ;
if(emax<fEnergyList[id])
imaxDigit=id ;
}
- digit = dynamic_cast<AliPHOSDigit *>(digits->At( fDigitsList[imaxDigit] )) ;
+ digit = static_cast<AliPHOSDigit *>(digits->At( fDigitsList[imaxDigit] )) ;
Int_t nprimaries = digit->GetNprimary() ;
if ( nprimaries > fMaxTrack ) {
fMulTrack = - 1 ;
for (Int_t index = 0 ; index < GetDigitsMultiplicity() ; index++ ) { // all digits
if(index==imaxDigit) //already in
continue ;
- digit = dynamic_cast<AliPHOSDigit *>(digits->At( fDigitsList[index] )) ;
+ digit = static_cast<AliPHOSDigit *>(digits->At( fDigitsList[index] )) ;
nprimaries = digit->GetNprimary() ;
for(Int_t ipr=0; ipr<nprimaries; ipr++){
Int_t iprimary = digit->GetPrimary(ipr+1) ;