| 151 | 
   if ( debug ) printf(" if ( !usetrack ) return: usetrack %i ntr %i \n",usetrack,ntr); | 
   if ( debug ) printf(" if ( !usetrack ) return: usetrack %i ntr %i \n",usetrack,ntr); | 
| 152 | 
   //  | 
   //  | 
| 153 | 
   // | 
   // | 
| 154 | 
   if ( !usetrack ) return; | 
   //  if ( !usetrack ) return; | 
| 155 | 
   // | 
   // | 
| 156 | 
   PamTrack *ptrack = 0; | 
   PamTrack *ptrack = 0; | 
| 157 | 
   CaloTrkVar *track = 0; | 
   CaloTrkVar *track = 0; | 
 | 
   if ( ntr >= 0 ){ | 
  | 
 | 
     ptrack = L2->GetTrack(ntr); | 
  | 
 | 
     if ( ptrack ) track = ptrack->GetCaloTrack(); | 
  | 
 | 
   } else { | 
  | 
 | 
     track = L2->GetCaloStoredTrack(ntr); | 
  | 
 | 
   }; | 
  | 
| 158 | 
   // | 
   // | 
| 159 | 
   if ( !track && ntr >= 0 ){ | 
   if ( usetrack ){ | 
| 160 | 
     printf(" ERROR: cannot find any track!\n"); | 
     if ( ntr >= 0 ){ | 
| 161 | 
     printf(" ERROR: CaloNuclei variables not completely filled \n"); | 
       ptrack = L2->GetTrack(ntr); | 
| 162 | 
     return;    | 
       if ( ptrack ) track = ptrack->GetCaloTrack(); | 
| 163 | 
  | 
     } else { | 
| 164 | 
  | 
       track = L2->GetCaloStoredTrack(ntr); | 
| 165 | 
  | 
     }; | 
| 166 | 
  | 
     // | 
| 167 | 
  | 
     if ( !track && ntr >= 0 ){ | 
| 168 | 
  | 
       printf(" ERROR: cannot find any track!\n"); | 
| 169 | 
  | 
       printf(" ERROR: CaloNuclei variables not completely filled \n"); | 
| 170 | 
  | 
       return;    | 
| 171 | 
  | 
     }; | 
| 172 | 
  | 
   } else { | 
| 173 | 
  | 
     if ( ntr >= 0 ){ | 
| 174 | 
  | 
       if ( debug ) printf(" ERROR: you asked not to use a track but you are looking for track number %i !\n",ntr); | 
| 175 | 
  | 
       if ( debug ) printf(" ERROR: CaloNuclei variables not completely filled \n"); | 
| 176 | 
  | 
       return;        | 
| 177 | 
  | 
     }; | 
| 178 | 
   }; | 
   }; | 
| 179 | 
   // | 
   // | 
| 180 | 
   //  Float_t defethr = 6. * 0.90; | 
   //  Float_t defethr = 6. * 0.90; |