TNeMParms.cxx 1.08 KB
Newer Older
Vratislav Chudoba's avatar
Vratislav Chudoba committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
//===================================================================
//== TNe1HParms.cpp: exp1210
//== Version: 			2010-11-26
//===================================================================

#include "TNeMParms.h"

#include "Riostream.h"
using std::cout;
using std::endl;

//const int mchan = 32;
//const int m     = 3;

//***********************************************************
TNeMParms::TNeMParms(const char* name)
	:TGo4Parameter(name),
	fill(kTRUE)
{

} //----------------------------------------------------------------

TNeMParms::~TNeMParms()
{
} //-----------------------------------------------------------------

Bool_t TNeMParms::UpdateFrom(TGo4Parameter *source)
{
	cout << "**** TNeHParm " << GetName()
		<< " updated from auto save file" << endl;

	TNeMParms * from = dynamic_cast<TNeMParms *>(source);

	if(from==0)
	{
		cout << "Wrong parameter class: "
			<< source->ClassName() << endl;
		return kFALSE;
	}

     fill  = from->fill;
	mtracksx  = from->mtracksx;
	mtracksy  = from->mtracksy;

  return kTRUE;
} //-----------------------------------------------------------------