/[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 3.0 by kusanagi, Fri Mar 4 15:54:11 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 2.5 2005/02/18 13:17:06 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          }          }

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

  ViewVC Help
Powered by ViewVC 1.1.23