Skip to content

Commit

Permalink
Merge pull request #43671 from Dr15Jones/cleanupSimTrackerTrackTrigge…
Browse files Browse the repository at this point in the history
…rAssociation

Removed beginRun/endRun methods in TrackTriggerAssociation modules
  • Loading branch information
cmsbuild authored Jan 12, 2024
2 parents 67a371d + 77bd4fb commit b23651f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 47 deletions.
17 changes: 0 additions & 17 deletions SimTracker/TrackTriggerAssociation/plugins/TTClusterAssociator.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ class TTClusterAssociator : public edm::stream::EDProducer<> {
/// Constructors
explicit TTClusterAssociator(const edm::ParameterSet& iConfig);

/// Destructor
~TTClusterAssociator() override;

private:
/// Data members
edm::Handle<edm::DetSetVector<PixelDigiSimLink> > thePixelDigiSimLinkHandle_;
Expand All @@ -64,8 +61,6 @@ class TTClusterAssociator : public edm::stream::EDProducer<> {
edm::ESGetToken<TrackerGeometry, TrackerDigiGeometryRecord> theTrackerGeometryToken_;

/// Mandatory methods
void beginRun(const edm::Run& run, const edm::EventSetup& iSetup) override;
void endRun(const edm::Run& run, const edm::EventSetup& iSetup) override;
void produce(edm::Event& iEvent, const edm::EventSetup& iSetup) override;

}; /// Close class
Expand Down Expand Up @@ -93,23 +88,11 @@ TTClusterAssociator<T>::TTClusterAssociator(const edm::ParameterSet& iConfig) {
}

theTrackerGeometryToken_ = esConsumes();
}

/// Destructor
template <typename T>
TTClusterAssociator<T>::~TTClusterAssociator() {}

/// Begin run
template <typename T>
void TTClusterAssociator<T>::beginRun(const edm::Run& run, const edm::EventSetup& iSetup) {
/// Print some information when loaded
edm::LogInfo("TTClusterAssociator< ") << templateNameFinder<T>() << " > loaded.";
}

/// End run
template <typename T>
void TTClusterAssociator<T>::endRun(const edm::Run& run, const edm::EventSetup& iSetup) {}

/// Implement the producer
template <>
void TTClusterAssociator<Ref_Phase2TrackerDigi_>::produce(edm::Event& iEvent, const edm::EventSetup& iSetup);
Expand Down
17 changes: 0 additions & 17 deletions SimTracker/TrackTriggerAssociation/plugins/TTStubAssociator.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ class TTStubAssociator : public edm::stream::EDProducer<> {
/// Constructors
explicit TTStubAssociator(const edm::ParameterSet& iConfig);

/// Destructor
~TTStubAssociator() override;

private:
/// Data members
std::vector<edm::InputTag> ttStubsInputTags_;
Expand All @@ -63,8 +60,6 @@ class TTStubAssociator : public edm::stream::EDProducer<> {
edm::ESGetToken<TrackerTopology, TrackerTopologyRcd> theTrackerTopologyToken_;

/// Mandatory methods
void beginRun(const edm::Run& run, const edm::EventSetup& iSetup) override;
void endRun(const edm::Run& run, const edm::EventSetup& iSetup) override;
void produce(edm::Event& iEvent, const edm::EventSetup& iSetup) override;

}; /// Close class
Expand Down Expand Up @@ -94,23 +89,11 @@ TTStubAssociator<T>::TTStubAssociator(const edm::ParameterSet& iConfig) {

theTrackerGeometryToken_ = esConsumes();
theTrackerTopologyToken_ = esConsumes();
}

/// Destructor
template <typename T>
TTStubAssociator<T>::~TTStubAssociator() {}

/// Begin run
template <typename T>
void TTStubAssociator<T>::beginRun(const edm::Run& run, const edm::EventSetup& iSetup) {
/// Print some information when loaded
edm::LogInfo("TTStubAssociator< ") << templateNameFinder<T>() << " > loaded.";
}

/// End run
template <typename T>
void TTStubAssociator<T>::endRun(const edm::Run& run, const edm::EventSetup& iSetup) {}

/// Implement the producer
template <>
void TTStubAssociator<Ref_Phase2TrackerDigi_>::produce(edm::Event& iEvent, const edm::EventSetup& iSetup);
Expand Down
15 changes: 2 additions & 13 deletions SimTracker/TrackTriggerAssociation/plugins/TTTrackAssociator.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ class TTTrackAssociator : public edm::stream::EDProducer<> {
bool TTTrackAllowOneFalse2SStub;

/// Mandatory methods
void beginRun(const edm::Run& run, const edm::EventSetup& iSetup) override;
void endRun(const edm::Run& run, const edm::EventSetup& iSetup) override;
void produce(edm::Event& iEvent, const edm::EventSetup& iSetup) override;

}; /// Close class
Expand Down Expand Up @@ -90,22 +88,13 @@ TTTrackAssociator<T>::TTTrackAssociator(const edm::ParameterSet& iConfig) {

produces<TTTrackAssociationMap<T> >(iTag.instance());
}
}

/// Destructor
template <typename T>
TTTrackAssociator<T>::~TTTrackAssociator() {}

/// Begin run
template <typename T>
void TTTrackAssociator<T>::beginRun(const edm::Run& run, const edm::EventSetup& iSetup) {
/// Print some information when loaded
edm::LogInfo("TTStubAssociator< ") << "TTTrackAssociator< " << templateNameFinder<T>() << " > loaded.";
}

/// End run
/// Destructor
template <typename T>
void TTTrackAssociator<T>::endRun(const edm::Run& run, const edm::EventSetup& iSetup) {}
TTTrackAssociator<T>::~TTTrackAssociator() {}

/// Implement the producer
template <>
Expand Down

0 comments on commit b23651f

Please sign in to comment.