--- chewbacca/PamOffLineSW/physics/TofReader.cpp 2009/08/05 18:48:40 1.3 +++ chewbacca/PamOffLineSW/physics/TofReader.cpp 2012/03/27 08:34:08 1.4 @@ -1,7 +1,7 @@ /** @file * $Source: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/PamOffLineSW/physics/TofReader.cpp,v $ - * $Id: TofReader.cpp,v 1.2 2008-09-25 09:03:14 mocchiut Exp $ - * $Author: mocchiut $ + * $Id: TofReader.cpp,v 1.3 2009/08/05 18:48:40 pam-fi Exp $ + * $Author: pam-fi $ * * Implementation of the CalorimeterReader class. */ @@ -47,7 +47,7 @@ */ std::string TofReader::GetVersionInfo(void) const { return - "$Header: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/PamOffLineSW/physics/TofReader.cpp,v 1.2 2008-09-25 09:03:14 mocchiut Exp $"; + "$Header: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/PamOffLineSW/physics/TofReader.cpp,v 1.3 2009/08/05 18:48:40 pam-fi Exp $"; } /** @@ -85,9 +85,11 @@ //Call to the routine that unpack tof events if ( length < 500000 && length >= 0 ){ tofunpack_((unsigned char*)data, &length, &ERROR); +// printf("qui ERROR %i \n",ERROR); } else { ERROR = 1; }; +// printf("qua ERROR %i \n",ERROR); if (ERROR != 0) { const char *errmsg; @@ -110,7 +112,9 @@ // only for a variable tof->tof1int = evento_.IEV2; // memcpy(tof->tof1int, tofvar_.tof1int, sizeof(tofvar_.tof1int)); // printf("tof->tof1int[1] %i \n",tof->tof1int[0]); +// printf("quo ERROR %i \n",ERROR); tof->unpackError = (unsigned short)ERROR; +// printf("qui unpackError %i \n",tof->unpackError); // for (int i = 0; i < 6; i++){ // tof->tof1int[i] = tofvar_.tof1int[i]; @@ -148,6 +152,7 @@ tof->tdc[j][i] = tmptdc[i][j]; } } +// printf("quisx unpackError %i \n",tof->unpackError); delete [] data; }