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 "TXXXAnlEvent.h" 00017 00018 #include <iostream.h> 00019 00020 //*********************************************************** 00021 TXXXAnlEvent::TXXXAnlEvent() 00022 :TGo4EventElement("XXXAnlEvent"),fxXXXCP(0),fxXXXFS(0) 00023 { 00024 } 00025 //*********************************************************** 00026 TXXXAnlEvent::TXXXAnlEvent(Text_t * name) 00027 :TGo4EventElement(name),fxXXXCP(0),fxXXXFS(0) 00028 { 00029 } 00030 //*********************************************************** 00031 TXXXAnlEvent::~TXXXAnlEvent() 00032 { 00033 } 00034 //*********************************************************** 00035 00036 00037 //----------------------------------------------------------- 00038 Int_t TXXXAnlEvent::Init() 00039 { 00040 // check for different source types 00041 Int_t rev = 0; 00042 if(CheckEventSource("TXXXAnlProc")){ 00043 fxXXXCP = (TXXXAnlProc*)GetEventSource(); 00044 cout << "**** XXXAnlEvent init for Analysis step"<< endl; 00045 } 00046 // This event is never used as input from file 00047 // else if(CheckEventSource("TGo4FileSource")) fxXXXFS = (TGo4FileSource*)GetEventSource(); 00048 else rev=1; 00049 return rev; 00050 00051 } 00052 //----------------------------------------------------------- 00053 Int_t TXXXAnlEvent::Fill() 00054 { 00055 // check for different source types 00056 Int_t rev = 0; 00057 Clear(); 00058 if(fxXXXCP)fxXXXCP->XXXEventAnalysis(this); 00059 // This event is never used as input from file 00060 // if(fxXXXFS)fxXXXFS->BuildEvent(this); 00061 return rev; 00062 00063 } 00064 //----------------------------------------------------------- 00065 void TXXXAnlEvent::Clear(Option_t *t) 00066 { 00067 //----------------------------------------------------------- 00068 void* destfield; 00069 destfield = (void*) &frData[0]; 00070 memset(destfield,0, sizeof(frData)); 00071 } 00072 00073 //----------------------------------------------------------- 00074 ClassImp(TXXXAnlEvent) 00075 00076 00077 00078 00079 //----------------------------END OF GO4 SOURCE FILE ---------------------