Skip to content
Snippets Groups Projects
Commit c6c256d7 authored by FU Chengdong's avatar FU Chengdong
Browse files

add data interface for beam pipe

parent 38fe0292
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@
DECLARE_COMPONENT(GeoSvc)
GeoSvc::GeoSvc(const std::string& name, ISvcLocator* svc)
: base_class(name, svc), m_dd4hep_geo(nullptr), m_vxdData(nullptr), m_beamData(nullptr){
: base_class(name, svc), m_dd4hep_geo(nullptr), m_vxdData(nullptr), m_beamPipeData(nullptr){
}
......@@ -53,6 +53,12 @@ GeoSvc::initialize() {
dd4hep::DetElement pipe = it->second;
//info() << " " << it->first << " " << pipe.id() << " " << pipe.path() << " " << pipe.placementPath() << endmsg;
}
try{
m_beamPipeData = sub.extension<dd4hep::rec::ConicalSupportData>();
}
catch(std::runtime_error& e){
info() << e.what() << " " << m_beamPipeData << endmsg;
}
}
if(it->first=="VXD"){
sc = convertVXD(sub);
......
......@@ -37,7 +37,7 @@ class GeoSvc: public extends<Service, IGeoSvc> {
const gear::ZPlanarParametersImpl* getVXDParameters() override {return m_vxdParameters;};
const dd4hep::rec::ZPlanarData* getVXDData() override {return m_vxdData;};
const dd4hep::rec::ConicalSupportData* getBeamPipeData() override {return m_beamData;};
const dd4hep::rec::ConicalSupportData* getBeamPipeData() override {return m_beamPipeData;};
const std::map<std::string,double>& getDetParameters(std::string name) override;
const double getDetParameter(std::string set_name, std::string par_name) override;
......@@ -55,7 +55,7 @@ class GeoSvc: public extends<Service, IGeoSvc> {
gear::ZPlanarParametersImpl* m_vxdParameters;
dd4hep::rec::ZPlanarData* m_vxdData;
dd4hep::rec::ConicalSupportData* m_beamData;
dd4hep::rec::ConicalSupportData* m_beamPipeData;
//gear::GearParametersImpl* m_vxdInfra;
std::map<std::string, std::map<std::string,double> > m_detParameters;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment