laura is hosted by Hepforge, IPPP Durham
Laura++  3.6.0
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauParametricStepFuncPdf.hh
Go to the documentation of this file.
1 
2 /*
3 Copyright 2008 University of Warwick
4 
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8 
9  http://www.apache.org/licenses/LICENSE-2.0
10 
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16 */
17 
18 /*
19 Laura++ package authors:
20 John Back
21 Paul Harrison
22 Thomas Latham
23 */
24 
36 /*****************************************************************************
37  * Class based on RooFit/RooParametricStepFunction. *
38  * Original copyright given below. *
39  *****************************************************************************
40  * Authors: *
41  * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
42  * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
43  * *
44  * Copyright (c) 2000-2005, Regents of the University of California *
45  * and Stanford University. All rights reserved. *
46  * *
47  * Redistribution and use in source and binary forms, *
48  * with or without modification, are permitted according to the terms *
49  * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
50  *****************************************************************************/
51 
52 #ifndef LAU_PAR_STEP_FUNC_PDF
53 #define LAU_PAR_STEP_FUNC_PDF
54 
55 #include "LauAbsPdf.hh"
56 
57 #include "TString.h"
58 
59 #include <vector>
60 
61 class LauParameter;
62 
64 
65  public:
67  enum NormBin {
69  Last
70  };
71 
73 
79  LauParametricStepFuncPdf( const TString& theVarName,
80  const std::vector<LauAbsRValue*>& params,
81  const std::vector<Double_t>& limits,
82  NormBin normalisationBin = Last );
83 
85  virtual ~LauParametricStepFuncPdf();
86 
88 
91  virtual void calcLikelihoodInfo( const LauAbscissas& abscissas );
92 
94 
96  virtual void calcNorm();
97 
99 
102  virtual void calcPDFHeight( const LauKinematics* kinematics );
103 
104  protected:
106 
109  UInt_t nBins() const { return limits_.size() - 1; }
110 
112 
115  NormBin normBin() const { return normBin_; }
116 
117  private:
120 
123 
127  std::vector<Double_t> limits_;
128 
129  ClassDef( LauParametricStepFuncPdf, 0 ) // Define the PSF PDF
130 };
131 
132 #endif
File containing declaration of LauAbsPdf class.
Class for defining the fit parameter objects.
Definition: LauParameter.hh:49
LauParametricStepFuncPdf(const LauParametricStepFuncPdf &rhs)
Copy constructor (not implemented)
std::vector< Double_t > limits_
limits of the bins
NormBin normBin_
normalisation bin
std::vector< Double_t > LauAbscissas
The type used for containing multiple abscissa values.
Definition: LauAbsPdf.hh:58
virtual ~LauParametricStepFuncPdf()
Destructor.
virtual void calcNorm()
Calculate the normalisation.
virtual void calcLikelihoodInfo(const LauAbscissas &abscissas)=0
Calculate the likelihood (and all associated information) given value(s) of the abscissa(s)
Class for defining the abstract interface for PDF classes.
Definition: LauAbsPdf.hh:54
LauParametricStepFuncPdf & operator=(const LauParametricStepFuncPdf &rhs)
Copy assignment operator (not implemented)
UInt_t nBins() const
Number of bins.
virtual void calcPDFHeight(const LauKinematics *kinematics)
Calculate the PDF height.
Class for calculating 3-body kinematic quantities.
LauParametricStepFuncPdf(const TString &theVarName, const std::vector< LauAbsRValue * > &params, const std::vector< Double_t > &limits, NormBin normalisationBin=Last)
Constructor.
virtual void calcLikelihoodInfo(const LauAbscissas &abscissas)
Calculate the likelihood (and intermediate info) for a given abscissa.
Class for defining a Parametric Step Function PDF.
NormBin normBin() const
Normalisation bin.
NormBin
Define the allowed options for the normalisation bin.