Skip to content
Snippets Groups Projects
Commit aa748352 authored by Rene Brun's avatar Rene Brun
Browse files

New class TClumnView added to star directory

git-svn-id: http://root.cern.ch/svn/root/trunk@75 27541ba8-7e3a-0410-8455-c3a389f83636
parent 81c1c145
No related merge requests found
// @(#)root/star:$Name: $:$Id: TColumnView.h,v 1.2 2000/06/05 08:01:03 brun Exp $
// Author: Valery Fine(fine@bnl.gov) 13/03/2000
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
// $Id: TColumnView.h,v 1.2 2000/06/05 08:01:03 brun Exp $
#ifndef ROOT_TColumnView
#define ROOT_TColumnView
//////////////////////////////////////////////////////////////////////////
// //
// TColumnView //
// //
// It is a helper class to present one column of the TTable object //
// //
//////////////////////////////////////////////////////////////////////////
#include "TChair.h"
class TColumnView : public TChair {
public:
TColumnView(const char *colName="", TTable *table=0);
virtual ~TColumnView();
virtual void Browse(TBrowser *b);
TH1 *Histogram(const char *selection=""); //*MENU*
virtual Bool_t IsFolder();
ClassDef(TColumnView,0) // Helper to represent one TTable column
};
#endif
// @(#)root/star:$Name: $:$Id: TColumnView.cxx,v 1.1.1.1 2000/05/16 17:00:48 rdm Exp $
// Author: Valery Fine(fine@bnl.gov) 13/03/2000
//////////////////////////////////////////////////////////////////////////
// //
// TColumnView //
// //
// It is a helper class to present TTable object view TBrowser //
// //
//////////////////////////////////////////////////////////////////////////
#include "TColumnView.h"
#include "TVirtualPad.h"
ClassImp(TColumnView)
//______________________________________________________________________________
TColumnView::TColumnView(const char *colName,TTable *table):TChair(table){
SetName(colName);
}
//______________________________________________________________________________
TColumnView::~TColumnView(){
}
//______________________________________________________________________________
void TColumnView::Browse(TBrowser *b)
{
Draw(GetName(),"");
gPad->Modified();
gPad->Update();
}
//______________________________________________________________________________
TH1 *TColumnView::Histogram(const char *selection){
TH1 *h = Draw(GetName(),selection);
gPad->Modified();
gPad->Update();
return h;
}
//______________________________________________________________________________
Bool_t TColumnView::IsFolder(){ return kFALSE;}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment