- Int_t nPrim = static_cast<Int_t>((gime->TreeH())->GetEntries()) ;
- // Attention nPrim is the number of primaries tracked by Geant
- // and this number could be different to the number of Primaries in TreeK;
- Int_t iprim ;
-
- for (iprim = 0 ; iprim < nPrim ; iprim ++) {
- //=========== Get the PHOS branch from Hits Tree for the Primary iprim
- gime->Track(iprim) ;
- Int_t i;
- for ( i = 0 ; i < hits->GetEntries() ; i++ ) {
- AliPHOSHit * hit = dynamic_cast<AliPHOSHit *>(hits->At(i)) ;
- // Assign primary number only if contribution is significant
-
- if( hit->GetEnergy() > fPrimThreshold)
- new((*sdigits)[nSdigits]) AliPHOSDigit(hit->GetPrimary(),hit->GetId(),
- Digitize(hit->GetEnergy()), hit->GetTime()) ;
- else
- new((*sdigits)[nSdigits]) AliPHOSDigit( -1 , hit->GetId(),
- Digitize(hit->GetEnergy()), hit->GetTime()) ;
- nSdigits++ ;
-
- }
+ for ( i = 0 ; i < hits->GetEntries() ; i++ ) {
+
+ AliPHOSHit * hit = static_cast<AliPHOSHit *>(hits->At(i)) ;
+ // Assign primary number only if contribution is significant
+
+ if( hit->GetEnergy() > fPrimThreshold)
+ new((*sdigits)[nSdigits]) AliPHOSDigit(hit->GetPrimary(),hit->GetId(),
+ hit->GetEnergy() ,hit->GetTime()) ;
+ else
+ new((*sdigits)[nSdigits]) AliPHOSDigit(-1 ,hit->GetId(),
+ hit->GetEnergy() ,hit->GetTime()) ;
+ nSdigits++ ;
+
+ }