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 tree includes
  • Loading branch information
linev committed May 13, 2020
commit ec0f5e7f4a1fe54276e8f36d7986fc0d1890558d
2 changes: 1 addition & 1 deletion tree/tree/inc/ROOT/TIOFeatures.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class TBasket;
class TBranch;
class TTree;

// keep it here to have a note that was removed
// keep it here to have a note that was removed
// #ifndef R__LESS_INCLUDES
// #include "TBasket.h"
// #include <memory>
Expand Down
8 changes: 3 additions & 5 deletions tree/tree/inc/TBranch.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,12 @@
// the list of TLeaves (branch description) //
//////////////////////////////////////////////////////////////////////////

#include <memory>

#include "Compression.h"
#include "TNamed.h"
#include "TAttFill.h"
#include "TObjArray.h"
#include "TBranchCacheInfo.h"
#include "TDataType.h"
#include "TNamed.h"
#include "TObjArray.h"
#include "Compression.h"
#include "ROOT/TIOFeatures.hxx"

class TTree;
Expand Down
2 changes: 0 additions & 2 deletions tree/tree/inc/TBranchElement.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@

#include "TTree.h"

#include "TError.h"

class TFolder;
class TStreamerInfo;
class TVirtualCollectionProxy;
Expand Down
5 changes: 5 additions & 0 deletions tree/tree/inc/TBranchRef.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@


#include "TBranch.h"

#ifdef R__LESS_INCLUDES
class TRefTable;
#else
#include "TRefTable.h"
#endif

class TTree;

Expand Down
1 change: 0 additions & 1 deletion tree/tree/inc/TChain.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
//////////////////////////////////////////////////////////////////////////

#include "TTree.h"
#include <iosfwd>

class TFile;
class TBrowser;
Expand Down
6 changes: 6 additions & 0 deletions tree/tree/inc/TLeaf.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@
//////////////////////////////////////////////////////////////////////////


#include "TNamed.h"

#ifdef R__LESS_INCLUDES
class TBranch;
#else
#include "TBranch.h"
#endif

class TClonesArray;
class TBrowser;
Expand Down
4 changes: 3 additions & 1 deletion tree/tree/inc/TLeafD32.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@
// //
//////////////////////////////////////////////////////////////////////////

#include "TStreamerElement.h"
#include "TLeaf.h"

class TStreamerElement;


