Skip to content

Commit e5c05be

Browse files
vkuceraalibuild
andauthored
PWGEM: Fix compilation warnings (#6783)
* PWGEM: Fix compilation warnings * Please consider the following formatting changes (#93) --------- Co-authored-by: ALICE Builder <alibuild@users.noreply.github.com>
1 parent 3159a33 commit e5c05be

16 files changed

Lines changed: 25 additions & 25 deletions

PWGEM/Dilepton/Core/PhotonHBT.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ struct PhotonHBT {
219219
std::vector<float> ep_bin_edges;
220220
std::vector<float> occ_bin_edges;
221221

222-
void init(InitContext& context)
222+
void init(InitContext& /*context*/)
223223
{
224224
zvtx_bin_edges = std::vector<float>(ConfVtxBins.value.begin(), ConfVtxBins.value.end());
225225
zvtx_bin_edges.erase(zvtx_bin_edges.begin());
@@ -432,7 +432,7 @@ struct PhotonHBT {
432432
}
433433

434434
template <int ev_id, typename TCollision>
435-
void fillPairHistogram(TCollision const& collision, const ROOT::Math::PtEtaPhiMVector v1, const ROOT::Math::PtEtaPhiMVector v2, const float dca1, const float dca2)
435+
void fillPairHistogram(TCollision const& /*collision*/, const ROOT::Math::PtEtaPhiMVector v1, const ROOT::Math::PtEtaPhiMVector v2, const float dca1, const float dca2)
436436
{
437437

438438
// if constexpr (ev_id == 1 && pairtype == PairType::kEEEE) {

PWGEM/Dilepton/TableProducer/createEMEventDilepton.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ struct CreateEMEventDilepton {
121121
PresliceUnsorted<aod::EMPrimaryMuons> perCollision_mu = aod::emprimarymuon::collisionId;
122122

123123
template <bool isMC, EMEventType eventype, typename TCollisions, typename TBCs>
124-
void skimEvent(TCollisions const& collisions, TBCs const& bcs)
124+
void skimEvent(TCollisions const& collisions, TBCs const&)
125125
{
126126
for (auto& collision : collisions) {
127127
if constexpr (isMC) {

PWGEM/Dilepton/TableProducer/skimmerPrimaryMuon.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ struct skimmerPrimaryMuon {
558558
Partition<MyTracksMC> global_muons_mc = o2::aod::fwdtrack::trackType == uint8_t(o2::aod::fwdtrack::ForwardTrackTypeEnum::GlobalMuonTrack); // MFT-MCH-MID
559559
Partition<MyTracksMC> sa_muons_mc = o2::aod::fwdtrack::trackType == uint8_t(o2::aod::fwdtrack::ForwardTrackTypeEnum::MuonStandaloneTrack); // MCH-MID
560560

561-
void processMC_SA(soa::Join<aod::McCollisionLabels, aod::Collisions, aod::EvSels> const& collisions, aod::BCsWithTimestamps const&, MyTracksMC const& tracks, MFTTracksMC const& mftsatracks)
561+
void processMC_SA(soa::Join<aod::McCollisionLabels, aod::Collisions, aod::EvSels> const& collisions, aod::BCsWithTimestamps const&, MyTracksMC const& tracks, MFTTracksMC const&)
562562
{
563563
for (auto& collision : collisions) {
564564
if (!collision.has_mcCollision()) {

PWGEM/Dilepton/Tasks/dielectronQC.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ struct dielectronQC {
259259
void addhistograms()
260260
{
261261
// event info
262-
o2::aod::pwgem::dilepton::utils::eventhistogram::addEventHistograms(&fRegistry, cfgDo_v2 | cfgDo_v3);
262+
o2::aod::pwgem::dilepton::utils::eventhistogram::addEventHistograms(&fRegistry, cfgDo_v2 || cfgDo_v3);
263263

264264
// pair info
265265
const AxisSpec axis_mass{ConfMeeBins, "m_{ee} (GeV/c^{2})"};
@@ -589,11 +589,11 @@ struct dielectronQC {
589589
continue;
590590
}
591591

592-
o2::aod::pwgem::dilepton::utils::eventhistogram::fillEventInfo<0>(&fRegistry, collision, cfgDo_v2 | cfgDo_v3);
592+
o2::aod::pwgem::dilepton::utils::eventhistogram::fillEventInfo<0>(&fRegistry, collision, cfgDo_v2 || cfgDo_v3);
593593
if (!fEMEventCut.IsSelected(collision)) {
594594
continue;
595595
}
596-
o2::aod::pwgem::dilepton::utils::eventhistogram::fillEventInfo<1>(&fRegistry, collision, cfgDo_v2 | cfgDo_v3);
596+
o2::aod::pwgem::dilepton::utils::eventhistogram::fillEventInfo<1>(&fRegistry, collision, cfgDo_v2 || cfgDo_v3);
597597
fRegistry.fill(HIST("Event/before/hCollisionCounter"), 10.0); // accepted
598598
fRegistry.fill(HIST("Event/after/hCollisionCounter"), 10.0); // accepted
599599
std::array<float, 2> q2ft0m = {collision.q2xft0m(), collision.q2yft0m()};

PWGEM/Dilepton/Tasks/dimuonQC.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ struct dimuonQC {
251251
void addhistograms()
252252
{
253253
// event info
254-
o2::aod::pwgem::dilepton::utils::eventhistogram::addEventHistograms(&fRegistry, cfgDo_v2 | cfgDo_v3);
254+
o2::aod::pwgem::dilepton::utils::eventhistogram::addEventHistograms(&fRegistry, cfgDo_v2 || cfgDo_v3);
255255

256256
// pair info
257257
const AxisSpec axis_mass{ConfMmumuBins, "m_{#mu#mu} (GeV/c^{2})"};
@@ -509,11 +509,11 @@ struct dimuonQC {
509509
continue;
510510
}
511511

512-
o2::aod::pwgem::dilepton::utils::eventhistogram::fillEventInfo<0>(&fRegistry, collision, cfgDo_v2 | cfgDo_v3);
512+
o2::aod::pwgem::dilepton::utils::eventhistogram::fillEventInfo<0>(&fRegistry, collision, cfgDo_v2 || cfgDo_v3);
513513
if (!fEMEventCut.IsSelected(collision)) {
514514
continue;
515515
}
516-
o2::aod::pwgem::dilepton::utils::eventhistogram::fillEventInfo<1>(&fRegistry, collision, cfgDo_v2 | cfgDo_v3);
516+
o2::aod::pwgem::dilepton::utils::eventhistogram::fillEventInfo<1>(&fRegistry, collision, cfgDo_v2 || cfgDo_v3);
517517
fRegistry.fill(HIST("Event/before/hCollisionCounter"), 10.0); // accepted
518518
fRegistry.fill(HIST("Event/after/hCollisionCounter"), 10.0); // accepted
519519
std::array<float, 2> q2ft0m = {collision.q2xft0m(), collision.q2yft0m()};

PWGEM/Dilepton/Tasks/dimuonQCMC.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ struct dimuonQCMC {
373373
}
374374

375375
template <typename TCollision, typename TTrack1, typename TTrack2, typename TMCParticles>
376-
bool fillTruePairInfo(TCollision const& collision, TTrack1 const& t1, TTrack2 const& t2, TMCParticles const& mcparticles)
376+
bool fillTruePairInfo(TCollision const& /*collision*/, TTrack1 const& t1, TTrack2 const& t2, TMCParticles const& mcparticles)
377377
{
378378
if (!fDimuonCut.IsSelectedTrack(t1) || !fDimuonCut.IsSelectedTrack(t2)) {
379379
return false;

PWGEM/Dilepton/Tasks/tableReaderBarrel.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ struct AnalysisEventMixing {
812812

813813
NoBinningPolicy<aod::dqanalysisflags::MixingHash> hashBin;
814814

815-
void init(o2::framework::InitContext& context)
815+
void init(o2::framework::InitContext& /*context*/)
816816
{
817817
fCurrentRun = 0;
818818

@@ -1051,7 +1051,7 @@ struct AnalysisSameEventPairing {
10511051
}
10521052
}
10531053

1054-
void init(o2::framework::InitContext& context)
1054+
void init(o2::framework::InitContext& /*context*/)
10551055
{
10561056
fCurrentRun = 0;
10571057

PWGEM/Dilepton/Utils/MomentumSmearer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class MomentumSmearer
4747
}
4848

4949
/// Constructor with resolution histograms and efficiency
50-
MomentumSmearer(TString resFileName, TString resPtHistName, TString resEtaHistName, TString resPhiPosHistName, TString resPhiNegHistName, TString effFileName, TString effHistName)
50+
MomentumSmearer(TString resFileName, TString resPtHistName, TString resEtaHistName, TString resPhiPosHistName, TString resPhiNegHistName, TString /*effFileName*/, TString /*effHistName*/)
5151
{
5252
setResFileName(resFileName);
5353
setResPtHistName(resPtHistName);

PWGEM/PhotonMeson/Core/DalitzEECut.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class DalitzEECut : public TNamed
111111
}
112112

113113
template <bool isML = false, typename TTrack, typename TCollision = int>
114-
bool IsSelectedTrack(TTrack const& track, TCollision const& collision = 0) const
114+
bool IsSelectedTrack(TTrack const& track, TCollision const& = 0) const
115115
{
116116
if (!track.hasITS() || !track.hasTPC()) { // track has to be ITS-TPC matched track
117117
return false;

PWGEM/PhotonMeson/TableProducer/associateMCinfoPhoton.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ struct AssociateMCInfoPhoton {
107107
std::vector<uint16_t> genEta; // primary, pt, y
108108

109109
template <uint8_t system, typename TTracks, typename TFwdTracks, typename TPCMs, typename TPCMLegs, typename TPHOSs, typename TEMCs, typename TEMPrimaryElectrons>
110-
void skimmingMC(MyCollisionsMC const& collisions, aod::BCs const&, aod::McCollisions const&, aod::McParticles const& mcTracks, TTracks const& o2tracks, TFwdTracks const& o2fwdtracks, TPCMs const& v0photons, TPCMLegs const& /*v0legs*/, TPHOSs const& /*phosclusters*/, TEMCs const& emcclusters, TEMPrimaryElectrons const& emprimaryelectrons)
110+
void skimmingMC(MyCollisionsMC const& collisions, aod::BCs const&, aod::McCollisions const&, aod::McParticles const& mcTracks, TTracks const& o2tracks, TFwdTracks const&, TPCMs const& v0photons, TPCMLegs const& /*v0legs*/, TPHOSs const& /*phosclusters*/, TEMCs const& emcclusters, TEMPrimaryElectrons const& emprimaryelectrons)
111111
{
112112
// temporary variables used for the indexing of the skimmed MC stack
113113
std::map<uint64_t, int> fNewLabels;

0 commit comments

Comments
 (0)