Skip to content

Commit 87e1547

Browse files
authored
Please consider the following formatting changes (#7410)
1 parent d0521a7 commit 87e1547

3 files changed

Lines changed: 19 additions & 11 deletions

File tree

EventFiltering/Zorro.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class Zorro
5757
void setBCtolerance(int tolerance) { mBCtolerance = tolerance; }
5858

5959
ZorroSummary* getZorroSummary() { return &mZorroSummary; }
60+
6061
private:
6162
ZorroSummary mZorroSummary{"ZorroSummary", "ZorroSummary"};
6263

EventFiltering/ZorroSummary.cxx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@
1313

1414
#include "TCollection.h"
1515

16-
void ZorroSummary::Copy(TObject& c) const {
16+
void ZorroSummary::Copy(TObject& c) const
17+
{
1718
static_cast<ZorroSummary&>(c) = *this;
1819
}
1920

20-
Long64_t ZorroSummary::Merge(TCollection* list) {
21+
Long64_t ZorroSummary::Merge(TCollection* list)
22+
{
2123
if (!list) {
2224
return 0;
2325
}
@@ -49,7 +51,8 @@ Long64_t ZorroSummary::Merge(TCollection* list) {
4951
return n;
5052
}
5153

52-
double ZorroSummary::getNormalisationFactor(int toiId) const {
54+
double ZorroSummary::getNormalisationFactor(int toiId) const
55+
{
5356
double totalTOI{0.}, totalTVX{0.};
5457
ULong64_t totalAnalysedTOI{0};
5558
for (const auto& [runNumber, toiCounters] : mTOIcounters) {

EventFiltering/ZorroSummary.h

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,22 @@
1919
#include <unordered_map>
2020
#include <vector>
2121

22-
class ZorroSummary : public TNamed {
23-
public:
22+
class ZorroSummary : public TNamed
23+
{
24+
public:
2425
ZorroSummary() = default;
2526
ZorroSummary(const char* name, const char* objTitle) : TNamed(name, objTitle) {}
26-
virtual ~ZorroSummary() = default; // NOLINT: Making this override breaks compilation for unknown reason
27+
virtual ~ZorroSummary() = default; // NOLINT: Making this override breaks compilation for unknown reason
2728
virtual void Copy(TObject& c) const; // NOLINT: Making this override breaks compilation for unknown reason
2829
virtual Long64_t Merge(TCollection* list);
2930

30-
void setupTOIs(int ntois, const std::string& toinames) {
31+
void setupTOIs(int ntois, const std::string& toinames)
32+
{
3133
mNtois = ntois;
3234
mTOInames = toinames;
3335
}
34-
void setupRun(int runNumber, double tvxCountes, const std::vector<double>& toiCounters) {
36+
void setupRun(int runNumber, double tvxCountes, const std::vector<double>& toiCounters)
37+
{
3538
if (mRunNumber == runNumber) {
3639
return;
3740
}
@@ -44,7 +47,8 @@ class ZorroSummary : public TNamed {
4447
mCurrentAnalysedTOIcounters = &mAnalysedTOIcounters[runNumber];
4548
}
4649
double getNormalisationFactor(int toiId) const;
47-
void increaseTOIcounter(int runNumber, int toiId) {
50+
void increaseTOIcounter(int runNumber, int toiId)
51+
{
4852
if (runNumber != mRunNumber) {
4953
return;
5054
}
@@ -56,8 +60,8 @@ class ZorroSummary : public TNamed {
5660
const auto& getTVXcounters() const { return mTVXcounters; }
5761
const auto& getAnalysedTOIcounters() const { return mAnalysedTOIcounters; }
5862

59-
private:
60-
int mRunNumber = 0; //! Run currently being analysed
63+
private:
64+
int mRunNumber = 0; //! Run currently being analysed
6165
std::vector<ULong64_t>* mCurrentAnalysedTOIcounters = nullptr; //! Analysed TOI counters for the current run
6266

6367
int mNtois = 0;

0 commit comments

Comments
 (0)