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

/Go4ExampleMesh/TMeshDummyEvent.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 "TMeshDummyEvent.h"
00017 
00018 #include <iostream.h>
00019 
00020 #include "TMeshProviderProc.h"
00021 
00022 //***********************************************************
00023 TMeshDummyEvent::TMeshDummyEvent()
00024   :TGo4EventElement("DummyEvent"),fxProviderProc(0)
00025 {
00026 
00027 }
00028 //***********************************************************
00029 TMeshDummyEvent::TMeshDummyEvent(Text_t * name)
00030   :TGo4EventElement(name),fxProviderProc(0)
00031 {
00032 }
00033 //***********************************************************
00034 TMeshDummyEvent::~TMeshDummyEvent()
00035 {
00036 }
00037 //***********************************************************
00038 
00039 
00040 //-----------------------------------------------------------
00041 Int_t TMeshDummyEvent::Init()
00042 {
00043    // check for different source types
00044   Int_t rev = 0;
00045    Clear();
00046   if(CheckEventSource("TMeshProviderProc"))
00047    {  
00048       fxProviderProc = dynamic_cast<TMeshProviderProc*>(GetEventSource());
00049       //cout << "**** TMeshDummyEvent init"<< endl;  
00050    }
00051   else          
00052     rev=1;
00053   return rev;
00054 
00055 }
00056 //-----------------------------------------------------------
00057 Int_t TMeshDummyEvent::Fill()
00058 {
00059    // check for different source types
00060    Int_t rev = 0;
00061    if(fxProviderProc)
00062       fxProviderProc->SetRealInput();
00063    else
00064       rev=1;
00065    return rev;
00066 
00067 }
00068 //-----------------------------------------------------------
00069 void TMeshDummyEvent::Clear(Option_t*)
00070 {
00071 
00072 }
00073 
00074 //-----------------------------------------------------------
00075 ClassImp(TMeshDummyEvent)
00076 
00077 
00078 
00079 
00080 //----------------------------END OF GO4 SOURCE FILE ---------------------

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