diff --git a/EventDisplay/src/EventDisplayFrame.cc b/EventDisplay/src/EventDisplayFrame.cc index c96d5c667e..a6157d4e1c 100644 --- a/EventDisplay/src/EventDisplayFrame.cc +++ b/EventDisplay/src/EventDisplayFrame.cc @@ -35,6 +35,8 @@ using namespace std; #include "Offline/ConfigTools/inc/ConfigFileLookupPolicy.hh" #include "Offline/CRVConditions/inc/CRVCalib.hh" +#include "fhiclcpp/ParameterSet.h" + #include "TGGC.h" #include "TGFont.h" #include "TClass.h" diff --git a/Mu2eBTrk/inc/ParticleInfo.hh b/Mu2eBTrk/inc/ParticleInfo.hh index be7c68aac7..7825421c7f 100644 --- a/Mu2eBTrk/inc/ParticleInfo.hh +++ b/Mu2eBTrk/inc/ParticleInfo.hh @@ -8,8 +8,7 @@ // This code looks after the translation and caches results. // -#include "Offline/GlobalConstantsService/inc/GlobalConstantsHandle.hh" -#include "Offline/GlobalConstantsService/inc/ParticleDataList.hh" +#include "Offline/GlobalConstantsService/inc/ParticleData.hh" #include "BTrk/BaBar/ParticleInfoInterface.hh" @@ -18,6 +17,8 @@ namespace mu2e { + class ParticleDataList; + class ParticleInfo : public ParticleInfoInterface { public: @@ -41,9 +42,8 @@ namespace mu2e { //the following has to be mutable because BTrk holds this //with a const pointer - // Handle to the full particle data table. // Guaranteed valid throughout the job. - mutable GlobalConstantsHandle pdt_; + ParticleDataList const& pdt_; // Local cache of the information for particles that we care about; // indexed by TrkParticle::type, not by PDG::id. diff --git a/Mu2eBTrk/src/ParticleInfo.cc b/Mu2eBTrk/src/ParticleInfo.cc index e8d6a6305d..b956e9d446 100644 --- a/Mu2eBTrk/src/ParticleInfo.cc +++ b/Mu2eBTrk/src/ParticleInfo.cc @@ -1,7 +1,10 @@ #include "Offline/Mu2eBTrk/inc/ParticleInfo.hh" #include "Offline/DataProducts/inc/PDGCode.hh" -mu2e::ParticleInfo::ParticleInfo():pdt_(){ +#include "Offline/GlobalConstantsService/inc/GlobalConstantsHandle.hh" +#include "Offline/GlobalConstantsService/inc/ParticleDataList.hh" + +mu2e::ParticleInfo::ParticleInfo():pdt_(*GlobalConstantsHandle()){ } mu2e::ParticleData const* @@ -16,52 +19,52 @@ mu2e::ParticleInfo::getParticle( TrkParticle::type id ) const{ ParticleData const* p(nullptr); switch (id) { case TrkParticle::e_minus: { - p = &pdt_->particle(PDGCode::e_minus); + p = &pdt_.particle(PDGCode::e_minus); break; } case TrkParticle::e_plus: { - p = &pdt_->particle(PDGCode::e_plus); + p = &pdt_.particle(PDGCode::e_plus); break; } case TrkParticle::mu_minus: { - p = &pdt_->particle(PDGCode::mu_minus); + p = &pdt_.particle(PDGCode::mu_minus); break; } case TrkParticle::mu_plus: { - p = &pdt_->particle(PDGCode::mu_plus); + p = &pdt_.particle(PDGCode::mu_plus); break; } case TrkParticle::pi_minus: { - p = &pdt_->particle(PDGCode::pi_minus); + p = &pdt_.particle(PDGCode::pi_minus); break; } case TrkParticle::pi_plus: { - p = &pdt_->particle(PDGCode::pi_plus); + p = &pdt_.particle(PDGCode::pi_plus); break; } case TrkParticle::K_minus: { - p = &pdt_->particle(PDGCode::K_minus); + p = &pdt_.particle(PDGCode::K_minus); break; } case TrkParticle::K_plus: { - p = &pdt_->particle(PDGCode::K_plus); + p = &pdt_.particle(PDGCode::K_plus); break; } case TrkParticle::anti_p_minus: { - p = &pdt_->particle(PDGCode::anti_proton); + p = &pdt_.particle(PDGCode::anti_proton); break; } case TrkParticle::p_plus: { - p = &pdt_->particle(PDGCode::proton); + p = &pdt_.particle(PDGCode::proton); break; } diff --git a/TEveEventDisplay/src/TEveMu2eCRV.cc b/TEveEventDisplay/src/TEveMu2eCRV.cc index 0c4889a909..1ff88f394c 100644 --- a/TEveEventDisplay/src/TEveMu2eCRV.cc +++ b/TEveEventDisplay/src/TEveMu2eCRV.cc @@ -1,4 +1,6 @@ +#include "Offline/GeometryService/inc/GeomHandle.hh" #include "Offline/TEveEventDisplay/src/shape_classes/TEveMu2eCRV.h" +#include "art/Framework/Principal/Run.h" using namespace mu2e; namespace mu2e{ diff --git a/TEveEventDisplay/src/TEveMu2eCRVEvent.cc b/TEveEventDisplay/src/TEveMu2eCRVEvent.cc index a1a735b596..07e03eca6a 100644 --- a/TEveEventDisplay/src/TEveMu2eCRVEvent.cc +++ b/TEveEventDisplay/src/TEveMu2eCRVEvent.cc @@ -1,3 +1,4 @@ +#include "Offline/GeometryService/inc/GeomHandle.hh" #include "Offline/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eCRVEvent.h" #include "Offline/TEveEventDisplay/src/dict_classes/GeomUtils.h" using namespace mu2e; diff --git a/TEveEventDisplay/src/TEveMu2eCalorimeter.cc b/TEveEventDisplay/src/TEveMu2eCalorimeter.cc index 59f99cab1e..66fdfded48 100644 --- a/TEveEventDisplay/src/TEveMu2eCalorimeter.cc +++ b/TEveEventDisplay/src/TEveMu2eCalorimeter.cc @@ -1,4 +1,6 @@ #include "Offline/TEveEventDisplay/src/shape_classes/TEveMu2eCalorimeter.h" +#include "Offline/GeometryService/inc/GeomHandle.hh" +#include "art/Framework/Principal/Run.h" using namespace mu2e; namespace mu2e{ diff --git a/TEveEventDisplay/src/TEveMu2eDataInterface.cc b/TEveEventDisplay/src/TEveMu2eDataInterface.cc index 7d58df72cf..78c67281d5 100644 --- a/TEveEventDisplay/src/TEveMu2eDataInterface.cc +++ b/TEveEventDisplay/src/TEveMu2eDataInterface.cc @@ -1,3 +1,4 @@ +#include "Offline/GeometryService/inc/GeomHandle.hh" #include "Offline/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eDataInterface.h" #include diff --git a/TEveEventDisplay/src/TEveMu2eHit.cc b/TEveEventDisplay/src/TEveMu2eHit.cc index c8b38cb428..8d50dad025 100644 --- a/TEveEventDisplay/src/TEveMu2eHit.cc +++ b/TEveEventDisplay/src/TEveMu2eHit.cc @@ -1,3 +1,5 @@ +#include "Offline/GeometryService/inc/DetectorSystem.hh" +#include "Offline/GeometryService/inc/GeomHandle.hh" #include "Offline/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eHit.h" using namespace mu2e; diff --git a/TEveEventDisplay/src/TEveMu2eMCInterface.cc b/TEveEventDisplay/src/TEveMu2eMCInterface.cc index d314c595db..067a77dc5b 100644 --- a/TEveEventDisplay/src/TEveMu2eMCInterface.cc +++ b/TEveEventDisplay/src/TEveMu2eMCInterface.cc @@ -1,4 +1,5 @@ - +#include "Offline/GeometryService/inc/DetectorSystem.hh" +#include "Offline/GeometryService/inc/GeomHandle.hh" #include "Offline/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eMCInterface.h" using namespace mu2e; diff --git a/TEveEventDisplay/src/TEveMu2eTracker.cc b/TEveEventDisplay/src/TEveMu2eTracker.cc index 71f11e0f45..0abecf42cb 100644 --- a/TEveEventDisplay/src/TEveMu2eTracker.cc +++ b/TEveEventDisplay/src/TEveMu2eTracker.cc @@ -1,5 +1,6 @@ -#include "Offline/TEveEventDisplay/src/shape_classes/TEveMu2eTracker.h" #include "Offline/GeometryService/inc/DetectorSystem.hh" +#include "Offline/GeometryService/inc/GeomHandle.hh" +#include "Offline/TEveEventDisplay/src/shape_classes/TEveMu2eTracker.h" Int_t transpOpt = 100; using namespace mu2e; namespace mu2e{ diff --git a/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eCRVEvent.h b/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eCRVEvent.h index 7bc8c1a3e3..a3b3a6a61b 100644 --- a/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eCRVEvent.h +++ b/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eCRVEvent.h @@ -11,7 +11,6 @@ #include "Offline/RecoDataProducts/inc/CrvCoincidenceCluster.hh" #include "Offline/CosmicRayShieldGeom/inc/CosmicRayShield.hh" #include "Offline/DataProducts/inc/CRSScintillatorBarIndex.hh" -#include "Offline/GeometryService/inc/GeomHandle.hh" #include "Offline/RecoDataProducts/inc/CrvRecoPulse.hh" #include "Offline/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eCustomHelix.h" #include "Offline/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2e2DProjection.h" diff --git a/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eDataInterface.h b/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eDataInterface.h index dfb1e31563..5ef604ec42 100644 --- a/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eDataInterface.h +++ b/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eDataInterface.h @@ -11,7 +11,6 @@ #include #include //Mu2e General: -#include "Offline/GeometryService/inc/GeomHandle.hh" #include "Offline/GeometryService/inc/DetectorSystem.hh" //TEveMu2e #include "Offline/TEveEventDisplay/src/dict_classes/Collection_Filler.h" diff --git a/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eHit.h b/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eHit.h index 8190b785c0..bb423d6f76 100644 --- a/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eHit.h +++ b/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eHit.h @@ -10,8 +10,6 @@ #include #include "Offline/RecoDataProducts/inc/ComboHit.hh" //Mu2e General: -#include "Offline/GeometryService/inc/GeomHandle.hh" -#include "Offline/GeometryService/inc/DetectorSystem.hh" #include "Offline/TEveEventDisplay/src/dict_classes/GeomUtils.h" #include "Offline/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eCustomHelix.h" #include "Offline/TrackerGeom/inc/Tracker.hh" diff --git a/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eMCInterface.h b/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eMCInterface.h index 9950f7a96e..6978075eb8 100644 --- a/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eMCInterface.h +++ b/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eMCInterface.h @@ -11,7 +11,6 @@ #include #include //Mu2e General: -#include "Offline/GeometryService/inc/GeomHandle.hh" #include "Offline/GeometryService/inc/DetectorSystem.hh" #include "Offline/MCDataProducts/inc/MCTrajectoryPoint.hh" //TEveMu2e diff --git a/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eMCTraj.h b/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eMCTraj.h index 80b0aa1ac4..58fa3b1c2b 100644 --- a/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eMCTraj.h +++ b/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eMCTraj.h @@ -9,7 +9,6 @@ #include "Offline/RecoDataProducts/inc/ComboHit.hh" #include "Offline/TEveEventDisplay/src/dict_classes/GeomUtils.h" #include "Offline/ConfigTools/inc/SimpleConfig.hh" -#include "Offline/GeometryService/inc/GeomHandle.hh" #include "Offline/GeometryService/inc/DetectorSystem.hh" namespace mu2e { class TEveMu2eMCTraj : public TEvePointSet{ diff --git a/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eMainWindow.h b/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eMainWindow.h index 45719e3ff4..73176d8dd3 100644 --- a/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eMainWindow.h +++ b/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eMainWindow.h @@ -47,7 +47,6 @@ #include "art/Framework/Principal/Run.h" #include "Offline/ConfigTools/inc/SimpleConfig.hh" -#include "Offline/GeometryService/inc/GeomHandle.hh" //...TEveMu2e #include "Offline/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eHit.h" diff --git a/TEveEventDisplay/src/dict_classes/Data_Collections.h b/TEveEventDisplay/src/dict_classes/Data_Collections.h index 76eea48f88..2f7c61da3d 100644 --- a/TEveEventDisplay/src/dict_classes/Data_Collections.h +++ b/TEveEventDisplay/src/dict_classes/Data_Collections.h @@ -20,9 +20,6 @@ //Art/FCL: #include "art/Framework/Principal/Event.h" #include "art/Framework/Principal/Run.h" -#include "fhiclcpp/types/Atom.h" -#include "fhiclcpp/types/Sequence.h" -#include "fhiclcpp/types/Table.h" #include #include diff --git a/TEveEventDisplay/src/dict_classes/Geom_Interface.h b/TEveEventDisplay/src/dict_classes/Geom_Interface.h index 9605e87821..a1140f7586 100644 --- a/TEveEventDisplay/src/dict_classes/Geom_Interface.h +++ b/TEveEventDisplay/src/dict_classes/Geom_Interface.h @@ -27,7 +27,6 @@ #include //Geom: -#include "Offline/GeometryService/inc/GeomHandle.hh" #include "Offline/GeometryService/inc/DetectorSystem.hh" #include "Offline/GeometryService/inc/WorldG4.hh" #include "Offline/GeometryService/inc/WorldG4Maker.hh" diff --git a/TEveEventDisplay/src/shape_classes/TEveMu2eCRV.h b/TEveEventDisplay/src/shape_classes/TEveMu2eCRV.h index 4d7cbbeadf..71236de1c5 100644 --- a/TEveEventDisplay/src/shape_classes/TEveMu2eCRV.h +++ b/TEveEventDisplay/src/shape_classes/TEveMu2eCRV.h @@ -15,7 +15,6 @@ //ROOT #include //CRV/CRS: -#include "Offline/GeometryService/inc/GeomHandle.hh" #include "Offline/CosmicRayShieldGeom/inc/CosmicRayShield.hh" #include "Offline/CosmicRayShieldGeom/inc/CRSScintillatorShield.hh" #include "Offline/CosmicRayShieldGeom/inc/CRSScintillatorModule.hh" @@ -23,6 +22,8 @@ #include "Offline/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2e2DProjection.h" #include "Offline/TEveEventDisplay/src/dict_classes/GeomUtils.h" +namespace art { class Run; } + namespace mu2e{ class TEveMu2eCRV { diff --git a/TEveEventDisplay/src/shape_classes/TEveMu2eCalorimeter.h b/TEveEventDisplay/src/shape_classes/TEveMu2eCalorimeter.h index 8232c88454..b16b80fff2 100644 --- a/TEveEventDisplay/src/shape_classes/TEveMu2eCalorimeter.h +++ b/TEveEventDisplay/src/shape_classes/TEveMu2eCalorimeter.h @@ -16,7 +16,6 @@ // ... libRIO #include //Calorimeter: -#include "Offline/GeometryService/inc/GeomHandle.hh" #include "Offline/CalorimeterGeom/inc/CaloGeomUtil.hh" #include "Offline/CalorimeterGeom/inc/CaloInfo.hh" #include "Offline/CalorimeterGeom/inc/Calorimeter.hh" @@ -28,6 +27,11 @@ #include "Offline/TEveEventDisplay/src/dict_classes/GeomUtils.h" //Mu2e: #include "Offline/GeometryService/inc/DetectorSystem.hh" + +namespace art{ + class Run; +} + namespace mu2e{ class TEveMu2eCalorimeter { diff --git a/TEveEventDisplay/src/shape_classes/TEveMu2eTracker.h b/TEveEventDisplay/src/shape_classes/TEveMu2eTracker.h index 1c44c52fe3..a3ee90cb67 100644 --- a/TEveEventDisplay/src/shape_classes/TEveMu2eTracker.h +++ b/TEveEventDisplay/src/shape_classes/TEveMu2eTracker.h @@ -16,7 +16,6 @@ #include //Tracker #include "Offline/TrackerGeom/inc/Tracker.hh" -#include "Offline/GeometryService/inc/GeomHandle.hh" //TEveMu2e: #include "Offline/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2e2DProjection.h" #include "Offline/TEveEventDisplay/src/dict_classes/GeomUtils.h" diff --git a/TrackerConditions/inc/StrawElectronics.hh b/TrackerConditions/inc/StrawElectronics.hh index 639d6bf10d..d426c89702 100644 --- a/TrackerConditions/inc/StrawElectronics.hh +++ b/TrackerConditions/inc/StrawElectronics.hh @@ -18,7 +18,6 @@ #include "Offline/TrackerGeom/inc/Straw.hh" #include "Offline/TrackerGeom/inc/Tracker.hh" #include "Offline/Mu2eInterfaces/inc/ProditionsEntity.hh" -#include "fhiclcpp/ParameterSet.h" namespace mu2e { diff --git a/TrackerConditions/inc/StrawPhysics.hh b/TrackerConditions/inc/StrawPhysics.hh index d587bfd908..c0fc41375c 100644 --- a/TrackerConditions/inc/StrawPhysics.hh +++ b/TrackerConditions/inc/StrawPhysics.hh @@ -16,7 +16,6 @@ #include "CLHEP/Random/RandFlat.h" // Mu2e includes #include "Offline/Mu2eInterfaces/inc/ProditionsEntity.hh" -#include "fhiclcpp/ParameterSet.h" #include "Offline/TrackerConditions/inc/StrawDrift.hh"