Skip to content

Commit 36e96a9

Browse files
zchochulZuzanna Chochulska
andauthored
[PWGCF] FemtoUniverse -- FemtoUniverse.h O2 linter fixes (#9116)
Co-authored-by: Zuzanna Chochulska <01150674@pw.edu.pl>
1 parent e5d64ac commit 36e96a9

27 files changed

+208
-208
lines changed

PWGCF/FemtoUniverse/Core/FemtoUniverseCascadeSelection.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class FemtoUniverseCascadeSelection
8888
}
8989

9090
/// Initializes histograms for the task
91-
template <o2::aod::femtouniverseparticle::ParticleType part, o2::aod::femtouniverseparticle::ParticleType daugh, o2::aod::femtouniverseparticle::ParticleType bach, typename cutContainerType>
91+
template <o2::aod::femtouniverseparticle::ParticleType part, o2::aod::femtouniverseparticle::ParticleType daugh, o2::aod::femtouniverseparticle::ParticleType bach, typename CutContainerType>
9292
void init(HistogramRegistry* registry, bool isSelectCascOmega = false);
9393

9494
template <typename Col, typename Casc, typename Track>
@@ -285,7 +285,7 @@ class FemtoUniverseCascadeSelection
285285

286286
}; // namespace femto_universe
287287

