Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooDstD0BG.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitModels *
4 * File: $Id: RooDstD0BG.h,v 1.12 2007/07/12 20:30:49 wouter Exp $
5 * Authors: *
6 * UE, Ulrik Egede, RAL, U.Egede@rl.ac.uk *
7 * MT, Max Turri, UC Santa Cruz turri@slac.stanford.edu *
8 * CC, Chih-hsiang Cheng, Stanford chcheng@slac.stanford.edu *
9 * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
10 * *
11 * Copyright (c) 2000-2005, Regents of the University of California *
12 * RAL and Stanford University. All rights reserved.*
13 * *
14 * Redistribution and use in source and binary forms, *
15 * with or without modification, are permitted according to the terms *
16 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
17 *****************************************************************************/
18#ifndef ROO_DstD0_BG
19#define ROO_DstD0_BG
20
21#include "RooAbsPdf.h"
22#include "RooRealProxy.h"
23
24class RooRealVar;
25
26class RooDstD0BG : public RooAbsPdf {
27public:
29 RooDstD0BG(const char *name, const char *title,
30 RooAbsReal& _dm, RooAbsReal& _dm0, RooAbsReal& _c,
31 RooAbsReal& _a, RooAbsReal& _b);
32
33 RooDstD0BG(const RooDstD0BG& other, const char *name=nullptr) ;
34 TObject *clone(const char *newname) const override {
35 return new RooDstD0BG(*this,newname); }
36
37 Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=nullptr) const override ;
38 double analyticalIntegral(Int_t code, const char* rangeName=nullptr) const override ;
39
40protected:
41
45
46 double evaluate() const override;
47 void computeBatch(double* output, size_t nEvents, RooFit::Detail::DataMap const&) const override;
48 inline bool canComputeBatchWithCuda() const override { return true; }
49
50private:
51
52 ClassDefOverride(RooDstD0BG,1) // D*-D0 mass difference background PDF
53};
54
55#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
char name[80]
Definition TGX11.cxx:110
Abstract interface for all probability density functions.
Definition RooAbsPdf.h:40
Abstract base class for objects that represent a real value and implements functionality common to al...
Definition RooAbsReal.h:59
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:55
Special p.d.f shape that can be used to model the background of D*-D0 mass difference distributions.
Definition RooDstD0BG.h:26
RooRealProxy B
Definition RooDstD0BG.h:44
RooRealProxy dm
Definition RooDstD0BG.h:42
RooRealProxy A
Definition RooDstD0BG.h:44
RooRealProxy dm0
Definition RooDstD0BG.h:43
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
TObject * clone(const char *newname) const override
Definition RooDstD0BG.h:34
void computeBatch(double *output, size_t nEvents, RooFit::Detail::DataMap const &) const override
Compute multiple values of D*-D0 mass difference distribution.
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=nullptr) const override
if (matchArgs(allVars,analVars,dm)) return 1 ;
RooRealProxy C
Definition RooDstD0BG.h:44
double analyticalIntegral(Int_t code, const char *rangeName=nullptr) const override
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
bool canComputeBatchWithCuda() const override
Definition RooDstD0BG.h:48
RooRealVar represents a variable that can be changed from the outside.
Definition RooRealVar.h:37
Mother of all ROOT objects.
Definition TObject.h:41
static void output()