|
64 | 64 | #include <Math/Vector4Dfwd.h> |
65 | 65 | #include <TH1.h> |
66 | 66 | #include <TH2.h> |
67 | | -#include <TH3.h> |
68 | 67 | #include <TList.h> |
69 | 68 | #include <TRandom3.h> |
70 | 69 | #include <TString.h> |
@@ -150,6 +149,7 @@ struct Dilepton { |
150 | 149 | o2::framework::ConfigurableAxis ConfPolarizationQuadMomBins{"ConfPolarizationQuadMomBins", {15, -0.5, 1}, "quadrupole moment bins for polarization analysis"}; // quardrupole moment <(3 x cos^2(theta) -1)/2> |
151 | 150 |
|
152 | 151 | o2::framework::Configurable<int> cfgNumBootstrapSamples{"cfgNumBootstrapSamples", 1, "Number of Bootstrap Samples"}; |
| 152 | + |
153 | 153 |
|
154 | 154 | EMEventCut fEMEventCut; |
155 | 155 | struct : o2::framework::ConfigurableGroup { |
@@ -570,7 +570,7 @@ struct Dilepton { |
570 | 570 | LOGF(info, "h2sp_resolution.GetBinContent(40, 1) = %f", h2sp_resolution->GetBinContent(40, 1)); |
571 | 571 | } |
572 | 572 |
|
573 | | - if (flowcorrectionGroup.cfgApplyWeightNUA) { |
| 573 | + if(flowcorrectionGroup.cfgApplyWeightNUA){ |
574 | 574 | auto list_nua = ccdb->getForTimeStamp<TList>(flowcorrectionGroup.nuaPath, collision.timestamp()); |
575 | 575 | h3nua_weights.push_back(reinterpret_cast<TH3D*>(list_nua->FindObject("weights_uls_NUA"))); |
576 | 576 | LOGF(info, "h3nua_weights.at(0)->GetBinContent(5, 5, 5) = %f", h3nua_weights.at(0)->GetBinContent(5, 5, 5)); |
@@ -903,8 +903,8 @@ struct Dilepton { |
903 | 903 | } |
904 | 904 |
|
905 | 905 | float getNUAweight(const int type_int, const float phi, const float eta, const float zVtx) |
906 | | - { |
907 | | - if (h3nua_weights.at(type_int) == nullptr) { |
| 906 | + { |
| 907 | + if (h3nua_weights.at(type_int) == nullptr){ |
908 | 908 | return 1.f; |
909 | 909 | } |
910 | 910 | int binId_phi = h3nua_weights.at(type_int)->GetXaxis()->FindBin(phi); |
@@ -1092,8 +1092,8 @@ struct Dilepton { |
1092 | 1092 |
|
1093 | 1093 | if constexpr (ev_id == 0) { |
1094 | 1094 | // LOGF(info, "collision.centFT0C() = %f, collision.trackOccupancyInTimeRange() = %d, getSPresolution = %f", collision.centFT0C(), collision.trackOccupancyInTimeRange(), getSPresolution(collision.centFT0C(), collision.trackOccupancyInTimeRange())); |
1095 | | - if (flowcorrectionGroup.cfgApplyWeightNUA) { |
1096 | | - weight *= 1. / getNUAweight(t1.sign() * t2.sign() < 0 ? 0 : (t1.sign() > 0 && t2.sign() > 0 ? 1 : 2), v12.Phi(), v12.Eta(), collision.posZ()); |
| 1095 | + if(flowcorrectionGroup.cfgApplyWeightNUA){ |
| 1096 | + weight *= 1./getNUAweight(t1.sign() * t2.sign() < 0 ? 0 : (t1.sign() > 0 && t2.sign() > 0 ? 1 : 2), v12.Phi(), v12.Eta(), collision.posZ()); |
1097 | 1097 | } |
1098 | 1098 |
|
1099 | 1099 | float sp = RecoDecay::dotProd(std::array<float, 2>{static_cast<float>(std::cos(nmod * v12.Phi())), static_cast<float>(std::sin(nmod * v12.Phi()))}, qvectors[nmod][cfgQvecEstimator]) / getSPresolution(collision.centFT0C(), collision.trackOccupancyInTimeRange()); |
|
0 commit comments