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 "TMeshFinalEvent.h" 00017 00018 #include <iostream.h> 00019 00020 00021 //*********************************************************** 00022 TMeshFinalEvent::TMeshFinalEvent() 00023 :TGo4EventElement("FinalEvent"),fxFinalProc(0),fxFile(0) 00024 { 00025 00026 } 00027 //*********************************************************** 00028 TMeshFinalEvent::TMeshFinalEvent(Text_t * name) 00029 :TGo4EventElement(name),fxFinalProc(0),fxFile(0) 00030 { 00031 } 00032 //*********************************************************** 00033 TMeshFinalEvent::~TMeshFinalEvent() 00034 { 00035 } 00036 //*********************************************************** 00037 00038 00039 //----------------------------------------------------------- 00040 Int_t TMeshFinalEvent::Init() 00041 { 00042 // check for different source types 00043 Int_t rev = 0; 00044 Clear(); 00045 if(CheckEventSource("TMeshFinalProc")) 00046 { 00047 fxFinalProc = dynamic_cast<TMeshFinalProc*>(GetEventSource()); 00048 cout << "**** TMeshFinalEvent init for Final step"<< endl; 00049 } 00050 else if(CheckEventSource("TGo4FileSource")) 00051 { 00052 fxFile = dynamic_cast<TGo4FileSource*> (GetEventSource()); 00053 cout << "**** TMeshFinalEvent init for file input"<< endl; 00054 } 00055 else 00056 rev=1; 00057 return rev; 00058 00059 } 00060 //----------------------------------------------------------- 00061 Int_t TMeshFinalEvent::Fill() 00062 { 00063 // check for different source types 00064 Int_t rev = 0; 00065 Clear(); 00066 if(fxFinalProc) 00067 fxFinalProc->Analysis(this); 00068 else if(fxFile) 00069 fxFile->BuildEvent(this); 00070 else 00071 rev=1; 00072 return rev; 00073 00074 } 00075 //----------------------------------------------------------- 00076 void TMeshFinalEvent::Clear(Option_t *t) 00077 { 00078 //----------------------------------------------------------- 00079 fxB1.Clear(t); 00080 fxB1.SetValid(kFALSE); 00081 fxB2.Clear(t); 00082 fxB1.SetValid(kFALSE); 00083 fxB3.Clear(t); 00084 fxB1.SetValid(kFALSE); 00085 fxB12.Clear(t); 00086 fxB1.SetValid(kFALSE); 00087 } 00088 00089 //----------------------------------------------------------- 00090 ClassImp(TMeshFinalEvent) 00091 00092 00093 00094 00095 //----------------------------END OF GO4 SOURCE FILE ---------------------