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

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

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

revision 1.1.1.1 by mocchiut, Tue Sep 23 07:20:22 2008 UTC revision 1.2 by mocchiut, Fri Dec 12 15:58:49 2008 UTC
# Line 19  NeutronDetectorReader::NeutronDetectorRe Line 19  NeutronDetectorReader::NeutronDetectorRe
19   */   */
20  std::string NeutronDetectorReader::GetVersionInfo(void) const {  std::string NeutronDetectorReader::GetVersionInfo(void) const {
21    return    return
22      "$Header: /repository/PamOffLineSW/physics/NeutronDetectorReader.cpp,v 1.3 2008-03-05 11:37:37 messineo Exp $";      "$Header: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/PamOffLineSW/physics/NeutronDetectorReader.cpp,v 1.1.1.1 2008/09/23 07:20:22 mocchiut Exp $";
23  }  }
24    
25  /**  /**
# Line 50  void NeutronDetectorReader::RunEvent(int Line 50  void NeutronDetectorReader::RunEvent(int
50   */   */
51  void NeutronDetectorReader::RunEvent(int EventNumber, const char subData[], long int length) {  void NeutronDetectorReader::RunEvent(int EventNumber, const char subData[], long int length) {
52     NeutronRecord *rec;     NeutronRecord *rec;
53     const int lenNeutronData = 12;      const int lenNeutronData = 12;
54     //char *data = new char[lenght];     //char *data = new char[lenght];
55     //memcpy(data, subData, lenght);     //memcpy(data, subData, lenght);
56     neutronEvent->Records->Clear();     neutronEvent->Records->Clear();
# Line 63  void NeutronDetectorReader::RunEvent(int Line 63  void NeutronDetectorReader::RunEvent(int
63              rec->trigPhysics = (UINT8)subData[length-offset];              rec->trigPhysics = (UINT8)subData[length-offset];
64              rec->upperBack   = (((UINT8)subData[length-offset+1])>>4);              rec->upperBack   = (((UINT8)subData[length-offset+1])>>4);
65              rec->bottomBack  = (((UINT8)subData[length-offset+1])&0x0F);              rec->bottomBack  = (((UINT8)subData[length-offset+1])&0x0F);
66          }         }
67          neutronEvent->unpackError = 0;          neutronEvent->unpackError = 0;
68      } else {      } else {
69          neutronEvent->unpackError = 1;          neutronEvent->unpackError = 1;

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23