59 if (isspace(c) == 0) {
70 static int nEvent = 1;
71 static ifstream fadata;
72 static char fname[100];
75 strcpy(fname, work_dir);
76 strcat(fname,
"data_algo.txt");
79 if (!fadata.is_open())
return 0;
81 if (nEvent <= maxNEvent) {
99 cout <<
"-E- CbmL1: Can't read event number " << nEvent <<
" from file "
106 for (
int i = 0;
i < n;
i++) {
108 unsigned short int element2 = 0;
110 vStsStrips.push_back(
L1Strip(element, element2));
115 cout <<
"vStsStrips[" << n <<
"]"
116 <<
" have been read." << endl;
120 for (
int i = 0;
i < n;
i++) {
122 unsigned short int element2 = 0;
124 vStsStripsB.push_back(
L1Strip(element, element2));
129 cout <<
"vStsStripsB[" << n <<
"]"
130 <<
" have been read." << endl;
134 for (
int i = 0;
i < n;
i++) {
137 vStsZPos.push_back(element);
140 cout <<
"vStsZPos[" << n <<
"]"
141 <<
" have been read." << endl;
145 for (
int i = 0;
i < n;
i++) {
148 vSFlag.push_back(
static_cast<unsigned char>(element));
151 cout <<
"vSFlag[" << n <<
"]"
152 <<
" have been read." << endl;
156 for (
int i = 0;
i < n;
i++) {
159 vSFlagB.push_back(
static_cast<unsigned char>(element));
162 cout <<
"vSFlagB[" << n <<
"]"
163 <<
" have been read." << endl;
172 for (
int i = 0;
i < n;
i++) {
174 fadata >> element_f >> element_b >> element_n >> element_iz
176 element.
f =
static_cast<THitI>(element_f);
177 element.
b =
static_cast<THitI>(element_b);
178 #ifdef USE_EVENT_NUMBER
179 element.n =
static_cast<unsigned short int>(element_n);
181 element.
iz =
static_cast<TZPosI>(element_iz);
182 element.
t_reco = element_time;
183 vStsHits.push_back(element);
186 cout <<
"vStsHits[" << n <<
"]"
187 <<
" have been read." << endl;
190 for (
int i = 0;
i < n;
i++) {
198 for (
int i = 0;
i < n;
i++) {
207 cout <<
"-I- CbmL1: CATrackFinder data for event " << nEvent
208 <<
" has been read from file " << fname <<
" successfully." << endl;