Skip to content

Commit 587db2a

Browse files
committed
Please consider the following formatting changes
1 parent 9853a3d commit 587db2a

File tree

1 file changed

+20
-21
lines changed

1 file changed

+20
-21
lines changed

PWGCF/Flow/Tasks/flowSP.cxx

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ struct FlowSP {
594594
if (cfg.correctionsLoaded)
595595
return;
596596

597-
int nWeights = 3;
597+
int nWeights = 3;
598598

599599
if (cfgNUA.value.empty() == false) {
600600
TList* listCorrections = ccdb->getForTimeStamp<TList>(cfgNUA, timestamp);
@@ -604,26 +604,25 @@ struct FlowSP {
604604
int sizeAcc = cfg.mAcceptance.size();
605605
if (sizeAcc < nWeights) {
606606
LOGF(warning, "Could not load acceptance weights from %s", cfgNUA.value.c_str());
607-
else
608-
LOGF(info, "Loaded acceptance weights from %s", cfgNUA.value.c_str());
609-
} else {
610-
LOGF(info, "cfgNUA empty! No corrections loaded");
611-
}
612-
if (cfgNUE.value.empty() == false) {
613-
TList* listCorrections = ccdb->getForTimeStamp<TList>(cfgNUE, timestamp);
614-
cfg.mEfficiency.push_back(reinterpret_cast<TH1D*>(listCorrections->FindObject("Efficiency")));
615-
cfg.mEfficiency.push_back(reinterpret_cast<TH1D*>(listCorrections->FindObject("Efficiency_pos")));
616-
cfg.mEfficiency.push_back(reinterpret_cast<TH1D*>(listCorrections->FindObject("Efficiency_neg")));
617-
int sizeEff = cfg.mEfficiency.size();
618-
if (sizeEff < nWeights) {
619-
LOGF(fatal, "Could not load efficiency histogram for trigger particles from %s", cfgNUE.value.c_str());
607+
else LOGF(info, "Loaded acceptance weights from %s", cfgNUA.value.c_str());
608+
} else {
609+
LOGF(info, "cfgNUA empty! No corrections loaded");
610+
}
611+
if (cfgNUE.value.empty() == false) {
612+
TList* listCorrections = ccdb->getForTimeStamp<TList>(cfgNUE, timestamp);
613+
cfg.mEfficiency.push_back(reinterpret_cast<TH1D*>(listCorrections->FindObject("Efficiency")));
614+
cfg.mEfficiency.push_back(reinterpret_cast<TH1D*>(listCorrections->FindObject("Efficiency_pos")));
615+
cfg.mEfficiency.push_back(reinterpret_cast<TH1D*>(listCorrections->FindObject("Efficiency_neg")));
616+
int sizeEff = cfg.mEfficiency.size();
617+
if (sizeEff < nWeights) {
618+
LOGF(fatal, "Could not load efficiency histogram for trigger particles from %s", cfgNUE.value.c_str());
619+
}
620+
LOGF(info, "Loaded efficiency histogram from %s", cfgNUE.value.c_str());
621+
} else {
622+
LOGF(info, "cfgNUE empty! No corrections loaded");
620623
}
621-
LOGF(info, "Loaded efficiency histogram from %s", cfgNUE.value.c_str());
622-
} else {
623-
LOGF(info, "cfgNUE empty! No corrections loaded");
624-
}
625624
cfg.correctionsLoaded = true;
626-
}
625+
}
627626

628627
// From Generic Framework
629628
bool setCurrentParticleWeights(int pID, float& weight_nue, float& weight_nua, const float& phi, const float& eta, const float& pt, const float& vtxz)
@@ -707,11 +706,11 @@ struct FlowSP {
707706
if (collision.numContrib() > 1) {
708707
vtxz = collision.posZ();
709708
float zRes = std::sqrt(collision.covZZ());
710-
float minzRes = 0.25;
709+
float minzRes = 0.25;
711710
int maxNumContrib = 20;
712711
if (zRes > minzRes && collision.numContrib() < maxNumContrib) {
713712
vtxz = -999;
714-
}
713+
}
715714

716715
auto multNTracksPV = collision.multNTracksPV();
717716

0 commit comments

Comments
 (0)