Skip to content

Commit

Permalink
Revert changes to SiliconTracking_MarlinTrk from a45db09; removed CLD…
Browse files Browse the repository at this point in the history
… detector names as v11 reco uses ConformalTracking now
  • Loading branch information
Victor-Schwan committed Aug 28, 2024
1 parent ff351f7 commit 920ce80
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions source/Refitting/src/SiliconTracking_MarlinTrk.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3154,30 +3154,31 @@ void SiliconTracking_MarlinTrk::setupGeom(const dd4hep::Detector& theDetector) {
theDetector.field().magneticField({0, 0, 0}, bFieldVec); // get the magnetic field vector from DD4hep
_bField = bFieldVec[2] / dd4hep::tesla; // z component at (0,0,0)

//-- VertexBarrel Parameters--
//-- VXD Parameters--
_nLayersVTX = 0;

try {
streamlog_out(DEBUG9) << " filling VertexBarrel parameters " << std::endl;
streamlog_out(DEBUG9) << " filling VXD parameters " << std::endl;

dd4hep::DetElement vtxDE = theDetector.detector("VertexBarrel");
dd4hep::DetElement vtxDE = theDetector.detector("VXD");
dd4hep::rec::ZPlanarData* vtx = vtxDE.extension<dd4hep::rec::ZPlanarData>();
_nLayersVTX = vtx->layers.size();

} catch (std::runtime_error& e) {
streamlog_out(DEBUG9) << " ### VertexBarrel detector Not Present in Compact File" << std::endl;
streamlog_out(DEBUG9) << " ### VXD detector Not Present in Compact File" << std::endl;
}

//-- InnerTrackerBarrel Parameters--
//-- SIT Parameters--
_nLayersSIT = 0;

try {
streamlog_out(DEBUG9) << " filling InnerTrackerBarrel parameters " << std::endl;
dd4hep::DetElement sitDE = theDetector.detector("InnerTrackerBarrel");
streamlog_out(DEBUG9) << " filling SIT parameters " << std::endl;

dd4hep::DetElement sitDE = theDetector.detector("SIT");
dd4hep::rec::ZPlanarData* sit = sitDE.extension<dd4hep::rec::ZPlanarData>();
_nLayersSIT = sit->layers.size();
} catch (std::runtime_error& e) {
streamlog_out(DEBUG9) << " ### InnerTrackerBarrel detector Not Present in Compact File " << std::endl;
streamlog_out(DEBUG9) << " ### SIT detector Not Present in Compact File " << std::endl;
}

//-- FTD Parameters--
Expand Down

0 comments on commit 920ce80

Please sign in to comment.