Skip to content

Commit c141b33

Browse files
committed
Please consider the following formatting changes
1 parent 6479f96 commit c141b33

7 files changed

Lines changed: 36 additions & 40 deletions

File tree

Common/Core/fwdtrackUtilities.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,12 @@ using SMatrix55Std = ROOT::Math::SMatrix<double, 5>;
4848
using SMatrix5 = ROOT::Math::SVector<double, 5>;
4949

5050
template <typename T>
51-
concept is_fwd_track = requires (T t) {
51+
concept is_fwd_track = requires(T t) {
5252
{ t.rAtAbsorberEnd() } -> std::same_as<float>;
5353
};
5454

5555
template <typename T>
56-
concept is_fwd_cov = requires (T t)
57-
{
56+
concept is_fwd_cov = requires(T t) {
5857
{ t.sigmaX() } -> std::same_as<float>;
5958
};
6059

PWGDQ/Core/VarManagerCore.h

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,24 @@
2121
#define HomogeneousField
2222
#endif
2323

24-
#include <TObject.h>
25-
2624
#include <DCAFitter/DCAFitterN.h>
2725
#include <DCAFitter/FwdDCAFitterN.h>
26+
#include <DataFormatsParameters/GRPLHCIFData.h>
2827
#include <DetectorsBase/MatLayerCylSet.h>
2928
#include <GlobalTracking/MatchGlobalFwd.h>
3029
#include <ReconstructionDataFormats/GlobalFwdTrack.h>
3130
#include <ReconstructionDataFormats/TrackFwd.h>
3231
#include <ReconstructionDataFormats/Vertex.h>
33-
#include <DataFormatsParameters/GRPLHCIFData.h>
32+
33+
#include <Math/MatrixRepresentationsStatic.h>
34+
#include <Math/SVector.h>
35+
#include <Math/Vector4Dfwd.h>
36+
#include <TObject.h>
3437

3538
#include <KFPTrack.h>
3639
#include <KFPVertex.h>
3740
#include <KFParticle.h>
3841

39-
#include <Math/Vector4Dfwd.h>
40-
#include <Math/MatrixRepresentationsStatic.h>
41-
#include <Math/SVector.h>
42-
4342
#include <map>
4443

4544
using SMatrix55 = ROOT::Math::SMatrix<double, 5, 5, ROOT::Math::MatRepSym<double, 5>>;

PWGEM/Dilepton/DataModel/dileptonTables.h

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

1414
#include "Common/CCDB/EventSelectionParams.h"
1515
#include "Common/Core/RecoDecay.h"
16+
#include "Common/DataModel/Centrality.h"
17+
#include "Common/DataModel/EventSelection.h"
18+
#include "Common/DataModel/Multiplicity.h"
1619
#include "Common/DataModel/PIDResponseTOF.h"
1720
#include "Common/DataModel/PIDResponseTPC.h"
1821
#include "Common/DataModel/TrackSelectionTables.h"
19-
#include <Common/DataModel/Centrality.h>
20-
#include <Common/DataModel/EventSelection.h>
21-
#include <Common/DataModel/Multiplicity.h>
2222

2323
#include <CommonConstants/MathConstants.h>
2424
#include <Framework/AnalysisDataModel.h>

PWGEM/PhotonMeson/Core/PHOSPhotonCut.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
#define PWGEM_PHOTONMESON_CORE_PHOSPHOTONCUT_H_
1818

1919
#include "PWGEM/PhotonMeson/Utils/TrackSelection.h"
20+
2021
#include <TNamed.h>
22+
2123
#include <Rtypes.h>
2224

2325
class PHOSPhotonCut : public TNamed

PWGEM/PhotonMeson/Core/V0PhotonCut.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,8 @@ concept IsNonLinIterator = requires(T t) {
164164
} // namespace o2::analysis::em::v0
165165

166166
template <typename T>
167-
concept is_table = requires(T t)
168-
{
169-
{ t.begin() } ->std::same_as<typename std::decay_t<T>::iterator>;
167+
concept is_table = requires(T t) {
168+
{ t.begin() } -> std::same_as<typename std::decay_t<T>::iterator>;
170169
};
171170

172171
class V0PhotonCut : public TNamed

PWGEM/PhotonMeson/Utils/TrackSelection.h

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,33 +17,30 @@
1717
#define PWGEM_PHOTONMESON_UTILS_TRACKSELECTION_H_
1818

1919
#include <TPDGCode.h>
20-
#include <concepts>
20+
2121
#include <cmath>
22+
#include <concepts>
2223

2324
template <typename T>
24-
concept is_iterator = requires (T t)
25-
{
25+
concept is_iterator = requires(T t) {
2626
typename std::decay_t<T>::policy_t;
2727
typename std::decay_t<T>::all_columns;
2828
t.getIndexBindings();
2929
};
3030

3131
template <typename T>
32-
concept is_sentinel = requires (T t)
33-
{
32+
concept is_sentinel = requires(T t) {
3433
std::same_as<decltype(t.index), int64_t const>;
3534
};
3635

3736
template <typename T>
38-
concept is_track_with_extra = requires (T t)
39-
{
37+
concept is_track_with_extra = requires(T t) {
4038
{ t.hasITS() } -> std::same_as<bool>;
4139
{ t.hasTPC() } -> std::same_as<bool>;
4240
};
4341

4442
template <typename T>
45-
concept is_mc_particle = requires (T t)
46-
{
43+
concept is_mc_particle = requires(T t) {
4744
{ t.pdgCode() } -> std::same_as<const int&>;
4845
};
4946

PWGUD/Core/decayTree.cxx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,7 @@ void decayTree::createHistograms(o2::framework::HistogramRegistry& registry)
12481248
auto max = o2::framework::AxisSpec(res->nmassBins(), res->massHistRange()[0], res->massHistRange()[1]);
12491249
auto momax = o2::framework::AxisSpec(res->nmomBins(), res->momHistRange()[0], res->momHistRange()[1]);
12501250

1251-
// M-pT, M-eta, pT-eta
1251+
// M-pT, M-eta, pT-eta
12521252
for (const auto& cc : fccs) {
12531253
base = cc;
12541254
base.append("/").append(res->name()).append("/");
@@ -1262,20 +1262,20 @@ void decayTree::createHistograms(o2::framework::HistogramRegistry& registry)
12621262
annot = "pT versus eta; pT (" + res->name() + ") GeV/c; eta (" + res->name() + ")";
12631263
fhistPointers.insert({hname, registry.add(hname.c_str(), annot.c_str(), {o2::framework::HistType::kTH2F, {momax, etax}})});
12641264

1265-
// M versus daughters
1265+
// M versus daughters
12661266
auto daughs = res->getDaughters();
12671267
auto ndaughs = daughs.size();
12681268
for (auto i = 0; i < static_cast<int>(ndaughs); i++) {
12691269
auto d1 = getResonance(daughs[i]);
12701270

1271-
// M vs pT daughter
1271+
// M vs pT daughter
12721272
hname = base;
12731273
hname.append("MvspT_").append(res->name()).append(d1->name());
12741274
annot = "M versus pT; M (" + res->name() + ") GeV/c^{2}; pT (" + d1->name() + ") GeV/c";
12751275
auto momax1 = o2::framework::AxisSpec(d1->nmomBins(), d1->momHistRange()[0], d1->momHistRange()[1]);
12761276
fhistPointers.insert({hname, registry.add(hname.c_str(), annot.c_str(), {o2::framework::HistType::kTH2F, {max, momax1}})});
12771277

1278-
// M vs eta daughter
1278+
// M vs eta daughter
12791279
hname = base;
12801280
hname.append("Mvseta_").append(res->name()).append(d1->name());
12811281
annot = "M versus eta; M (" + res->name() + ") GeV/c^{2}; eta (" + d1->name() + ")";
@@ -1292,19 +1292,19 @@ void decayTree::createHistograms(o2::framework::HistogramRegistry& registry)
12921292
annot = "M versus dcaZ; M (" + res->name() + ") GeV/c^{2}; dca_{Z} (" + d1->name() + ") #mu m";
12931293
fhistPointers.insert({hname, registry.add(hname.c_str(), annot.c_str(), {o2::framework::HistType::kTH2F, {max, dcazax}})});
12941294

1295-
// M vs chi2 track
1295+
// M vs chi2 track
12961296
hname = base;
12971297
hname.append("Mvschi2_").append(res->name()).append(d1->name());
12981298
annot = "M versus chi2; M (" + res->name() + ") GeV/c^{2}; chi2 (" + d1->name() + ")";
12991299
fhistPointers.insert({hname, registry.add(hname.c_str(), annot.c_str(), {o2::framework::HistType::kTH2F, {max, chi2ax}})});
13001300

1301-
// M vs nCl track
1301+
// M vs nCl track
13021302
hname = base;
13031303
hname.append("MvsnCl_").append(res->name()).append(d1->name());
13041304
annot = "M versus nCl; M (" + res->name() + ") GeV/c^{2}; nCl (" + d1->name() + ")";
13051305
fhistPointers.insert({hname, registry.add(hname.c_str(), annot.c_str(), {o2::framework::HistType::kTH2F, {max, nClax}})});
13061306

1307-
// M versus detector hits
1307+
// M versus detector hits
13081308
hname = base;
13091309
hname.append("MvsdetHits_").append(res->name()).append(d1->name());
13101310
annot = "M versus detector hits; M (" + res->name() + ") GeV/c^{2}; ITS + 2*TPC + 4*TRD + 8*TOF (" + d1->name() + ")";
@@ -1319,33 +1319,33 @@ void decayTree::createHistograms(o2::framework::HistogramRegistry& registry)
13191319
}
13201320
}
13211321

1322-
// daughters vs daughters
1322+
// daughters vs daughters
13231323
for (auto i = 0; i < static_cast<int>(ndaughs - 1); i++) {
13241324
auto d1 = getResonance(daughs[i]);
13251325
auto max1 = o2::framework::AxisSpec(d1->nmassBins(), d1->massHistRange()[0], d1->massHistRange()[1]);
13261326
for (auto j = i + 1; j < static_cast<int>(ndaughs); j++) {
13271327
auto d2 = getResonance(daughs[j]);
13281328
auto max2 = o2::framework::AxisSpec(d2->nmassBins(), d2->massHistRange()[0], d2->massHistRange()[1]);
13291329

1330-
// M1 vs M2
1330+
// M1 vs M2
13311331
hname = base;
13321332
hname.append("MvsM_").append(d1->name()).append(d2->name());
13331333
annot = std::string("M versus M; M (").append(d1->name()).append(") GeV/c^{2}; M (").append(d2->name()).append(") GeV/c^{2}");
13341334
fhistPointers.insert({hname, registry.add(hname.c_str(), annot.c_str(), {o2::framework::HistType::kTH2F, {max1, max2}})});
13351335

1336-
// angle(d1, d2)
1336+
// angle(d1, d2)
13371337
hname = base;
13381338
hname.append("angle_").append(d1->name()).append(d2->name());
13391339
annot = std::string("angle; Angle (").append(d1->name()).append(", ").append(d2->name()).append(")");
13401340
fhistPointers.insert({hname, registry.add(hname.c_str(), annot.c_str(), {o2::framework::HistType::kTH1F, {angax}})});
13411341

1342-
// M vs angle(d1, d2)
1342+
// M vs angle(d1, d2)
13431343
hname = base;
13441344
hname.append("Mvsangle_").append(d1->name()).append(d2->name());
13451345
annot = std::string("M versus angle; M (").append(res->name()).append(") GeV/c^{2}; Angle (").append(d1->name()).append(", ").append(d2->name()).append(")");
13461346
fhistPointers.insert({hname, registry.add(hname.c_str(), annot.c_str(), {o2::framework::HistType::kTH2F, {max, angax}})});
13471347

1348-
// both daughters are finals
1348+
// both daughters are finals
13491349
if (d1->isFinal() && d2->isFinal()) {
13501350
hname = base;
13511351
hname.append("TPCsignal_").append(d1->name()).append(d2->name());
@@ -1355,7 +1355,7 @@ void decayTree::createHistograms(o2::framework::HistogramRegistry& registry)
13551355
}
13561356
}
13571357

1358-
// for finals only
1358+
// for finals only
13591359
if (res->isFinal()) {
13601360
// dca
13611361
hname = base;
@@ -1367,7 +1367,7 @@ void decayTree::createHistograms(o2::framework::HistogramRegistry& registry)
13671367
annot = std::string("dcaZ; dca_{Z}(").append(res->name()).append(")");
13681368
fhistPointers.insert({hname, registry.add(hname.c_str(), annot.c_str(), {o2::framework::HistType::kTH1F, {dcazax}})});
13691369

1370-
// nSIgma[TPC, TOF] vs pT
1370+
// nSIgma[TPC, TOF] vs pT
13711371
for (const auto& det : fdets) {
13721372
for (const auto& part : fparts) {
13731373
hname = base;
@@ -1377,7 +1377,7 @@ void decayTree::createHistograms(o2::framework::HistogramRegistry& registry)
13771377
}
13781378
}
13791379

1380-
// detector hits
1380+
// detector hits
13811381
hname = base;
13821382
hname.append("detectorHits");
13831383
annot = std::string("detectorHits; Detector(").append(res->name()).append(")");

0 commit comments

Comments
 (0)