//PostData(2,fRDCutsloose);//we should then put those cuts in a tlist if we have more than 1
fListCuts=new TList();
+ fListCuts->SetOwner();
AliRDHFCutsDplustoKpipi *analysis = new AliRDHFCutsDplustoKpipi(*fRDCutsAnalysis);
analysis->SetName("AnalysisCuts");
fPtVsMass=new TH2F("hPtVsMass","PtVsMass (prod. cuts)",nbins,fLowmasslimit,fUpmasslimit,200,0.,20.);
fPtVsMassTC=new TH2F("hPtVsMassTC","PtVsMass (analysis cuts)",nbins,fLowmasslimit,fUpmasslimit,200,0.,20.);
- fYVsPt=new TH2F("hYVsPt","YvsPt (prod. cuts)",40,0.,20.,80,-2.,2.);
- fYVsPtTC=new TH2F("hYVsPtTC","YvsPt (analysis cuts)",40,0.,20.,80,-2.,2.);
+ fYVsPt=new TH3F("hYVsPt","YvsPt (prod. cuts)",40,0.,20.,80,-2.,2.,nbins,fLowmasslimit,fUpmasslimit);
+ fYVsPtTC=new TH3F("hYVsPtTC","YvsPt (analysis cuts)",40,0.,20.,80,-2.,2.,nbins,fLowmasslimit,fUpmasslimit);
fYVsPtSig=new TH2F("hYVsPtSig","YvsPt (MC, only sig., prod. cuts)",40,0.,20.,80,-2.,2.);
fYVsPtSigTC=new TH2F("hYVsPtSigTC","YvsPt (MC, only Sig, analysis cuts)",40,0.,20.,80,-2.,2.);
fPhiEtaCand=new TH2F("hPhiEtaCand","phi vs. eta candidates",20,-1.,1.,50,0.,2*TMath::Pi());
Double_t invMass=d->InvMassDplus();
Double_t rapid=d->YDplus();
- fYVsPt->Fill(ptCand,rapid);
- if(passTightCuts) {fYVsPtTC->Fill(ptCand,rapid);nOS++;}
+ fYVsPt->Fill(ptCand,rapid,invMass);
+ if(passTightCuts) {fYVsPtTC->Fill(ptCand,rapid,invMass);nOS++;}
Bool_t isFidAcc=fRDCutsAnalysis->IsInFiducialAcceptance(ptCand,rapid);
if(isFidAcc){
fPtVsMass->Fill(invMass,ptCand);
cxy=d->CosPointingAngleXY();
}
Double_t impparXY=d->ImpParXY()*10000.;
- Double_t arrayForSparse[6]={invMass,ptCand,impparXY,cosp,dlen,tracklets};
- Double_t arrayForSparseTrue[6]={invMass,ptCand,trueImpParXY,cosp,dlen,tracklets};
+ Double_t arrayForSparse[6]={invMass,ptCand,impparXY,cosp,dlen,static_cast<Double_t>(tracklets)};
+ Double_t arrayForSparseTrue[6]={invMass,ptCand,trueImpParXY,cosp,dlen,static_cast<Double_t>(tracklets)};
//Ntuple
Float_t tmp[31];
if(fReadMC){
if(isFidAcc){
- Int_t correlIndex=0;
if(labDp>=0) {
index=GetSignalHistoIndex(iPtBin);
- correlIndex=1;
if(passTightCuts&&fDoImpPar){
if(isPrimary) fHistMassPtImpParTC[1]->Fill(arrayForSparse);
else{
}
}else{
index=GetBackgroundHistoIndex(iPtBin);
- correlIndex=2;
if(passTightCuts&&fDoImpPar)fHistMassPtImpParTC[4]->Fill(arrayForSparse);
}
}
}else{//outside fidAcc
if(labDp>=0){
- fYVsPtSig->Fill(ptCand,rapid);
- if(passTightCuts)fYVsPtSigTC->Fill(ptCand,rapid);
+ fYVsPtSig->Fill(ptCand,rapid, invMass);
+ if(passTightCuts)fYVsPtSigTC->Fill(ptCand,rapid, invMass);
}
}
}//readmc
Int_t istep = 0;
Int_t abspdgGranma =0;
Bool_t isFromB=kFALSE;
- Bool_t isQuarkFound=kFALSE;
+ // Bool_t isQuarkFound=kFALSE;
while (mother >0 ){
istep++;
AliAODMCParticle* mcGranma = dynamic_cast<AliAODMCParticle*>(arrayMC->At(mother));
if ((abspdgGranma > 500 && abspdgGranma < 600) || (abspdgGranma > 5000 && abspdgGranma < 6000)){
isFromB=kTRUE;
}
- if(abspdgGranma==4 || abspdgGranma==5) isQuarkFound=kTRUE;
+ // if(abspdgGranma==4 || abspdgGranma==5) isQuarkFound=kTRUE;
mother = mcGranma->GetMother();
}else{
AliError("Failed casting the mother particle!");