00001 // $Id: TMeshDummyEvent.cxx 999 2013-07-25 11:58:59Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #include "TMeshDummyEvent.h" 00015 00016 #include "TMeshProviderProc.h" 00017 00018 //*********************************************************** 00019 TMeshDummyEvent::TMeshDummyEvent() 00020 :TGo4EventElement("DummyEvent"),fxProviderProc(0) 00021 { 00022 00023 } 00024 //*********************************************************** 00025 TMeshDummyEvent::TMeshDummyEvent(const char* name) 00026 :TGo4EventElement(name),fxProviderProc(0) 00027 { 00028 } 00029 //*********************************************************** 00030 TMeshDummyEvent::~TMeshDummyEvent() 00031 { 00032 } 00033 //*********************************************************** 00034 00035 00036 //----------------------------------------------------------- 00037 Int_t TMeshDummyEvent::Init() 00038 { 00039 // check for different source types 00040 Int_t rev = 0; 00041 Clear(); 00042 if(CheckEventSource("TMeshProviderProc")) 00043 { 00044 fxProviderProc = dynamic_cast<TMeshProviderProc*>(GetEventSource()); 00045 //std::cout << "**** TMeshDummyEvent init"<< std::endl; 00046 } 00047 else 00048 rev=1; 00049 return rev; 00050 00051 } 00052 //----------------------------------------------------------- 00053 Int_t TMeshDummyEvent::Fill() 00054 { 00055 // check for different source types 00056 Int_t rev = 0; 00057 if(fxProviderProc) 00058 fxProviderProc->SetRealInput(); 00059 else 00060 rev=1; 00061 return rev; 00062 00063 } 00064 //----------------------------------------------------------- 00065 void TMeshDummyEvent::Clear(Option_t*) 00066 { 00067 00068 }