laura is hosted by Hepforge, IPPP Durham
Laura++  v3r5
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 
53 #ifndef LAU_PAR_STEP_FUNC_PDF
54 #define LAU_PAR_STEP_FUNC_PDF
55 
56 #include <vector>
57 
58 #include "TString.h"
59 
60 #include "LauAbsPdf.hh"
61 
62 class LauParameter;
63 
64 
66 
67  public:
69  enum NormBin {
72  };
73 
75 
81  LauParametricStepFuncPdf(const TString& theVarName, const std::vector<LauAbsRValue*>& params, const std::vector<Double_t>& limits, NormBin normalisationBin = Last);
82 
84  virtual ~LauParametricStepFuncPdf();
85 
87 
90  virtual void calcLikelihoodInfo(const LauAbscissas& abscissas);
91 
93 
95  virtual void calcNorm();
96 
98 
101  virtual void calcPDFHeight( const LauKinematics* kinematics );
102 
103  protected:
105 
108  UInt_t nBins() const {return limits_.size()-1;}
109 
111 
114  NormBin normBin() const {return normBin_;}
115 
116  private:
119 
122 
126  std::vector<Double_t> limits_;
127 
128  ClassDef(LauParametricStepFuncPdf,0) // Define the PSF PDF
129 };
130 
131 #endif
NormBin normBin_
normalisation bin
virtual ~LauParametricStepFuncPdf()
Destructor.
LauParametricStepFuncPdf & operator=(const LauParametricStepFuncPdf &rhs)
Copy assignment operator (not implemented)
LauParametricStepFuncPdf(const TString &theVarName, const std::vector< LauAbsRValue * > &params, const std::vector< Double_t > &limits, NormBin normalisationBin=Last)
Constructor.
NormBin normBin() const
Normalisation bin.
Class for defining a Parametric Step Function PDF.
UInt_t nBins() const
Number of bins.
NormBin
Define the allowed options for the normalisation bin.
Class for defining the fit parameter objects.
Definition: LauParameter.hh:49
virtual void calcLikelihoodInfo(const LauAbscissas &abscissas)
Calculate the likelihood (and intermediate info) for a given abscissa.
File containing declaration of LauAbsPdf class.
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) ...
std::vector< Double_t > limits_
limits of the bins
virtual void calcPDFHeight(const LauKinematics *kinematics)
Calculate the PDF height.
Class for defining the abstract interface for PDF classes.
Definition: LauAbsPdf.hh:55
Class for calculating 3-body kinematic quantities.
std::vector< Double_t > LauAbscissas
The type used for containing multiple abscissa values.
Definition: LauAbsPdf.hh:59