/[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.5 by kusanagi, Mon Jan 17 08:59:11 2005 UTC revision 4.4 by kusanagi, Sat May 28 10:44:13 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.4 2005/01/13 14:50:01 kusanagi Exp $   * $Id: TrackerReader.cpp,v 4.0 2005/03/06 04:33:02 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.4 2005/01/13 14:50:01 kusanagi Exp $";      "$Header: /home/cvsmanager/yoda/techmodel/physics/TrackerReader.cpp,v 4.0 2005/03/06 04:33:02 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      //}      //}

Legend:
Removed from v.2.5  
changed lines
  Added in v.4.4

  ViewVC Help
Powered by ViewVC 1.1.23