00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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
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