/*************************************************************************** PRunNonMusr.cpp Author: Andreas Suter e-mail: andreas.suter@psi.ch $Id$ ***************************************************************************/ /*************************************************************************** * Copyright (C) 2007 by Andreas Suter * * andreas.suter@psi.c * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ #include #include "PRunNonMusr.h" //-------------------------------------------------------------------------- // Constructor //-------------------------------------------------------------------------- /** *

* */ PRunNonMusr::PRunNonMusr() : PRunBase() { fFitStartTime = 0.0; fFitStopTime = 0.0; fNoOfFitBins = 0; } //-------------------------------------------------------------------------- // Constructor //-------------------------------------------------------------------------- /** *

* * \param msrInfo pointer to the msr info structure * \param runNo number of the run of the msr-file */ PRunNonMusr::PRunNonMusr(PMsrHandler *msrInfo, PRunDataHandler *rawData, unsigned int runNo) : PRunBase(msrInfo, rawData, runNo) { bool success; // calculate fData if (success) { success = PrepareData(); } } //-------------------------------------------------------------------------- // Destructor //-------------------------------------------------------------------------- /** *

* */ PRunNonMusr::~PRunNonMusr() { } //-------------------------------------------------------------------------- // CalcChiSquare //-------------------------------------------------------------------------- /** *

* * \param par parameter vector iterated by minuit */ double PRunNonMusr::CalcChiSquare(const std::vector& par) { double chisq = 0.0; double diff = 0.0; return chisq; } //-------------------------------------------------------------------------- // CalcMaxLikelihood //-------------------------------------------------------------------------- /** *

* * \param par parameter vector iterated by minuit */ double PRunNonMusr::CalcMaxLikelihood(const std::vector& par) { cout << endl << "PRunSingleHisto::CalcMaxLikelihood(): not implemented yet ..." << endl; return 1.0; } //-------------------------------------------------------------------------- // CalcTheory //-------------------------------------------------------------------------- /** *

* */ void PRunNonMusr::CalcTheory() { } //-------------------------------------------------------------------------- // PrepareData //-------------------------------------------------------------------------- /** *

* */ bool PRunNonMusr::PrepareData() { bool success = true; cout << endl << "in PRunNonMusr::PrepareData(): will feed fData"; // count the number of bins to be fitted fNoOfFitBins=0; for (unsigned int i=0; i= fFitStartTime) && (fData.fTime[i] <= fFitStopTime)) fNoOfFitBins++; } return success; }