/[PAMELA software]/chewbacca/PamOffLineSW/physics/TofReader.cpp
ViewVC logotype

Diff of /chewbacca/PamOffLineSW/physics/TofReader.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by pam-fi, Wed Aug 5 18:48:40 2009 UTC revision 1.4 by mocchiut, Tue Mar 27 08:34:08 2012 UTC
# Line 1  Line 1 
1  /** @file  /** @file
2   * $Source: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/PamOffLineSW/physics/TofReader.cpp,v $   * $Source: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/PamOffLineSW/physics/TofReader.cpp,v $
3   * $Id: TofReader.cpp,v 1.2 2008-09-25 09:03:14 mocchiut Exp $   * $Id: TofReader.cpp,v 1.3 2009/08/05 18:48:40 pam-fi Exp $
4   * $Author: mocchiut $   * $Author: pam-fi $
5   *   *
6   * Implementation of the CalorimeterReader class.   * Implementation of the CalorimeterReader class.
7   */   */
# Line 47  TofReader::TofReader(void): Line 47  TofReader::TofReader(void):
47   */   */
48  std::string TofReader::GetVersionInfo(void) const {  std::string TofReader::GetVersionInfo(void) const {
49    return    return
50      "$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 $";
51  }  }
52    
53  /**  /**
# Line 85  void TofReader::RunEvent(int EventNumber Line 85  void TofReader::RunEvent(int EventNumber
85      //Call to the routine that unpack tof events      //Call to the routine that unpack tof events
86      if ( length < 500000 && length >= 0 ){      if ( length < 500000 && length >= 0 ){
87        tofunpack_((unsigned char*)data, &length, &ERROR);        tofunpack_((unsigned char*)data, &length, &ERROR);
88    //      printf("qui ERROR %i \n",ERROR);
89      } else {      } else {
90        ERROR = 1;        ERROR = 1;
91      };      };
92    //      printf("qua ERROR %i \n",ERROR);
93    
94      if (ERROR != 0) {      if (ERROR != 0) {
95          const char *errmsg;          const char *errmsg;
# Line 110  void TofReader::RunEvent(int EventNumber Line 112  void TofReader::RunEvent(int EventNumber
112      // only for a variable    tof->tof1int   = evento_.IEV2;      // only for a variable    tof->tof1int   = evento_.IEV2;
113      //        memcpy(tof->tof1int, tofvar_.tof1int, sizeof(tofvar_.tof1int));      //        memcpy(tof->tof1int, tofvar_.tof1int, sizeof(tofvar_.tof1int));
114      //  printf("tof->tof1int[1] %i \n",tof->tof1int[0]);      //  printf("tof->tof1int[1] %i \n",tof->tof1int[0]);
115    //      printf("quo ERROR %i \n",ERROR);
116      tof->unpackError = (unsigned short)ERROR;      tof->unpackError = (unsigned short)ERROR;
117    //      printf("qui unpackError %i \n",tof->unpackError);
118    
119      // for (int i = 0; i < 6; i++){      // for (int i = 0; i < 6; i++){
120      //  tof->tof1int[i] = tofvar_.tof1int[i];      //  tof->tof1int[i] = tofvar_.tof1int[i];
# Line 148  void TofReader::RunEvent(int EventNumber Line 152  void TofReader::RunEvent(int EventNumber
152                  tof->tdc[j][i] = tmptdc[i][j];                  tof->tdc[j][i] = tmptdc[i][j];
153              }              }
154          }          }
155    //      printf("quisx unpackError %i \n",tof->unpackError);
156    
157      delete [] data;      delete [] data;
158  }  }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.23