Skip to content

Commit

Permalink
Move around includes
Browse files Browse the repository at this point in the history
  • Loading branch information
austinschneider committed Sep 17, 2023
1 parent d05f2fc commit 7290d77
Show file tree
Hide file tree
Showing 81 changed files with 224 additions and 116 deletions.
2 changes: 2 additions & 0 deletions projects/crosssections/private/CrossSection.cxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "LeptonInjector/crosssections/CrossSection.h"

#include <vector>

namespace LI {
namespace crosssections {

Expand Down
5 changes: 1 addition & 4 deletions projects/crosssections/private/CrossSectionCollection.cxx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/**
* CrossSectionCollection.cxx
*/
#include "LeptonInjector/crosssections/CrossSectionCollection.h"

#include <map>
#include <set>
Expand All @@ -11,7 +9,6 @@
#include "LeptonInjector/dataclasses/Particle.h"

#include "LeptonInjector/crosssections/CrossSection.h"
#include "LeptonInjector/crosssections/CrossSectionCollection.h"

namespace LI {
namespace crosssections {
Expand Down
3 changes: 2 additions & 1 deletion projects/crosssections/private/DISFromSpline.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include "LeptonInjector/crosssections/DISFromSpline.h"

#include <map>
#include <set>
#include <vector>
Expand All @@ -15,7 +17,6 @@
#include "LeptonInjector/utilities/Random.h"

#include "LeptonInjector/crosssections/CrossSection.h"
#include "LeptonInjector/crosssections/DISFromSpline.h"

namespace LI {
namespace crosssections {
Expand Down
3 changes: 2 additions & 1 deletion projects/crosssections/private/Decay.cxx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#include "LeptonInjector/crosssections/Decay.h"
#include "LeptonInjector/utilities/Constants.h"

#include <rk/rk.hh>

#include "LeptonInjector/utilities/Constants.h"

namespace LI {
namespace crosssections {

Expand Down
3 changes: 2 additions & 1 deletion projects/crosssections/private/DipoleFromTable.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include "LeptonInjector/crosssections/DipoleFromTable.h"

#include <set>
#include <memory>
#include <string>
Expand All @@ -17,7 +19,6 @@
#include "LeptonInjector/detector/MaterialModel.h"

#include "LeptonInjector/crosssections/CrossSection.h"
#include "LeptonInjector/crosssections/DipoleFromTable.h"

namespace LI {
namespace crosssections {
Expand Down
3 changes: 2 additions & 1 deletion projects/crosssections/private/DummyCrossSection.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include "LeptonInjector/crosssections/DummyCrossSection.h"

#include <map>
#include <set>
#include <vector>
Expand All @@ -15,7 +17,6 @@
#include "LeptonInjector/utilities/Random.h"

#include "LeptonInjector/crosssections/CrossSection.h"
#include "LeptonInjector/crosssections/DummyCrossSection.h"

namespace LI {
namespace crosssections {
Expand Down
3 changes: 2 additions & 1 deletion projects/crosssections/private/ElasticScattering.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include "LeptonInjector/crosssections/ElasticScattering.h"

#include <set>
#include <vector>
#include <string>
Expand All @@ -13,7 +15,6 @@
#include "LeptonInjector/utilities/Integration.h"

#include "LeptonInjector/crosssections/CrossSection.h"
#include "LeptonInjector/crosssections/ElasticScattering.h"

namespace LI {
namespace crosssections {
Expand Down
2 changes: 1 addition & 1 deletion projects/crosssections/private/HNLDecay.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "LeptonInjector/crosssections/HNLDecay.h"

#include <rk/rk.hh>
#include <rk/geom3.hh>
Expand All @@ -13,7 +14,6 @@
#include "LeptonInjector/detector/MaterialModel.h"

#include "LeptonInjector/crosssections/Decay.h"
#include "LeptonInjector/crosssections/HNLDecay.h"

namespace LI {
namespace crosssections {
Expand Down
3 changes: 2 additions & 1 deletion projects/crosssections/private/HNLFromSpline.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include "LeptonInjector/crosssections/HNLFromSpline.h"

#include <map>
#include <set>
#include <vector>
Expand All @@ -15,7 +17,6 @@
#include "LeptonInjector/utilities/Random.h"

#include "LeptonInjector/crosssections/CrossSection.h"
#include "LeptonInjector/crosssections/HNLFromSpline.h"

namespace LI {
namespace crosssections {
Expand Down
2 changes: 1 addition & 1 deletion projects/crosssections/private/NeutrissimoDecay.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "LeptonInjector/crosssections/NeutrissimoDecay.h"

#include <rk/rk.hh>
#include <rk/geom3.hh>
Expand All @@ -13,7 +14,6 @@
#include "LeptonInjector/detector/MaterialModel.h"

#include "LeptonInjector/crosssections/Decay.h"
#include "LeptonInjector/crosssections/NeutrissimoDecay.h"

namespace LI {
namespace crosssections {
Expand Down
3 changes: 2 additions & 1 deletion projects/dataclasses/private/DecayRecord.cxx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#include "LeptonInjector/dataclasses/DecayRecord.h"

#include <tuple>

#include "LeptonInjector/dataclasses/Particle.h"
#include "LeptonInjector/dataclasses/DecayRecord.h"
#include "LeptonInjector/dataclasses/DecaySignature.h"

namespace LI {
Expand Down
3 changes: 2 additions & 1 deletion projects/dataclasses/private/DecaySignature.cxx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#include "LeptonInjector/dataclasses/DecaySignature.h"

#include <tuple>

#include "LeptonInjector/dataclasses/Particle.h"
#include "LeptonInjector/dataclasses/DecaySignature.h"

namespace LI {
namespace dataclasses {
Expand Down
2 changes: 2 additions & 0 deletions projects/dataclasses/private/InteractionRecord.cxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "LeptonInjector/dataclasses/InteractionRecord.h"

#include <tuple>

namespace LI {
namespace dataclasses {

Expand Down
4 changes: 2 additions & 2 deletions projects/dataclasses/private/InteractionSignature.cxx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <tuple>

#include "LeptonInjector/dataclasses/InteractionSignature.h"

#include <tuple>

namespace LI {
namespace dataclasses {

Expand Down
4 changes: 3 additions & 1 deletion projects/dataclasses/private/InteractionTree.cxx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#include "LeptonInjector/dataclasses/InteractionTree.h"

#include <memory>

namespace LI {
namespace dataclasses {

int InteractionTreeDatum::depth() const {
int depth = 0;
if(parent==NULL) return depth;
Expand Down
11 changes: 8 additions & 3 deletions projects/dataclasses/private/Particle.cxx
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
#include <map>
#include <math.h> // adds sqrt, power functions
#include <assert.h>
#include "LeptonInjector/dataclasses/Particle.h"

#include <math.h>
#include <string>
#include <stdint.h>
#include <assert.h>
#include <stdexcept>

#include "LeptonInjector/utilities/Constants.h"

namespace LI {
namespace dataclasses {
Particle::Particle(void){
Expand Down
3 changes: 2 additions & 1 deletion projects/detector/private/Axis1D.cxx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "LeptonInjector/math/Vector3D.h"
#include "LeptonInjector/detector/Axis1D.h"

#include "LeptonInjector/math/Vector3D.h"

namespace LI {
namespace detector {

Expand Down
3 changes: 2 additions & 1 deletion projects/detector/private/CartesianAxis1D.cxx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "LeptonInjector/math/Vector3D.h"
#include "LeptonInjector/detector/CartesianAxis1D.h"

#include "LeptonInjector/math/Vector3D.h"

namespace LI {
namespace detector {

Expand Down
2 changes: 2 additions & 0 deletions projects/detector/private/ConstantDistribution1D.cxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "LeptonInjector/detector/ConstantDistribution1D.h"

#include <vector>

namespace LI {
namespace detector {

Expand Down
4 changes: 2 additions & 2 deletions projects/detector/private/DensityDistribution.cxx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <cmath>
#include <iostream>
#include "LeptonInjector/detector/DensityDistribution.h"

#include <cmath>

namespace LI {
namespace detector {

Expand Down
3 changes: 2 additions & 1 deletion projects/detector/private/Distribution1D.cxx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "LeptonInjector/math/Vector3D.h"
#include "LeptonInjector/detector/Distribution1D.h"

#include "LeptonInjector/math/Vector3D.h"

namespace LI {
namespace detector {

Expand Down
3 changes: 2 additions & 1 deletion projects/detector/private/EarthModel.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include "LeptonInjector/detector/EarthModel.h"

#include <tuple>
#include <string>
#include <vector>
Expand All @@ -10,7 +12,6 @@

#include "LeptonInjector/detector/ConstantDensityDistribution.h"
#include "LeptonInjector/detector/RadialAxisPolynomialDensityDistribution.h"
#include "LeptonInjector/detector/EarthModel.h"

#include "LeptonInjector/geometry/Box.h"
#include "LeptonInjector/geometry/Sphere.h"
Expand Down
4 changes: 2 additions & 2 deletions projects/detector/private/ExponentialDistribution1D.cxx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "LeptonInjector/detector/ExponentialDistribution1D.h"

#include <cmath>
#include <vector>

#include "LeptonInjector/detector/ExponentialDistribution1D.h"

namespace LI {
namespace detector {

Expand Down
4 changes: 2 additions & 2 deletions projects/detector/private/MaterialModel.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include "LeptonInjector/detector/MaterialModel.h"

#include <map>
#include <set>
#include <string>
Expand All @@ -9,8 +11,6 @@
#include "LeptonInjector/dataclasses/Particle.h"
#include "LeptonInjector/utilities/Constants.h"

#include "LeptonInjector/detector/MaterialModel.h"

using namespace LI::detector ;

MaterialModel::Component::Component(LI::dataclasses::Particle::ParticleType type)
Expand Down
3 changes: 2 additions & 1 deletion projects/detector/private/Path.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include "LeptonInjector/detector/Path.h"

#include <map>
#include <string>
#include <vector>
Expand All @@ -7,7 +9,6 @@
#include <algorithm>

#include "LeptonInjector/dataclasses/Particle.h"
#include "LeptonInjector/detector/Path.h"
#include "LeptonInjector/geometry/Geometry.h"

namespace LI {
Expand Down
3 changes: 2 additions & 1 deletion projects/detector/private/PolynomialDistribution1D.cxx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#include "LeptonInjector/detector/PolynomialDistribution1D.h"

#include <vector>

#include "LeptonInjector/math/Polynomial.h"
#include "LeptonInjector/detector/PolynomialDistribution1D.h"

namespace LI {
namespace detector {
Expand Down
3 changes: 2 additions & 1 deletion projects/detector/private/RadialAxis1D.cxx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "LeptonInjector/math/Vector3D.h"
#include "LeptonInjector/detector/RadialAxis1D.h"

#include "LeptonInjector/math/Vector3D.h"

namespace LI {
namespace detector {

Expand Down
2 changes: 2 additions & 0 deletions projects/distributions/private/Distributions.cxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "LeptonInjector/distributions/Distributions.h"

#include <vector>

namespace LI {
namespace distributions {

Expand Down
3 changes: 2 additions & 1 deletion projects/distributions/private/primary/direction/Cone.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include "LeptonInjector/distributions/primary/direction/Cone.h"

#include "LeptonInjector/math/Vector3D.h"
#include "LeptonInjector/math/Quaternion.h"

Expand All @@ -7,7 +9,6 @@

#include "LeptonInjector/distributions/Distributions.h"
#include "LeptonInjector/distributions/primary/direction/PrimaryDirectionDistribution.h"
#include "LeptonInjector/distributions/primary/direction/Cone.h"

namespace LI {
namespace distributions {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#include "LeptonInjector/distributions/primary/direction/FixedDirection.h"

#include "LeptonInjector/math/Vector3D.h"

#include "LeptonInjector/dataclasses/InteractionRecord.h"

#include "LeptonInjector/distributions/Distributions.h"
#include "LeptonInjector/distributions/primary/direction/PrimaryDirectionDistribution.h"
#include "LeptonInjector/distributions/primary/direction/FixedDirection.h"

namespace LI {
namespace distributions {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include "LeptonInjector/distributions/primary/direction/IsotropicDirection.h"

#include "LeptonInjector/math/Vector3D.h"

#include "LeptonInjector/dataclasses/InteractionRecord.h"
Expand All @@ -6,7 +8,6 @@

#include "LeptonInjector/distributions/Distributions.h"
#include "LeptonInjector/distributions/primary/direction/PrimaryDirectionDistribution.h"
#include "LeptonInjector/distributions/primary/direction/IsotropicDirection.h"

namespace LI {
namespace distributions {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#include "LeptonInjector/distributions/primary/direction/PrimaryDirectionDistribution.h"

#include "LeptonInjector/math/Vector3D.h"

#include "LeptonInjector/dataclasses/InteractionRecord.h"

#include "LeptonInjector/distributions/Distributions.h"
#include "LeptonInjector/distributions/primary/direction/PrimaryDirectionDistribution.h"

namespace LI {
namespace distributions {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#include "LeptonInjector/distributions/primary/energy/ModifiedMoyalPlusExponentialEnergyDistribution.h"

#include "LeptonInjector/dataclasses/InteractionRecord.h"
#include "LeptonInjector/utilities/Random.h"

#include "LeptonInjector/utilities/Integration.h"

#include "LeptonInjector/distributions/Distributions.h"
#include "LeptonInjector/distributions/primary/energy/PrimaryEnergyDistribution.h"
#include "LeptonInjector/distributions/primary/energy/ModifiedMoyalPlusExponentialEnergyDistribution.h"

namespace LI {
namespace distributions {
Expand Down
Loading

0 comments on commit 7290d77

Please sign in to comment.