#include "AliHBTTwoTrackEffFctn.h" /******************************************************************/ /******************************************************************/ /******************************************************************/ ClassImp(AliHBTTwoTrackEffFctn) /******************************************************************/ AliHBTTwoTrackEffFctn::AliHBTTwoTrackEffFctn() { } /******************************************************************/ AliHBTTwoTrackEffFctn:: AliHBTTwoTrackEffFctn(Int_t nbins, Double_t maxval, Double_t minval): AliHBTOnePairFctn1D("TwoTrackEff","Two Track Efficiency",nbins,maxval,minval) { //contructor //nbins - numner of bins of the function //maxval - max X of the fctn //minval - min X of the fctn GetNumerator()->GetXaxis()->SetTitle("dP [GeV]"); GetDenominator()->GetXaxis()->SetTitle("dP [GeV]"); } TH1* AliHBTTwoTrackEffFctn::GetResult() { //returns ratio of numerator and denominator TH1* res = GetRatio(Scale()); if(res) { res->GetXaxis()->SetTitle("dP [GeV]"); res->GetYaxis()->SetTitle("C(dP)"); res->SetTitle("Double Track Resolution: dP Correlation Fctn."); } return res; } /******************************************************************/ /******************************************************************/ /******************************************************************/ ClassImp(AliHBTTwoTrackEffFctn3D) AliHBTTwoTrackEffFctn3D::AliHBTTwoTrackEffFctn3D() { //Set Axis Title } void AliHBTTwoTrackEffFctn3D::GetValues(AliHBTPair* pair, Double_t& x, Double_t&y ,Double_t& z) { //Returns values to be histogrammed //it does not x = pair->GetDeltaPx(); y = pair->GetDeltaPy(); z = pair->GetDeltaPz(); }