Skip to content

Commit

Permalink
Update SiStripClusters2ApproxClusters.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
Ksavva1021 authored Jun 22, 2023
1 parent ce5bd7f commit a185ded
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,6 @@ void SiStripClusters2ApproxClusters::produce(edm::Event& event, edm::EventSetup
auto result = std::make_unique<edmNew::DetSetVector<SiStripApproximateCluster> >();
const auto& clusterCollection = event.get(clusterToken);

// edm::Handle<reco::BeamSpot> beamSpotHandle;
// event.getByToken(beamSpotToken, beamSpotHandle); // retrive BeamSpot data
// reco::BeamSpot const* bs = nullptr;
// if (beamSpotHandle.isValid()) {
// bs = &(*beamSpotHandle);
// } else {
// edm::LogError("SiStripClusters2ApproxClusters")
// << "didn't find a valid beamspot with label " << beamSpot.label() << " using 0,0,0";
// bs = new reco::BeamSpot();
// }

auto const beamSpotHandle = event.getHandle(beamSpotToken_);
auto const& bs = beamSpotHandle.isValid() ? *beamSpotHandle : reco::BeamSpot();
if (not beamSpotHandle.isValid()) {
Expand Down

0 comments on commit a185ded

Please sign in to comment.