/[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.4 by kusanagi, Fri Feb 11 16:40:43 2005 UTC revision 4.0 by kusanagi, Sun Mar 6 04:33:02 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 2.3 2005/01/13 14:50:01 kusanagi Exp $";      "$Header: /home/cvsmanager/yoda/techmodel/physics/NeutronDetectorReader.cpp,v 3.1 2005/03/06 04:29:24 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->upperTrig   = (((UINT8)data[lenght-offset])>>4);              rec->trigPhysics = (UINT8)data[lenght-offset];
             rec->bottomTrig  = (((UINT8)data[lenght-offset])&0x0F);  
69              rec->upperBack   = (((UINT8)data[lenght-offset+1])>>4);              rec->upperBack   = (((UINT8)data[lenght-offset+1])>>4);
70              rec->bottomBack  = (((UINT8)data[lenght-offset+1])&0x0F);              rec->bottomBack  = (((UINT8)data[lenght-offset+1])&0x0F);
71          }          }
# Line 74  void NeutronDetectorReader::RunEvent(int Line 73  void NeutronDetectorReader::RunEvent(int
73      } else {      } else {
74          neutronEvent->unpackError = 1;          neutronEvent->unpackError = 1;
75      }      }
76      delete[] data;      //delete[] data;
77  }  }
78    
79    

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

  ViewVC Help
Powered by ViewVC 1.1.23