Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:33:22

0001 /*****************************************************************************
0002  * Project: RooFit                                                           *
0003  *                                                                           *
0004  * Copyright (c) 2000-2007, Regents of the University of California          *
0005  *                          and Stanford University. All rights reserved.    *
0006  *                                                                           *
0007  * Redistribution and use in source and binary forms,                        *
0008  * with or without modification, are permitted according to the terms        *
0009  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
0010  *****************************************************************************/
0011 
0012 #ifndef ROOCBEXGAUSSSHAPE
0013 #define ROOCBEXGAUSSSHAPE
0014 
0015 #include "RooAbsPdf.h"
0016 #include "RooRealProxy.h"
0017 #include "RooCategoryProxy.h"
0018 #include "RooAbsReal.h"
0019 #include "RooAbsCategory.h"
0020 #include "TMath.h"
0021  
0022 class RooCBExGaussShape : public RooAbsPdf {
0023 public:
0024   RooCBExGaussShape() {} ; 
0025   RooCBExGaussShape(const char *name, const char *title,
0026           RooAbsReal& _m,
0027           RooAbsReal& _m0,
0028           RooAbsReal& _sigma,
0029           RooAbsReal& _alpha,
0030           RooAbsReal& _n,
0031               RooAbsReal& _sigma_2,
0032           RooAbsReal& _frac
0033 );
0034   RooCBExGaussShape(const RooCBExGaussShape& other, const char* name=0) ;
0035   virtual TObject* clone(const char* newname) const { return new RooCBExGaussShape(*this,newname); }
0036   inline virtual ~RooCBExGaussShape() { }
0037 
0038 protected:
0039 
0040   RooRealProxy m ;
0041   RooRealProxy  m0 ;
0042   RooRealProxy  sigma ;
0043   RooRealProxy  alpha ;
0044   RooRealProxy  n ;
0045   RooRealProxy  sigma_2 ;
0046   RooRealProxy  frac ;
0047   
0048   Double_t evaluate() const ;
0049 
0050 private:
0051 
0052   ClassDef(RooCBExGaussShape,1) // Your description goes here...
0053 };
0054  
0055 #endif