//------------------------------------------------------------- // Go4 Release Package v3.03-05 (build 30305) // 05-June-2008 //--------------------------------------------------------------- // The GSI Online Offline Object Oriented (Go4) Project // Experiment Data Processing at EE department, GSI //--------------------------------------------------------------- // //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI // Planckstr. 1, 64291 Darmstadt, Germany //Contact: http://go4.gsi.de //---------------------------------------------------------------- //This software can be used under the license agreements as stated //in Go4License.txt file which is part of the distribution. //---------------------------------------------------------------- #include "TFeb3BasicParam.h" #include "Riostream.h" //*********************************************************** TFeb3BasicParam::TFeb3BasicParam() : TGo4Parameter("Parameter") { frP1=0; frP2=0; fiNum=0; fbEnab=kFALSE; fdTest=0; fsTest=0; fcTest=0; flTest=0; fuNum=0; fuShort=0; fuChar=0; fuLong=0; fxInputfile="No file specified"; for(Int_t ix=0;ix<__ARRAYSIZE__;++ix) { fiDataArray[ix]=0; } for(Int_t u=0;u<__MEVX__;++u) { for(Int_t v=0;v<__MEVY__;++v) { fdMeV[u][v]=0; } } for(Int_t x=0;x<__MEVX__;++x) { fdTestarr[x]=0; } } //*********************************************************** TFeb3BasicParam::TFeb3BasicParam(const char* name) : TGo4Parameter(name) { fill=kTRUE; frP1=10; frP2=20; fiNum=-3; fbEnab=kFALSE; fdTest=3.141592665; fsTest=6; fcTest=7; flTest=20; fuNum=42; fuShort=8; fuChar=9; fuLong=10; fxInputfile="testdata.lmd"; for(Int_t ix=0;ix<__ARRAYSIZE__;++ix) { fiDataArray[ix]=ix+30; } for(Int_t u=0;u<__MEVX__;++u) { for(Int_t v=0;v<__MEVY__;++v) { fdMeV[u][v]=(u+v)*1.537; } } for(Int_t x=0;x<__MEVX__;++x) { fdTestarr[x]=x*3.1415; } } //*********************************************************** TFeb3BasicParam::~TFeb3BasicParam() { } //*********************************************************** //----------------------------------------------------------- Int_t TFeb3BasicParam::PrintParameter(Text_t * n, Int_t){ return 0; cout << "Parameter " << GetName()<<":" <fill; frP1=from->frP1; frP2=from->frP2; fiNum=from->fiNum; fbEnab=from->fbEnab; fdTest=from->fdTest; fsTest=from->fsTest; fcTest=from->fcTest; flTest=from->flTest; fuNum=from->fuNum; fuShort=from->fuShort; fuChar=from->fuChar; fuLong=from->fuLong; fxInputfile=from->fxInputfile; for(Int_t ix=0;ix<__ARRAYSIZE__;++ix) { fiDataArray[ix]=from->fiDataArray[ix]; } for(Int_t u=0;u<__MEVX__;++u) { for(Int_t v=0;v<__MEVY__;++v) { fdMeV[u][v]=from->fdMeV[u][v]; } } for(Int_t x=0;x<__MEVX__;++x) { fdTestarr[x]=from->fdTestarr[x]; } } else cout << "Wrong parameter object: " << pp->ClassName() << endl; return kTRUE; } //----------------------------END OF GO4 SOURCE FILE ---------------------