Skip to content

Commit cab2313

Browse files
authored
Merge pull request #27 from alibuild/alibot-cleanup-16979
[PWGCF] Please consider the following formatting changes to #16979
2 parents 2315f8e + 96d093d commit cab2313

2 files changed

Lines changed: 20 additions & 27 deletions

File tree

PWGCF/TwoParticleCorrelations/Core/DihadronContainer.cxx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,10 @@ ClassImp(DihadronContainer);
4848
DihadronContainer::DihadronContainer() : TNamed(),
4949
mCorrHist(nullptr)
5050
{
51-
// Default constructor
51+
// Default constructor
5252
}
5353

54-
55-
DihadronContainer::DihadronContainer(const char* name, const char* objTitle,
54+
DihadronContainer::DihadronContainer(const char* name, const char* objTitle,
5655
const std::vector<o2::framework::AxisSpec>& correlationAxis,
5756
const uint8_t nStep) : TNamed(name, objTitle),
5857
mCorrHist(nullptr),
@@ -73,7 +72,6 @@ DihadronContainer::DihadronContainer(const char* name, const char* objTitle,
7372
LOGF(info, "DihadronContainer with %ld bins in the correlation histogram (approx. %ld-%ld MB of memory)", bins, bins * 4 / 1024 / 1024, bins * 8 / 1024 / 1024);
7473

7574
mCorrHist = HistFactory::createHist<StepTHnF>({"mCorrHist", "d^{2}N_{ch}/d#varphid#eta", {HistType::kStepTHnF, pairAxis, nStep}}).release();
76-
7775
}
7876

7977
//_____________________________________________________________________________
@@ -134,7 +132,6 @@ void DihadronContainer::deepCopy(DihadronContainer* from)
134132
}
135133
}
136134

137-
138135
//____________________________________________________________________
139136
Long64_t DihadronContainer::Merge(TCollection* list)
140137
{
@@ -196,7 +193,6 @@ void DihadronContainer::Reset()
196193
for (Int_t step = 0; step < mCorrHist->getNSteps(); step++) {
197194
mCorrHist->getTHn(step)->Reset();
198195
}
199-
200196
}
201197

202198
THnBase* DihadronContainer::changeToThn(THnBase* sparse)
@@ -206,5 +202,4 @@ THnBase* DihadronContainer::changeToThn(THnBase* sparse)
206202
return THn::CreateHn(Form("%s_thn", sparse->GetName()), sparse->GetTitle(), sparse);
207203
}
208204

209-
210205
ClassImp(DihadronContainer);

PWGCF/TwoParticleCorrelations/Core/DihadronContainer.h

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -41,31 +41,29 @@ class StepTHn;
4141

4242
class DihadronContainer : public TNamed
4343
{
44-
public:
45-
DihadronContainer();
46-
DihadronContainer(const char* name, const char* objTitle, const std::vector<o2::framework::AxisSpec>& corrAxis, const uint8_t nStep = 1);
47-
virtual ~DihadronContainer();
44+
public:
45+
DihadronContainer();
46+
DihadronContainer(const char* name, const char* objTitle, const std::vector<o2::framework::AxisSpec>& corrAxis, const uint8_t nStep = 1);
47+
virtual ~DihadronContainer();
4848

49-
StepTHn* getCorrHist() { return mCorrHist; }
50-
void setCorrHist(StepTHn* hist) { mCorrHist = hist; }
51-
void printCorrHist();
49+
StepTHn* getCorrHist() { return mCorrHist; }
50+
void setCorrHist(StepTHn* hist) { mCorrHist = hist; }
51+
void printCorrHist();
5252

53-
DihadronContainer(const DihadronContainer& c);
54-
DihadronContainer& operator=(const DihadronContainer& corr);
55-
virtual void Copy(TObject& c) const; // NOLINT: Making this override breaks compilation for unknown reason
56-
void deepCopy(DihadronContainer* from);
53+
DihadronContainer(const DihadronContainer& c);
54+
DihadronContainer& operator=(const DihadronContainer& corr);
55+
virtual void Copy(TObject& c) const; // NOLINT: Making this override breaks compilation for unknown reason
56+
void deepCopy(DihadronContainer* from);
5757

58-
virtual Long64_t Merge(TCollection* list);
59-
void Reset();
60-
THnBase* changeToThn(THnBase* sparse);
58+
virtual Long64_t Merge(TCollection* list);
59+
void Reset();
60+
THnBase* changeToThn(THnBase* sparse);
6161

62-
protected:
63-
StepTHn* mCorrHist; // container for n-dimension correlations
64-
uint8_t nCorrStep;
62+
protected:
63+
StepTHn* mCorrHist; // container for n-dimension correlations
64+
uint8_t nCorrStep;
6565

66-
ClassDef(DihadronContainer, 2) // underlying event histogram container
66+
ClassDef(DihadronContainer, 2) // underlying event histogram container
6767
};
6868

69-
70-
7169
#endif // PWGCF_TWOPARTICLECORRELATIONS_CORE_DIHADRONCONTAINER_H_

0 commit comments

Comments
 (0)