musrfit  1.9.2
PRunNonMusr.h
Go to the documentation of this file.
1 /***************************************************************************
2 
3  PRunNonMusr.h
4 
5  Author: Andreas Suter
6  e-mail: andreas.suter@psi.ch
7 
8 ***************************************************************************/
9 
10 /***************************************************************************
11  * Copyright (C) 2007-2023 by Andreas Suter *
12  * andreas.suter@psi.ch *
13  * *
14  * This program is free software; you can redistribute it and/or modify *
15  * it under the terms of the GNU General Public License as published by *
16  * the Free Software Foundation; either version 2 of the License, or *
17  * (at your option) any later version. *
18  * *
19  * This program is distributed in the hope that it will be useful, *
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
22  * GNU General Public License for more details. *
23  * *
24  * You should have received a copy of the GNU General Public License *
25  * along with this program; if not, write to the *
26  * Free Software Foundation, Inc., *
27  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
28  ***************************************************************************/
29 
30 #ifndef _PRUNNONMUSR_H_
31 #define _PRUNNONMUSR_H_
32 
33 #include "PMusr.h"
34 #include "PRunBase.h"
35 
39 class PRunNonMusr : public PRunBase
40 {
41  public:
42  PRunNonMusr();
43  PRunNonMusr(PMsrHandler *msrInfo, PRunDataHandler *rawData, UInt_t runNo, EPMusrHandleTag tag, Bool_t theoAsData);
44  virtual ~PRunNonMusr();
45 
46  virtual Double_t CalcChiSquare(const std::vector<Double_t>& par);
47  virtual Double_t CalcChiSquareExpected(const std::vector<Double_t>& par);
48  virtual Double_t CalcMaxLikelihood(const std::vector<Double_t>& par);
49  virtual void CalcTheory();
50 
51  virtual UInt_t GetNoOfFitBins();
52 
53  virtual void SetFitRangeBin(const TString fitRange) {}
54 
55  virtual UInt_t GetXIndex();
56  virtual UInt_t GetYIndex();
57 
58  protected:
59  virtual Bool_t PrepareData();
60  virtual Bool_t PrepareFitData();
61  virtual Bool_t PrepareViewData();
62 
63  private:
65 
66  UInt_t fNoOfFitBins;
67  Int_t fPacking;
68  Bool_t fTheoAsData;
69 
70  Int_t fStartTimeBin;
71  Int_t fEndTimeBin;
72 };
73 
74 #endif // _PRUNNONMUSR_H_
virtual Double_t CalcMaxLikelihood(const std::vector< Double_t > &par)
virtual Bool_t PrepareViewData()
PRawRunData * fRawRunData
raw run data handler
Definition: PRunNonMusr.h:64
Bool_t fTheoAsData
true=only calculate the theory points at the data points, false=calculate more points for the theory ...
Definition: PRunNonMusr.h:68
Int_t fEndTimeBin
bin at which the fit ends
Definition: PRunNonMusr.h:71
virtual UInt_t GetNoOfFitBins()
virtual Double_t CalcChiSquare(const std::vector< Double_t > &par)
virtual Double_t CalcChiSquareExpected(const std::vector< Double_t > &par)
virtual void SetFitRangeBin(const TString fitRange)
Definition: PRunNonMusr.h:53
UInt_t fNoOfFitBins
number of bins to be be fitted
Definition: PRunNonMusr.h:66
virtual Bool_t PrepareData()
Int_t fStartTimeBin
bin at which the fit starts
Definition: PRunNonMusr.h:70
Int_t fPacking
packing for this particular run. Either given in the RUN- or GLOBAL-block.
Definition: PRunNonMusr.h:67
EPMusrHandleTag
Definition: PMusr.h:220
virtual void CalcTheory()
virtual UInt_t GetYIndex()
virtual ~PRunNonMusr()
Definition: PRunNonMusr.cpp:85
virtual UInt_t GetXIndex()
virtual Bool_t PrepareFitData()