#include "AliEMCALDigit.h"
#include "AliEMCALGeometry.h"
+#include "AliEMCALGetter.h"
ClassImp(AliEMCALDigit)
fIndexInList = -1 ;
fNprimary = 0 ;
- fNMaxPrimary = 21 ;
+ fNMaxPrimary = 5 ;
fNiparent = 0 ;
fNMaxiparent = fNMaxPrimary*10;
+ fPrimary = new Int_t[fNMaxPrimary] ;
+ fIparent = new Int_t[fNMaxiparent] ;
}
//____________________________________________________________________________
{
// ctor with all data
- fNMaxPrimary = 21 ;
+ fNMaxPrimary = 5 ;
fNMaxiparent = fNMaxPrimary*10;
+ fPrimary = new Int_t[fNMaxPrimary] ;
+ fIparent = new Int_t[fNMaxiparent] ;
fAmp = DigEnergy ;
fTime = time ;
fId = id ;
fNMaxPrimary = digit.fNMaxPrimary ;
fNMaxiparent = digit.fNMaxiparent ;
+ fPrimary = new Int_t[fNMaxPrimary] ;
+ fIparent = new Int_t[fNMaxiparent] ;
Int_t i ;
for ( i = 0; i < fNMaxPrimary ; i++)
fPrimary[i] = digit.fPrimary[i] ;
AliEMCALDigit::~AliEMCALDigit()
{
// Delete array of primiries if any
-
+ delete [] fPrimary ;
+ delete [] fIparent ;
}
//____________________________________________________________________________
}
+//______________________________________________________________________
+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){