[FATAL] Geometry is not loaded


(Zhaozhong Shi) #1

Hi all,

I tried to implement my own module (a code to generate hit maps and occupancies plots) to the digi workflow file: SimpleDigitizerWorkflow.cxx by adding specs.emplace_back(o2::ITS::getHisAnalyzerSpec()); to the ITS part of the block:

if (isEnabled(o2::detectors::DetID::ITS)) {
detList.emplace_back(o2::detectors::DetID::ITS);
// connect the ITS digitization
specs.emplace_back(o2::ITSMFT::getITSDigitizerSpec(fanoutsize++));
specs.emplace_back(o2::ITSMFT::getITSDigitWriterSpec());
specs.emplace_back(o2::ITS::getHisAnalyzerSpec());
}

It runs fine until I run my code getHisAnalyzerSpec(), it return me the error

[FATAL] Geometry is not loaded

Do you know what can be the problem here? Thank you very much!


(Barthelemy Von Haller) #2

Hi Zhaozhong Shi,
I presume that it is something inside your HisAnalyzerSpec.
@swenzel do you have an idea ?
@eulisse I think that we should have a very simple tutorial to help people approach the DPL.
Cheers,


(Zhaozhong Shi) #3

It works now. I just added a line:

o2::Base::GeometryManager::loadGeometry();

Thank you very much!


(Zhaozhong Shi) #4

Hi Barth,

It works now! I just added

o2::Base::GeometryManager::loadGeometry();

It works pretty well now! By the way, I found that line from the github!

Sincerely,
Zhaozhong Shi