// --- Standard library ---
-#include <iostream.h>
+#include <Riostream.h>
// --- AliRoot header files ---
{
// default ctor
- fIndexInList = -1 ;
+ fIndexInList = 0 ;
fNprimary = 0 ;
- fNMaxPrimary = 20 ;
+ fNMaxPrimary = 0 ;
fNiparent = 0 ;
- fNMaxiparent = 40; //fNMaxPrimary*10;
- fPrimary = new Int_t[fNMaxPrimary] ;
- fIparent = new Int_t[fNMaxiparent] ;
+
+ fNMaxiparent = 0;
+ fPrimary = 0 ;
+ fIparent = 0 ;
+ fMaxIter = 0;
}
//____________________________________________________________________________
{
// ctor with all data
- fNMaxPrimary = 20 ;
- fNMaxiparent = 40 ; //fNMaxPrimary*10;
+ fNMaxPrimary = 25 ;
+ fNMaxiparent = 150 ;
fPrimary = new Int_t[fNMaxPrimary] ;
fIparent = new Int_t[fNMaxiparent] ;
fAmp = DigEnergy ;
fTime = time ;
fId = id ;
fIndexInList = index ;
+ fMaxIter = 5;
if( primary != -1){
fNprimary = 1 ;
fPrimary[0] = primary ;
fAmp = digit.fAmp ;
fTime = digit.fTime ;
fId = digit.fId;
+ fMaxIter = digit.fMaxIter;
fIndexInList = digit.fIndexInList ;
fNprimary = digit.fNprimary ;
fNiparent = digit.fNiparent ;
}
-//______________________________________________________________________
-const Bool_t AliEMCALDigit::IsInPreShower() const
-{
- Bool_t rv = kFALSE ;
- const AliEMCALGeometry * geom = AliEMCALGetter::GetInstance()->EMCALGeometry() ;
- if( GetId() > (geom->GetNZ() * geom->GetNPhi() ))
- rv = kTRUE;
- return rv;
-}
-
//____________________________________________________________________________
void AliEMCALDigit::ShiftPrimary(Int_t shift){
//shifts primary nimber to BIG offset, to separate primary in different TreeK
fNprimary++ ;
max1++;}
if(fNprimary==fNMaxPrimary) {
- Int_t printindex ;
- for (printindex = 0 ; printindex < max1 ; printindex++)
- cout << "printindex = " << printindex << " primary = " << fPrimary[printindex];
- cout <<endl;
- cout << "AliEMCALDigit >> Increase NMaxPrimary "<< endl ;
- return *this ;
+
+ TString mess = " NMaxPrimary = " ;
+ mess += fNMaxPrimary ;
+ mess += " is too small" ;
+ Fatal("AliEMCALDigit::Operator+ -->" , mess.Data()) ;
+
}
}
}
fNiparent++ ;
max2++;}
if(fNiparent==fNMaxiparent) {
- Int_t printindex ;
- for (printindex = 0 ; printindex < max2 ; printindex++)
- cout << "printindex = " << printindex << " parent = " << fIparent[printindex];
- cout <<endl;
- cout << "AliEMCALDigit >> Increase NMaxiparent "<< endl ;
- return *this ;
+
+ TString mess = " NMaxiparent = " ;
+ mess += fNMaxiparent ;
+ mess += " is too small" ;
+ Fatal("AliEMCALDigit::Operator+ -->", mess.Data()) ;
+
}
}
}