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 1.6 2004/09/21 20:24:53 kusanagi Exp $ |
* $Id: TrackerReader.cpp,v 2.0 2004/09/21 20:51:22 kusanagi Exp $ |
4 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
5 |
* |
* |
6 |
* Implementation of the TrackerPhysicsReader class. |
* Implementation of the TrackerPhysicsReader class. |
43 |
int TOTDATAlength; |
int TOTDATAlength; |
44 |
int datatracker[49152]; |
int datatracker[49152]; |
45 |
} level0_; |
} level0_; |
|
|
|
46 |
#include <dirent.h> |
#include <dirent.h> |
47 |
} |
} |
48 |
|
|
65 |
*/ |
*/ |
66 |
std::string TrackerReader::GetVersionInfo(void) const { |
std::string TrackerReader::GetVersionInfo(void) const { |
67 |
return |
return |
68 |
"$Header: /home/cvsmanager/yoda/techmodel/physics/TrackerReader.cpp,v 1.6 2004/09/21 20:24:53 kusanagi Exp $"; |
"$Header: /home/cvsmanager/yoda/techmodel/physics/TrackerReader.cpp,v 2.0 2004/09/21 20:51:22 kusanagi Exp $"; |
69 |
} |
} |
70 |
|
|
71 |
/** |
/** |
120 |
memcpy(tracker->nclust, level0_.nclust, sizeof(tracker->nclust)); |
memcpy(tracker->nclust, level0_.nclust, sizeof(tracker->nclust)); |
121 |
memcpy(tracker->cutc, level0_.cutc, sizeof(tracker->cutc)); |
memcpy(tracker->cutc, level0_.cutc, sizeof(tracker->cutc)); |
122 |
memcpy(tracker->cutcl, level0_.cutcl, sizeof(tracker->cutcl)); |
memcpy(tracker->cutcl, level0_.cutcl, sizeof(tracker->cutcl)); |
123 |
|
// memcpy(tracker->addrcluster, (level0_.addrcluster), sizeof(tracker->addrcluster)); |
124 |
|
// memcpy(tracker->signcluster, (level0_.signcluster), sizeof(tracker->signcluster)); |
125 |
//--------have to invert array because of FORTRAN <-> C different management of the indexes |
//--------have to invert array because of FORTRAN <-> C different management of the indexes |
126 |
int tempAddr[3][12]; |
int tempAddr[3][12]; |
127 |
int tempSign[3][12]; |
int tempSign[3][12]; |
128 |
memcpy(tempAddr, (level0_.addrcluster), sizeof(tempAddr)); |
memcpy(tempAddr, (level0_.addrcluster), sizeof(tempAddr)); |
129 |
memcpy(tempSign, (level0_.signcluster), sizeof(tempSign)); |
memcpy(tempSign, (level0_.signcluster), sizeof(tempSign)); |
130 |
for (int j = 0; j < 12; j++){ |
for (int j = 0; j < 11; j++){ |
131 |
for (int i = 0; i < 3; i++){ |
for (int i = 0; i < 2; i++){ |
132 |
tracker->addrcluster[j][i] = tempAddr[i][j]; |
tracker->addrcluster[j][i] = tempAddr[i][j]; |
133 |
tracker->signcluster[j][i] = tempSign[i][j]; |
tracker->signcluster[j][i] = tempSign[i][j]; |
134 |
} |
} |