4304 {
4305 if (
gEDBDEBUGLEVEL >2) cout <<
"EdbShowerAlgIDSimple::Update Does the following things in the order:" << endl;
4306 if (
gEDBDEBUGLEVEL >2) cout <<
"EdbShowerAlgIDSimple::Update * According to the switch: set the right ANN of the Array as generic one." << endl;
4307 if (
gEDBDEBUGLEVEL >2) cout <<
"EdbShowerAlgIDSimple::Update * According to the switch: load the right weightfile as generic one." << endl;
4308 if (
gEDBDEBUGLEVEL >2) cout <<
"EdbShowerAlgIDSimple::Update * According to the switch: set the right correction parameters...." << endl;
4309
4310 TString basicstring = TString(gSystem->ExpandPathName("$FEDRA_ROOT"));
4311 TString addstring = ("/src/libShower/weights/ID/");
4312
4313
4315 addstring+="volumeSpec_CP/";
4317 }
4318 else {
4319 addstring+="volumeSpec_LT/";
4321 cout << "EdbShowerAlgIDSimple::Update WARNING::eSpecificationTypeString[0]=LT NOT YET SUPPORTED!" << endl;
4322 }
4323
4324
4325
4327 addstring+="separationSpec_pion_vs_gamma/";
4329 }
4331 addstring+="separationSpec_electron_vs_pion/";
4333 }
4334 else {
4335 addstring+="separationSpec_gamma_vs_electron/";
4337 }
4338
4339
4341 addstring+="efficiencySpec_MiddleVar/";
4343 }
4345 addstring+="efficiencySpec_LowEff/";
4347 }
4349 addstring+="efficiencySpec_MiddleFix/";
4351 }
4353 addstring+="efficiencySpec_All/";
4355 }
4356 else {
4357 addstring+="efficiencySpec_Neuch/";
4359 }
4360
4361
4362
4363
4364
4365
4366
4367
4369 addstring+="showerInfoSpec_SHAPEWOPL12/";
4371 }
4373 addstring+="showerInfoSpec_SHAPEWOPL1/";
4375 }
4377 addstring+="showerInfoSpec_ANDVTXDELTAZ/";
4379 }
4381 addstring+="showerInfoSpec_ANDVTXIP/";
4383 }
4384 else {
4385 addstring+="showerInfoSpec_SHAPEONLY/";
4387 }
4388
4389 if (
gEDBDEBUGLEVEL >2) cout <<
"EdbShowerAlgIDSimple::Update " << addstring << endl;
4390
4393 }
4394
4395 if (
gEDBDEBUGLEVEL >2) cout <<
"EdbShowerAlgIDSimple::Update Now load the different ANN weightstrings:" << endl;
4396
4397
4398
4399
4400 for (int ll=0; ll<15; ll++) {
4401 TString mkdirstring=basicstring+addstring;
4402 TString weigthstring=basicstring+addstring+TString(Form(
"weights_Npl_%d.txt",
ANN_nPlates_ARRAY[ll]));
4403 if (
gEDBDEBUGLEVEL >1) cout <<
"weigthstring = " << weigthstring << endl;
4406 Float_t p0,p1;
4407 p0=0.0;
4408 p1=1.0;
4411 }
4412 if (
gEDBDEBUGLEVEL >2) cout <<
"EdbShowerAlgIDSimple::Update * According to the switch: set the right ANN of the Array as generic one." << endl;
4413
4414
4415
4416 int check_Npl_index=0;
4418
4422
4423
4424
4426 addstring+="cutType/";
4428 }
4430 addstring+="cutType/";
4432 }
4433 else {
4434 addstring+="cutType/";
4436 }
4437
4438 if (
gEDBDEBUGLEVEL >2) cout <<
"EdbShowerAlgIDSimple:: The path for the ID weightfile is. " << endl;
4440
4441
4442
4444
4445
4446
4447
4449
4450 if (
gEDBDEBUGLEVEL >2) cout <<
"EdbShowerAlgIDSimple::Update WARNING:: Weightfiles for _LT_ not produced yet!...." << endl;
4451 cout << "EdbShowerAlgIDSimple::Update...done." << endl;
4452 return;
4453}