288-
template <o2::aod::femtouniverseparticle::ParticleType part, o2::aod::femtouniverseparticle::ParticleType daugh, o2::aod::femtouniverseparticle::ParticleType bach, typename cutContainerType>
288+
template <o2::aod::femtouniverseparticle::ParticleType part, o2::aod::femtouniverseparticle::ParticleType daugh, o2::aod::femtouniverseparticle::ParticleType bach, typename CutContainerType>
289289
void FemtoUniverseCascadeSelection::init(HistogramRegistry* registry, bool isSelectCascOmega)
290290
{
291291

@@ -308,22 +308,22 @@ void FemtoUniverseCascadeSelection::init(HistogramRegistry* registry, bool isSel
308308
/// \todo this should be an automatic check in the parent class, and the
309309
/// return type should be templated
310310
size_t nSelections = getNSelections();
311-
if (nSelections > 17 * sizeof(cutContainerType)) {
311+
if (nSelections > 17 * sizeof(CutContainerType)) {
312312
LOG(fatal) << "FemtoUniverseCascadeCuts: Number of selections to large for your "
313313
"container - quitting!";
314314
}
315315

316316
posDaughTrack.init<aod::femtouniverseparticle::ParticleType::kV0Child,
317317
aod::femtouniverseparticle::TrackType::kPosChild,
318-
aod::femtouniverseparticle::cutContainerType>(
318+
aod::femtouniverseparticle::CutContainerType>(
319319
mHistogramRegistry);
320320
negDaughTrack.init<aod::femtouniverseparticle::ParticleType::kV0Child,
321321
aod::femtouniverseparticle::TrackType::kNegChild,
322-
aod::femtouniverseparticle::cutContainerType>(
322+
aod::femtouniverseparticle::CutContainerType>(
323323
mHistogramRegistry);
324324
bachTrackSel.init<aod::femtouniverseparticle::ParticleType::kCascadeBachelor,
325325
aod::femtouniverseparticle::TrackType::kBachelor,
326-
aod::femtouniverseparticle::cutContainerType>(
326+
aod::femtouniverseparticle::CutContainerType>(
327327
mHistogramRegistry);
328328

329329
// V0 (Lambda)

PWGCF/FemtoUniverse/Core/FemtoUniverseCutculator.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class FemtoUniverseCutculator
200200
/// \param selectionType Selection type under investigation, as defined in the
201201
/// selection class
202202
template <typename T1, typename T2>
203-
void checkForSelection(aod::femtouniverseparticle::cutContainerType& output,
203+
void checkForSelection(aod::femtouniverseparticle::CutContainerType& output,
204204
size_t& counter, T1 objectSelection, T2 selectionType,
205205
bool SysChecks, float sign)
206206
{
@@ -294,9 +294,9 @@ class FemtoUniverseCutculator
294294
/// container that will be put to the user task incorporating the user choice
295295
/// of selections
296296
template <typename T>
297-
aod::femtouniverseparticle::cutContainerType iterateSelection(T objectSelection, bool SysChecks, float sign)
297+
aod::femtouniverseparticle::CutContainerType iterateSelection(T objectSelection, bool SysChecks, float sign)
298298
{
299-
aod::femtouniverseparticle::cutContainerType output = 0;
299+
aod::femtouniverseparticle::CutContainerType output = 0;
300300
size_t counter = 0;
301301
auto selectionVariables = objectSelection.getSelectionVariables();
302302
for (auto selVarIt : selectionVariables) {
@@ -309,7 +309,7 @@ class FemtoUniverseCutculator
309309
/// selection bit-wise container incorporating the user choice of selections
310310
void analyseCuts(std::string choice, bool SysChecks = false, float sign = 1)
311311
{
312-
aod::femtouniverseparticle::cutContainerType output = -1;
312+
aod::femtouniverseparticle::CutContainerType output = -1;
313313
if (choice == std::string("T")) {
314314
output = iterateSelection(mTrackSel, SysChecks, sign);
315315
} else if (choice == std::string("V")) {
@@ -319,7 +319,7 @@ class FemtoUniverseCutculator
319319
std::cout << "Option " << choice << " not recognized - available options are (T/V)" << std::endl;
320320
return;
321321
}
322-
std::bitset<8 * sizeof(aod::femtouniverseparticle::cutContainerType)>
322+
std::bitset<8 * sizeof(aod::femtouniverseparticle::CutContainerType)>
323323
bitOutput = output;
324324
// LOGF(info, "+++++++++++++++++++++++++++++++++");
325325
// LOGF(info, "CutCulator has spoken - your selection bit is");

PWGCF/FemtoUniverse/Core/FemtoUniversePhiSelection.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class FemtoUniversePhiSelection
7272
/// Initializes histograms for the task
7373
template <o2::aod::femtouniverseparticle::ParticleType part,
7474
o2::aod::femtouniverseparticle::ParticleType daugh,
75-
typename cutContainerType>
75+
typename CutContainerType>
7676
void init(HistogramRegistry* registry);
7777

7878
template <typename C, typename V, typename T>
@@ -85,8 +85,8 @@ class FemtoUniversePhiSelection
8585

8686
/// \todo for the moment the PID of the tracks is factored out into a separate
8787
/// field, hence 5 values in total \\ASK: what does it mean?
88-
template <typename cutContainerType, typename C, typename V, typename T>
89-
std::array<cutContainerType, 5> getCutContainer(C const& col, V const& phi,
88+
template <typename CutContainerType, typename C, typename V, typename T>
89+
std::array<CutContainerType, 5> getCutContainer(C const& col, V const& phi,
9090
T const& posTrack,
9191
T const& negTrack);
9292

@@ -273,7 +273,7 @@ class FemtoUniversePhiSelection
273273

274274
template <o2::aod::femtouniverseparticle::ParticleType part,
275275
o2::aod::femtouniverseparticle::ParticleType daugh,
276-
typename cutContainerType>
276+
typename CutContainerType>
277277
void FemtoUniversePhiSelection::init(HistogramRegistry* registry)
278278
{
279279

@@ -290,7 +290,7 @@ void FemtoUniversePhiSelection::init(HistogramRegistry* registry)
290290
/// \todo this should be an automatic check in the parent class, and the
291291
/// return type should be templated
292292
size_t nSelections = getNSelections();
293-
if (nSelections > 8 * sizeof(cutContainerType)) {
293+
if (nSelections > 8 * sizeof(CutContainerType)) {
294294
LOG(fatal) << "FemtoUniversePhiCuts: Number of selections to large for your "
295295
"container - quitting!";
296296
}
@@ -309,11 +309,11 @@ void FemtoUniversePhiSelection::init(HistogramRegistry* registry)
309309

310310
posDaughTrack.init<aod::femtouniverseparticle::ParticleType::kPhiChild,
311311
aod::femtouniverseparticle::TrackType::kPosChild,
312-
aod::femtouniverseparticle::cutContainerType>(
312+
aod::femtouniverseparticle::CutContainerType>(
313313
mHistogramRegistry);
314314
negDaughTrack.init<aod::femtouniverseparticle::ParticleType::kPhiChild,
315315
aod::femtouniverseparticle::TrackType::kNegChild,
316-
aod::femtouniverseparticle::cutContainerType>(
316+
aod::femtouniverseparticle::CutContainerType>(
317317
mHistogramRegistry);
318318

319319
// mHistogramRegistry->add("LambdaQA/hInvMassLambdaNoCuts", "No cuts", kTH1F,
@@ -519,13 +519,13 @@ void FemtoUniversePhiSelection::fillLambdaQA(C const& col, V const& phi,
519519

520520
/// the CosPA of Phi needs as argument the posXYZ of collisions vertex so we need
521521
/// to pass the collsion as well
522-
template <typename cutContainerType, typename C, typename V, typename T>
523-
std::array<cutContainerType, 5>
522+
template <typename CutContainerType, typename C, typename V, typename T>
523+
std::array<CutContainerType, 5>
524524
FemtoUniversePhiSelection::getCutContainer(C const& col, V const& phi, T const& posTrack, T const& negTrack)
525525
{
526-
auto outputPosTrack = posDaughTrack.getCutContainer<cutContainerType>(posTrack);
527-
auto outputNegTrack = negDaughTrack.getCutContainer<cutContainerType>(negTrack);
528-
cutContainerType output = 0;
526+
auto outputPosTrack = posDaughTrack.getCutContainer<CutContainerType>(posTrack);
527+
auto outputNegTrack = negDaughTrack.getCutContainer<CutContainerType>(negTrack);
528+
CutContainerType output = 0;
529529
size_t counter = 0;
530530

531531
auto lambdaMassNominal = o2::constants::physics::MassPhi;

PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ class FemtoUniverseTrackSelection : public FemtoUniverseObjectSelection<float, f
9696
/// Initializes histograms for the task
9797
/// \tparam part Type of the particle for proper naming of the folders for QA
9898
/// \tparam tracktype Type of track (track, positive child, negative child) for proper naming of the folders for QA
99-
/// \tparam cutContainerType Data type of the bit-wise container for the selections
99+
/// \tparam CutContainerType Data type of the bit-wise container for the selections
100100
/// \param registry HistogramRegistry for QA output
101-
template <o2::aod::femtouniverseparticle::ParticleType part, o2::aod::femtouniverseparticle::TrackType tracktype, typename cutContainerType>
101+
template <o2::aod::femtouniverseparticle::ParticleType part, o2::aod::femtouniverseparticle::TrackType tracktype, typename CutContainerType>
102102
void init(HistogramRegistry* registry);
103103

104104
/// Passes the species to the task for which PID needs to be stored
@@ -138,12 +138,12 @@ class FemtoUniverseTrackSelection : public FemtoUniverseObjectSelection<float, f
138138

139139
/// Obtain the bit-wise container for the selections
140140
/// \todo For the moment, PID is separated from the other selections, hence instead of a single value an std::array of size two is returned
141-
/// \tparam cutContainerType Data type of the bit-wise container for the selections
141+
/// \tparam CutContainerType Data type of the bit-wise container for the selections
142142
/// \tparam T Data type of the track
143143
/// \param track Track
144144
/// \return The bit-wise container for the selections, separately with all selection criteria, and the PID
145-
template <typename cutContainerType, typename T>
146-
std::array<cutContainerType, 2> getCutContainer(T const& track);
145+
template <typename CutContainerType, typename T>
146+
std::array<CutContainerType, 2> getCutContainer(T const& track);
147147

148148
/// Some basic QA histograms
149149
/// \tparam part Type of the particle for proper naming of the folders for QA
@@ -289,7 +289,7 @@ class FemtoUniverseTrackSelection : public FemtoUniverseObjectSelection<float, f
289289
"Maximal PID (nSigma)"}; ///< Helper information for the different selections
290290
}; // namespace femto_universe
291291

292-
template <o2::aod::femtouniverseparticle::ParticleType part, o2::aod::femtouniverseparticle::TrackType tracktype, typename cutContainerType>
292+
template <o2::aod::femtouniverseparticle::ParticleType part, o2::aod::femtouniverseparticle::TrackType tracktype, typename CutContainerType>
293293
void FemtoUniverseTrackSelection::init(HistogramRegistry* registry)
294294
{
295295
if (registry) {
@@ -298,7 +298,7 @@ void FemtoUniverseTrackSelection::init(HistogramRegistry* registry)
298298

299299
/// check whether the number of selection exceeds the bitmap size
300300
unsigned int nSelections = getNSelections() - getNSelections(femto_universe_track_selection::kPIDnSigmaMax);
301-
if (nSelections > 8 * sizeof(cutContainerType)) {
301+
if (nSelections > 8 * sizeof(CutContainerType)) {
302302
LOG(fatal) << "FemtoUniverseTrackCuts: Number of selections too large for your container - quitting!";
303303
}
304304

@@ -456,12 +456,12 @@ bool FemtoUniverseTrackSelection::isSelectedMinimal(T const& track)
456456
return true;
457457
}
458458

459-
template <typename cutContainerType, typename T>
460-
std::array<cutContainerType, 2> FemtoUniverseTrackSelection::getCutContainer(T const& track)
459+
template <typename CutContainerType, typename T>
460+
std::array<CutContainerType, 2> FemtoUniverseTrackSelection::getCutContainer(T const& track)
461461
{
462-
cutContainerType output = 0;
462+
CutContainerType output = 0;
463463
size_t counter = 0;
464-
cutContainerType outputPID = 0;
464+
CutContainerType outputPID = 0;
465465
const auto sign = track.sign();
466466
const auto pT = track.pt();
467467
const auto eta = track.eta();

PWGCF/FemtoUniverse/Core/FemtoUniverseV0Selection.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class FemtoUniverseV0Selection
7171
/// Initializes histograms for the task
7272
template <o2::aod::femtouniverseparticle::ParticleType part,
7373
o2::aod::femtouniverseparticle::ParticleType daugh,
74-
typename cutContainerType>
74+
typename CutContainerType>
7575
void init(HistogramRegistry* registry);
7676

7777
template <typename C, typename V, typename T>
@@ -84,8 +84,8 @@ class FemtoUniverseV0Selection
8484

8585
/// \todo for the moment the PID of the tracks is factored out into a separate
8686
/// field, hence 5 values in total \\ASK: what does it mean?
87-
template <typename cutContainerType, typename C, typename V, typename T>
88-
std::array<cutContainerType, 5> getCutContainer(C const& col, V const& v0,
87+
template <typename CutContainerType, typename C, typename V, typename T>
88+
std::array<CutContainerType, 5> getCutContainer(C const& col, V const& v0,
8989
T const& posTrack,
9090
T const& negTrack);
9191

@@ -273,7 +273,7 @@ class FemtoUniverseV0Selection
273273

274274
template <o2::aod::femtouniverseparticle::ParticleType part,
275275
o2::aod::femtouniverseparticle::ParticleType daugh,
276-
typename cutContainerType>
276+
typename CutContainerType>
277277
void FemtoUniverseV0Selection::init(HistogramRegistry* registry)
278278
{
279279
if (registry) {
@@ -288,7 +288,7 @@ void FemtoUniverseV0Selection::init(HistogramRegistry* registry)
288288
/// \todo this should be an automatic check in the parent class, and the
289289
/// return type should be templated
290290
size_t nSelections = getNSelections();
291-
if (nSelections > 8 * sizeof(cutContainerType)) {
291+
if (nSelections > 8 * sizeof(CutContainerType)) {
292292
LOG(fatal) << "FemtoUniverseV0Cuts: Number of selections to large for your "
293293
"container - quitting!";
294294
}
@@ -332,11 +332,11 @@ void FemtoUniverseV0Selection::init(HistogramRegistry* registry)
332332

333333
posDaughTrack.init<aod::femtouniverseparticle::ParticleType::kV0Child,
334334
aod::femtouniverseparticle::TrackType::kPosChild,
335-
aod::femtouniverseparticle::cutContainerType>(
335+
aod::femtouniverseparticle::CutContainerType>(
336336
mHistogramRegistry);
337337
negDaughTrack.init<aod::femtouniverseparticle::ParticleType::kV0Child,
338338
aod::femtouniverseparticle::TrackType::kNegChild,
339-
aod::femtouniverseparticle::cutContainerType>(
339+
aod::femtouniverseparticle::CutContainerType>(
340340
mHistogramRegistry);
341341

342342
mHistogramRegistry->add("LambdaQA/hInvMassLambdaNoCuts", "No cuts", kTH1F,
@@ -542,13 +542,13 @@ void FemtoUniverseV0Selection::fillLambdaQA(C const& /*col*/, V const& v0,
542542

543543
/// the CosPA of V0 needs as argument the posXYZ of collisions vertex so we need
544544
/// to pass the collsion as well
545-
template <typename cutContainerType, typename C, typename V, typename T>
546-
std::array<cutContainerType, 5>
545+
template <typename CutContainerType, typename C, typename V, typename T>
546+
std::array<CutContainerType, 5>
547547
FemtoUniverseV0Selection::getCutContainer(C const& /*col*/, V const& v0, T const& posTrack, T const& negTrack)
548548
{
549-
auto outputPosTrack = posDaughTrack.getCutContainer<cutContainerType>(posTrack);
550-
auto outputNegTrack = negDaughTrack.getCutContainer<cutContainerType>(negTrack);
551-
cutContainerType output = 0;
549+
auto outputPosTrack = posDaughTrack.getCutContainer<CutContainerType>(posTrack);
550+
auto outputNegTrack = negDaughTrack.getCutContainer<CutContainerType>(negTrack);
551+
CutContainerType output = 0;
552552
size_t counter = 0;
553553

554554
auto lambdaMassNominal = o2::constants::physics::MassLambda; // FIXME: Get from the common header

PWGCF/FemtoUniverse/Core/femtoUtils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ int getPIDselection(float nSigma, std::vector<float> vNsigma)
5353
/// \param vNsigma vector with available n-sigma selections for PID (to check if chosen nSigma value is avialable + size to get the bit number)
5454
/// \param KDetector enum corresponding to the PID technique
5555
/// \return Whether the PID selection specified in the vectors is fulfilled
56-
bool isPIDSelected(aod::femtouniverseparticle::cutContainerType pidcut,
56+
bool isPIDSelected(aod::femtouniverseparticle::CutContainerType pidcut,
5757
int vSpecies,
5858
int nSpecies,
5959
float nSigma,
@@ -76,7 +76,7 @@ bool isPIDSelected(aod::femtouniverseparticle::cutContainerType pidcut,
7676
/// \param nSigmaTPC Number of TPC sigmas for selection
7777
/// \param nSigmaTPCTOF Number of TPC+TOF sigmas for selection (circular selection)
7878
/// \return Whether the PID selection is fulfilled
79-
bool isFullPIDSelected(aod::femtouniverseparticle::cutContainerType const& pidCut,
79+
bool isFullPIDSelected(aod::femtouniverseparticle::CutContainerType const& pidCut,
8080
float momentum,
8181
float pidThresh,
8282
int vSpecies,

0 commit comments

Comments
 (0)