class TLeafD32 : public TLeaf {

protected:
Expand Down
3 changes: 2 additions & 1 deletion tree/tree/inc/TLeafF16.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
// //
//////////////////////////////////////////////////////////////////////////

#include "TStreamerElement.h"
#include "TLeaf.h"

class TStreamerElement;

class TLeafF16 : public TLeaf {

protected:
Expand Down
7 changes: 6 additions & 1 deletion tree/tree/inc/TQueryResult.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,14 @@

#include "TNamed.h"
#include "TDatime.h"
#include "TMacro.h"
#include "TString.h"

#ifdef R__LESS_INCLUDES
class TMacro;
#else
#include "TMacro.h"
#endif

class TBrowser;
class TTreePlayer;
class TQueryResult;
Expand Down
2 changes: 0 additions & 2 deletions tree/tree/inc/TSelector.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@
#include "TString.h"
#include "TSelectorList.h"


class TTree;


class TSelector : public TObject {

public:
Expand Down
3 changes: 0 additions & 3 deletions tree/tree/inc/TTreeCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@

#include "TFileCacheRead.h"

#include <cstdint>
#include <memory>
#include <utility>
#include <vector>

class TTree;
Expand Down
1 change: 1 addition & 0 deletions tree/tree/src/TBranchBrowsable.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "TStreamerElement.h"
#include "TVirtualCollectionProxy.h"
#include "TRef.h"
#include "TError.h"
#include <algorithm>

ClassImp(TVirtualBranchBrowsable);
Expand Down
2 changes: 1 addition & 1 deletion tree/tree/src/TBranchRef.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ TObjArray.
*/

#include "TBranchRef.h"
#include "TBuffer.h"
#include "TTree.h"
#include "TBasket.h"
#include "TRefTable.h"
#include "TFile.h"
#include "TFriendElement.h"

Expand Down
1 change: 1 addition & 0 deletions tree/tree/src/TChain.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ the trees in the chain.
#include "TPluginManager.h"
#include "TROOT.h"
#include "TRegexp.h"
#include "Riostream.h"
#include "TSelector.h"
#include "TSystem.h"
#include "TTree.h"
Expand Down
1 change: 1 addition & 0 deletions tree/tree/src/TLeafD32.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ A TLeaf for a 24 bit truncated floating point data type.
#include "TBranch.h"
#include "TBuffer.h"
#include "TClonesArray.h"
#include "TStreamerElement.h"
#include "Riostream.h"

ClassImp(TLeafD32);
Expand Down
1 change: 1 addition & 0 deletions tree/tree/src/TLeafF16.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ A TLeaf for a 24 bit truncated floating point data type.
#include "TBranch.h"
#include "TBuffer.h"
#include "TClonesArray.h"
#include "TStreamerElement.h"
#include "Riostream.h"

ClassImp(TLeafF16);
Expand Down
2 changes: 1 addition & 1 deletion tree/tree/src/TQueryResult.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ A container class for query results.
#include <string.h>

#include "TBrowser.h"
#include "TError.h"
#include "TEventList.h"
#include "TQueryResult.h"
#include "TRegexp.h"
#include "TROOT.h"
#include "TMacro.h"
#include "TMath.h"
#include "TSelector.h"
#include "TSystem.h"
Expand Down
1 change: 1 addition & 0 deletions tree/tree/src/TTree.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ End_Macro
#include "TROOT.h"
#include "TRealData.h"
#include "TRegexp.h"
#include "TRefTable.h"
#include "TStreamerElement.h"
#include "TStreamerInfo.h"
#include "TStyle.h"
Expand Down
1 change: 1 addition & 0 deletions tree/tree/src/TTreeCacheUnzip.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ A TTreeCache which exploits parallelized decompression of its own content.
#include "TEventList.h"
#include "TFile.h"
#include "TMath.h"
#include "TROOT.h"
#include "TMutex.h"
#include "ROOT/RMakeUnique.hxx"

Expand Down
1 change: 1 addition & 0 deletions tree/tree/test/TIOFeatures.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "gtest/gtest.h"

#include <vector>
#include "TBasket.h"

TEST(TIOFeatures, IOBits)
{
Expand Down
1 change: 1 addition & 0 deletions tree/treeplayer/src/TTreeFormula.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include "TROOT.h"
#include "TTreeFormula.h"
#include "TList.h"
#include "TTree.h"
#include "TBuffer.h"
#include "TBranch.h"
Expand Down
1 change: 1 addition & 0 deletions tree/treeplayer/src/TTreeGeneratorBase.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "TStreamerElement.h"
#include "TStreamerInfo.h"
#include "TTree.h"
#include "TError.h"
#include "TVirtualCollectionProxy.h"
#include "TVirtualStreamerInfo.h"

Expand Down
1 change: 1 addition & 0 deletions tree/treeplayer/src/TTreePlayer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ extra libraries (Histogram, display, etc).
#include "TVirtualMonitoring.h"
#include "TTreeCache.h"
#include "TVirtualMutex.h"
#include "ThreadLocalStorage.h"

#include "HFitInterface.h"
#include "Fit/BinData.h"
Expand Down
1 change: 1 addition & 0 deletions tree/treeplayer/src/TTreeReaderArray.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "TFriendElement.h"
#include "TFriendProxy.h"
#include "TLeaf.h"
#include "TList.h"
#include "TROOT.h"
#include "TStreamerInfo.h"
#include "TStreamerElement.h"
Expand Down
1 change: 1 addition & 0 deletions tree/treeviewer/src/TSpider.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "TGraphPolargram.h"
#include "TPolyLine.h"
#include "TNtuple.h"
#include "TBranch.h"
#include "TTreeFormula.h"
#include "TTreeFormulaManager.h"
#include "TList.h"
Expand Down
1 change: 1 addition & 0 deletions tree/treeviewer/src/TTreeViewer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ or :
#include "TContextMenu.h"
#include "TInterpreter.h"
#include "TLeaf.h"
#include "TBranch.h"
#include "TRootHelpDialog.h"
#include "TSystem.h"
#include "TApplication.h"
Expand Down