Skip to content

Commit a290203

Browse files
authored
Add files via upload
1 parent 2981696 commit a290203

1 file changed

Lines changed: 10 additions & 11 deletions

File tree

PWGJE/Tasks/jetChargedV2.cxx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,6 @@ struct JetChargedV2 {
719719
occupancyIsGood = true;
720720
}
721721

722-
float centrality = -1.0;
723722
switch (centralityMode) {
724723
case 1:
725724
centrality = collision.centFT0M();
@@ -818,7 +817,7 @@ struct JetChargedV2 {
818817

819818
// create h_ptsum_sumpt_fit, with number of Track
820819
template <typename T, typename U>
821-
void getNtrk(T const& tracks, U const& jets, int& nTrk, double& evtnum, double& leadingJetEta)
820+
void getNtrk(T const& tracks, U const& jets, int& nTrk, double& evtnumNtrk, double& leadingJetEta)
822821
{
823822
if (jets.size() > 0) {
824823
for (auto const& track : tracks) {
@@ -829,13 +828,13 @@ struct JetChargedV2 {
829828
nTrk += 1;
830829
}
831830
}
832-
registry.fill(HIST("h_evtnum_NTrk"), evtnum, nTrk);
831+
registry.fill(HIST("h_evtnum_NTrk"), evtnumNtrk, nTrk);
833832
}
834833
}
835834

836835
// fill nTrk plot for fit rho(varphi)
837836
template <typename U, typename J>
838-
void fillNtrkCheck(U const& tracks, J const& jets, TH1F* hPtsumSumptFit, double& leadingJetEta)
837+
void fillNtrkCheck(U const& tracks, J const& jets, TH1F* hPtsumSumptFitFill, double& leadingJetEta)
839838
{
840839
if (jets.size() > 0) {
841840
double localRhoFitPtMin = 0.2;
@@ -851,7 +850,7 @@ struct JetChargedV2 {
851850
registry.fill(HIST("h_accept_Track"), 2.5);
852851
if (jetderiveddatautilities::selectTrack(track, trackSelection) && (std::fabs(track.eta() - leadingJetEta) > selectedJetsRadius) && track.pt() >= localRhoFitPtMin && track.pt() <= localRhoFitPtMax) {
853852
registry.fill(HIST("h_accept_Track"), 3.5);
854-
hPtsumSumptFit->Fill(track.phi(), track.pt());
853+
hPtsumSumptFitFill->Fill(track.phi(), track.pt());
855854
}
856855
}
857856
}
@@ -875,7 +874,7 @@ struct JetChargedV2 {
875874

876875
// Run General_Purpose MC MCP
877876
template <typename U, typename J>
878-
void fitFncAreaSubMCP(U const& collision, J const& jets, TH1F* hPtsumSumptFitMCP, bool mcLevelIsParticleLevel, float weight = 1.0)
877+
void fitFncAreaSubMCP(U const& collision, J const& jets, TH1F* hPtsumSumptFitMCPFill, bool mcLevelIsParticleLevel, float weight = 1.0)
879878
{
880879
float centrality = -1.0;
881880
switch (centralityMode) {
@@ -931,7 +930,7 @@ struct JetChargedV2 {
931930
fFitModulationV2v3P->FixParameter(4, ep3);
932931
}
933932

934-
hPtsumSumptFitMCP->Fit(fFitModulationV2v3P, "Q", "ep", 0, o2::constants::math::TwoPI);
933+
hPtsumSumptFitMCPFill->Fit(fFitModulationV2v3P, "Q", "ep", 0, o2::constants::math::TwoPI);
935934

936935
// double temppara[5];
937936
std::array<double, 5> temppara{};
@@ -1098,7 +1097,7 @@ struct JetChargedV2 {
10981097
}
10991098

11001099
template <typename TBase, typename TTag>
1101-
void fillGeoMatchedCorrHistograms(TBase const& jetMCD, TF1* fFitModulationRM, float tempparaA, double ep2, float rho, bool subtractMCPBackground, float mcrho, float weight = 1.0)
1100+
void fillGeoMatchedCorrHistograms(TBase const& jetMCD, TF1* fFitModulationRMFill, float tempparaA, double ep2, float rho, bool subtractMCPBackgroundBool, float mcrho, float weight = 1.0)
11021101
{
11031102
float pTHat = 10. / (std::pow(weight, 1.0 / pTHatExponent));
11041103
if (jetMCD.pt() > pTHatMaxMCD * pTHat) {
@@ -1125,12 +1124,12 @@ struct JetChargedV2 {
11251124
int evtPlnAngleA = 7;
11261125
int evtPlnAngleB = 3;
11271126
int evtPlnAngleC = 5;
1128-
double integralValue = fFitModulationRM->Integral(jetMCD.phi() - selectedJetsRadius, jetMCD.phi() + selectedJetsRadius);
1127+
double integralValue = fFitModulationRMFill->Integral(jetMCD.phi() - selectedJetsRadius, jetMCD.phi() + selectedJetsRadius);
11291128
double rholocal = rho / (2 * selectedJetsRadius * tempparaA) * integralValue;
11301129
double corrBasejetpt = jetMCD.pt() - (rholocal * jetMCD.area());
11311130
double corrTagjetpt = 0.0;
1132-
if (subtractMCPBackground) {
1133-
double integralValueMCP = fFitModulationRM->Integral(jetMCP.phi() - selectedJetsRadius, jetMCP.phi() + selectedJetsRadius);
1131+
if (subtractMCPBackgroundBool) {
1132+
double integralValueMCP = fFitModulationRMFill->Integral(jetMCP.phi() - selectedJetsRadius, jetMCP.phi() + selectedJetsRadius);
11341133
double rholocalMCP = mcrho / (2 * selectedJetsRadius * tempparaA) * integralValueMCP;
11351134
corrTagjetpt = jetMCP.pt() - (rholocalMCP * jetMCP.area());
11361135
} else {

0 commit comments

Comments
 (0)