//These for limits in THnSparse (one per bin, same limits).
//Vars: DeltaPhi, InvMass, PtTrack, Displacement, DeltaEta
- Int_t nBinsPhi[5] = {32,150,30,3,16};
+ Int_t nBinsPhi[5] = {32,150,6,3,16};
Double_t binMinPhi[5] = {-1.6,1.6,0.,0.,-1.6}; //is the minimum for all the bins
Double_t binMaxPhi[5] = {4.8,2.2,3.0,3.,1.6}; //is the maximum for all the bins
if(!fMixing) {
//phi distributions
- TH1F *hPhiDistCAll = new TH1F("hist_PhiDistr_Charg", "Charged track phi distr. (All); p_{T} (GeV/c)",32,-1.6,4.8);
+ TH1F *hPhiDistCAll = new TH1F("hist_PhiDistr_Charg", "Charged track phi distr. (All); p_{T} (GeV/c)",64,0,6.283);
hPhiDistCAll->SetMinimum(0);
fOutputStudy->Add(hPhiDistCAll);
- TH1F *hPhiDistHAll = new TH1F("hist_PhiDistr_Kcharg", "Hadrons phi distr. (All); p_{T} (GeV/c)",32,-1.6,4.8);
+ TH1F *hPhiDistHAll = new TH1F("hist_PhiDistr_Kcharg", "Hadrons phi distr. (All); p_{T} (GeV/c)",64,0,6.283);
hPhiDistHAll->SetMinimum(0);
fOutputStudy->Add(hPhiDistHAll);
- TH1F *hPhiDistKAll = new TH1F("hist_PhiDistr_K0", "Kaons phi distr. (All); p_{T} (GeV/c)",32,-1.6,4.8);
+ TH1F *hPhiDistKAll = new TH1F("hist_PhiDistr_K0", "Kaons phi distr. (All); p_{T} (GeV/c)",64,0,6.283);
hPhiDistKAll->SetMinimum(0);
fOutputStudy->Add(hPhiDistKAll);
- TH1F *hPhiDistDAll = new TH1F("hist_PhiDistr_D0", "D^{0} phi distr. (All); p_{T} (GeV/c)",32,-1.6,4.8);
+ TH1F *hPhiDistDAll = new TH1F("hist_PhiDistr_D0", "D^{0} phi distr. (All); p_{T} (GeV/c)",64,0,6.283);
hPhiDistDAll->SetMinimum(0);
fOutputStudy->Add(hPhiDistDAll);
}
Int_t ptbin = PtBinCorr(d->Pt());
if(ptbin < 0) return;
+ //Fill of D0 phi distribution
+ if (!fMixing) ((TH1F*)fOutputStudy->FindObject("hist_PhiDistr_D0"))->Fill(d->Phi());
+
//Origin of D0
TString orig="";
if(fReadMC) {
const int nofcuts = 4;
Float_t* trackcutsarray;
trackcutsarray=new Float_t[nofcuts];
- trackcutsarray[0] = 0.;//track min pt
+ trackcutsarray[0] = 0.3;//track min pt
trackcutsarray[1] = 10000.;//track max pt
- trackcutsarray[2] = 0.;//track min impact parameter
+ trackcutsarray[2] = -99999999.;//track min impact parameter. DON'T put 0 since default value is -999999. and it would skip all tracks if d0 is not calculated!
trackcutsarray[3] = 10000.;//track max impact parameter
HFCorrelationCuts->SetNVarsTrack(nofcuts);
HFCorrelationCuts->SetAODTrackCuts(trackcutsarray);