Skip to content

Commit

Permalink
construct PixelTopologyMap only if run at PCL
Browse files Browse the repository at this point in the history
  • Loading branch information
mmusich committed Jun 25, 2022
1 parent e3a8259 commit 2ee0391
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,17 +181,16 @@ void MillePedeAlignmentAlgorithm::initialize(const edm::EventSetup &setup,
//Retrieve tracker topology from geometry
const TrackerTopology *const tTopo = &setup.getData(topoToken_);

//Retrieve tracker geometry
const TrackerGeometry *tGeom = &setup.getData(geomToken_);

//Retrieve PixelTopologyMap
pixelTopologyMap = std::make_shared<PixelTopologyMap>(tGeom, tTopo);

//Retrieve the thresolds cuts from DB for the PCL
if (runAtPCL_) {
const auto &th = &setup.getData(aliThrToken_);
theThresholds = std::make_shared<AlignPCLThresholdsHG>();
storeThresholds(th->getNrecords(), th->getThreshold_Map(), th->getFloatMap());

//Retrieve tracker geometry
const TrackerGeometry *tGeom = &setup.getData(geomToken_);
//Retrieve PixelTopologyMap
pixelTopologyMap = std::make_shared<PixelTopologyMap>(tGeom, tTopo);
}

theAlignableNavigator = std::make_unique<AlignableNavigator>(extras, tracker, muon);
Expand Down

0 comments on commit 2ee0391

Please sign in to comment.