Skip to content

Commit

Permalink
Please consider the following formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alibuild committed May 17, 2024
1 parent d83ea8d commit fb78818
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
3 changes: 1 addition & 2 deletions Detectors/GLOQC/include/GLOQC/ITSTPCMatchingQCParams.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@ struct ITSTPCMatchingQCParams : public o2::conf::ConfigurableParamHelper<ITSTPCM
float minDCACutY = 10.f;
float cutK0Mass = 0.05f;
float maxEtaK0 = 0.8f;


O2ParamDef(ITSTPCMatchingQCParams, "ITSTPCMatchingQC");
};

} // namespace globaltracking
} // namespace gloqc
} // end namespace o2

#endif
10 changes: 5 additions & 5 deletions Detectors/GLOQC/include/GLOQC/MatchITSTPCQC.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class MatchITSTPCQC
TEfficiency* getFractionITSTPCmatchPhysPrim1OverPt(matchType m) const { return mFractionITSTPCmatchPhysPrim1OverPt[m]; }

TH1F* getHistoK0Mass() const { return mK0Mass; }

void getHistos(TObjArray& objar);

/// \brief Publishes the histograms to the publisher e.g. the one provided by the QC task
Expand Down Expand Up @@ -264,9 +264,9 @@ class MatchITSTPCQC
void setEtaCut(float v) { mEtaCut = v; } // TODO: define 2 different values for min and max (*)

// K0
void setMaxK0Eta(float v) { mMaxEtaK0 = v; }
void setRefitK0(bool v) { mRefit = v; }
void setCutK0Mass(bool v) { mCutK0Mass = v; }
void setMaxK0Eta(float v) { mMaxEtaK0 = v; }
void setRefitK0(bool v) { mRefit = v; }
void setCutK0Mass(bool v) { mCutK0Mass = v; }

private:
std::shared_ptr<o2::globaltracking::DataRequest> mDataRequest;
Expand Down Expand Up @@ -393,7 +393,7 @@ class MatchITSTPCQC
bool mRefit = false; // whether to refit or not
float mMaxEtaK0 = 0.8; // cut on the K0 eta
long int mTimestamp = -1; // timestamp used to load the SVertexParam object: if differnt from -1, we don't load (it means we already did it)

ClassDefNV(MatchITSTPCQC, 3);
};
} // namespace gloqc
Expand Down
16 changes: 7 additions & 9 deletions Detectors/GLOQC/src/MatchITSTPCQC.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ bool MatchITSTPCQC::init()
// V0s
mK0Mass = new TH1F("mK0Mass", "K0 invariant mass", 100, 0.3, 0.7);
}

return true;
}

Expand All @@ -393,7 +393,7 @@ void MatchITSTPCQC::initDataRequest()
{

// initialize data request, if it was not already done

if (mDoK0QC) {
mSrc = GID::getSourcesMask("ITS,TPC,ITS-TPC,ITS-TPC-TOF,TPC-TOF,TPC-TRD,ITS-TPC-TRD,TPC-TRD-TOF,ITS-TPC-TOF,ITS-TPC-TRD-TOF");
}
Expand Down Expand Up @@ -907,7 +907,7 @@ void MatchITSTPCQC::run(o2::framework::ProcessingContext& ctx)
// now doing K0S
const auto pvertices = ctx.inputs().get<gsl::span<o2::dataformats::PrimaryVertex>>("pvtx");
LOG(info) << "Found " << pvertices.size() << " primary vertices";

auto v0IDs = mRecoCont.getV0sIdx();
auto nv0 = v0IDs.size();
if (nv0 > mRecoCont.getV0s().size()) {
Expand All @@ -922,19 +922,19 @@ void MatchITSTPCQC::run(o2::framework::ProcessingContext& ctx)
const auto v0id = v0IDs[iv];
pv2sv[v0id.getVertexID()].push_back(iv);
}
int nV0sOk = 0;
int nV0sOk = 0;
// processing every sec vtx for each prim vtx
for (auto it : pv2sv) {
int pvID = it.first;
auto& vv = it.second;
if (pvID < 0 || vv.size() == 0) {
continue;
continue;
}
for (int iv0 : vv) {
nV0sOk += processV0(iv0, mRecoCont) ? 1 : 0;
nV0sOk += processV0(iv0, mRecoCont) ? 1 : 0;
}
}

LOG(info) << "Processed " << nV0sOk << " V0s";
}
evCount++;
Expand Down Expand Up @@ -1008,7 +1008,6 @@ bool MatchITSTPCQC::refitV0(const o2::dataformats::V0Index& id, o2::dataformats:
return true;
}


//__________________________________________________________
void MatchITSTPCQC::finalize()
{
Expand Down Expand Up @@ -1234,5 +1233,4 @@ void MatchITSTPCQC::getHistos(TObjArray& objar)

// V0
objar.Add(mK0Mass);

}

0 comments on commit fb78818

Please sign in to comment.