Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Optimize geom includes
  • Loading branch information
linev committed May 13, 2020
commit 07c72071e42b7bb203fea8c2076c8dad1441baaa
1 change: 1 addition & 0 deletions geom/gdml/inc/TGDMLParse.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "TXMLEngine.h"
#include "TGeoMatrix.h"
#include "TGeoVolume.h"
#include "TGeoElement.h"

#include <map>
#include <iostream>
Expand Down
1 change: 1 addition & 0 deletions geom/gdml/inc/TGDMLWrite.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#define ROOT_TGDMLWRITE

#include "TGeoMatrix.h"
#include "TGeoElement.h"
#include "TXMLEngine.h"
#include "TGeoVolume.h"
#include "TGeoParaboloid.h"
Expand Down
2 changes: 1 addition & 1 deletion geom/geom/inc/TGeoAtt.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#ifndef ROOT_TGeoAtt
#define ROOT_TGeoAtt

#include "TObject.h"
#include "Rtypes.h"

class TGeoAtt
{
Expand Down
5 changes: 3 additions & 2 deletions geom/geom/inc/TGeoBoolNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
#ifndef ROOT_TGeoBoolNode
#define ROOT_TGeoBoolNode

#include <mutex>

#include "TObject.h"

#include <mutex>
#include <vector>

// forward declarations
class TGeoShape;
class TGeoMatrix;
Expand Down
4 changes: 4 additions & 0 deletions geom/geom/inc/TGeoCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@

#include "TGeoNode.h"

#ifdef R__LESS_INCLUDES
struct TGeoStateInfo;
#else
#include "TGeoStateInfo.h"
#endif

// forward declarations
class TGeoManager;
Expand Down
2 changes: 2 additions & 0 deletions geom/geom/inc/TGeoManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@

#include <mutex>
#include <thread>
#include <map>

#include "TNamed.h"
#include "TObjArray.h"
#include "TGeoNavigator.h"

Expand Down
5 changes: 5 additions & 0 deletions geom/geom/inc/TGeoMaterial.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
#include <TAttFill.h>
#include <TList.h>

#ifdef R__LESS_INCLUDES
class TGeoElement;
class TGeoElementTable;
#else
#include "TGeoElement.h"
#endif

// forward declarations
class TGeoExtension;
Expand Down
3 changes: 1 addition & 2 deletions geom/geom/inc/TGeoParallelWorld.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
#ifndef ROOT_TGeoParallelWorld
#define ROOT_TGeoParallelWorld


#include "TGeoVolume.h"
#include "TNamed.h"

// forward declarations
class TGeoManager;
Expand Down
6 changes: 3 additions & 3 deletions geom/geom/inc/TGeoPatternFinder.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
#ifndef ROOT_TGeoPatternFinder
#define ROOT_TGeoPatternFinder

#include <mutex>

#include "TObject.h"

#include "TGeoVolume.h"
#include <mutex>
#include <vector>

#include "TGeoVolume.h"

class TGeoMatrix;

Expand Down
5 changes: 3 additions & 2 deletions geom/geom/inc/TGeoPgon.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
#ifndef ROOT_TGeoPgon
#define ROOT_TGeoPgon

#include <mutex>

#include "TGeoPcon.h"

#include <mutex>
#include <vector>

class TGeoPgon : public TGeoPcon
{
public:
Expand Down
3 changes: 1 addition & 2 deletions geom/geom/inc/TGeoPhysicalNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

#include "TNamed.h"

#include "TObjArray.h"

#include "TAttLine.h"

// forward declarations
Expand All @@ -25,6 +23,7 @@ class TGeoVolume;
class TGeoNode;
class TGeoShape;
class TGeoNavigator;
class TObjArray;

//////////////////////////////////////////////////////////////////////////////
// //
Expand Down
5 changes: 5 additions & 0 deletions geom/geom/inc/TGeoRCPtr.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/

#ifndef ROOT_TGeoRCPtr
#define ROOT_TGeoRCPtr

/** \class TGeoRCPtr
\ingroup Geometry_classes

Expand Down Expand Up @@ -114,3 +117,5 @@ class TGeoRCPtr
private:
T *fPtr; //Actual pointer
};

#endif
5 changes: 5 additions & 0 deletions geom/geom/inc/TGeoTypedefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/

#ifndef ROOT_TGeoTypedefs
#define ROOT_TGeoTypedefs

/// Typedefs used by the geometry group
#include <vector>

Expand All @@ -18,3 +21,5 @@ namespace Tessellated {
using VertexVec_t = std::vector<Vertex_t>;

} // namespace Tessellated

#endif
4 changes: 2 additions & 2 deletions geom/geom/inc/TGeoVector3.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/

#ifndef ROOT_Vertex_t
#define ROOT_Vertex_t
#ifndef ROOT_TGeoVector3
#define ROOT_TGeoVector3

#include <Riostream.h>
#include <TMath.h>
Expand Down
4 changes: 3 additions & 1 deletion geom/geom/inc/TGeoVolume.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@
#ifndef ROOT_TGeoVolume
#define ROOT_TGeoVolume

#include <mutex>

#include "TNamed.h"
#include "TGeoAtt.h"
#include "TAttLine.h"
#include "TAttFill.h"
#include "TAtt3D.h"
#include "TObjArray.h"
#include "TGeoMedium.h"
#include "TGeoShape.h"
#include <mutex>
#include <vector>

// forward declarations
class TH2F;
Expand Down
5 changes: 3 additions & 2 deletions geom/geom/inc/TGeoXtru.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
#ifndef ROOT_TGeoXtru
#define ROOT_TGeoXtru

#include <mutex>

#include "TGeoBBox.h"

#include <mutex>
#include <vector>

class TGeoPolygon;

class TGeoXtru : public TGeoBBox
Expand Down
2 changes: 1 addition & 1 deletion geom/geom/src/TGeoCache.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

#include "TGeoCache.h"

#include "Rtypes.h"
#include "TGeoManager.h"
#include "TGeoStateInfo.h"
#include "TGeoMatrix.h"
#include "TGeoVolume.h"
#include "TObject.h"
Expand Down
4 changes: 3 additions & 1 deletion geom/geom/src/TGeoGlobalMagField.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/

#include "TROOT.h"
#include "TGeoGlobalMagField.h"

#include "TROOT.h"
#include "TList.h"

/** \class TGeoGlobalMagField
\ingroup Geometry_classes

Expand Down
3 changes: 1 addition & 2 deletions geom/geom/src/TGeoMaterial.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ Base class describing materials.
#include "Riostream.h"
#include "TMath.h"
#include "TObjArray.h"
#include "TStyle.h"
#include "TList.h"
#include "TGeoElement.h"
#include "TGeoManager.h"
#include "TGeoExtension.h"
#include "TGeoMaterial.h"
Expand Down
1 change: 1 addition & 0 deletions geom/geombuilder/src/TGeoMaterialEditor.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Editors for materials.
#include "TGeoMaterialEditor.h"
#include "TGeoTabManager.h"
#include "TGeoMaterial.h"
#include "TGeoElement.h"
#include "TGeoManager.h"
#include "TVirtualGeoPainter.h"
#include "TView.h"
Expand Down
4 changes: 0 additions & 4 deletions geom/geompainter/inc/TGeoTrack.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@

#include "TVirtualGeoTrack.h"

#include "TPolyLine3D.h"

class TPolyMarker3D;

/////////////////////////////////////////////////////////////////////////////
// TGeoTrack - Tracks attached to a geometry. //
// Tracks are 3D objects made of points and they store a //
Expand Down
2 changes: 2 additions & 0 deletions geom/geompainter/src/TGeoPainter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ using TBuffer3D mechanism.
#include "TAttFill.h"
#include "TVirtualPad.h"
#include "TCanvas.h"
#include "TCanvasImp.h"
#include "TH2F.h"
#include "TF1.h"
#include "TGraph.h"
Expand All @@ -37,6 +38,7 @@ using TBuffer3D mechanism.
#include "TGeoAtt.h"
#include "TGeoVolume.h"
#include "TGeoNode.h"
#include "TGeoElement.h"
#include "TGeoManager.h"
#include "TGeoTrack.h"
#include "TGeoOverlap.h"
Expand Down