/* * GraphAnalyzer.cpp * * Created on: Apr 22, 2015 * Author: Hovanes Egiyan */ #include "GraphAnalyzer.hh" GraphAnalyzer::GraphAnalyzer( TGraphErrors* graph, string sName, string label ) : TGraphErrors( *(dynamic_cast(graph->Clone( (string(graph->GetName()) + ":" + label ).c_str() )) ) ) , gaScanName(sName), gaLabel(label) { // this->GetXaxis()->SetTitle( gaLabel.c_str() ); cout << "In GraphAnalyzer::GraphAnalyzer()" << endl; this->GetXaxis()->SetTitle(graph->GetXaxis()->GetTitle()); this->GetYaxis()->SetTitle(graph->GetYaxis()->GetTitle()); // cout << "Set axis to " << this->GetXaxis()->GetTitle() << " , " << this->GetYaxis()->GetTitle() << endl; return; } GraphAnalyzer::GraphAnalyzer( const GraphAnalyzer& analyzer ) { gaScanName = analyzer.gaScanName; gaLabel = analyzer.gaLabel; return; } GraphAnalyzer::~GraphAnalyzer() { // if ( gaFitFun != 0 ) delete gaFitFun; return; }