Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/Go4DynamicList/TGo4TreeHistogramEntryStatus.cxx

Go to the documentation of this file.
00001 //---------------------------------------------------------------
00002 //        Go4 Release Package v2.10-5 (build 21005) 
00003 //                      03-Nov-2005
00004 //---------------------------------------------------------------
00005 //       The GSI Online Offline Object Oriented (Go4) Project
00006 //       Experiment Data Processing at DVEE department, GSI
00007 //---------------------------------------------------------------
00008 //
00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI
00010 //                    Planckstr. 1, 64291 Darmstadt, Germany
00011 //Contact:            http://go4.gsi.de
00012 //----------------------------------------------------------------
00013 //This software can be used under the license agreements as stated
00014 //in Go4License.txt file which is part of the distribution.
00015 //----------------------------------------------------------------
00016 #include "TGo4TreeHistogramEntryStatus.h"
00017 
00018 #include <iostream.h>
00019 
00020 #include "TTree.h"
00021 
00022 #include "Go4Log/TGo4Log.h"
00023 #include "TGo4TreeHistogramEntry.h"
00024 
00025 TGo4TreeHistogramEntryStatus::TGo4TreeHistogramEntryStatus(const Text_t* name)
00026 : TGo4DynamicEntryStatus(name), fiDynListInterval(0)
00027 {
00028 TRACE((15,"TGo4TreeHistogramEntryStatus::TGo4TreeHistogramEntryStatus(Text_t*)",__LINE__, __FILE__));
00029 
00030 }
00031 
00032 TGo4TreeHistogramEntryStatus::~TGo4TreeHistogramEntryStatus()
00033 {
00034 TRACE((15,"TGo4TreeHistogramEntryStatus::~TGo4TreeHistogramEntryStatus()",__LINE__, __FILE__));
00035 
00036 }
00037 
00038 void TGo4TreeHistogramEntryStatus::SetTreeName(TTree * thetree)
00039 {
00040 TRACE((12,"TGo4TreeHistogramEntryStatus::SetTreeName",__LINE__, __FILE__));
00041    if(thetree)
00042       {
00043          fxTreeName=thetree->GetName();
00044       }
00045    else
00046       {
00047           fxTreeName="No Tree specified";
00048       }
00049 }
00050 
00051 void TGo4TreeHistogramEntryStatus::SetHistogramName(const Text_t * name)
00052 {
00053    fxHistogramName=name;
00054 }
00055 
00056 TGo4DynamicEntry* TGo4TreeHistogramEntryStatus::CreateDynamicEntry()
00057 {
00058    TGo4TreeHistogramEntry* entry = new TGo4TreeHistogramEntry;
00059    entry->SetStatus(this);
00060    return entry;
00061 
00062 }
00063 
00064 const Text_t * TGo4TreeHistogramEntryStatus::GetHistogramName()
00065 {
00066    return fxHistogramName.Data();
00067 }
00068 
00069 void TGo4TreeHistogramEntryStatus::Print(Option_t* dummy) const
00070 {
00071    // this trick is needed since root defines Print as const function...
00072    TGo4TreeHistogramEntryStatus* const localthis= const_cast<TGo4TreeHistogramEntryStatus* const>(this);
00073    TROOT::IndentLevel();
00074    cout <<"-Dynamic TreeDraw Entry " <<localthis->GetName()<<" :" << endl;
00075    TROOT::IncreaseDirLevel();
00076    if(localthis->AutoProcessIsEnabled())
00077       {
00078          TROOT::IndentLevel();
00079          cout <<"\t-- Enabled --" << endl;
00080       }
00081    else
00082       {
00083          TROOT::IndentLevel();
00084          cout <<"\t-- Disabled --" << endl;
00085       }
00086 
00087    TROOT::IndentLevel();
00088    cout <<"\tHistogram:\t"<< localthis->GetHistogramName()<<endl;
00089    TROOT::IndentLevel();
00090    cout <<"\tTree:\t"<< localthis->GetTreeName()<<endl;
00091    TROOT::IndentLevel();
00092    cout <<"\tDraw Expression:\t"<< localthis->GetVarexp()<<endl;
00093    TROOT::IndentLevel();
00094    cout <<"\tCut Expression:\t"<< localthis->GetSelection().GetTitle()<<endl;
00095    TROOT::DecreaseDirLevel();
00096    TROOT::IndentLevel();
00097    cout <<"-End "<<localthis->GetName()<<"-----------" << endl;
00098 }
00099 
00100 ClassImp(TGo4TreeHistogramEntryStatus)
00101 
00102 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Tue Nov 8 10:55:52 2005 for Go4-v2.10-5 by doxygen1.2.15