Skip to content

Commit 5cd4671

Browse files
committed
Fix includes and using statements
1 parent bca6d9b commit 5cd4671

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+1197
-893
lines changed

PWGDQ/Core/AnalysisCompositeCut.cxx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111

1212
#include "PWGDQ/Core/AnalysisCompositeCut.h"
1313

14+
#include "AnalysisCut.h"
15+
16+
#include <Rtypes.h>
17+
18+
#include <vector>
19+
1420
ClassImp(AnalysisCompositeCut)
1521

1622
//____________________________________________________________________________

PWGDQ/Core/AnalysisCompositeCut.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@
1414
// Cut class manipulating groups of cuts
1515
//
1616

17-
#ifndef AnalysisCompositeCut_H
18-
#define AnalysisCompositeCut_H
17+
#ifndef PWGDQ_CORE_ANALYSISCOMPOSITECUT_H_
18+
#define PWGDQ_CORE_ANALYSISCOMPOSITECUT_H_
1919

2020
#include "PWGDQ/Core/AnalysisCut.h"
21+
22+
#include <Rtypes.h>
23+
#include <RtypesCore.h>
24+
2125
#include <vector>
2226

2327
//_________________________________________________________________________
@@ -52,4 +56,4 @@ class AnalysisCompositeCut : public AnalysisCut
5256
ClassDef(AnalysisCompositeCut, 2);
5357
};
5458

55-
#endif
59+
#endif // PWGDQ_CORE_ANALYSISCOMPOSITECUT_H_

PWGDQ/Core/AnalysisCut.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111

1212
#include "PWGDQ/Core/AnalysisCut.h"
1313

14+
#include <TNamed.h>
15+
16+
#include <Rtypes.h>
17+
1418
#include <iostream>
1519
#include <vector>
1620

PWGDQ/Core/AnalysisCut.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@
1414
// Class for analysis cuts applied on the variables defined in the VarManager
1515
//
1616

17-
#ifndef AnalysisCut_H
18-
#define AnalysisCut_H
17+
#ifndef PWGDQ_CORE_ANALYSISCUT_H_
18+
#define PWGDQ_CORE_ANALYSISCUT_H_
1919

2020
#include <TF1.h>
21+
#include <TNamed.h>
22+
23+
#include <Rtypes.h>
24+
2125
#include <vector>
2226

2327
//_________________________________________________________________________
@@ -176,4 +180,4 @@ inline bool AnalysisCut::IsSelected(float* values)
176180
return true;
177181
}
178182

179-
#endif
183+
#endif // PWGDQ_CORE_ANALYSISCUT_H_

PWGDQ/Core/CutsLibrary.cxx

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,27 @@
1414
#include "PWGDQ/Core/CutsLibrary.h"
1515

1616
#include "AnalysisCompositeCut.h"
17+
#include "AnalysisCut.h"
1718
#include "VarManager.h"
1819

20+
#include <Framework/Array2D.h>
21+
#include <Framework/Logger.h>
22+
1923
#include <TF1.h>
24+
#include <TString.h>
25+
26+
#include <rapidjson/document.h>
27+
#include <rapidjson/error/error.h>
2028

2129
#include <RtypesCore.h>
2230

31+
#include <cstddef>
2332
#include <iostream>
24-
#include <set>
33+
#include <numeric>
2534
#include <string>
35+
#include <utility>
2636
#include <vector>
2737

