]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALDigit.cxx
Updating geometry for new scintillaton modules
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALDigit.cxx
index af9fae846fbdb54463edc8c231887ad126133ece..a0d45bbab00af37148d4a10e5ab1ec7e95952db1 100644 (file)
@@ -172,7 +172,7 @@ Int_t AliEMCALDigit::GetPrimary(Int_t index) const
 {
   // retrieves the primary particle number given its index in the list 
   Int_t rv = -1 ;
-  if ( index <= fNprimary && index > 0){
+  if ( (index <= fNprimary) && (index > 0)){
     rv = fPrimary[index-1] ;
   } 
 
@@ -195,7 +195,7 @@ Int_t AliEMCALDigit::GetIparent(Int_t index) const
 
 //____________________________________________________________________________
 void AliEMCALDigit::ShiftPrimary(Int_t shift){
-  //shifts primary nimber to BIG offset, to separate primary in different TreeK
+  //shifts primary number to BIG offset, to separate primary in different TreeK
   Int_t index  ;
   for(index = 0; index <fNprimary; index++ ){
     fPrimary[index] = fPrimary[index]+ shift * 10000000   ;}