diff --git a/RecoMuon/CosmicMuonProducer/BuildFile.xml b/RecoMuon/CosmicMuonProducer/BuildFile.xml
index 23b7316e241a9..b52858682f79a 100644
--- a/RecoMuon/CosmicMuonProducer/BuildFile.xml
+++ b/RecoMuon/CosmicMuonProducer/BuildFile.xml
@@ -26,4 +26,6 @@
-
+
+
+
diff --git a/RecoMuon/CosmicMuonProducer/plugins/BuildFile.xml b/RecoMuon/CosmicMuonProducer/plugins/BuildFile.xml
new file mode 100644
index 0000000000000..38d26b196fed9
--- /dev/null
+++ b/RecoMuon/CosmicMuonProducer/plugins/BuildFile.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/RecoMuon/CosmicMuonProducer/src/CosmicMuonLinksProducer.cc b/RecoMuon/CosmicMuonProducer/plugins/CosmicMuonLinksProducer.cc
similarity index 97%
rename from RecoMuon/CosmicMuonProducer/src/CosmicMuonLinksProducer.cc
rename to RecoMuon/CosmicMuonProducer/plugins/CosmicMuonLinksProducer.cc
index 75a0f703b7356..5361f840ccf1b 100644
--- a/RecoMuon/CosmicMuonProducer/src/CosmicMuonLinksProducer.cc
+++ b/RecoMuon/CosmicMuonProducer/plugins/CosmicMuonLinksProducer.cc
@@ -1,4 +1,4 @@
-#include "RecoMuon/CosmicMuonProducer/src/CosmicMuonLinksProducer.h"
+#include "RecoMuon/CosmicMuonProducer/plugins/CosmicMuonLinksProducer.h"
/**\class CosmicMuonLinksProducer
*
@@ -152,3 +152,6 @@ int CosmicMuonLinksProducer::sharedHits(const reco::Track& track1, const reco::T
return match;
}
+
+#include "FWCore/Framework/interface/MakerMacros.h"
+DEFINE_FWK_MODULE(CosmicMuonLinksProducer);
diff --git a/RecoMuon/CosmicMuonProducer/src/CosmicMuonLinksProducer.h b/RecoMuon/CosmicMuonProducer/plugins/CosmicMuonLinksProducer.h
similarity index 100%
rename from RecoMuon/CosmicMuonProducer/src/CosmicMuonLinksProducer.h
rename to RecoMuon/CosmicMuonProducer/plugins/CosmicMuonLinksProducer.h
diff --git a/RecoMuon/CosmicMuonProducer/src/CosmicMuonProducer.cc b/RecoMuon/CosmicMuonProducer/plugins/CosmicMuonProducer.cc
similarity index 94%
rename from RecoMuon/CosmicMuonProducer/src/CosmicMuonProducer.cc
rename to RecoMuon/CosmicMuonProducer/plugins/CosmicMuonProducer.cc
index c976b8de89c59..517113c7b1ee7 100644
--- a/RecoMuon/CosmicMuonProducer/src/CosmicMuonProducer.cc
+++ b/RecoMuon/CosmicMuonProducer/plugins/CosmicMuonProducer.cc
@@ -1,4 +1,4 @@
-#include "RecoMuon/CosmicMuonProducer/src/CosmicMuonProducer.h"
+#include "RecoMuon/CosmicMuonProducer/plugins/CosmicMuonProducer.h"
/**\class CosmicMuonProducer
*
@@ -81,3 +81,6 @@ void CosmicMuonProducer::produce(Event& iEvent, const EventSetup& iSetup) {
theService->update(iSetup);
theTrackFinder->reconstruct(seeds, iEvent, iSetup);
}
+
+#include "FWCore/Framework/interface/MakerMacros.h"
+DEFINE_FWK_MODULE(CosmicMuonProducer);
diff --git a/RecoMuon/CosmicMuonProducer/src/CosmicMuonProducer.h b/RecoMuon/CosmicMuonProducer/plugins/CosmicMuonProducer.h
similarity index 100%
rename from RecoMuon/CosmicMuonProducer/src/CosmicMuonProducer.h
rename to RecoMuon/CosmicMuonProducer/plugins/CosmicMuonProducer.h
diff --git a/RecoMuon/CosmicMuonProducer/src/GlobalCosmicMuonProducer.cc b/RecoMuon/CosmicMuonProducer/plugins/GlobalCosmicMuonProducer.cc
similarity index 95%
rename from RecoMuon/CosmicMuonProducer/src/GlobalCosmicMuonProducer.cc
rename to RecoMuon/CosmicMuonProducer/plugins/GlobalCosmicMuonProducer.cc
index cc4c515b7b0d0..d37b842509848 100644
--- a/RecoMuon/CosmicMuonProducer/src/GlobalCosmicMuonProducer.cc
+++ b/RecoMuon/CosmicMuonProducer/plugins/GlobalCosmicMuonProducer.cc
@@ -1,4 +1,4 @@
-#include "RecoMuon/CosmicMuonProducer/src/GlobalCosmicMuonProducer.h"
+#include "RecoMuon/CosmicMuonProducer/plugins/GlobalCosmicMuonProducer.h"
/**\class GlobalCosmicMuonProducer
*
@@ -91,3 +91,6 @@ void GlobalCosmicMuonProducer::produce(edm::Event& iEvent, const edm::EventSetup
theTrackFinder->reconstruct(cosTrackCands, iEvent, iSetup);
LogTrace(metname) << "Event loaded";
}
+
+#include "FWCore/Framework/interface/MakerMacros.h"
+DEFINE_FWK_MODULE(GlobalCosmicMuonProducer);
diff --git a/RecoMuon/CosmicMuonProducer/src/GlobalCosmicMuonProducer.h b/RecoMuon/CosmicMuonProducer/plugins/GlobalCosmicMuonProducer.h
similarity index 100%
rename from RecoMuon/CosmicMuonProducer/src/GlobalCosmicMuonProducer.h
rename to RecoMuon/CosmicMuonProducer/plugins/GlobalCosmicMuonProducer.h
diff --git a/RecoMuon/CosmicMuonProducer/src/SealModule.cc b/RecoMuon/CosmicMuonProducer/src/SealModule.cc
deleted file mode 100644
index 6f44a95805e22..0000000000000
--- a/RecoMuon/CosmicMuonProducer/src/SealModule.cc
+++ /dev/null
@@ -1,9 +0,0 @@
-#include "FWCore/Framework/interface/MakerMacros.h"
-
-#include "RecoMuon/CosmicMuonProducer/src/CosmicMuonProducer.h"
-#include "RecoMuon/CosmicMuonProducer/src/CosmicMuonLinksProducer.h"
-#include "RecoMuon/CosmicMuonProducer/src/GlobalCosmicMuonProducer.h"
-
-DEFINE_FWK_MODULE(CosmicMuonProducer);
-DEFINE_FWK_MODULE(CosmicMuonLinksProducer);
-DEFINE_FWK_MODULE(GlobalCosmicMuonProducer);
diff --git a/RecoMuon/CosmicMuonProducer/test/CosmicMuonValidator.cc b/RecoMuon/CosmicMuonProducer/test/CosmicMuonValidator.cc
index 8f4e2fe559a78..4da963b3f839d 100644
--- a/RecoMuon/CosmicMuonProducer/test/CosmicMuonValidator.cc
+++ b/RecoMuon/CosmicMuonProducer/test/CosmicMuonValidator.cc
@@ -797,3 +797,6 @@ TrajectoryStateOnSurface CosmicMuonValidator::updatedState(const TrajectoryState
edm::ESHandle CosmicMuonValidator::propagator() const {
return theService->propagator("SteppingHelixPropagatorAny");
}
+
+#include "FWCore/Framework/interface/MakerMacros.h"
+DEFINE_FWK_MODULE(CosmicMuonValidator);
diff --git a/RecoMuon/CosmicMuonProducer/test/RealCosmicDataAnalyzer.cc b/RecoMuon/CosmicMuonProducer/test/RealCosmicDataAnalyzer.cc
index c803a689a24e9..5e50a1c113f82 100644
--- a/RecoMuon/CosmicMuonProducer/test/RealCosmicDataAnalyzer.cc
+++ b/RecoMuon/CosmicMuonProducer/test/RealCosmicDataAnalyzer.cc
@@ -507,6 +507,5 @@ edm::ESHandle RealCosmicDataAnalyzer::propagator() const {
return theService->propagator("SteppingHelixPropagatorAny");
}
-//define this as a plug-in
-
+#include "FWCore/Framework/interface/MakerMacros.h"
DEFINE_FWK_MODULE(RealCosmicDataAnalyzer);
diff --git a/RecoMuon/CosmicMuonProducer/test/SealModules.cc b/RecoMuon/CosmicMuonProducer/test/SealModules.cc
deleted file mode 100644
index a77aa2caf770e..0000000000000
--- a/RecoMuon/CosmicMuonProducer/test/SealModules.cc
+++ /dev/null
@@ -1,9 +0,0 @@
-#include "FWCore/Framework/interface/MakerMacros.h"
-
-//define this as a plug-in
-#include "RecoMuon/CosmicMuonProducer/test/CosmicMuonValidator.cc"
-#include "RecoMuon/CosmicMuonProducer/test/RealCosmicDataAnalyzer.cc"
-
-
-DEFINE_FWK_MODULE(CosmicMuonValidator);
-DEFINE_FWK_MODULE(RealCosmicDataAnalyzer);
diff --git a/RecoMuon/GlobalMuonProducer/BuildFile.xml b/RecoMuon/GlobalMuonProducer/plugins/BuildFile.xml
similarity index 80%
rename from RecoMuon/GlobalMuonProducer/BuildFile.xml
rename to RecoMuon/GlobalMuonProducer/plugins/BuildFile.xml
index 2c308fca95e06..d5388d160126f 100644
--- a/RecoMuon/GlobalMuonProducer/BuildFile.xml
+++ b/RecoMuon/GlobalMuonProducer/plugins/BuildFile.xml
@@ -1,12 +1,14 @@
-
-
-
+
+
+
+
-
+
+
\ No newline at end of file
diff --git a/RecoMuon/GlobalMuonProducer/src/GlobalMuonProducer.cc b/RecoMuon/GlobalMuonProducer/plugins/GlobalMuonProducer.cc
similarity index 97%
rename from RecoMuon/GlobalMuonProducer/src/GlobalMuonProducer.cc
rename to RecoMuon/GlobalMuonProducer/plugins/GlobalMuonProducer.cc
index d4720b170ac4f..bed30f41a8bf2 100644
--- a/RecoMuon/GlobalMuonProducer/src/GlobalMuonProducer.cc
+++ b/RecoMuon/GlobalMuonProducer/plugins/GlobalMuonProducer.cc
@@ -17,7 +17,7 @@
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
-#include "RecoMuon/GlobalMuonProducer/src/GlobalMuonProducer.h"
+#include "RecoMuon/GlobalMuonProducer/plugins/GlobalMuonProducer.h"
// TrackFinder and specific GLB Trajectory Builder
#include "RecoMuon/GlobalTrackFinder/interface/GlobalMuonTrajectoryBuilder.h"
@@ -151,3 +151,6 @@ void GlobalMuonProducer::produce(Event& event, const EventSetup& eventSetup) {
<< "================================" << endl
<< endl;
}
+
+#include "FWCore/Framework/interface/MakerMacros.h"
+DEFINE_FWK_MODULE(GlobalMuonProducer);
diff --git a/RecoMuon/GlobalMuonProducer/src/GlobalMuonProducer.h b/RecoMuon/GlobalMuonProducer/plugins/GlobalMuonProducer.h
similarity index 100%
rename from RecoMuon/GlobalMuonProducer/src/GlobalMuonProducer.h
rename to RecoMuon/GlobalMuonProducer/plugins/GlobalMuonProducer.h
diff --git a/RecoMuon/GlobalMuonProducer/src/TevMuonProducer.cc b/RecoMuon/GlobalMuonProducer/plugins/TevMuonProducer.cc
similarity index 97%
rename from RecoMuon/GlobalMuonProducer/src/TevMuonProducer.cc
rename to RecoMuon/GlobalMuonProducer/plugins/TevMuonProducer.cc
index c7b34637f50bf..8096449dbf621 100644
--- a/RecoMuon/GlobalMuonProducer/src/TevMuonProducer.cc
+++ b/RecoMuon/GlobalMuonProducer/plugins/TevMuonProducer.cc
@@ -16,7 +16,7 @@
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "Geometry/Records/interface/TrackerTopologyRcd.h"
-#include "RecoMuon/GlobalMuonProducer/src/TevMuonProducer.h"
+#include "RecoMuon/GlobalMuonProducer/plugins/TevMuonProducer.h"
// TrackFinder and specific GLB Trajectory Builder
#include "RecoMuon/GlobalTrackFinder/interface/GlobalMuonTrajectoryBuilder.h"
@@ -145,3 +145,6 @@ void TevMuonProducer::produce(Event& event, const EventSetup& eventSetup) {
LogTrace(metname) << "Done." << endl;
}
+
+#include "FWCore/Framework/interface/MakerMacros.h"
+DEFINE_FWK_MODULE(TevMuonProducer);
diff --git a/RecoMuon/GlobalMuonProducer/src/TevMuonProducer.h b/RecoMuon/GlobalMuonProducer/plugins/TevMuonProducer.h
similarity index 100%
rename from RecoMuon/GlobalMuonProducer/src/TevMuonProducer.h
rename to RecoMuon/GlobalMuonProducer/plugins/TevMuonProducer.h
diff --git a/RecoMuon/GlobalMuonProducer/src/SealModule.cc b/RecoMuon/GlobalMuonProducer/src/SealModule.cc
deleted file mode 100644
index 818b21244a004..0000000000000
--- a/RecoMuon/GlobalMuonProducer/src/SealModule.cc
+++ /dev/null
@@ -1,9 +0,0 @@
-#include "FWCore/PluginManager/interface/ModuleDef.h"
-
-#include "FWCore/Framework/interface/MakerMacros.h"
-
-#include "RecoMuon/GlobalMuonProducer/src/GlobalMuonProducer.h"
-#include "RecoMuon/GlobalMuonProducer/src/TevMuonProducer.h"
-
-DEFINE_FWK_MODULE(GlobalMuonProducer);
-DEFINE_FWK_MODULE(TevMuonProducer);
diff --git a/RecoMuon/L2MuonIsolationProducer/BuildFile.xml b/RecoMuon/L2MuonIsolationProducer/plugins/BuildFile.xml
similarity index 81%
rename from RecoMuon/L2MuonIsolationProducer/BuildFile.xml
rename to RecoMuon/L2MuonIsolationProducer/plugins/BuildFile.xml
index 857feca104b63..d66be2b830e5a 100644
--- a/RecoMuon/L2MuonIsolationProducer/BuildFile.xml
+++ b/RecoMuon/L2MuonIsolationProducer/plugins/BuildFile.xml
@@ -1,3 +1,4 @@
+
@@ -8,3 +9,4 @@
+
diff --git a/RecoMuon/L2MuonIsolationProducer/src/L2MuonIsolationProducer.cc b/RecoMuon/L2MuonIsolationProducer/plugins/L2MuonIsolationProducer.cc
similarity index 97%
rename from RecoMuon/L2MuonIsolationProducer/src/L2MuonIsolationProducer.cc
rename to RecoMuon/L2MuonIsolationProducer/plugins/L2MuonIsolationProducer.cc
index bdc4cf9401221..760f3ccc36b3b 100644
--- a/RecoMuon/L2MuonIsolationProducer/src/L2MuonIsolationProducer.cc
+++ b/RecoMuon/L2MuonIsolationProducer/plugins/L2MuonIsolationProducer.cc
@@ -12,7 +12,7 @@
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DataFormats/RecoCandidate/interface/IsoDepositDirection.h"
-#include "RecoMuon/L2MuonIsolationProducer/src/L2MuonIsolationProducer.h"
+#include "RecoMuon/L2MuonIsolationProducer/plugins/L2MuonIsolationProducer.h"
#include "DataFormats/Common/interface/AssociationMap.h"
#include "DataFormats/TrackReco/interface/Track.h"
@@ -186,3 +186,6 @@ void L2MuonIsolationProducer::produce(Event& event, const EventSetup& eventSetup
LogDebug(metname) << " Event loaded"
<< "================================";
}
+
+#include "FWCore/Framework/interface/MakerMacros.h"
+DEFINE_FWK_MODULE(L2MuonIsolationProducer);
diff --git a/RecoMuon/L2MuonIsolationProducer/src/L2MuonIsolationProducer.h b/RecoMuon/L2MuonIsolationProducer/plugins/L2MuonIsolationProducer.h
similarity index 100%
rename from RecoMuon/L2MuonIsolationProducer/src/L2MuonIsolationProducer.h
rename to RecoMuon/L2MuonIsolationProducer/plugins/L2MuonIsolationProducer.h
diff --git a/RecoMuon/L2MuonIsolationProducer/src/SealModule.cc b/RecoMuon/L2MuonIsolationProducer/src/SealModule.cc
deleted file mode 100644
index 8ee18d4025a0d..0000000000000
--- a/RecoMuon/L2MuonIsolationProducer/src/SealModule.cc
+++ /dev/null
@@ -1,7 +0,0 @@
-#include "FWCore/PluginManager/interface/ModuleDef.h"
-
-#include "FWCore/Framework/interface/MakerMacros.h"
-
-#include "RecoMuon/L2MuonIsolationProducer/src/L2MuonIsolationProducer.h"
-
-DEFINE_FWK_MODULE(L2MuonIsolationProducer);
diff --git a/RecoMuon/L2MuonSeedGenerator/BuildFile.xml b/RecoMuon/L2MuonSeedGenerator/BuildFile.xml
deleted file mode 100644
index 79af3d3b74e84..0000000000000
--- a/RecoMuon/L2MuonSeedGenerator/BuildFile.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/RecoMuon/L2MuonSeedGenerator/plugins/BuildFile.xml b/RecoMuon/L2MuonSeedGenerator/plugins/BuildFile.xml
index eda34c6dead26..3e3df88d5a39e 100644
--- a/RecoMuon/L2MuonSeedGenerator/plugins/BuildFile.xml
+++ b/RecoMuon/L2MuonSeedGenerator/plugins/BuildFile.xml
@@ -16,5 +16,6 @@
+
diff --git a/RecoMuon/L2MuonSeedGenerator/src/L2MuonSeedGenerator.cc b/RecoMuon/L2MuonSeedGenerator/plugins/L2MuonSeedGenerator.cc
similarity index 99%
rename from RecoMuon/L2MuonSeedGenerator/src/L2MuonSeedGenerator.cc
rename to RecoMuon/L2MuonSeedGenerator/plugins/L2MuonSeedGenerator.cc
index 20a903a105df0..806e15237c95c 100644
--- a/RecoMuon/L2MuonSeedGenerator/src/L2MuonSeedGenerator.cc
+++ b/RecoMuon/L2MuonSeedGenerator/plugins/L2MuonSeedGenerator.cc
@@ -16,7 +16,7 @@
//--------------------------------------------------
// Class Header
-#include "RecoMuon/L2MuonSeedGenerator/src/L2MuonSeedGenerator.h"
+#include "RecoMuon/L2MuonSeedGenerator/plugins/L2MuonSeedGenerator.h"
// Framework
#include "FWCore/Framework/interface/ConsumesCollector.h"
@@ -402,3 +402,6 @@ const TrajectorySeed* L2MuonSeedGenerator::associateOfflineSeedToL1(edm::Handle<
return selOffseed;
}
+
+#include "FWCore/Framework/interface/MakerMacros.h"
+DEFINE_FWK_MODULE(L2MuonSeedGenerator);
diff --git a/RecoMuon/L2MuonSeedGenerator/src/L2MuonSeedGenerator.h b/RecoMuon/L2MuonSeedGenerator/plugins/L2MuonSeedGenerator.h
similarity index 100%
rename from RecoMuon/L2MuonSeedGenerator/src/L2MuonSeedGenerator.h
rename to RecoMuon/L2MuonSeedGenerator/plugins/L2MuonSeedGenerator.h
diff --git a/RecoMuon/L2MuonSeedGenerator/src/L2MuonSeedGeneratorFromL1T.cc b/RecoMuon/L2MuonSeedGenerator/plugins/L2MuonSeedGeneratorFromL1T.cc
similarity index 99%
rename from RecoMuon/L2MuonSeedGenerator/src/L2MuonSeedGeneratorFromL1T.cc
rename to RecoMuon/L2MuonSeedGenerator/plugins/L2MuonSeedGeneratorFromL1T.cc
index 78849b22693ec..5b3f23c6d26c3 100644
--- a/RecoMuon/L2MuonSeedGenerator/src/L2MuonSeedGeneratorFromL1T.cc
+++ b/RecoMuon/L2MuonSeedGenerator/plugins/L2MuonSeedGeneratorFromL1T.cc
@@ -18,7 +18,7 @@
//--------------------------------------------------
// Class Header
-#include "RecoMuon/L2MuonSeedGenerator/src/L2MuonSeedGeneratorFromL1T.h"
+#include "RecoMuon/L2MuonSeedGenerator/plugins/L2MuonSeedGeneratorFromL1T.h"
// Framework
#include "FWCore/Framework/interface/ConsumesCollector.h"
@@ -1047,3 +1047,6 @@ bool L2MuonSeedGeneratorFromL1T::isAssociateOfflineSeedToL1(
return isAssociated;
}
+
+#include "FWCore/Framework/interface/MakerMacros.h"
+DEFINE_FWK_MODULE(L2MuonSeedGeneratorFromL1T);
diff --git a/RecoMuon/L2MuonSeedGenerator/src/L2MuonSeedGeneratorFromL1T.h b/RecoMuon/L2MuonSeedGenerator/plugins/L2MuonSeedGeneratorFromL1T.h
similarity index 100%
rename from RecoMuon/L2MuonSeedGenerator/src/L2MuonSeedGeneratorFromL1T.h
rename to RecoMuon/L2MuonSeedGenerator/plugins/L2MuonSeedGeneratorFromL1T.h
diff --git a/RecoMuon/L2MuonSeedGenerator/src/Phase2L2MuonSeedCreator.cc b/RecoMuon/L2MuonSeedGenerator/plugins/Phase2L2MuonSeedCreator.cc
similarity index 99%
rename from RecoMuon/L2MuonSeedGenerator/src/Phase2L2MuonSeedCreator.cc
rename to RecoMuon/L2MuonSeedGenerator/plugins/Phase2L2MuonSeedCreator.cc
index 4c7855f37238f..f2cadffdf1036 100644
--- a/RecoMuon/L2MuonSeedGenerator/src/Phase2L2MuonSeedCreator.cc
+++ b/RecoMuon/L2MuonSeedGenerator/plugins/Phase2L2MuonSeedCreator.cc
@@ -3,7 +3,7 @@
* \author Luca Ferragina (INFN BO), 2024
*/
-#include "RecoMuon/L2MuonSeedGenerator/src/Phase2L2MuonSeedCreator.h"
+#include "RecoMuon/L2MuonSeedGenerator/plugins/Phase2L2MuonSeedCreator.h"
#include "RecoMuon/TransientTrackingRecHit/interface/MuonTransientTrackingRecHit.h"
#include "RecoMuon/TrackingTools/interface/MuonPatternRecoDumper.h"
@@ -164,7 +164,7 @@ void Phase2L2MuonSeedCreator::produce(edm::Event& iEvent, const edm::EventSetup&
unsigned int nCscHits = 0;
// Loop on L1TkMu stubs to find best association to DT/CSC segments
- for (auto stub : stubRefs) {
+ for (const auto& stub : stubRefs) {
#ifdef EDM_ML_DEBUG
stub->print();
#endif
@@ -409,7 +409,7 @@ void Phase2L2MuonSeedCreator::produce(edm::Event& iEvent, const edm::EventSetup&
// Find valid detectors with states
auto detsWithStates = detLayer->compatibleDets(tsos, *service_->propagator(propagatorName_), *estimator_);
// Check that at least one valid detector was found
- if (detsWithStates.size() > 0) {
+ if (!detsWithStates.empty()) {
// Update the detId with the one from the first valid detector with measurments found
propagateToId = detsWithStates.front().first->geographicalId();
// Create the Trajectory State on that detector's surface
@@ -486,7 +486,7 @@ const std::pair Phase2L2MuonSeedCreator::matchingStubSegment(const DTC
LogDebug(metname) << "Matching stub with DT segment";
int nMatchingIds = 0;
- for (DTChamberId id : matchingIds(stubId)) {
+ for (const DTChamberId& id : matchingIds(stubId)) {
DTRecSegment4DCollection::range segmentsInChamber = segments.get(id);
for (DTRecSegment4DCollection::const_iterator segment = segmentsInChamber.first;
segment != segmentsInChamber.second;
diff --git a/RecoMuon/L2MuonSeedGenerator/src/Phase2L2MuonSeedCreator.h b/RecoMuon/L2MuonSeedGenerator/plugins/Phase2L2MuonSeedCreator.h
similarity index 100%
rename from RecoMuon/L2MuonSeedGenerator/src/Phase2L2MuonSeedCreator.h
rename to RecoMuon/L2MuonSeedGenerator/plugins/Phase2L2MuonSeedCreator.h
diff --git a/RecoMuon/L2MuonSeedGenerator/src/SealModule.cc b/RecoMuon/L2MuonSeedGenerator/src/SealModule.cc
deleted file mode 100644
index 572707f7ca606..0000000000000
--- a/RecoMuon/L2MuonSeedGenerator/src/SealModule.cc
+++ /dev/null
@@ -1,9 +0,0 @@
-#include "FWCore/PluginManager/interface/ModuleDef.h"
-
-#include "FWCore/Framework/interface/MakerMacros.h"
-
-#include "RecoMuon/L2MuonSeedGenerator/src/L2MuonSeedGenerator.h"
-#include "RecoMuon/L2MuonSeedGenerator/src/L2MuonSeedGeneratorFromL1T.h"
-
-DEFINE_FWK_MODULE(L2MuonSeedGenerator);
-DEFINE_FWK_MODULE(L2MuonSeedGeneratorFromL1T);
diff --git a/RecoMuon/L3MuonIsolationProducer/BuildFile.xml b/RecoMuon/L3MuonIsolationProducer/BuildFile.xml
index 857feca104b63..461e833c1cfe9 100644
--- a/RecoMuon/L3MuonIsolationProducer/BuildFile.xml
+++ b/RecoMuon/L3MuonIsolationProducer/BuildFile.xml
@@ -7,4 +7,6 @@
-
+
+
+
\ No newline at end of file
diff --git a/RecoMuon/L3MuonIsolationProducer/src/L3NominalEfficiencyConfigurator.h b/RecoMuon/L3MuonIsolationProducer/interface/L3NominalEfficiencyConfigurator.h
similarity index 100%
rename from RecoMuon/L3MuonIsolationProducer/src/L3NominalEfficiencyConfigurator.h
rename to RecoMuon/L3MuonIsolationProducer/interface/L3NominalEfficiencyConfigurator.h
diff --git a/RecoMuon/L3MuonIsolationProducer/plugins/BuildFile.xml b/RecoMuon/L3MuonIsolationProducer/plugins/BuildFile.xml
new file mode 100644
index 0000000000000..cbd40fcad0ce5
--- /dev/null
+++ b/RecoMuon/L3MuonIsolationProducer/plugins/BuildFile.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/RecoMuon/L3MuonIsolationProducer/src/L3MuonCombinedRelativeIsolationProducer.cc b/RecoMuon/L3MuonIsolationProducer/plugins/L3MuonCombinedRelativeIsolationProducer.cc
similarity index 98%
rename from RecoMuon/L3MuonIsolationProducer/src/L3MuonCombinedRelativeIsolationProducer.cc
rename to RecoMuon/L3MuonIsolationProducer/plugins/L3MuonCombinedRelativeIsolationProducer.cc
index ad3748d89b76c..71743a89ca479 100644
--- a/RecoMuon/L3MuonIsolationProducer/src/L3MuonCombinedRelativeIsolationProducer.cc
+++ b/RecoMuon/L3MuonIsolationProducer/plugins/L3MuonCombinedRelativeIsolationProducer.cc
@@ -1,4 +1,4 @@
-#include "L3MuonCombinedRelativeIsolationProducer.h"
+#include "RecoMuon/L3MuonIsolationProducer/plugins/L3MuonCombinedRelativeIsolationProducer.h"
// Framework
#include "FWCore/Framework/interface/Event.h"
@@ -25,7 +25,7 @@
#include "PhysicsTools/IsolationAlgos/interface/IsoDepositExtractor.h"
#include "PhysicsTools/IsolationAlgos/interface/IsoDepositExtractorFactory.h"
-#include "L3NominalEfficiencyConfigurator.h"
+#include "RecoMuon/L3MuonIsolationProducer/interface/L3NominalEfficiencyConfigurator.h"
#include
@@ -342,3 +342,6 @@ void L3MuonCombinedRelativeIsolationProducer::produce(Event& event, const EventS
std::cout << " END OF EVENT "
<< "================================";
}
+
+#include "FWCore/Framework/interface/MakerMacros.h"
+DEFINE_FWK_MODULE(L3MuonCombinedRelativeIsolationProducer);
diff --git a/RecoMuon/L3MuonIsolationProducer/src/L3MuonCombinedRelativeIsolationProducer.h b/RecoMuon/L3MuonIsolationProducer/plugins/L3MuonCombinedRelativeIsolationProducer.h
similarity index 100%
rename from RecoMuon/L3MuonIsolationProducer/src/L3MuonCombinedRelativeIsolationProducer.h
rename to RecoMuon/L3MuonIsolationProducer/plugins/L3MuonCombinedRelativeIsolationProducer.h
diff --git a/RecoMuon/L3MuonIsolationProducer/src/L3MuonIsolationProducer.cc b/RecoMuon/L3MuonIsolationProducer/plugins/L3MuonIsolationProducer.cc
similarity index 95%
rename from RecoMuon/L3MuonIsolationProducer/src/L3MuonIsolationProducer.cc
rename to RecoMuon/L3MuonIsolationProducer/plugins/L3MuonIsolationProducer.cc
index 94b1570236273..ac12bb89f7bde 100644
--- a/RecoMuon/L3MuonIsolationProducer/src/L3MuonIsolationProducer.cc
+++ b/RecoMuon/L3MuonIsolationProducer/plugins/L3MuonIsolationProducer.cc
@@ -1,4 +1,4 @@
-#include "L3MuonIsolationProducer.h"
+#include "RecoMuon/L3MuonIsolationProducer/plugins/L3MuonIsolationProducer.h"
// Framework
#include "FWCore/Framework/interface/Event.h"
@@ -23,7 +23,7 @@
#include "PhysicsTools/IsolationAlgos/interface/IsoDepositExtractor.h"
#include "PhysicsTools/IsolationAlgos/interface/IsoDepositExtractorFactory.h"
-#include "L3NominalEfficiencyConfigurator.h"
+#include "RecoMuon/L3MuonIsolationProducer/interface/L3NominalEfficiencyConfigurator.h"
#include
@@ -162,3 +162,6 @@ void L3MuonIsolationProducer::produce(Event& event, const EventSetup& eventSetup
LogTrace(metname) << " END OF EVENT "
<< "================================";
}
+
+#include "FWCore/Framework/interface/MakerMacros.h"
+DEFINE_FWK_MODULE(L3MuonIsolationProducer);
diff --git a/RecoMuon/L3MuonIsolationProducer/src/L3MuonIsolationProducer.h b/RecoMuon/L3MuonIsolationProducer/plugins/L3MuonIsolationProducer.h
similarity index 100%
rename from RecoMuon/L3MuonIsolationProducer/src/L3MuonIsolationProducer.h
rename to RecoMuon/L3MuonIsolationProducer/plugins/L3MuonIsolationProducer.h
diff --git a/RecoMuon/L3MuonIsolationProducer/src/L3MuonSumCaloPFIsolationProducer.cc b/RecoMuon/L3MuonIsolationProducer/plugins/L3MuonSumCaloPFIsolationProducer.cc
similarity index 94%
rename from RecoMuon/L3MuonIsolationProducer/src/L3MuonSumCaloPFIsolationProducer.cc
rename to RecoMuon/L3MuonIsolationProducer/plugins/L3MuonSumCaloPFIsolationProducer.cc
index 87bb8cb71d6dd..ea35d9df68c85 100644
--- a/RecoMuon/L3MuonIsolationProducer/src/L3MuonSumCaloPFIsolationProducer.cc
+++ b/RecoMuon/L3MuonIsolationProducer/plugins/L3MuonSumCaloPFIsolationProducer.cc
@@ -1,4 +1,4 @@
-#include "L3MuonSumCaloPFIsolationProducer.h"
+#include "RecoMuon/L3MuonIsolationProducer/plugins/L3MuonSumCaloPFIsolationProducer.h"
// Framework
#include "FWCore/Framework/interface/Event.h"
@@ -76,3 +76,6 @@ void L3MuonSumCaloPFIsolationProducer::produce(edm::StreamID, edm::Event& iEvent
isoFloatFiller.fill();
iEvent.put(std::move(caloIsoMap));
}
+
+#include "FWCore/Framework/interface/MakerMacros.h"
+DEFINE_FWK_MODULE(L3MuonSumCaloPFIsolationProducer);
diff --git a/RecoMuon/L3MuonIsolationProducer/src/L3MuonSumCaloPFIsolationProducer.h b/RecoMuon/L3MuonIsolationProducer/plugins/L3MuonSumCaloPFIsolationProducer.h
similarity index 100%
rename from RecoMuon/L3MuonIsolationProducer/src/L3MuonSumCaloPFIsolationProducer.h
rename to RecoMuon/L3MuonIsolationProducer/plugins/L3MuonSumCaloPFIsolationProducer.h
diff --git a/RecoMuon/L3MuonIsolationProducer/src/L3NominalEfficiencyConfigurator.cc b/RecoMuon/L3MuonIsolationProducer/src/L3NominalEfficiencyConfigurator.cc
index 09ed27e656c9f..fd0bead4ebf49 100644
--- a/RecoMuon/L3MuonIsolationProducer/src/L3NominalEfficiencyConfigurator.cc
+++ b/RecoMuon/L3MuonIsolationProducer/src/L3NominalEfficiencyConfigurator.cc
@@ -1,4 +1,4 @@
-#include "L3NominalEfficiencyConfigurator.h"
+#include "RecoMuon/L3MuonIsolationProducer/interface/L3NominalEfficiencyConfigurator.h"
#include "RecoMuon/MuonIsolation/interface/IsolatorByNominalEfficiency.h"
using namespace muonisolation;
diff --git a/RecoMuon/L3MuonIsolationProducer/src/SealModule.cc b/RecoMuon/L3MuonIsolationProducer/src/SealModule.cc
deleted file mode 100644
index 7edf14f3a57aa..0000000000000
--- a/RecoMuon/L3MuonIsolationProducer/src/SealModule.cc
+++ /dev/null
@@ -1,12 +0,0 @@
-#include "FWCore/PluginManager/interface/ModuleDef.h"
-
-#include "FWCore/Framework/interface/MakerMacros.h"
-
-#include "L3MuonIsolationProducer.h"
-DEFINE_FWK_MODULE(L3MuonIsolationProducer);
-
-#include "L3MuonCombinedRelativeIsolationProducer.h"
-DEFINE_FWK_MODULE(L3MuonCombinedRelativeIsolationProducer);
-
-#include "RecoMuon/L3MuonIsolationProducer/src/L3MuonSumCaloPFIsolationProducer.h"
-DEFINE_FWK_MODULE(L3MuonSumCaloPFIsolationProducer);
diff --git a/RecoMuon/L3MuonProducer/BuildFile.xml b/RecoMuon/L3MuonProducer/BuildFile.xml
deleted file mode 100644
index 4ae2c69fe1cbc..0000000000000
--- a/RecoMuon/L3MuonProducer/BuildFile.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/RecoMuon/L3MuonProducer/plugins/BuildFile.xml b/RecoMuon/L3MuonProducer/plugins/BuildFile.xml
new file mode 100644
index 0000000000000..3d3159ab1d8c2
--- /dev/null
+++ b/RecoMuon/L3MuonProducer/plugins/BuildFile.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/RecoMuon/L3MuonProducer/src/L3MuonCandidateProducer.cc b/RecoMuon/L3MuonProducer/plugins/L3MuonCandidateProducer.cc
similarity index 97%
rename from RecoMuon/L3MuonProducer/src/L3MuonCandidateProducer.cc
rename to RecoMuon/L3MuonProducer/plugins/L3MuonCandidateProducer.cc
index 7d881156e08b8..df3622bc2aecf 100644
--- a/RecoMuon/L3MuonProducer/src/L3MuonCandidateProducer.cc
+++ b/RecoMuon/L3MuonProducer/plugins/L3MuonCandidateProducer.cc
@@ -22,7 +22,7 @@
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
-#include "RecoMuon/L3MuonProducer/src/L3MuonCandidateProducer.h"
+#include "RecoMuon/L3MuonProducer/plugins/L3MuonCandidateProducer.h"
#include "DataFormats/Math/interface/deltaR.h"
@@ -176,3 +176,6 @@ void L3MuonCandidateProducer::produce(StreamID, Event& event, const EventSetup&
LogTrace(category) << " Event loaded"
<< "================================";
}
+
+#include "FWCore/Framework/interface/MakerMacros.h"
+DEFINE_FWK_MODULE(L3MuonCandidateProducer);
diff --git a/RecoMuon/L3MuonProducer/src/L3MuonCandidateProducer.h b/RecoMuon/L3MuonProducer/plugins/L3MuonCandidateProducer.h
similarity index 100%
rename from RecoMuon/L3MuonProducer/src/L3MuonCandidateProducer.h
rename to RecoMuon/L3MuonProducer/plugins/L3MuonCandidateProducer.h
diff --git a/RecoMuon/L3MuonProducer/src/L3MuonCandidateProducerFromMuons.cc b/RecoMuon/L3MuonProducer/plugins/L3MuonCandidateProducerFromMuons.cc
similarity index 94%
rename from RecoMuon/L3MuonProducer/src/L3MuonCandidateProducerFromMuons.cc
rename to RecoMuon/L3MuonProducer/plugins/L3MuonCandidateProducerFromMuons.cc
index d1fa7165138bf..8a7468ca4bc96 100644
--- a/RecoMuon/L3MuonProducer/src/L3MuonCandidateProducerFromMuons.cc
+++ b/RecoMuon/L3MuonProducer/plugins/L3MuonCandidateProducerFromMuons.cc
@@ -13,7 +13,7 @@
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
#include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
-#include "RecoMuon/L3MuonProducer/src/L3MuonCandidateProducerFromMuons.h"
+#include "RecoMuon/L3MuonProducer/plugins/L3MuonCandidateProducerFromMuons.h"
// Input and output collections
#include "DataFormats/TrackReco/interface/Track.h"
@@ -90,3 +90,6 @@ void L3MuonCandidateProducerFromMuons::produce(StreamID, Event& event, const Eve
}
event.put(std::move(candidates));
}
+
+#include "FWCore/Framework/interface/MakerMacros.h"
+DEFINE_FWK_MODULE(L3MuonCandidateProducerFromMuons);
diff --git a/RecoMuon/L3MuonProducer/src/L3MuonCandidateProducerFromMuons.h b/RecoMuon/L3MuonProducer/plugins/L3MuonCandidateProducerFromMuons.h
similarity index 100%
rename from RecoMuon/L3MuonProducer/src/L3MuonCandidateProducerFromMuons.h
rename to RecoMuon/L3MuonProducer/plugins/L3MuonCandidateProducerFromMuons.h
diff --git a/RecoMuon/L3MuonProducer/src/L3MuonCleaner.cc b/RecoMuon/L3MuonProducer/plugins/L3MuonCleaner.cc
similarity index 97%
rename from RecoMuon/L3MuonProducer/src/L3MuonCleaner.cc
rename to RecoMuon/L3MuonProducer/plugins/L3MuonCleaner.cc
index dc89fda3223d2..cbc22fd80006c 100644
--- a/RecoMuon/L3MuonProducer/src/L3MuonCleaner.cc
+++ b/RecoMuon/L3MuonProducer/plugins/L3MuonCleaner.cc
@@ -6,8 +6,6 @@
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
-#include "FWCore/PluginManager/interface/ModuleDef.h"
-#include "FWCore/Framework/interface/MakerMacros.h"
#include "DataFormats/TrackReco/interface/Track.h"
#include "DataFormats/TrackReco/interface/TrackFwd.h"
@@ -50,4 +48,6 @@ void L3MuonCleaner::produce(edm::StreamID, edm::Event& event, const edm::EventSe
}
event.put(std::move(outTracks));
}
+
+#include "FWCore/Framework/interface/MakerMacros.h"
DEFINE_FWK_MODULE(L3MuonCleaner);
diff --git a/RecoMuon/L3MuonProducer/src/L3MuonProducer.cc b/RecoMuon/L3MuonProducer/plugins/L3MuonProducer.cc
similarity index 99%
rename from RecoMuon/L3MuonProducer/src/L3MuonProducer.cc
rename to RecoMuon/L3MuonProducer/plugins/L3MuonProducer.cc
index 269929cf27bec..d7ed7237a563f 100644
--- a/RecoMuon/L3MuonProducer/src/L3MuonProducer.cc
+++ b/RecoMuon/L3MuonProducer/plugins/L3MuonProducer.cc
@@ -16,7 +16,7 @@
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
-#include "RecoMuon/L3MuonProducer/src/L3MuonProducer.h"
+#include "RecoMuon/L3MuonProducer/plugins/L3MuonProducer.h"
// TrackFinder and specific GLB Trajectory Builder
#include "RecoMuon/L3TrackFinder/interface/L3MuonTrajectoryBuilder.h"
@@ -319,3 +319,6 @@ void L3MuonProducer::fillDescriptions(edm::ConfigurationDescriptions& descriptio
}
descriptions.add("L3MuonProducer", desc);
}
+
+#include "FWCore/Framework/interface/MakerMacros.h"
+DEFINE_FWK_MODULE(L3MuonProducer);
diff --git a/RecoMuon/L3MuonProducer/src/L3MuonProducer.h b/RecoMuon/L3MuonProducer/plugins/L3MuonProducer.h
similarity index 100%
rename from RecoMuon/L3MuonProducer/src/L3MuonProducer.h
rename to RecoMuon/L3MuonProducer/plugins/L3MuonProducer.h
diff --git a/RecoMuon/L3MuonProducer/src/L3TkMuonProducer.cc b/RecoMuon/L3MuonProducer/plugins/L3TkMuonProducer.cc
similarity index 98%
rename from RecoMuon/L3MuonProducer/src/L3TkMuonProducer.cc
rename to RecoMuon/L3MuonProducer/plugins/L3TkMuonProducer.cc
index 330c222b6bbc0..bd30e3a4871f7 100644
--- a/RecoMuon/L3MuonProducer/src/L3TkMuonProducer.cc
+++ b/RecoMuon/L3MuonProducer/plugins/L3TkMuonProducer.cc
@@ -13,7 +13,7 @@
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
-#include "RecoMuon/L3MuonProducer/src/L3TkMuonProducer.h"
+#include "RecoMuon/L3MuonProducer/plugins/L3TkMuonProducer.h"
#include "DataFormats/RecoCandidate/interface/RecoChargedCandidateFwd.h"
#include
@@ -258,3 +258,6 @@ void L3TkMuonProducer::produce(Event& event, const EventSetup& eventSetup) {
LogDebug(metname) << " Event loaded"
<< "================================";
}
+
+#include "FWCore/Framework/interface/MakerMacros.h"
+DEFINE_FWK_MODULE(L3TkMuonProducer);
diff --git a/RecoMuon/L3MuonProducer/src/L3TkMuonProducer.h b/RecoMuon/L3MuonProducer/plugins/L3TkMuonProducer.h
similarity index 100%
rename from RecoMuon/L3MuonProducer/src/L3TkMuonProducer.h
rename to RecoMuon/L3MuonProducer/plugins/L3TkMuonProducer.h
diff --git a/RecoMuon/L3MuonProducer/src/QuarkoniaTrackSelector.cc b/RecoMuon/L3MuonProducer/plugins/QuarkoniaTrackSelector.cc
similarity index 98%
rename from RecoMuon/L3MuonProducer/src/QuarkoniaTrackSelector.cc
rename to RecoMuon/L3MuonProducer/plugins/QuarkoniaTrackSelector.cc
index af45308ddbe00..e8c7741e9a025 100644
--- a/RecoMuon/L3MuonProducer/src/QuarkoniaTrackSelector.cc
+++ b/RecoMuon/L3MuonProducer/plugins/QuarkoniaTrackSelector.cc
@@ -1,9 +1,8 @@
-#include "RecoMuon/L3MuonProducer/src/QuarkoniaTrackSelector.h"
+#include "RecoMuon/L3MuonProducer/plugins/QuarkoniaTrackSelector.h"
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/Event.h"
-#include "FWCore/Framework/interface/MakerMacros.h"
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
@@ -167,4 +166,5 @@ void QuarkoniaTrackSelector::produce(edm::StreamID, edm::Event& iEvent, const ed
}
//define this as a plug-in
+#include "FWCore/Framework/interface/MakerMacros.h"
DEFINE_FWK_MODULE(QuarkoniaTrackSelector);
diff --git a/RecoMuon/L3MuonProducer/src/QuarkoniaTrackSelector.h b/RecoMuon/L3MuonProducer/plugins/QuarkoniaTrackSelector.h
similarity index 100%
rename from RecoMuon/L3MuonProducer/src/QuarkoniaTrackSelector.h
rename to RecoMuon/L3MuonProducer/plugins/QuarkoniaTrackSelector.h
diff --git a/RecoMuon/L3MuonProducer/src/SealModule.cc b/RecoMuon/L3MuonProducer/src/SealModule.cc
deleted file mode 100644
index c3b23dde3bef9..0000000000000
--- a/RecoMuon/L3MuonProducer/src/SealModule.cc
+++ /dev/null
@@ -1,13 +0,0 @@
-#include "FWCore/PluginManager/interface/ModuleDef.h"
-
-#include "FWCore/Framework/interface/MakerMacros.h"
-
-#include "RecoMuon/L3MuonProducer/src/L3MuonProducer.h"
-#include "RecoMuon/L3MuonProducer/src/L3TkMuonProducer.h"
-#include "RecoMuon/L3MuonProducer/src/L3MuonCandidateProducer.h"
-#include "RecoMuon/L3MuonProducer/src/L3MuonCandidateProducerFromMuons.h"
-
-DEFINE_FWK_MODULE(L3MuonProducer);
-DEFINE_FWK_MODULE(L3TkMuonProducer);
-DEFINE_FWK_MODULE(L3MuonCandidateProducer);
-DEFINE_FWK_MODULE(L3MuonCandidateProducerFromMuons);
diff --git a/RecoMuon/MuonSeedGenerator/src/MuonCSCSeedFromRecHits.h b/RecoMuon/MuonSeedGenerator/interface/MuonCSCSeedFromRecHits.h
similarity index 100%
rename from RecoMuon/MuonSeedGenerator/src/MuonCSCSeedFromRecHits.h
rename to RecoMuon/MuonSeedGenerator/interface/MuonCSCSeedFromRecHits.h
diff --git a/RecoMuon/MuonSeedGenerator/src/MuonDTSeedFromRecHits.h b/RecoMuon/MuonSeedGenerator/interface/MuonDTSeedFromRecHits.h
similarity index 100%
rename from RecoMuon/MuonSeedGenerator/src/MuonDTSeedFromRecHits.h
rename to RecoMuon/MuonSeedGenerator/interface/MuonDTSeedFromRecHits.h
diff --git a/RecoMuon/MuonSeedGenerator/src/MuonOverlapSeedFromRecHits.h b/RecoMuon/MuonSeedGenerator/interface/MuonOverlapSeedFromRecHits.h
similarity index 100%
rename from RecoMuon/MuonSeedGenerator/src/MuonOverlapSeedFromRecHits.h
rename to RecoMuon/MuonSeedGenerator/interface/MuonOverlapSeedFromRecHits.h
diff --git a/RecoMuon/MuonSeedGenerator/src/MuonSeedBuilder.h b/RecoMuon/MuonSeedGenerator/interface/MuonSeedBuilder.h
similarity index 100%
rename from RecoMuon/MuonSeedGenerator/src/MuonSeedBuilder.h
rename to RecoMuon/MuonSeedGenerator/interface/MuonSeedBuilder.h
diff --git a/RecoMuon/MuonSeedGenerator/src/MuonSeedCleaner.h b/RecoMuon/MuonSeedGenerator/interface/MuonSeedCleaner.h
similarity index 100%
rename from RecoMuon/MuonSeedGenerator/src/MuonSeedCleaner.h
rename to RecoMuon/MuonSeedGenerator/interface/MuonSeedCleaner.h
diff --git a/RecoMuon/MuonSeedGenerator/src/MuonSeedCreator.h b/RecoMuon/MuonSeedGenerator/interface/MuonSeedCreator.h
similarity index 100%
rename from RecoMuon/MuonSeedGenerator/src/MuonSeedCreator.h
rename to RecoMuon/MuonSeedGenerator/interface/MuonSeedCreator.h
diff --git a/RecoMuon/MuonSeedGenerator/src/MuonSeedFinder.h b/RecoMuon/MuonSeedGenerator/interface/MuonSeedFinder.h
similarity index 75%
rename from RecoMuon/MuonSeedGenerator/src/MuonSeedFinder.h
rename to RecoMuon/MuonSeedGenerator/interface/MuonSeedFinder.h
index 3f99c7947da4d..3528d8b2691c6 100644
--- a/RecoMuon/MuonSeedGenerator/src/MuonSeedFinder.h
+++ b/RecoMuon/MuonSeedGenerator/interface/MuonSeedFinder.h
@@ -11,11 +11,11 @@
*
*/
-#include "RecoMuon/MuonSeedGenerator/src/MuonSeedVFinder.h"
-#include "RecoMuon/MuonSeedGenerator/src/MuonSeedPtExtractor.h"
-#include "RecoMuon/MuonSeedGenerator/src/MuonCSCSeedFromRecHits.h"
-#include "RecoMuon/MuonSeedGenerator/src/MuonDTSeedFromRecHits.h"
-#include "RecoMuon/MuonSeedGenerator/src/MuonOverlapSeedFromRecHits.h"
+#include "RecoMuon/MuonSeedGenerator/interface/MuonSeedVFinder.h"
+#include "RecoMuon/MuonSeedGenerator/interface/MuonSeedPtExtractor.h"
+#include "RecoMuon/MuonSeedGenerator/interface/MuonCSCSeedFromRecHits.h"
+#include "RecoMuon/MuonSeedGenerator/interface/MuonDTSeedFromRecHits.h"
+#include "RecoMuon/MuonSeedGenerator/interface/MuonOverlapSeedFromRecHits.h"
#include
diff --git a/RecoMuon/MuonSeedGenerator/src/MuonSeedOrcaPatternRecognition.h b/RecoMuon/MuonSeedGenerator/interface/MuonSeedOrcaPatternRecognition.h
similarity index 97%
rename from RecoMuon/MuonSeedGenerator/src/MuonSeedOrcaPatternRecognition.h
rename to RecoMuon/MuonSeedGenerator/interface/MuonSeedOrcaPatternRecognition.h
index ee5b9249d957f..6630406b0fdc4 100644
--- a/RecoMuon/MuonSeedGenerator/src/MuonSeedOrcaPatternRecognition.h
+++ b/RecoMuon/MuonSeedGenerator/interface/MuonSeedOrcaPatternRecognition.h
@@ -1,7 +1,7 @@
#ifndef MuonSeedGenerator_MuonSeedOrcaPatternRecognition_h
#define MuonSeedGenerator_MuonSeedOrcaPatternRecognition_h
-#include "RecoMuon/MuonSeedGenerator/src/MuonSeedVPatternRecognition.h"
+#include "RecoMuon/MuonSeedGenerator/interface/MuonSeedVPatternRecognition.h"
#include "FWCore/Framework/interface/ConsumesCollector.h"
#include "FWCore/Utilities/interface/ESGetToken.h"
#include "RecoMuon/MeasurementDet/interface/MuonDetLayerMeasurements.h"
diff --git a/RecoMuon/MuonSeedGenerator/src/MuonSeedPtExtractor.h b/RecoMuon/MuonSeedGenerator/interface/MuonSeedPtExtractor.h
similarity index 96%
rename from RecoMuon/MuonSeedGenerator/src/MuonSeedPtExtractor.h
rename to RecoMuon/MuonSeedGenerator/interface/MuonSeedPtExtractor.h
index bb3e245ac1a52..762b03df297ef 100644
--- a/RecoMuon/MuonSeedGenerator/src/MuonSeedPtExtractor.h
+++ b/RecoMuon/MuonSeedGenerator/interface/MuonSeedPtExtractor.h
@@ -4,7 +4,7 @@
/** \class MuonSeedPtExtractor
*/
-#include "RecoMuon/MuonSeedGenerator/src/MuonSeedVPtExtractor.h"
+#include "RecoMuon/MuonSeedGenerator/interface/MuonSeedVPtExtractor.h"
#include "DataFormats/MuonDetId/interface/DTChamberId.h"
#include