28-
using std::cout;
29-
using std::endl;
30-
3138
AnalysisCompositeCut* o2::aod::dqcuts::GetCompositeCut(const char* cutName)
3239
{
3340
//

PWGDQ/Core/CutsLibrary.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@
1717

1818
#include "PWGDQ/Core/AnalysisCompositeCut.h"
1919
#include "PWGDQ/Core/AnalysisCut.h"
20-
#include "PWGDQ/Core/VarManager.h"
20+
21+
#include <Framework/Array2D.h>
2122

2223
#include <string>
24+
#include <utility>
25+
#include <variant>
2326
#include <vector>
2427

2528
// ///////////////////////////////////////////////
@@ -98,8 +101,6 @@
98101
// End of Cuts for CEFP //
99102
// ///////////////////////////////////////////////
100103

101-
#include "rapidjson/document.h"
102-
103104
namespace o2::aod
104105
{
105106
namespace dqcuts

PWGDQ/Core/DQMlResponse.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,16 @@
1717
#ifndef PWGDQ_CORE_DQMLRESPONSE_H_
1818
#define PWGDQ_CORE_DQMLRESPONSE_H_
1919

20+
#include "PWGDQ/Core/VarManager.h"
21+
2022
#include "Tools/ML/MlResponse.h"
2123

24+
#include <Framework/Logger.h>
25+
26+
#include <cstdint>
2227
#include <map>
2328
#include <string>
24-
#include <unordered_map>
29+
#include <utility>
2530
#include <vector>
2631

2732
namespace o2::analysis

PWGDQ/Core/HistogramManager.cxx

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,37 @@
1111

1212
#include "PWGDQ/Core/HistogramManager.h"
1313

14+
#include <Framework/Logger.h>
15+
16+
#include <TArrayD.h>
17+
#include <TCollection.h>
18+
#include <TH1.h>
19+
#include <TH2.h>
20+
#include <TH3.h>
21+
#include <THnBase.h>
22+
#include <TNamed.h>
23+
#include <TString.h>
24+
25+
#include <Rtypes.h>
26+
#include <RtypesCore.h>
27+
28+
#include <cstdint>
1429
#include <iostream>
15-
#include <memory>
16-
#include <fstream>
1730
#include <list>
31+
#include <memory>
1832
#include <vector>
19-
#include <algorithm>
20-
#include "Framework/Logger.h"
2133
using namespace std;
2234

23-
#include <TObject.h>
24-
#include <TObjArray.h>
35+
#include <TClass.h>
2536
#include <THashList.h>
26-
#include <TH1F.h>
27-
#include <TH2F.h>
28-
#include <TH3F.h>
29-
#include <TProfile.h>
30-
#include <TProfile2D.h>
31-
#include <TProfile3D.h>
3237
#include <THn.h>
3338
#include <THnSparse.h>
3439
#include <TIterator.h>
35-
#include <TClass.h>
40+
#include <TObjArray.h>
41+
#include <TObject.h>
42+
#include <TProfile.h>
43+
#include <TProfile2D.h>
44+
#include <TProfile3D.h>
3645

3746
ClassImp(HistogramManager);
3847

PWGDQ/Core/HistogramManager.h

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,20 @@
1717
#ifndef PWGDQ_CORE_HISTOGRAMMANAGER_H_
1818
#define PWGDQ_CORE_HISTOGRAMMANAGER_H_
1919

20-
#include <TString.h>
21-
#include <TNamed.h>
22-
#include <TList.h>
23-
#include <THashList.h>
24-
#include <TAxis.h>
2520
#include <TArrayD.h>
21+
#include <TAxis.h>
22+
#include <THashList.h>
23+
#include <TNamed.h>
24+
#include <TString.h>
2625

27-
#include <string>
26+
#include <Rtypes.h>
27+
#include <RtypesCore.h>
28+
29+
#include <cstdint>
30+
#include <list>
2831
#include <map>
32+
#include <string>
2933
#include <vector>
30-
#include <list>
3134

3235
class HistogramManager : public TNamed
3336
{
@@ -103,10 +106,10 @@ class HistogramManager : public TNamed
103106
std::map<std::string, std::list<std::vector<int>>> fVariablesMap; //! map holding identifiers for all variables needed by histograms
104107

105108
// various
106-
bool fUseDefaultVariableNames; //! toggle the usage of default variable names and units
107-
uint64_t fBinsAllocated; //! number of allocated bins
108-
TString* fVariableNames; //! variable names
109-
TString* fVariableUnits; //! variable units
109+
bool fUseDefaultVariableNames; //! toggle the usage of default variable names and units
110+
uint64_t fBinsAllocated; //! number of allocated bins
111+
TString* fVariableNames; //! variable names
112+
TString* fVariableUnits; //! variable units
110113

111114
void MakeAxisLabels(TAxis* ax, const char* labels);
112115

PWGDQ/Core/HistogramsLibrary.cxx

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,25 @@
1313
//
1414
#include "PWGDQ/Core/HistogramsLibrary.h"
1515

16+
#include "HistogramManager.h"
1617
#include "VarManager.h"
1718

18-
#include "CommonConstants/MathConstants.h"
19+
#include <CommonConstants/MathConstants.h>
20+
#include <Framework/Logger.h>
21+
22+
#include <TArrayD.h>
23+
#include <TMath.h>
24+
#include <TString.h>
25+
26+
#include <rapidjson/document.h>
27+
#include <rapidjson/error/error.h>
28+
29+
#include <RtypesCore.h>
1930

2031
#include <algorithm>
32+
#include <array>
33+
#include <cstring>
34+
#include <ostream>
2135
#include <vector>
2236

2337
void o2::aod::dqhistograms::DefineHistograms(HistogramManager* hm, const char* histClass, const char* groupName, const char* subGroupName)
@@ -2529,7 +2543,7 @@ void o2::aod::dqhistograms::AddHistogramsFromJSON(HistogramManager* hm, const ch
25292543
str += json[i];
25302544
}
25312545
}
2532-
LOG(fatal) << "**** Parsing error is somewhere here: " << str.Data() << endl;
2546+
LOG(fatal) << "**** Parsing error is somewhere here: " << str.Data() << std::endl;
25332547
return;
25342548
}
25352549

0 commit comments

Comments
 (0)