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

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

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

revision 2.4 by kusanagi, Fri Dec 3 22:08:12 2004 UTC revision 2.5 by kusanagi, Thu Dec 9 13:17:26 2004 UTC
# Line 1  Line 1 
1  /** @file  /** @file
2   * $Source: /home/cvsmanager/yoda/techmodel/physics/CalorimeterReader.cpp,v $   * $Source: /home/cvsmanager/yoda/techmodel/physics/CalorimeterReader.cpp,v $
3   * $Id: CalorimeterReader.cpp,v 2.3 2004/10/18 14:28:03 kusanagi Exp $   * $Id: CalorimeterReader.cpp,v 2.4 2004/12/03 22:08:12 kusanagi Exp $
4   * $Author: kusanagi $   * $Author: kusanagi $
5   *   *
6   * Implementation of the CalorimeterReader class.   * Implementation of the CalorimeterReader class.
# Line 30  extern "C" { Line 30  extern "C" {
30      } evento_;      } evento_;
31    
32      void calunpack_(unsigned char[], long int*, int*);      void calunpack_(unsigned char[], long int*, int*);
33        //void calunpack_(char[], long int*, int*);
34      //Struct per il passaggio di dati da e verso la chiamata fortran      //Struct per il passaggio di dati da e verso la chiamata fortran
35  }  }
36    
# Line 52  CalorimeterReader::CalorimeterReader(voi Line 53  CalorimeterReader::CalorimeterReader(voi
53   */   */
54  std::string CalorimeterReader::GetVersionInfo(void) const {  std::string CalorimeterReader::GetVersionInfo(void) const {
55    return    return
56      "$Header: /home/cvsmanager/yoda/techmodel/physics/CalorimeterReader.cpp,v 2.3 2004/10/18 14:28:03 kusanagi Exp $";      "$Header: /home/cvsmanager/yoda/techmodel/physics/CalorimeterReader.cpp,v 2.4 2004/12/03 22:08:12 kusanagi Exp $";
57  }  }
58    
59  /**  /**
# Line 85  void CalorimeterReader::RunEvent(int Eve Line 86  void CalorimeterReader::RunEvent(int Eve
86      for (int i = 0; i<length; i++){      for (int i = 0; i<length; i++){
87          convdata[i] = (unsigned short)((unsigned char)subData[i]&0xFF);          convdata[i] = (unsigned short)((unsigned char)subData[i]&0xFF);
88      }*/      }*/
   
89            
90      //Call to the routine that unpack calorimeter events      //Call to the routine that unpack calorimeter events
91      calunpack_((unsigned char*)data, &length, &ERROR);      calunpack_((unsigned char*)data, &length, &ERROR);
92        //calunpack_((char*)data, &length, &ERROR);
93    
94      if (ERROR != 0) {      if (ERROR != 0) {
95          char *errmsg;          char *errmsg;

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

  ViewVC Help
Powered by ViewVC 1.1.23