//$Id$ // Author: Anders Vestbo //*-- Copyright © ASV #include #include "AliL3StandardIncludes.h" #include "AliL3Logging.h" #include "AliL3HistogramAdaptive.h" #include "AliL3Transform.h" #include "AliL3Track.h" //_____________________________________________________________ // AliL3HistogramAdaptive // // 2D histogram class ClassImp(AliL3HistogramAdaptive) AliL3HistogramAdaptive::AliL3HistogramAdaptive() : AliL3Histogram() { } AliL3HistogramAdaptive::AliL3HistogramAdaptive(Char_t *name,Double_t minpt,Double_t maxpt,Double_t ptres, Int_t nybins,Double_t ymin,Double_t ymax) { strcpy(fName,name); fPtres = ptres; fXmin = -1*AliL3Transform::GetBFact()*AliL3Transform::GetBField()/minpt; fXmax = AliL3Transform::GetBFact()*AliL3Transform::GetBField()/minpt; fMinPt = minpt; fMaxPt = maxpt; fNxbins = InitPtBins(); //cout<<"Setting "< fMaxPt) return -1; // cout<<"Looking for pt "<= local_pt && ptfind < pt) { // cout<<"Found in range "<= fNxbins/2) cerr<<"AliL3HistogramAdaptive::FindXbin : Bin out of range : "< fYmax) return 0; return 1 + (Int_t)(fNybins*(y-fYmin)/(fYmax-fYmin)); } Double_t AliL3HistogramAdaptive::GetBinCenterX(Int_t xbin) { // cout<<"Looking for bin "< fNxbins) { cerr<<"AliL3HistogramAdaptive::GetBinCenterX : Xbin out of range "<Fill(kappa,psi,content); } } fRootHisto->Draw(option); return; #endif cerr<<"AliL3HistogramAdaptive::Draw : You need to compile with ROOT in order to draw histogram"<