00001 //------------------------------------------------------------- 00002 // Go4 Release Package v3.04-01 (build 30401) 00003 // 28-November-2008 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at EE 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 "Riostream.h" 00019 00020 #include "TXXXAnlProc.h" 00021 00022 //*********************************************************** 00023 TXXXAnlEvent::TXXXAnlEvent() 00024 :TGo4EventElement(),fxXXXCP(0) 00025 { 00026 } 00027 //*********************************************************** 00028 TXXXAnlEvent::TXXXAnlEvent(const char * name) 00029 :TGo4EventElement(name),fxXXXCP(0) 00030 { 00031 } 00032 //*********************************************************** 00033 TXXXAnlEvent::~TXXXAnlEvent() 00034 { 00035 } 00036 //*********************************************************** 00037 00038 00039 //----------------------------------------------------------- 00040 Int_t TXXXAnlEvent::Init() 00041 { 00042 // check for different source types 00043 Int_t rev = 0; 00044 if(CheckEventSource("TXXXAnlProc")){ 00045 fxXXXCP = (TXXXAnlProc*)GetEventSource(); 00046 cout << "**** XXXAnlEvent init for Analysis step"<< endl; 00047 } 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 return rev; 00060 00061 } 00062 //----------------------------------------------------------- 00063 void TXXXAnlEvent::Clear(Option_t *t) 00064 { 00065 void* destfield; 00066 destfield = (void*) &frData[0]; 00067 memset(destfield,0, sizeof(frData)); 00068 } 00069 00070 //----------------------------END OF GO4 SOURCE FILE ---------------------