Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-18 09:33:02

0001 /*****************************************************************************
0002  * Project: RooFit                                                           *
0003  * Package: RooFitModels                                                     *
0004  *    File: $Id$
0005  * Authors:                                                                  *
0006  *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
0007  *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
0008  *                                                                           *
0009  * Copyright (c) 2000-2005, Regents of the University of California          *
0010  *                          and Stanford University. All rights reserved.    *
0011  *                                                                           *
0012  * Redistribution and use in source and binary forms,                        *
0013  * with or without modification, are permitted according to the terms        *
0014  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
0015  *****************************************************************************/
0016 #ifndef ROO_UNIFORM
0017 #define ROO_UNIFORM
0018 
0019 #include "RooAbsPdf.h"
0020 #include "RooListProxy.h"
0021 
0022 class RooRealVar;
0023 
0024 class RooUniform : public RooAbsPdf {
0025 public:
0026   RooUniform() {} ;
0027   RooUniform(const char *name, const char *title, const RooArgSet& _x);
0028   RooUniform(const RooUniform& other, const char* name=nullptr) ;
0029   TObject* clone(const char* newname=nullptr) const override { return new RooUniform(*this,newname); }
0030 
0031   Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=nullptr) const override ;
0032   double analyticalIntegral(Int_t code, const char* rangeName=nullptr) const override ;
0033 
0034   Int_t getGenerator(const RooArgSet& directVars, RooArgSet &generateVars, bool staticInitOK=true) const override;
0035   void generateEvent(Int_t code) override;
0036 
0037 protected:
0038 
0039   RooListProxy x ;
0040 
0041   double evaluate() const override ;
0042 
0043 
0044 private:
0045 
0046   ClassDefOverride(RooUniform,1) // Flat PDF in N dimensions
0047 };
0048 
0049 #endif