SpectraPac 2.0(r200)
Evaluates PAC Measurements

pacCoincidenceDefinitions.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2008-2010 by Matthias Nagl                              *
00003  *   mnagl@uni-goettingen.de                                               *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 
00021 #ifndef PACCOINCIDENCEDEFINITIONS_H
00022 #define PACCOINCIDENCEDEFINITIONS_H
00023 
00024 #include <limits>
00025 #include <QString>
00026 #include <QVector>
00027 #include <QMetaType>
00028 #include <vector>
00029 
00030 class PacCoincidenceSpectrum;
00031 namespace ROOT {
00032   namespace Minuit2 {
00033     class MnUserParameterState;
00034     class ParametricFunction;
00035   }
00036 }
00037 
00038 namespace Pac {
00039 
00040   enum ParameterDeterminationMethod {
00041     FitResults,
00042     ManuallySetValues
00043   };
00044 
00045   struct FitParameterProperties {
00046     QString name;
00047     QString richtextname;
00048     int decimals;
00049     double stepsize;
00050     QString unitsuffix;
00051     double initialvalue;
00052     double initialerror;
00053     double absolutelowerlimit;
00054     double absoluteupperlimit;
00055     FitParameterProperties() : decimals(0), stepsize(1.0), initialvalue(1.0), initialerror(0.1), absolutelowerlimit(-std::numeric_limits<double>::max()), absoluteupperlimit(std::numeric_limits<double>::max()) {};
00056   };
00057 
00058   struct CoincidenceFitDataSet {
00059     PacCoincidenceSpectrum *sender;
00060     const ROOT::Minuit2::ParametricFunction *function;
00061     ROOT::Minuit2::MnUserParameterState *parameters;
00062     QVector<double> x;
00063     double ignoreIfXSmallerThan;
00064     QVector<double> y;
00065     double ignoreIfYLargerThan;
00066     QVector<double> variance;
00067     CoincidenceFitDataSet(
00068         PacCoincidenceSpectrum *sender,
00069         const ROOT::Minuit2::ParametricFunction *function,
00070         ROOT::Minuit2::MnUserParameterState *parameters,
00071         const QVector<double> &x,
00072         double ignoreIfXSmallerThan,
00073         const QVector<double> &y,
00074         double ignoreIfYLargerThan,
00075         const QVector<double> &variance
00076         )
00077       : sender(sender), function(function), parameters(parameters),
00078         x(x), ignoreIfXSmallerThan(ignoreIfXSmallerThan),
00079         y(y), ignoreIfYLargerThan(ignoreIfYLargerThan),
00080         variance(variance) {};
00081   };
00082 
00083 }
00084 
00085 typedef QList< QList< QVector<quint64> > > PacCoincidenceSearchResults;
00086 Q_DECLARE_METATYPE(PacCoincidenceSearchResults)
00087 
00088 #endif // PACCOINCIDENCEDEFINITIONS_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines