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

/Go4CommandsAnalysis/TGo4ComCopyObject.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 "TGo4ComCopyObject.h"
00017 
00018 #include "Go4Log/TGo4Log.h"
00019 
00020 TGo4ComCopyObject::TGo4ComCopyObject(const char* object,
00021                                      const char* target)
00022 :TGo4AnalysisObjectCommand("ANCopy",
00023                      "Creates a copy of existing object",
00024                      object)
00025 {
00026    TRACE((12,"TGo4ComCopyObject::TGo4ComCopyObject(...) ctor",__LINE__, __FILE__));
00027    SetTargetName(target);
00028    SetProtection(kGo4ComModeController);
00029 }
00030 
00031 TGo4ComCopyObject::TGo4ComCopyObject()
00032 :TGo4AnalysisObjectCommand("ANCopy",
00033                      "Creates a copy of existing object",
00034                      "his")
00035 {
00036    TRACE((12,"TGo4ComCopyObject::TGo4ComCopyObject(...) ctor",__LINE__, __FILE__));
00037    SetTargetName("his2");
00038    SetProtection(kGo4ComModeController);
00039 }
00040 
00041 TGo4ComCopyObject::~TGo4ComCopyObject()
00042 {
00043    TRACE((12,"TGo4ComCopyObject::~TGo4ComCopyObject() dtor",__LINE__, __FILE__));
00044 }
00045 
00046 
00047 Int_t TGo4ComCopyObject::ExeCom()
00048 {
00049    TRACE((12,"TGo4ComCopyObject::ExeCom()",__LINE__, __FILE__));
00050 
00051    if (fxReceiverBase!=0)
00052       {
00053       TRACE((11,"TGo4ComCopyObject::ExeCom() - found valid receiver",__LINE__, __FILE__));
00054          TGo4Log::Debug(" ComCopyObject: copy %s to %s ",
00055                   GetObjectName(), GetTargetName());
00056 
00057  //        ( dynamic_cast<TGo4Analysis*> (fxReceiverBase) ) ->InitEventClasses();
00058       }
00059    else
00060       {
00061       TRACE((11,"TGo4ComCopyObject::ExeCom() - no receiver specified ERROR!",__LINE__, __FILE__));
00062          TGo4Log::Debug(" !!! ComCopyObject ''%s'': NO RECEIVER ERROR!!!",GetName());
00063          return 1;
00064       }
00065 
00066    return -1;
00067 }
00068 
00069 ClassImp(TGo4ComCopyObject)
00070 
00071 //----------------------------END OF GO4 SOURCE FILE ---------------------

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