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. |
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 |
|
|
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 |
/** |
/** |
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; |