/[PAMELA software]/yoda/techmodel/physics/NeutronDetectorReader.cpp
ViewVC logotype

Diff of /yoda/techmodel/physics/NeutronDetectorReader.cpp

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

revision 2.3.2.1 by kusanagi, Sat Mar 5 15:54:21 2005 UTC revision 2.4 by kusanagi, Fri Feb 11 16:40:43 2005 UTC
# Line 22  NeutronDetectorReader::NeutronDetectorRe Line 22  NeutronDetectorReader::NeutronDetectorRe
22   */   */
23  std::string NeutronDetectorReader::GetVersionInfo(void) const {  std::string NeutronDetectorReader::GetVersionInfo(void) const {
24    return    return
25      "$Header: /home/cvsmanager/yoda/techmodel/physics/NeutronDetectorReader.cpp,v 3.0 2005/03/04 15:54:11 kusanagi Exp $";      "$Header: /home/cvsmanager/yoda/techmodel/physics/NeutronDetectorReader.cpp,v 2.3 2005/01/13 14:50:01 kusanagi Exp $";
26  }  }
27    
28  /**  /**
# Line 65  void NeutronDetectorReader::RunEvent(int Line 65  void NeutronDetectorReader::RunEvent(int
65          for (int i = 0; i < 3; i++){          for (int i = 0; i < 3; i++){
66              offset = lenNeutronData - 4*i;              offset = lenNeutronData - 4*i;
67              rec = new(recs[i]) NeutronRecord(); //aggiungo un nuovo NeutronRecord all'evento              rec = new(recs[i]) NeutronRecord(); //aggiungo un nuovo NeutronRecord all'evento
68              rec->trigPhysics = (UINT8)data[lenght-offset];              rec->upperTrig   = (((UINT8)data[lenght-offset])>>4);
69                rec->bottomTrig  = (((UINT8)data[lenght-offset])&0x0F);
70              rec->upperBack   = (((UINT8)data[lenght-offset+1])>>4);              rec->upperBack   = (((UINT8)data[lenght-offset+1])>>4);
71              rec->bottomBack  = (((UINT8)data[lenght-offset+1])&0x0F);              rec->bottomBack  = (((UINT8)data[lenght-offset+1])&0x0F);
72          }          }
# Line 73  void NeutronDetectorReader::RunEvent(int Line 74  void NeutronDetectorReader::RunEvent(int
74      } else {      } else {
75          neutronEvent->unpackError = 1;          neutronEvent->unpackError = 1;
76      }      }
77      delete [] data;      delete[] data;
78  }  }
79    
80    

Legend:
Removed from v.2.3.2.1  
changed lines
  Added in v.2.4

  ViewVC Help
Powered by ViewVC 1.1.23