8#include "Femto1DCFPainter.h"
10#include <RtypesCore.h>
20 Femto1DCFPainter::Femto1DCFPainter(
Hal::Femto1DCF* cf) { fCF = cf; }
22 void Femto1DCFPainter::MakeHistograms() {
23 std::vector<TH1*> hist;
24 if (
CheckOpt(kDenBit)) { hist.push_back(CloneHist(fCF->
GetDen())); }
25 if (
CheckOpt(kNumBit)) { hist.push_back(CloneHist(fCF->
GetNum())); }
27 if (hist.size() == 2) {
28 Hal::Std::SetColor(*hist[0], kGreen);
29 Hal::Std::SetColor(*hist[1], kRed);
31 if (fRangeX[0] != fRangeX[1]) {
33 h->GetXaxis()->SetRangeUser(fRangeX[0], fRangeX[1]);
36 if (fRangeY[0] != fRangeY[1]) {
38 h->SetMaximum(fRangeY[1]);
39 h->SetMinimum(fRangeY[0]);
42 fHistograms.push_back(hist);
45 void Femto1DCFPainter::ScaleHistograms() {
46 FemtoCFPainter::ScaleHistograms();
47 if (fRangeY[0] != fRangeY[1])
48 for (
auto& x : fHistograms) {
50 y->SetMinimum(fRangeY[0]);
51 y->SetMaximum(fRangeY[1]);
56 Femto1DCFPainter::~Femto1DCFPainter() {}
TH1 * GetHist(Bool_t normalized=kTRUE) const
virtual void MakePadsAndCanvases()
Bool_t CheckOpt(Int_t opt) const
void MakeCanvasPads(Int_t x=1, Int_t y=1, Int_t canvasNo=0)