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

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

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

revision 2.4 by kusanagi, Thu Jan 13 14:50:01 2005 UTC revision 3.1 by kusanagi, Sun Mar 6 04:29:24 2005 UTC
# Line 1  Line 1 
1  /** @file  /** @file
2   * $Source: /home/cvsmanager/yoda/techmodel/physics/TrackerReader.cpp,v $   * $Source: /home/cvsmanager/yoda/techmodel/physics/TrackerReader.cpp,v $
3   * $Id: TrackerReader.cpp,v 2.3 2005/01/03 14:20:13 kusanagi Exp $   * $Id: TrackerReader.cpp,v 3.0 2005/03/04 15:54:11 kusanagi Exp $
4   * $Author: kusanagi $   * $Author: kusanagi $
5   *   *
6   * Implementation of the TrackerPhysicsReader class.   * Implementation of the TrackerPhysicsReader class.
# Line 67  TrackerReader::TrackerReader(void): Line 67  TrackerReader::TrackerReader(void):
67   */   */
68  std::string TrackerReader::GetVersionInfo(void) const {  std::string TrackerReader::GetVersionInfo(void) const {
69    return    return
70      "$Header: /home/cvsmanager/yoda/techmodel/physics/TrackerReader.cpp,v 2.3 2005/01/03 14:20:13 kusanagi Exp $";      "$Header: /home/cvsmanager/yoda/techmodel/physics/TrackerReader.cpp,v 3.0 2005/03/04 15:54:11 kusanagi Exp $";
71  }  }
72    
73  /**  /**
# Line 113  void TrackerReader::RunEvent(int EventNu Line 113  void TrackerReader::RunEvent(int EventNu
113            
114      remove(oss.str().c_str());      remove(oss.str().c_str());
115    
116      /*if (ERROR != 0) {      if (ERROR != 0) {
117          char *errmsg;          char *errmsg;
118          switch (ERROR){          switch (ERROR){
119              case 1: errmsg = "---------------------";              case 1: errmsg = "GENERIC TRACKER ERROR";
120                break;
121                default: errmsg = "TRACKER ERRROR CODE UNIDENTIFIED";
122          }          }
123      } else {*/          oss.str("");
124            oss << "Fortran77 function trkeventpkt: " <<  errmsg;
125            logger->warn(oss.str().c_str());
126        }
127      //Store the unpacked data      //Store the unpacked data
128      tracker->unpackError    = ERROR;      tracker->unpackError    = ERROR;
129      tracker->good0          = level0_.good0;      tracker->good0          = level0_.good0;
# Line 160  void TrackerReader::RunEvent(int EventNu Line 165  void TrackerReader::RunEvent(int EventNu
165      memcpy(tracker->aswr,               level0_.aswr,            sizeof(tracker->aswr));                memcpy(tracker->aswr,               level0_.aswr,            sizeof(tracker->aswr));          
166            
167      tracker->TOTDATAlength = level0_.TOTDATAlength;      tracker->TOTDATAlength = level0_.TOTDATAlength;
168      tracker->TrackerData   = new TArrayI(level0_.TOTDATAlength, level0_.datatracker);      //tracker->TrackerData   = new TArrayI(level0_.TOTDATAlength, level0_.datatracker);
169        tracker->TrackerData   = TArrayI(level0_.TOTDATAlength, level0_.datatracker);
170    
171      //memcpy(tracker->datatracker, level0_.datatracker, sizeof(tracker->datatracker));                //memcpy(tracker->datatracker, level0_.datatracker, sizeof(tracker->datatracker));          
172      //}      //}
173            

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

  ViewVC Help
Powered by ViewVC 1.1.23