// $Id: TOpticQFWParam.cxx 557 2010-01-27 15:11:43Z linev $ //----------------------------------------------------------------------- // The GSI Online Offline Object Oriented (Go4) Project // Experiment Data Processing at EE department, GSI //----------------------------------------------------------------------- // Copyright (C) 2000- GSI Helmholtzzentrum f�r Schwerionenforschung GmbH // 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 "TOpticQFWParam.h" #include "Riostream.h" TOpticQFWParam::TOpticQFWParam(const char* name) : TGo4Parameter(name), fSimpleCompensation(kFALSE), fMeasureBackground(kFALSE), fCorrectBackground(kTRUE) { ResetOffsetMeasurement(); } Bool_t TOpticQFWParam::AddOffsetMeasurement(int brd, int qfw, int ch, int ts, UInt_t count) { if(!CheckQFWBoundaries(brd,qfw,ch,ts)) { cout << "**** TOpticQFWParam::AddOffsetMeasurement has illegal indices - ("< (pp); if (from==0) { cout << "Wrong parameter object: " << pp->ClassName() << endl; return kFALSE; } cout << "**** TOpticQFWParam::UpdateFrom ... " << endl; // automatic reset if we newly start the offset calibration: if(!fMeasureBackground && from->fMeasureBackground) { cout << "TOpticQFWParam::UpdateFrom is resetting background measurement!!!"<< endl; ResetOffsetMeasurement(); } fMeasureBackground=from->fMeasureBackground; fCorrectBackground=from->fCorrectBackground; fSlowMotionStart=from->fSlowMotionStart; return kTRUE; }