|
@@ -1102,12 +1102,12 @@ void FemtoDstAnalyzer_FlowPIDHadrons(const Char_t *inFile = "st_physics_12150008
|
|
|
TProfile2D *p_v2run_ZDC_East[3][16];
|
|
|
TProfile2D *p_v2run_ZDC_West[3][16];
|
|
|
|
|
|
- TProfile2D *p_v2_sys_Nhits_EP[3][NEtaGaps][16][2]; // runId vs pt
|
|
|
- TProfile2D *p_v3_sys_Nhits_EP[3][NEtaGaps][16][2]; // runId vs pt
|
|
|
- TProfile2D *p_v2_sys_DCA_EP[3][NEtaGaps][16][2]; // runId vs pt
|
|
|
- TProfile2D *p_v3_sys_DCA_EP[3][NEtaGaps][16][2]; // runId vs pt
|
|
|
- TProfile2D *p_v2_sys_Eta_EP[3][NEtaGaps][16]; // runId vs pt
|
|
|
- TProfile2D *p_v3_sys_Eta_EP[3][NEtaGaps][16]; // runId vs pt
|
|
|
+// TProfile2D *p_v2_sys_Nhits_EP[3][NEtaGaps][16][2]; // runId vs pt
|
|
|
+// TProfile2D *p_v3_sys_Nhits_EP[3][NEtaGaps][16][2]; // runId vs pt
|
|
|
+// TProfile2D *p_v2_sys_DCA_EP[3][NEtaGaps][16][2]; // runId vs pt
|
|
|
+// TProfile2D *p_v3_sys_DCA_EP[3][NEtaGaps][16][2]; // runId vs pt
|
|
|
+// TProfile2D *p_v2_sys_Eta_EP[3][NEtaGaps][16]; // runId vs pt
|
|
|
+// TProfile2D *p_v3_sys_Eta_EP[3][NEtaGaps][16]; // runId vs pt
|
|
|
|
|
|
for (int iPID = 0; iPID < 3; iPID++)
|
|
|
{
|
|
@@ -1122,32 +1122,32 @@ void FemtoDstAnalyzer_FlowPIDHadrons(const Char_t *inFile = "st_physics_12150008
|
|
|
Form("p_v3_run_EP_particle%i_gap%i_cent%i", iPID, iGap, iCent),
|
|
|
fNBins, runId_min - 0.5, runId_max + 0.5, 100, 0.15, 5.15);
|
|
|
|
|
|
- p_v2_sys_Eta_EP[iPID][iGap][iCent] = new TProfile2D(Form("p_v2_sys_Eta_EP_particle%i_gap%i_cent%i", iPID, iGap, iCent),
|
|
|
- Form("p_v2_sys_Eta_EP_particle%i_gap%i_cent%i", iPID, iGap, iCent),
|
|
|
- fNBins, runId_min - 0.5, runId_max + 0.5, 100, 0.15, 5.15);
|
|
|
- p_v3_sys_Eta_EP[iPID][iGap][iCent] = new TProfile2D(Form("p_v3_sys_Eta_EP_particle%i_gap%i_cent%i", iPID, iGap, iCent),
|
|
|
- Form("p_v3_sys_Eta_EP_particle%i_gap%i_cent%i", iPID, iGap, iCent),
|
|
|
- fNBins, runId_min - 0.5, runId_max + 0.5, 100, 0.15, 5.15);
|
|
|
- for (int iCut = 0; iCut < 2; iCut++)
|
|
|
- {
|
|
|
- p_v2_sys_Nhits_EP[iPID][iGap][iCent][iCut] = new TProfile2D(
|
|
|
- Form("p_v2_sys_Nhits_EP_particle%i_gap%i_cent%i_sys%i", iPID, iGap, iCent, iCut),
|
|
|
- Form("p_v2_sys_Nhits_EP_particle%i_gap%i_cent%i_sys%i", iPID, iGap, iCent, iCut), fNBins, runId_min - 0.5,
|
|
|
- runId_max + 0.5, 100, 0.15, 5.15);
|
|
|
- p_v3_sys_Nhits_EP[iPID][iGap][iCent][iCut] = new TProfile2D(
|
|
|
- Form("p_v3_sys_Nhits_EP_particle%i_gap%i_cent%i_sys%i", iPID, iGap, iCent, iCut),
|
|
|
- Form("p_v3_sys_Nhits_EP_particle%i_gap%i_cent%i_sys%i", iPID, iGap, iCent, iCut), fNBins, runId_min - 0.5,
|
|
|
- runId_max + 0.5, 100, 0.15, 5.15);
|
|
|
-
|
|
|
- p_v2_sys_DCA_EP[iPID][iGap][iCent][iCut] = new TProfile2D(
|
|
|
- Form("p_v2_sys_DCA_EP_particle%i_gap%i_cent%i_sys%i", iPID, iGap, iCent, iCut),
|
|
|
- Form("p_v2_sys_DCA_EP_particle%i_gap%i_cent%i_sys%i", iPID, iGap, iCent, iCut), fNBins, runId_min - 0.5,
|
|
|
- runId_max + 0.5, 100, 0.15, 5.15);
|
|
|
- p_v3_sys_DCA_EP[iPID][iGap][iCent][iCut] = new TProfile2D(
|
|
|
- Form("p_v3_sys_DCA_EP_particle%i_gap%i_cent%i_sys%i", iPID, iGap, iCent, iCut),
|
|
|
- Form("p_v3_sys_DCA_EP_particle%i_gap%i_cent%i_sys%i", iPID, iGap, iCent, iCut), fNBins, runId_min - 0.5,
|
|
|
- runId_max + 0.5, 100, 0.15, 5.15);
|
|
|
- }
|
|
|
+// p_v2_sys_Eta_EP[iPID][iGap][iCent] = new TProfile2D(Form("p_v2_sys_Eta_EP_particle%i_gap%i_cent%i", iPID, iGap, iCent),
|
|
|
+// Form("p_v2_sys_Eta_EP_particle%i_gap%i_cent%i", iPID, iGap, iCent),
|
|
|
+// fNBins, runId_min - 0.5, runId_max + 0.5, 100, 0.15, 5.15);
|
|
|
+// p_v3_sys_Eta_EP[iPID][iGap][iCent] = new TProfile2D(Form("p_v3_sys_Eta_EP_particle%i_gap%i_cent%i", iPID, iGap, iCent),
|
|
|
+// Form("p_v3_sys_Eta_EP_particle%i_gap%i_cent%i", iPID, iGap, iCent),
|
|
|
+// fNBins, runId_min - 0.5, runId_max + 0.5, 100, 0.15, 5.15);
|
|
|
+// for (int iCut = 0; iCut < 2; iCut++)
|
|
|
+// {
|
|
|
+// p_v2_sys_Nhits_EP[iPID][iGap][iCent][iCut] = new TProfile2D(
|
|
|
+// Form("p_v2_sys_Nhits_EP_particle%i_gap%i_cent%i_sys%i", iPID, iGap, iCent, iCut),
|
|
|
+// Form("p_v2_sys_Nhits_EP_particle%i_gap%i_cent%i_sys%i", iPID, iGap, iCent, iCut), fNBins, runId_min - 0.5,
|
|
|
+// runId_max + 0.5, 100, 0.15, 5.15);
|
|
|
+// p_v3_sys_Nhits_EP[iPID][iGap][iCent][iCut] = new TProfile2D(
|
|
|
+// Form("p_v3_sys_Nhits_EP_particle%i_gap%i_cent%i_sys%i", iPID, iGap, iCent, iCut),
|
|
|
+// Form("p_v3_sys_Nhits_EP_particle%i_gap%i_cent%i_sys%i", iPID, iGap, iCent, iCut), fNBins, runId_min - 0.5,
|
|
|
+// runId_max + 0.5, 100, 0.15, 5.15);
|
|
|
+//
|
|
|
+// p_v2_sys_DCA_EP[iPID][iGap][iCent][iCut] = new TProfile2D(
|
|
|
+// Form("p_v2_sys_DCA_EP_particle%i_gap%i_cent%i_sys%i", iPID, iGap, iCent, iCut),
|
|
|
+// Form("p_v2_sys_DCA_EP_particle%i_gap%i_cent%i_sys%i", iPID, iGap, iCent, iCut), fNBins, runId_min - 0.5,
|
|
|
+// runId_max + 0.5, 100, 0.15, 5.15);
|
|
|
+// p_v3_sys_DCA_EP[iPID][iGap][iCent][iCut] = new TProfile2D(
|
|
|
+// Form("p_v3_sys_DCA_EP_particle%i_gap%i_cent%i_sys%i", iPID, iGap, iCent, iCut),
|
|
|
+// Form("p_v3_sys_DCA_EP_particle%i_gap%i_cent%i_sys%i", iPID, iGap, iCent, iCut), fNBins, runId_min - 0.5,
|
|
|
+// runId_max + 0.5, 100, 0.15, 5.15);
|
|
|
+// }
|
|
|
if (iGap == 0)
|
|
|
{
|
|
|
p_v2run_BBC[iPID][iCent] = new TProfile2D(Form("p_v2_run_BBC_particle%i_cent%i", iPID, iCent),
|
|
@@ -2149,364 +2149,7 @@ void FemtoDstAnalyzer_FlowPIDHadrons(const Char_t *inFile = "st_physics_12150008
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- // SYSTEMATICS
|
|
|
- // Nhits & DCA variation
|
|
|
- for (int iCut = 0; iCut<2; iCut++)
|
|
|
- {
|
|
|
- // Nhits
|
|
|
- if (isGoodTrackFlowPIDsys_Nhits(femtoTrack, energy, pVtx,iCut))
|
|
|
- //&& isGoodPID(femtoTrack))
|
|
|
- {
|
|
|
-
|
|
|
- weight = GetWeight(femtoTrack);
|
|
|
-
|
|
|
- for (int iGap = 0; iGap < NEtaGaps; iGap++)
|
|
|
- {
|
|
|
- res2EPsqr = p_res2_EP[iGap]->GetBinContent(p_res2_EP[iGap]->FindBin(event->cent16()));
|
|
|
- res2EP = TMath::Sqrt(res2EPsqr);
|
|
|
- res3EPsqr = p_res3_EP[iGap]->GetBinContent(p_res3_EP[iGap]->FindBin(event->cent16()));
|
|
|
- res3EP = TMath::Sqrt(res3EPsqr);
|
|
|
-
|
|
|
- //Loop over particle species (pi,K,p)
|
|
|
- i_part = -1;
|
|
|
- //TPC-only
|
|
|
-
|
|
|
- if (!femtoTrack->isTofTrack())
|
|
|
- {
|
|
|
- //pion id
|
|
|
- if (femtoTrack->ptot() >= 0.2 && femtoTrack->ptot() < 0.6 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaPion()) < 2)
|
|
|
- {
|
|
|
- i_part = 0;
|
|
|
- }
|
|
|
- // kaon id
|
|
|
- if (femtoTrack->ptot() >= 0.2 && femtoTrack->ptot() < 0.5 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaKaon()) < 2)
|
|
|
- {
|
|
|
- i_part = 1;
|
|
|
- }
|
|
|
- // proton id
|
|
|
- if (femtoTrack->ptot() >= 0.4 && femtoTrack->ptot() < 0.9 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaProton()) < 2)
|
|
|
- {
|
|
|
- i_part = 2;
|
|
|
- }
|
|
|
- //pion id
|
|
|
- if (femtoTrack->ptot() >= 0.6 && femtoTrack->ptot() < 0.7 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaPion()) < 2 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaKaon()) > 2)
|
|
|
- {
|
|
|
- i_part = 0;
|
|
|
- }
|
|
|
- // kaon id
|
|
|
- if (femtoTrack->ptot() >= 0.5 && femtoTrack->ptot() < 0.7 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaKaon()) < 2 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaPion()) > 3)
|
|
|
- {
|
|
|
- i_part = 1;
|
|
|
- }
|
|
|
- // proton id
|
|
|
- if (femtoTrack->ptot() >= 0.9 && femtoTrack->ptot() < 1.2 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaProton()) < 2 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaPion()) > 3)
|
|
|
- {
|
|
|
- i_part = 2;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- //TPC+TOF
|
|
|
-
|
|
|
- if (isGoodPID(femtoTrack))
|
|
|
- {
|
|
|
- // pion id - asymmetry cut
|
|
|
- if (femtoTrack->ptot() >= 0.2 && femtoTrack->ptot() < 3.4 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaPion()) < 3 &&
|
|
|
- femtoTrack->massSqr() >= -0.15 && femtoTrack->massSqr() < 0.1)// &&
|
|
|
- {
|
|
|
- i_part = 0;
|
|
|
- }
|
|
|
- // kaon id - asymmetry cut
|
|
|
- if (femtoTrack->pt() >= 0.2 && femtoTrack->ptot() < 3.4 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaKaon()) < 3 &&
|
|
|
- femtoTrack->massSqr() >= 0.2 && femtoTrack->massSqr() < 0.32)// &&
|
|
|
- {
|
|
|
- i_part = 1;
|
|
|
- }
|
|
|
- // proton id
|
|
|
- if (femtoTrack->ptot() >= 0.4 && femtoTrack->ptot() < 3.4 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaProton()) < 3 &&
|
|
|
- femtoTrack->massSqr() >= 0.75 && femtoTrack->massSqr() < 1.2)// &&
|
|
|
- {
|
|
|
- i_part = 2;
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- //}
|
|
|
-
|
|
|
- if (i_part == -1) continue;
|
|
|
-
|
|
|
- //EAST
|
|
|
- //if (track->eta() > -1.*cutEta && track->eta() < 0.)
|
|
|
- if (femtoTrack->eta() > -1. * cutEta && femtoTrack->eta() < -1. * cutEtaGap.at(iGap))
|
|
|
- {
|
|
|
- flow2EP = TMath::Cos(2. * (femtoTrack->phi() - Psi2WestEP[iGap])) / res2EP;
|
|
|
- flow3EP = TMath::Cos(3. * (femtoTrack->phi() - Psi3WestEP[iGap])) / res3EP;
|
|
|
-
|
|
|
- p_v2_sys_Nhits_EP[i_part][iGap][(Int_t) event->cent16()][iCut]->Fill(event->runId(), femtoTrack->pt(), flow2EP,
|
|
|
- weight);
|
|
|
- p_v3_sys_Nhits_EP[i_part][iGap][(Int_t) event->cent16()][iCut]->Fill(event->runId(), femtoTrack->pt(), flow3EP,
|
|
|
- weight);
|
|
|
- }
|
|
|
- //WEST
|
|
|
- if (femtoTrack->eta() < 1. * cutEta && femtoTrack->eta() > 1. * cutEtaGap.at(iGap))
|
|
|
- {
|
|
|
- flow2EP = TMath::Cos(2. * (femtoTrack->phi() - Psi2EastEP[iGap])) / res2EP;
|
|
|
- flow3EP = TMath::Cos(3. * (femtoTrack->phi() - Psi3EastEP[iGap])) / res3EP;
|
|
|
-
|
|
|
- p_v2_sys_Nhits_EP[i_part][iGap][(Int_t) event->cent16()][iCut]->Fill(event->runId(), femtoTrack->pt(), flow2EP,
|
|
|
- weight);
|
|
|
- p_v3_sys_Nhits_EP[i_part][iGap][(Int_t) event->cent16()][iCut]->Fill(event->runId(), femtoTrack->pt(), flow3EP,
|
|
|
- weight);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // DCA
|
|
|
- if (isGoodTrackFlowPIDsys_DCA(femtoTrack, energy, pVtx,iCut))
|
|
|
- //&& isGoodPID(femtoTrack))
|
|
|
- {
|
|
|
-
|
|
|
- weight = GetWeight(femtoTrack);
|
|
|
-
|
|
|
- for (int iGap = 0; iGap < NEtaGaps; iGap++)
|
|
|
- {
|
|
|
- res2EPsqr = p_res2_EP[iGap]->GetBinContent(p_res2_EP[iGap]->FindBin(event->cent16()));
|
|
|
- res2EP = TMath::Sqrt(res2EPsqr);
|
|
|
- res3EPsqr = p_res3_EP[iGap]->GetBinContent(p_res3_EP[iGap]->FindBin(event->cent16()));
|
|
|
- res3EP = TMath::Sqrt(res3EPsqr);
|
|
|
-
|
|
|
- //Loop over particle species (pi,K,p)
|
|
|
- i_part = -1;
|
|
|
- //TPC-only
|
|
|
-
|
|
|
- if (!femtoTrack->isTofTrack())
|
|
|
- {
|
|
|
- //pion id
|
|
|
- if (femtoTrack->ptot() >= 0.2 && femtoTrack->ptot() < 0.6 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaPion()) < 2)
|
|
|
- {
|
|
|
- i_part = 0;
|
|
|
- }
|
|
|
- // kaon id
|
|
|
- if (femtoTrack->ptot() >= 0.2 && femtoTrack->ptot() < 0.5 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaKaon()) < 2)
|
|
|
- {
|
|
|
- i_part = 1;
|
|
|
- }
|
|
|
- // proton id
|
|
|
- if (femtoTrack->ptot() >= 0.4 && femtoTrack->ptot() < 0.9 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaProton()) < 2)
|
|
|
- {
|
|
|
- i_part = 2;
|
|
|
- }
|
|
|
- //pion id
|
|
|
- if (femtoTrack->ptot() >= 0.6 && femtoTrack->ptot() < 0.7 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaPion()) < 2 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaKaon()) > 2)
|
|
|
- {
|
|
|
- i_part = 0;
|
|
|
- }
|
|
|
- // kaon id
|
|
|
- if (femtoTrack->ptot() >= 0.5 && femtoTrack->ptot() < 0.7 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaKaon()) < 2 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaPion()) > 3)
|
|
|
- {
|
|
|
- i_part = 1;
|
|
|
- }
|
|
|
- // proton id
|
|
|
- if (femtoTrack->ptot() >= 0.9 && femtoTrack->ptot() < 1.2 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaProton()) < 2 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaPion()) > 3)
|
|
|
- {
|
|
|
- i_part = 2;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- //TPC+TOF
|
|
|
-
|
|
|
- if (isGoodPID(femtoTrack))
|
|
|
- {
|
|
|
- // pion id - asymmetry cut
|
|
|
- if (femtoTrack->ptot() >= 0.2 && femtoTrack->ptot() < 3.4 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaPion()) < 3 &&
|
|
|
- femtoTrack->massSqr() >= -0.15 && femtoTrack->massSqr() < 0.1)// &&
|
|
|
- {
|
|
|
- i_part = 0;
|
|
|
- }
|
|
|
- // kaon id - asymmetry cut
|
|
|
- if (femtoTrack->pt() >= 0.2 && femtoTrack->ptot() < 3.4 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaKaon()) < 3 &&
|
|
|
- femtoTrack->massSqr() >= 0.2 && femtoTrack->massSqr() < 0.32)// &&
|
|
|
- {
|
|
|
- i_part = 1;
|
|
|
- }
|
|
|
- // proton id
|
|
|
- if (femtoTrack->ptot() >= 0.4 && femtoTrack->ptot() < 3.4 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaProton()) < 3 &&
|
|
|
- femtoTrack->massSqr() >= 0.75 && femtoTrack->massSqr() < 1.2)// &&
|
|
|
- {
|
|
|
- i_part = 2;
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- //}
|
|
|
-
|
|
|
- if (i_part == -1) continue;
|
|
|
-
|
|
|
- //EAST
|
|
|
- //if (track->eta() > -1.*cutEta && track->eta() < 0.)
|
|
|
- if (femtoTrack->eta() > -1. * cutEta && femtoTrack->eta() < -1. * cutEtaGap.at(iGap))
|
|
|
- {
|
|
|
- flow2EP = TMath::Cos(2. * (femtoTrack->phi() - Psi2WestEP[iGap])) / res2EP;
|
|
|
- flow3EP = TMath::Cos(3. * (femtoTrack->phi() - Psi3WestEP[iGap])) / res3EP;
|
|
|
-
|
|
|
- p_v2_sys_DCA_EP[i_part][iGap][(Int_t) event->cent16()][iCut]->Fill(event->runId(), femtoTrack->pt(), flow2EP,
|
|
|
- weight);
|
|
|
- p_v3_sys_DCA_EP[i_part][iGap][(Int_t) event->cent16()][iCut]->Fill(event->runId(), femtoTrack->pt(), flow3EP,
|
|
|
- weight);
|
|
|
- }
|
|
|
- //WEST
|
|
|
- if (femtoTrack->eta() < 1. * cutEta && femtoTrack->eta() > 1. * cutEtaGap.at(iGap))
|
|
|
- {
|
|
|
- flow2EP = TMath::Cos(2. * (femtoTrack->phi() - Psi2EastEP[iGap])) / res2EP;
|
|
|
- flow3EP = TMath::Cos(3. * (femtoTrack->phi() - Psi3EastEP[iGap])) / res3EP;
|
|
|
-
|
|
|
- p_v2_sys_DCA_EP[i_part][iGap][(Int_t) event->cent16()][iCut]->Fill(event->runId(), femtoTrack->pt(), flow2EP,
|
|
|
- weight);
|
|
|
- p_v3_sys_DCA_EP[i_part][iGap][(Int_t) event->cent16()][iCut]->Fill(event->runId(), femtoTrack->pt(), flow3EP,
|
|
|
- weight);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // Eta variation
|
|
|
- if (isGoodTrackFlowPIDsys_Eta(femtoTrack, energy, pVtx,0))
|
|
|
- //&& isGoodPID(femtoTrack))
|
|
|
- {
|
|
|
-
|
|
|
- weight = GetWeight(femtoTrack);
|
|
|
-
|
|
|
- for (int iGap = 0; iGap < NEtaGaps; iGap++)
|
|
|
- {
|
|
|
- res2EPsqr = p_res2_EP[iGap]->GetBinContent(p_res2_EP[iGap]->FindBin(event->cent16()));
|
|
|
- res2EP = TMath::Sqrt(res2EPsqr);
|
|
|
- res3EPsqr = p_res3_EP[iGap]->GetBinContent(p_res3_EP[iGap]->FindBin(event->cent16()));
|
|
|
- res3EP = TMath::Sqrt(res3EPsqr);
|
|
|
-
|
|
|
- //Loop over particle species (pi,K,p)
|
|
|
- i_part = -1;
|
|
|
- //TPC-only
|
|
|
|
|
|
- if (!femtoTrack->isTofTrack())
|
|
|
- {
|
|
|
- //pion id
|
|
|
- if (femtoTrack->ptot() >= 0.2 && femtoTrack->ptot() < 0.6 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaPion()) < 2)
|
|
|
- {
|
|
|
- i_part = 0;
|
|
|
- }
|
|
|
- // kaon id
|
|
|
- if (femtoTrack->ptot() >= 0.2 && femtoTrack->ptot() < 0.5 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaKaon()) < 2)
|
|
|
- {
|
|
|
- i_part = 1;
|
|
|
- }
|
|
|
- // proton id
|
|
|
- if (femtoTrack->ptot() >= 0.4 && femtoTrack->ptot() < 0.9 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaProton()) < 2)
|
|
|
- {
|
|
|
- i_part = 2;
|
|
|
- }
|
|
|
- //pion id
|
|
|
- if (femtoTrack->ptot() >= 0.6 && femtoTrack->ptot() < 0.7 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaPion()) < 2 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaKaon()) > 2)
|
|
|
- {
|
|
|
- i_part = 0;
|
|
|
- }
|
|
|
- // kaon id
|
|
|
- if (femtoTrack->ptot() >= 0.5 && femtoTrack->ptot() < 0.7 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaKaon()) < 2 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaPion()) > 3)
|
|
|
- {
|
|
|
- i_part = 1;
|
|
|
- }
|
|
|
- // proton id
|
|
|
- if (femtoTrack->ptot() >= 0.9 && femtoTrack->ptot() < 1.2 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaProton()) < 2 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaPion()) > 3)
|
|
|
- {
|
|
|
- i_part = 2;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- //TPC+TOF
|
|
|
-
|
|
|
- if (isGoodPID(femtoTrack))
|
|
|
- {
|
|
|
- // pion id - asymmetry cut
|
|
|
- if (femtoTrack->ptot() >= 0.2 && femtoTrack->ptot() < 3.4 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaPion()) < 3 &&
|
|
|
- femtoTrack->massSqr() >= -0.15 && femtoTrack->massSqr() < 0.1)// &&
|
|
|
- {
|
|
|
- i_part = 0;
|
|
|
- }
|
|
|
- // kaon id - asymmetry cut
|
|
|
- if (femtoTrack->pt() >= 0.2 && femtoTrack->ptot() < 3.4 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaKaon()) < 3 &&
|
|
|
- femtoTrack->massSqr() >= 0.2 && femtoTrack->massSqr() < 0.32)// &&
|
|
|
- {
|
|
|
- i_part = 1;
|
|
|
- }
|
|
|
- // proton id
|
|
|
- if (femtoTrack->ptot() >= 0.4 && femtoTrack->ptot() < 3.4 &&
|
|
|
- TMath::Abs(femtoTrack->nSigmaProton()) < 3 &&
|
|
|
- femtoTrack->massSqr() >= 0.75 && femtoTrack->massSqr() < 1.2)// &&
|
|
|
- {
|
|
|
- i_part = 2;
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- //}
|
|
|
-
|
|
|
- if (i_part == -1) continue;
|
|
|
-
|
|
|
- //EAST
|
|
|
- //if (track->eta() > -1.*cutEta && track->eta() < 0.)
|
|
|
- if (femtoTrack->eta() > -1. * cutEta && femtoTrack->eta() < -1. * cutEtaGap.at(iGap))
|
|
|
- {
|
|
|
- flow2EP = TMath::Cos(2. * (femtoTrack->phi() - Psi2WestEP[iGap])) / res2EP;
|
|
|
- flow3EP = TMath::Cos(3. * (femtoTrack->phi() - Psi3WestEP[iGap])) / res3EP;
|
|
|
-
|
|
|
- p_v2_sys_Eta_EP[i_part][iGap][(Int_t) event->cent16()]->Fill(event->runId(), femtoTrack->pt(), flow2EP,
|
|
|
- weight);
|
|
|
- p_v3_sys_Eta_EP[i_part][iGap][(Int_t) event->cent16()]->Fill(event->runId(), femtoTrack->pt(), flow3EP,
|
|
|
- weight);
|
|
|
- }
|
|
|
- //WEST
|
|
|
- if (femtoTrack->eta() < 1. * cutEta && femtoTrack->eta() > 1. * cutEtaGap.at(iGap))
|
|
|
- {
|
|
|
- flow2EP = TMath::Cos(2. * (femtoTrack->phi() - Psi2EastEP[iGap])) / res2EP;
|
|
|
- flow3EP = TMath::Cos(3. * (femtoTrack->phi() - Psi3EastEP[iGap])) / res3EP;
|
|
|
-
|
|
|
- p_v2_sys_Eta_EP[i_part][iGap][(Int_t) event->cent16()]->Fill(event->runId(), femtoTrack->pt(), flow2EP,
|
|
|
- weight);
|
|
|
- p_v3_sys_Eta_EP[i_part][iGap][(Int_t) event->cent16()]->Fill(event->runId(), femtoTrack->pt(), flow3EP,
|
|
|
- weight);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
}
|
|
|
|
|
@@ -2543,24 +2186,6 @@ void FemtoDstAnalyzer_FlowPIDHadrons(const Char_t *inFile = "st_physics_12150008
|
|
|
p_v2run_ZDC_West[iPID][iCent]->Write();
|
|
|
}
|
|
|
}
|
|
|
- for (int iPID = 0; iPID < 3; iPID++)
|
|
|
- {
|
|
|
- for (int iGap = 0; iGap < NEtaGaps; iGap++)
|
|
|
- {
|
|
|
- for (int iCent = 0; iCent < 16; iCent++)
|
|
|
- {
|
|
|
- p_v2_sys_Eta_EP[iPID][iGap][iCent]->Write();
|
|
|
- p_v3_sys_Eta_EP[iPID][iGap][iCent]->Write();
|
|
|
- for (int iCut=0; iCut<2; iCut++)
|
|
|
- {
|
|
|
- p_v2_sys_Nhits_EP[iPID][iGap][iCent][iCut]->Write();
|
|
|
- p_v3_sys_Nhits_EP[iPID][iGap][iCent][iCut]->Write();
|
|
|
- p_v2_sys_DCA_EP[iPID][iGap][iCent][iCut]->Write();
|
|
|
- p_v3_sys_DCA_EP[iPID][iGap][iCent][iCut]->Write();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
output->Close();
|
|
|
|