Skip to content
Merged
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/Flow/Tasks/flowSP.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ struct FlowSP {
O2_DEFINE_CONFIGURABLE(cfgMagField, float, 99999, "Configurable magnetic field;default CCDB will be queried");
O2_DEFINE_CONFIGURABLE(cfgCentMin, float, 0, "Minimum cenrality for selected events");
O2_DEFINE_CONFIGURABLE(cfgCentMax, float, 90, "Maximum cenrality for selected events");
O2_DEFINE_CONFIGURABLE(cfgFilterLeptons, bool, true, "Filter out leptons from MCGenerated by requiring |pdgCode| > 100");
O2_DEFINE_CONFIGURABLE(cfgFilterLeptons, bool, true, "Filter out leptons from MCGenerated by requiring |pdgCode| > 100");
// NUA and NUE weights
O2_DEFINE_CONFIGURABLE(cfgFillWeights, bool, true, "Fill NUA weights");
O2_DEFINE_CONFIGURABLE(cfgFillWeightsPOS, bool, true, "Fill NUA weights only for positive charges");
Expand Down Expand Up @@ -1180,7 +1180,7 @@ struct FlowSP {
}
fillPIDQA<ft, kInclusive>(track);

if(!cfgFillChargeDependenceQA)
if (!cfgFillChargeDependenceQA)
return;

if (pos) {
Expand Down Expand Up @@ -1339,7 +1339,7 @@ struct FlowSP {
if (cfgFillQABefore) {
fillAllQA<kBefore, kUnidentified>(track, vtxz, centrality, pos);

if (cfgFillPIDQA){
if (cfgFillPIDQA) {
switch (trackPID) {
case kPions:
fillAllQA<kBefore, kPions>(track, vtxz, centrality, pos);
Expand Down Expand Up @@ -1385,10 +1385,9 @@ struct FlowSP {

histos.fill(HIST("hTrackCount"), trackSel_ParticleWeights);


fillAllQA<kAfter, kUnidentified>(track, vtxz, centrality, pos, wacc, weff, waccP, weffP, waccN, weffN);

if(cfgFillPIDQA){
if (cfgFillPIDQA) {
switch (trackPID) {
case kPions:
fillAllQA<kAfter, kPions>(track, vtxz, centrality, pos, wacc, weff, waccP, weffP, waccN, weffN);
Expand Down Expand Up @@ -1505,7 +1504,7 @@ struct FlowSP {
if (cfgFillQABefore) {
fillAllQA<kBefore, kUnidentified>(track, vtxz, centrality, pos);

if(cfgFillPIDQA){
if (cfgFillPIDQA) {
switch (std::abs(mcParticle.pdgCode())) {
case kPions:
fillAllQA<kBefore, kPions>(track, vtxz, centrality, pos);
Expand All @@ -1527,7 +1526,7 @@ struct FlowSP {

fillAllQA<kAfter, kUnidentified>(track, vtxz, centrality, pos);

if(cfgFillPIDQA){
if (cfgFillPIDQA) {
switch (std::abs(mcParticle.pdgCode())) {
case kPions:
fillAllQA<kAfter, kPions>(track, vtxz, centrality, pos);
Expand Down Expand Up @@ -1622,9 +1621,9 @@ struct FlowSP {
if (std::fabs(charge) < 1)
continue;

int minVal = 100;
if(cfgFilterLeptons && std::fabs(pdgCode) < minVal) {
continue;
int minVal = 100;
if (cfgFilterLeptons && std::fabs(pdgCode) < minVal) {
continue;
}

bool pos = (charge > 0) ? true : false;
Expand Down
Loading