Skip to content

Commit

Permalink
Merge pull request #34447 from bsunanda/Run3-sim89
Browse files Browse the repository at this point in the history
Run3-sim89 Avoid accessing ESHandle without ESGetToken
  • Loading branch information
cmsbuild authored Jul 13, 2021
2 parents 639903d + 947d212 commit 29db216
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions Geometry/EcalTestBeam/plugins/EcalTBGeometryBuilder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ EcalTBGeometryBuilder::~EcalTBGeometryBuilder() {}

// ------------ method called to produce the data ------------
EcalTBGeometryBuilder::ReturnType EcalTBGeometryBuilder::produce(const IdealGeometryRecord& iRecord) {
edm::ESHandle<CaloSubdetectorGeometry> pG;

auto pCaloGeom = std::make_unique<CaloGeometry>();

// TODO: Look for ECAL parts
Expand Down
1 change: 0 additions & 1 deletion Geometry/EcalTestBeam/plugins/EcalTBGeometryBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
// user include files
#include "FWCore/Framework/interface/ESProducer.h"

#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Utilities/interface/ESGetToken.h"
#include "Geometry/Records/interface/IdealGeometryRecord.h"
Expand Down
1 change: 0 additions & 1 deletion SimG4CMS/EcalTestBeam/interface/EcalTBMCInfoProducer.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
*/
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/MakerMacros.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
*/

#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/MakerMacros.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
*/

#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/MakerMacros.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*/

#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/MakerMacros.h"
Expand Down
3 changes: 0 additions & 3 deletions SimG4CMS/FP420/interface/FP420Test.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/MakerMacros.h"

// necessary objects:
#include "FWCore/Framework/interface/ESHandle.h"

//
//
#include "SimG4Core/Notification/interface/Observer.h"
Expand Down
1 change: 0 additions & 1 deletion SimG4CMS/FP420/plugins/FP420SD.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include "SimG4CMS/FP420/interface/FP420G4HitCollection.h"
#include "SimG4CMS/FP420/interface/FP420NumberingScheme.h"

#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
Expand Down
1 change: 0 additions & 1 deletion SimG4CMS/Tracker/test/SimHitTrackerAnalyzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/MakerMacros.h"

#include "FWCore/ParameterSet/interface/ParameterSet.h"
Expand Down

0 comments on commit 29db216

Please sign in to comment.