Hi all,
I have modified Emc Mapper to simplify procedure to add new versions of modules.
For example for the recent update of forward endcap geometry in PndEmcMapper the constructor should be implemented, which include only mapper for this module
PndEmcMapperGeo3RootV2::PndEmcMapperGeo3RootV2()
and then it is combined in Init() method with other module using Add() method
_instance = new PndEmcMapperGeo12Dat();
_instance->Add(new PndEmcMapperGeo3RootV2());
_instance->Add(new PndEmcMapperGeo4Root());
_instance->Add(new PndEmcMapperGeo5Root());
In addition I modified slightly PndEmc::SetGeometryVersion() method which defines available EMC geometries.
I removed some geometry options which I consider completely obsolete and made the geometry which should be used by default (
"emc_module12.dat","emc_module3_2011_new.root","emc_module4_StraightGeo24.4.root ","emc_module5_fsc.root")
as a version 1.
I.e. in simulation macro it should be called
PndEmc *Emc = new PndEmc("EMC",kTRUE);
Emc->SetGeometryVersion(1);
and corresponding EmcMapper version is 1.
The same geometry without shashlyk has version 2.
Dima