Skip to content
Snippets Groups Projects

Fix weekly tests

Merged Florian Uhlig requested to merge f.uhlig/cbmroot:fix_weekly_ci into master
2 files
+ 37
13
Compare changes
  • Side-by-side
  • Inline

Files

+ 21
13
@@ -42,8 +42,8 @@ void kf_kfparticle(Int_t nEvents = 2, const TString setupName = "sis100_electron
// ----- In- and output file names ------------------------------------
TString mcFile = dataset + ".tra.root";
TString parFile = dataset + ".par.root";
TString rawFile = dataset + ".raw.root";
TString recFile = dataset + ".reco.root";
TString rawFile = dataset + ".event.raw.root";
TString recFile = dataset + ".rec.root";
TString outFile = dataset + ".phys.root";
TString effFile = dataset + ".Efficiency_KFParticleFinder.txt";
TString histoFile = dataset + ".KFParticleFinder.root";
@@ -51,19 +51,10 @@ void kf_kfparticle(Int_t nEvents = 2, const TString setupName = "sis100_electron
// ----- Load the geometry setup -------------------------------------
std::cout << std::endl;
TString setupFile = srcDir + "/geometry/setup/setup_" + setupName + ".C";
TString setupFunct = "setup_";
setupFunct = setupFunct + setupName + "()";
std::cout << "-I- " << macroName << ": Loading macro " << setupFile << std::endl;
gROOT->LoadMacro(setupFile);
gROOT->ProcessLine(setupFunct);
// std::cout << "-I- " << myName << ": Loading setup " << setup << std::endl;
CbmSetup* setup = CbmSetup::Instance();
setup->LoadSetup(setupName);
TString geoTag;
// You can modify the pre-defined setup by using
// CbmSetup::Instance()->RemoveModule(ESystemId) or
// CbmSetup::Instance()->SetModule(ESystemId, const char*, Bool_t) or
// CbmSetup::Instance()->SetActive(ESystemId, Bool_t)
// See the class documentation of CbmSetup.
// ------------------------------------------------------------------------
// ----- Check if the simulation and reconstruction are complited ---------
@@ -149,6 +140,23 @@ void kf_kfparticle(Int_t nEvents = 2, const TString setupName = "sis100_electron
l1->SetStsMaterialBudgetFileName(stsMatBudgetFileName.Data());
}
run->AddTask(l1);
// ----- MuCh digi parameters initialization --------------------------------------
if (setup->IsActive(ECbmModuleId::kMuch)) {
// Parameter file name
setup->GetGeoTag(ECbmModuleId::kMuch, geoTag);
Int_t muchFlag = (geoTag.Contains("mcbm") ? 1 : 0);
TString parFile = gSystem->Getenv("VMCWORKDIR");
parFile += "/parameters/much/much_" + geoTag(0, 4) + "_digi_sector.root";
// Initialization of the geometry scheme
auto muchGeoScheme = CbmMuchGeoScheme::Instance();
if (!muchGeoScheme->IsInitialized()) {
muchGeoScheme->Init(parFile, muchFlag);
}
}
// --------------------------------------------------------------------------------
// ------------------------------------------------------------------------
// ----- PID for KF Particle Finder ---------------------------------------
Loading