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

/Go4ExampleUserSource/TYYYUnpackFact.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 "TYYYUnpackFact.h"
00017 
00018 #include <iostream.h>
00019 
00020 //***********************************************************
00021 TYYYUnpackFact::TYYYUnpackFact(Text_t * name)
00022 : TGo4EventServerFactory(name)
00023 {
00024 }
00025 //***********************************************************
00026 TYYYUnpackFact::TYYYUnpackFact()
00027 : TGo4EventServerFactory("YYY Event Fact")
00028 {
00029 }
00030 //***********************************************************
00031 TYYYUnpackFact::~TYYYUnpackFact()
00032 {
00033 }
00034 //***********************************************************
00035 
00036 TGo4EventElement * TYYYUnpackFact::CreateInputEvent()
00037 {
00038    TYYYRawEvent* event = new TYYYRawEvent("YYYRawEvent");
00039    return event;
00040 
00041 }
00042 
00043 
00044 
00045 
00046 //-----------------------------------------------------------
00047 TGo4EventProcessor * TYYYUnpackFact::CreateEventProcessor(TGo4EventProcessorParameter* par)
00048 {
00049    TYYYUnpackProc* proc = new TYYYUnpackProc("YYYUnpackProc");
00050    return proc;
00051 }
00052 
00053 //-----------------------------------------------------------
00054 TGo4EventElement * TYYYUnpackFact::CreateOutputEvent()
00055 { // name is given in TYYYUnpackEvent
00056    TYYYUnpackEvent * event = new TYYYUnpackEvent();
00057    SetOutputEvent(event); // important for some event store implementations!!!
00058    return event;
00059 }
00060 
00061 //-----------------------------------------------------------
00062 TGo4EventSource * TYYYUnpackFact::CreateEventSource(TGo4EventSourceParameter * par)
00063 {
00064 TGo4EventSource* rev=0;
00065 if(par)
00066       {
00067          if(!strcmp(par->ClassName(),"TGo4UserSourceParameter"))
00068             {
00069                rev= new TYYYEventSource(dynamic_cast<TGo4UserSourceParameter* > (par) );
00070                cout <<"TYYYUnpackFact::CreateEventSource with UserSourceParameter" << endl;
00071             }
00072          else
00073             {
00074                rev=TGo4EventServerFactory::CreateEventSource(par);
00075                cout <<"TYYYUnpackFact::CreateEventSource with parameter "<<par->GetName() << endl;
00076 
00077             }
00078       }
00079 return rev;
00080 }
00081 
00082 ClassImp(TYYYUnpackFact)
00083 
00084 
00085 
00086 
00087 //----------------------------END OF GO4 SOURCE FILE ---------------------

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