Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions PWGCF/TwoParticleCorrelations/TableProducer/identifiedBfFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,6 @@ struct IdentifiedBfFilterTracks {
Configurable<float> tofCut{"tofCut", 0.8, "Momentum under which we don't use TOF PID data"};
Configurable<bool> makeNSigmaPlots{"makeNSigmaPlots", false, "Produce the N Sigma Plots for external storage. Default false"};


OutputObj<TList> fOutput{"IdentifiedBfFilterTracksInfo", OutputObjHandlingPolicy::AnalysisObject};
bool checkAmbiguousTracks = false;

Expand Down Expand Up @@ -1033,18 +1032,18 @@ struct IdentifiedBfFilterTracks {
TString::Format("N(%s^{#plus}) #minus N(%s^{#minus}) distribution (truth);N(%s^{#plus}) #minus N(%s^{#minus})", speciesTitle[sp], speciesTitle[sp], speciesTitle[sp], speciesTitle[sp]).Data(),
79, -39.5, 39.5);
}
if(makeNSigmaPlots){
if (makeNSigmaPlots) {
for (int sp1 = 0; sp1 < kIdBfNoOfSpecies; ++sp1) {
for (int sp2 = 0; sp2 < kIdBfNoOfSpecies; ++sp2) {
fhTrueNSigmaTPC[sp1][sp2] = new TH2F(TString::Format("fhTrueNSigmaTPC%s_%s", speciesName[sp1], speciesName[sp2]).Data(),
TString::Format("N #sigma %s from TPC vs P for generated %s;N #sigma;p (GeV/c)", speciesTitle[sp1], speciesTitle[sp2]).Data(),
48, -6, 6,
ptbins, ptlow, ptup);
TString::Format("N #sigma %s from TPC vs P for generated %s;N #sigma;p (GeV/c)", speciesTitle[sp1], speciesTitle[sp2]).Data(),
48, -6, 6,
ptbins, ptlow, ptup);

fhTrueNSigmaTOF[sp1][sp2] = new TH2F(TString::Format("fhTrueNSigmaTOF%s_%s", speciesName[sp1], speciesName[sp2]).Data(),
TString::Format("N #sigma %s from TOF vs P for generated %s;N #sigma;p (GeV/c)", speciesTitle[sp1], speciesTitle[sp2]).Data(),
48, -6, 6,
ptbins, ptlow, ptup);
TString::Format("N #sigma %s from TOF vs P for generated %s;N #sigma;p (GeV/c)", speciesTitle[sp1], speciesTitle[sp2]).Data(),
48, -6, 6,
ptbins, ptlow, ptup);
}
}
}
Expand Down Expand Up @@ -1085,7 +1084,7 @@ struct IdentifiedBfFilterTracks {
fOutputList->Add(fhTrueNPosNegA[sp]);
fOutputList->Add(fhTrueDeltaNA[sp]);
}
if(makeNSigmaPlots){
if (makeNSigmaPlots) {
for (int sp1 = 0; sp1 < kIdBfNoOfSpecies; ++sp1) {
for (int sp2 = 0; sp2 < kIdBfNoOfSpecies; ++sp2) {
fOutputList->Add(fhTrueNSigmaTPC[sp1][sp2]);
Expand Down Expand Up @@ -1497,7 +1496,7 @@ inline MatchRecoGenSpecies IdentifiedBfFilterTracks::identifyTrack(TrackObject c
float nsigmas[kIdBfNoOfSpecies];

if constexpr (framework::has_type_v<aod::mctracklabel::McParticleId, typename TrackObject::all_columns>) {
if(makeNSigmaPlots){
if (makeNSigmaPlots) {
identifyRealNSigma(track.template mcParticle_as<aod::McParticles>(), actualTPCNSigma, actualTOFNSigma, track.tpcInnerParam());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#include "PWGCF/Core/AnalysisConfigurableCuts.h"
#include "MathUtils/Utils.h"


namespace o2

{
Expand Down Expand Up @@ -67,8 +66,6 @@ enum MatchRecoGenSpecies {
kWrongSpecies = -1
};



/// \enum SpeciesPairMatch
/// \brief The species pair considered by the matching test
enum SpeciesPairMatch {
Expand Down Expand Up @@ -241,7 +238,6 @@ float particleMaxDCAxy = 999.9f;
float particleMaxDCAZ = 999.9f;
bool traceCollId0 = false;


inline TriggerSelectionType getTriggerSelection(std::string const& triggstr)
{
if (triggstr.empty() || triggstr == "MB") {
Expand Down
4 changes: 2 additions & 2 deletions PWGCF/TwoParticleCorrelations/Tasks/identifiedbf.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ struct IdentifiedbfTask {
std::vector<TH1F*> fhN1VsPt{nch, nullptr}; //!<! weighted single particle distribution vs \f$p_T\f$, for the different species
std::vector<TH2F*> fhN1VsEtaPhi{nch, nullptr}; //!<! weighted single particle distribution vs \f$\eta,\;\phi\f$, for the different species
std::vector<TH2F*> fhSum1PtVsEtaPhi{nch, nullptr}; //!<! accumulated sum of weighted \f$p_T\f$ vs \f$\eta,\;\phi\f$, for the different species
std::vector<TH3F*> fhN1VsZEtaPhiPt{nch + 1, nullptr}; //!<! single particle distribution vs \f$\mbox{vtx}_z,\; \eta,\;\phi,\;p_T\f$, for the different species
std::vector<TH3F*> fhN1VsZEtaPhiPt{nch + 1, nullptr}; //!<! single particle distribution vs \f$\mbox{vtx}_z,\; \eta,\;\phi,\;p_T\f$, for the different species
std::vector<TH3F*> fhN1VsZEtaPhiPtPrimary{nch, nullptr}; //!<! single particle distribution of primary particles vs \f$\mbox{vtx}_z,\; \eta,\;\phi,\;p_T\f$, for the different species
std::vector<TH3F*> fhN1VsZEtaPhiPtSecondary{nch, nullptr}; //!<! single particle distribution of primary particles vs \f$\mbox{vtx}_z,\; \eta,\;\phi,\;p_T\f$, for the different species
std::vector<TH3F*> fhSum1PtVsZEtaPhiPt{nch, nullptr}; //!<! accumulated sum of weighted \f$p_T\f$ vs \f$\mbox{vtx}_z,\; \eta,\;\phi,\;p_T\f$, for the different species
Expand Down Expand Up @@ -627,7 +627,7 @@ struct IdentifiedbfTask {
fOutputList->Add(fhSum1PtVsZEtaPhiPt[i]);
}
}
if(!smallsingles){
if (!smallsingles) {
TH1::SetDefaultSumw2(false);
fhN1VsZEtaPhiPt[nch] = new TH3F(
TString::Format("n1_%s_vsZ_vsEtaPhi_vsPt", "h"),
Expand Down
Loading