! Deprecated due to a problem of duplication of all raw data for each prediction - useless and time consuming =VT:2/08/2017
1255{
1256
1258
1259 TString rstr;
1262 TTree *tsbt = rtsb.
InitSBtree(rstr.Data(),
"READ");
1263 int nsbt = (int) tsbt->GetEntries();
1264
1265 int id_basetrack=1;
1266 for (int ipath=0;ipath<nsbt;ipath++)
1267 {
1268
1271 if(!id_path) {
1274 }
1275
1276
1277
1278
1279
1280
1281 ULong64_t id_pred_zone =
LoadZone( rtsb.
ePred,
id.ePlate, operation,
1282 id_path, "'Local RawdataPath'");
1283
1284
1291
1292 Long_t id_view_up = 0;
1293 Long_t id_view_down = 0;
1294 Long_t id_up = 0;
1295 Long_t id_down = 0;
1297 {
1300 id_down = id_view_down*100000 + 10000*1 + rtsb.
eS1.
Vid(1)%100000;
1301 id_up = id_view_up *100000 + 10000*2 + rtsb.
eS2.
Vid(1)%100000;
1302 Log(2,
"EdbScan2DB::LoadSBData",
"Add BT (with top mt and bottom mt, nvpa=%d) id_down=%ld id_up=%ld",nvpa,id_down,id_up);
1303 }
1305 {
1308 id_down = id_view_down*100000 + 10000*1 + rtsb.
eS1.
Vid(1)%100000;
1309 id_up = id_view_up *100000 + 10000*2 + rtsb.
eS1.
Vid(1)%100000 + 20000;
1310
1313
1314
1316 "%s, %s ,%d, %d, %d, %2f, %2f, %2f, %2f, %2f, %2f, %2f",
1319 2, id_up, id_view_up,
1322 0, 0, -1
1323 ));
1324 Log(2,
"EdbScan2DB::LoadSBData",
"Fake MT bottom added (and BT with MT top real and MT bottom fake)");
1325 }
1327 {
1330 id_down = id_view_down*100000 + 10000*1 + rtsb.
eS2.
Vid(1)%100000 + 20000;
1331 id_up = id_view_up *100000 + 10000*2 + rtsb.
eS2.
Vid(1)%100000;
1332
1335
1336
1338 "%s, %s ,%d, %d, %d, %2f, %2f, %2f, %2f, %2f, %2f, %2f",
1341 1, id_down, id_view_down,
1346 0, 0, -1
1347 ));
1348 Log(2,
"EdbScan2DB::LoadSBData",
"Fake MT top added (and BT with MT bottom real and MT top fake)");
1349 }
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1370 {
1372 "%s, %s ,%d, %2f, %2f, %2f, %2f, %2f, %2f, %2f, %d, %ld, %d, %ld",
1375 id_basetrack,
1379 1, id_down, 2, id_up
1380 ));
1382 "%s, %s ,%d, %f, %f, %f, %f, NULL, NULL, NULL, NULL, NULL, %s, %s,'N', %d",
1385 id.ePlate,
1392 0
1393 ));
1394 id_basetrack++;
1395 }
1396 else
1397 {
1399 "%s, %s ,%d, %f, %f, %f, %f, NULL, NULL, NULL, NULL, NULL, %s, %s,'N', %d",
1402 id.ePlate,
1409 0
1410 ));
1411 }
1412 }
1414}
brick dz
Definition: RecDispMC.C:107
EdbRun * GetRun() const
Definition: EdbRunAccess.h:111
Int_t eStatus
-1-nothing, 0-bt, 1-mt1, 2-mt2
Definition: EdbRunTracking.h:54
Int_t eIdf[4]
Definition: EdbRunTracking.h:60
EdbSegP eS1
Definition: EdbRunTracking.h:52
EdbSegP eS2
found segments
Definition: EdbRunTracking.h:52
EdbView * GetEntry(int entry, int ih=1, int icl=0, int iseg=1, int itr=0, int ifr=0)
Definition: EdbRun.cxx:462
Int_t Aid(int i) const
Definition: EdbSegP.h:169
Int_t Vid(int i) const
Definition: EdbSegP.h:168
Base scanning data object: entry into Run tree.
Definition: EdbView.h:134
EdbViewHeader * GetHeader() const
Definition: EdbView.h:163
EdbRun * run
Definition: check_raw.C:38