34 if (!l)
return kFALSE;
35 if (!l->fill(
"NrOfModules", &
fNrOfModules))
return kFALSE;
37 if (!l->fill(
"Gas", gasMix, 100))
return kFALSE;
38 Text_t repo[100], pid[100];
39 if (!l->fill(
"RepoDrift", repo, 100))
return kFALSE;
40 if (!l->fill(
"RepoPid", pid, 100))
return kFALSE;
41 TFile* oldFile = gFile;
42 TDirectory* oldDir = gDirectory;
44 TDirectory* cwd(gDirectory);
46 TFile* infile = TFile::Open(Form(
"%s/%s", gSystem->Getenv(
"VMCWORKDIR"), repo));
47 if (!infile->IsOpen()) {
48 LOG(error) <<
"Missing TRD DriftMap Repository : " << repo;
54 LOG(debug) <<
"TRD DriftMap Repository : " << gFile->GetName();
55 LOG(debug) <<
"TRD PID Repository : " << pid;
59 if (!l->fill(
"ModuleIdArray", &moduleId))
return kFALSE;
62 TObjArray* so = sgas.Tokenize(
"_");
63 Int_t pgas = ((TObjString*) (*so)[1])->String().Atoi();
67 if (!l->fill(Form(
"%d", moduleId[i]), &value))
return kFALSE;
69 Form(
"Module/%d/Ua/%d/Ud/%d/Gas/%s", moduleId[i], value[0], value[1], ((TObjString*) (*so)[0])->GetName()));
71 ->SetDriftMap(
GetDriftMap(((TObjString*) (*so)[0])->GetName(), value[0], value[1]), cwd);