Skip to content

Commit

Permalink
Merge pull request #1257 from kutschke/art_v3_15_00_prep
Browse files Browse the repository at this point in the history
Art v3_15_00 preparation
  • Loading branch information
brownd1978 authored May 15, 2024
2 parents cdb6f28 + 9806dca commit 53f9262
Show file tree
Hide file tree
Showing 23 changed files with 39 additions and 33 deletions.
2 changes: 2 additions & 0 deletions EventDisplay/src/EventDisplayFrame.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions Mu2eBTrk/inc/ParticleInfo.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -18,6 +17,8 @@

namespace mu2e {

class ParticleDataList;

class ParticleInfo : public ParticleInfoInterface {

public:
Expand All @@ -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<ParticleDataList> pdt_;
ParticleDataList const& pdt_;

// Local cache of the information for particles that we care about;
// indexed by TrkParticle::type, not by PDG::id.
Expand Down
25 changes: 14 additions & 11 deletions Mu2eBTrk/src/ParticleInfo.cc
Original file line number Diff line number Diff line change
@@ -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<ParticleDataList>()){
}

mu2e::ParticleData const*
Expand All @@ -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;
}

Expand Down
2 changes: 2 additions & 0 deletions TEveEventDisplay/src/TEveMu2eCRV.cc
Original file line number Diff line number Diff line change
@@ -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{
Expand Down
1 change: 1 addition & 0 deletions TEveEventDisplay/src/TEveMu2eCRVEvent.cc
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 2 additions & 0 deletions TEveEventDisplay/src/TEveMu2eCalorimeter.cc
Original file line number Diff line number Diff line change
@@ -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{
Expand Down
1 change: 1 addition & 0 deletions TEveEventDisplay/src/TEveMu2eDataInterface.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "Offline/GeometryService/inc/GeomHandle.hh"
#include "Offline/TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eDataInterface.h"

#include <vector>
Expand Down
2 changes: 2 additions & 0 deletions TEveEventDisplay/src/TEveMu2eHit.cc
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 2 additions & 1 deletion TEveEventDisplay/src/TEveMu2eMCInterface.cc
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 2 additions & 1 deletion TEveEventDisplay/src/TEveMu2eTracker.cc
Original file line number Diff line number Diff line change
@@ -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{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include <TEveManager.h>
#include <TEveStraightLineSet.h>
//Mu2e General:
#include "Offline/GeometryService/inc/GeomHandle.hh"
#include "Offline/GeometryService/inc/DetectorSystem.hh"
//TEveMu2e
#include "Offline/TEveEventDisplay/src/dict_classes/Collection_Filler.h"
Expand Down
2 changes: 0 additions & 2 deletions TEveEventDisplay/src/TEveMu2e_base_classes/TEveMu2eHit.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
#include <TMath.h>
#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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include <TEveStraightLineSet.h>
#include <TEveText.h>
//Mu2e General:
#include "Offline/GeometryService/inc/GeomHandle.hh"
#include "Offline/GeometryService/inc/DetectorSystem.hh"
#include "Offline/MCDataProducts/inc/MCTrajectoryPoint.hh"
//TEveMu2e
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 0 additions & 3 deletions TEveEventDisplay/src/dict_classes/Data_Collections.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <TObject.h>
#include <TROOT.h>
Expand Down
1 change: 0 additions & 1 deletion TEveEventDisplay/src/dict_classes/Geom_Interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include <TEveProjectionAxes.h>

//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"
Expand Down
3 changes: 2 additions & 1 deletion TEveEventDisplay/src/shape_classes/TEveMu2eCRV.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@
//ROOT
#include <TFile.h>
//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"
//TEveMu2e:
#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
{
Expand Down
6 changes: 5 additions & 1 deletion TEveEventDisplay/src/shape_classes/TEveMu2eCalorimeter.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
// ... libRIO
#include <TFile.h>
//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"
Expand All @@ -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
{
Expand Down
1 change: 0 additions & 1 deletion TEveEventDisplay/src/shape_classes/TEveMu2eTracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include <TFile.h>
//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"
Expand Down
1 change: 0 additions & 1 deletion TrackerConditions/inc/StrawElectronics.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
1 change: 0 additions & 1 deletion TrackerConditions/inc/StrawPhysics.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 53f9262

Please sign in to comment.