Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/RooUniform.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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) 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   void translate(RooFit::Detail::CodeSquashContext &ctx) const override;
0038   std::string
0039   buildCallToAnalyticIntegral(Int_t code, const char *rangeName, RooFit::Detail::CodeSquashContext &ctx) const override;
0040 
0041 protected:
0042 
0043   RooListProxy x ;
0044 
0045   double evaluate() const override ;
0046 
0047 
0048 private:
0049 
0050   ClassDefOverride(RooUniform,1) // Flat PDF in N dimensions
0051 };
0052 
0053 #endif