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

/Go4DynamicList/TGo4DynamicEntryStatus.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 "TGo4DynamicEntryStatus.h"
00017 
00018 #include "Go4Log/TGo4Log.h"
00019 #include "Go4ConditionsBase/TGo4Condition.h"
00020 
00021 TGo4DynamicEntryStatus::TGo4DynamicEntryStatus(const Text_t * name)
00022 : TGo4Status(name), fbProcessEntry(kTRUE)
00023 {
00024    TRACE((15,"TGo4DynamicEntryStatus::TGo4DynamicEntryStatus(Text_t *)",__LINE__, __FILE__));
00025    ResetNames();
00026 }
00027 
00028 TGo4DynamicEntryStatus::TGo4DynamicEntryStatus() : 
00029   TGo4Status(), fbProcessEntry(kTRUE)
00030 {
00031   TRACE((15,"TGo4DynamicEntryStatus::TGo4DynamicEntryStatus()",__LINE__, __FILE__));
00032    //ResetNames(); // do not reset names when streaming status from file!
00033 }
00034 
00035 TGo4DynamicEntryStatus::~TGo4DynamicEntryStatus()
00036 {
00037 TRACE((15,"TGo4DynamicEntryStatus::~TGo4DynamicEntryStatus()",__LINE__, __FILE__));
00038 }
00039 
00040 void TGo4DynamicEntryStatus::SetConVarNames(TString * names)
00041 {
00042 TRACE((11,"TGo4DynamicEntryStatus::SetConVarNames(TString * names)",__LINE__, __FILE__));
00043 for(UInt_t ix=0; ix<TGo4DynamicEntry::fguMAXCONDIMENSION; ++ix)
00044    {
00045       fxConVarName[ix]=names[ix];
00046    }
00047 }
00048 void TGo4DynamicEntryStatus::SetConEventNames(TString * names)
00049 {
00050 TRACE((11,"TGo4DynamicEntryStatus::SetConEventNames(TString * names)",__LINE__, __FILE__));
00051 for(UInt_t ix=0; ix<TGo4DynamicEntry::fguMAXCONDIMENSION; ++ix)
00052    {
00053       fxConEventName[ix]=names[ix];
00054    }
00055 }
00056 
00057 const Text_t* TGo4DynamicEntryStatus::GetConVarName(UInt_t ix)
00058 {
00059 TRACE((11,"TGo4DynamicEntryStatus::GetConVarName(UInt_t)",__LINE__, __FILE__));
00060    if(ix>=TGo4DynamicEntry::fguMAXCONDIMENSION) return 0;
00061    return fxConVarName[ix].Data();
00062 }
00063 
00064 const Text_t* TGo4DynamicEntryStatus::GetConEventName(UInt_t ix)
00065 {
00066 TRACE((11,"TGo4DynamicEntryStatus::GetConEventName(UInt_t)",__LINE__, __FILE__));
00067 if(ix>=TGo4DynamicEntry::fguMAXCONDIMENSION) return 0;
00068 return fxConEventName[ix].Data();
00069 }
00070 
00071 void TGo4DynamicEntryStatus::SetConVarName(UInt_t ix, const Text_t* txt)
00072 {
00073   if(ix>=TGo4DynamicEntry::fguMAXCONDIMENSION) return;
00074   fxConVarName[ix]=txt;
00075 }
00076 
00077 void TGo4DynamicEntryStatus::SetConEventName(UInt_t ix, const Text_t* txt)
00078 {
00079    if(ix>=TGo4DynamicEntry::fguMAXCONDIMENSION) return;
00080    fxConEventName[ix]=txt;
00081 }
00082 
00083 
00084 const Text_t * TGo4DynamicEntryStatus::GetConditionName()
00085 {
00086   return fxConditionName.Data();
00087 }
00088 
00089 const Text_t * TGo4DynamicEntryStatus::GetConditionClass()
00090 {
00091   return fxConditionClass.Data();
00092 }
00093 
00094 void TGo4DynamicEntryStatus::SetCondition(TGo4Condition * con)
00095 {
00096 TRACE((11,"TGo4DynamicEntryStatus::SetCondition(TGo4Condition*)",__LINE__, __FILE__));
00097    if(con)
00098       {
00099           fxConditionName=con->GetName();
00100           fxConditionClass=con->ClassName();
00101       }
00102 }
00103 
00104 void TGo4DynamicEntryStatus::SetConditionName(const Text_t* name)
00105 {
00106    fxConditionName=name;
00107 }
00108 
00109 void TGo4DynamicEntryStatus::SetHistogramName(const Text_t* name)
00110 {
00111 // empty, to be overwritten in subclass
00112 }
00113 
00114 const Text_t * TGo4DynamicEntryStatus::GetHistogramName()
00115 {
00116 // empty, to be overwritten in subclass
00117 return 0;
00118 }
00119 
00120 void TGo4DynamicEntryStatus::ResetNames()
00121 {
00122 TRACE((11,"TGo4DynamicEntryStatus::ResetNames()",__LINE__, __FILE__));
00123 SetConditionName(TGo4DynamicEntry::fgcNOCONDITION);
00124 for (UInt_t t=0; t<TGo4DynamicEntry::fguMAXCONDIMENSION;++t)
00125    {
00126        // set names to defaults.
00127        fxConEventName[t]=TGo4DynamicEntry::fgcNOEVENT;
00128        fxConVarName[t]=TGo4DynamicEntry::fgcNODATA;
00129    }
00130 }
00131 
00132 
00133 ClassImp(TGo4DynamicEntryStatus)
00134 
00135 
00136 
00137 
00138 //----------------------------END OF GO4 SOURCE FILE ---------------------

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