Logo ROOT  
Reference Guide
No Matches
Go to the documentation of this file.
2 * Project: RooFit *
3 * Package: RooFitCore *
4 * File: $Id: RooTruthModel.h,v 1.18 2007/05/11 10:14:56 verkerke Exp $
5 * Authors: *
6 * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7 * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8 * *
9 * Copyright (c) 2000-2005, Regents of the University of California *
10 * and Stanford University. All rights reserved. *
11 * *
12 * Redistribution and use in source and binary forms, *
13 * with or without modification, are permitted according to the terms *
14 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15 *****************************************************************************/
19#include "RooResolutionModel.h"
35 enum BasisSign { Both=0, Plus=+1, Minus=-1 } ;
37 // Constructors, assignment etc
38 inline RooTruthModel() { }
39 RooTruthModel(const char *name, const char *title, RooAbsRealLValue& x) ;
40 RooTruthModel(const RooTruthModel& other, const char* name=nullptr);
41 TObject* clone(const char* newname) const override { return new RooTruthModel(*this,newname) ; }
42 ~RooTruthModel() override;
44 Int_t basisCode(const char* name) const override ;
47 const RooDataSet *prototype=nullptr, const RooArgSet* auxProto=nullptr,
48 bool verbose= false) const override;
50 Int_t getGenerator(const RooArgSet& directVars, RooArgSet &generateVars, bool staticInitOK=true) const override;
51 void generateEvent(Int_t code) override;
53 Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=nullptr) const override ;
54 double analyticalIntegral(Int_t code, const char* rangeName=nullptr) const override ;
56 void computeBatch(double* output, size_t size, RooFit::Detail::DataMap const&) const override;
57 inline bool canComputeBatchWithCuda() const override { return true; }
60 double evaluate() const override ;
61 void changeBasis(RooFormulaVar* basis) override ;
63 ClassDefOverride(RooTruthModel,1) // Truth resolution model (delta function)
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
char name[80]
Definition TGX11.cxx:110
RooAbsAnaConvPdf is the base class for PDFs that represent a physics model that can be analytically c...
RooAbsGenContext is the abstract base class for generator contexts of RooAbsPdf objects.
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:55
RooDataSet is a container class to hold unbinned data.
Definition RooDataSet.h:57
A RooFormulaVar is a generic implementation of a real-valued object, which takes a RooArgList of serv...
RooResolutionModel is the base class for PDFs that represent a resolution model that can be convolute...
const RooFormulaVar & basis() const
RooTemplateProxy< RooAbsRealLValue > x
Dependent/convolution variable.
RooTruthModel is an implementation of RooResolution model that provides a delta-function resolution m...
void generateEvent(Int_t code) override
Implement internal generator for observable x, x=0 for all events following definition of delta funct...
TObject * clone(const char *newname) const override
double evaluate() const override
Evaluate the truth model: a delta function when used as PDF, the basis function itself,...
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=nullptr) const override
Advertise analytical integrals for compiled basis functions and when used as p.d.f without basis func...
Int_t getGenerator(const RooArgSet &directVars, RooArgSet &generateVars, bool staticInitOK=true) const override
Advertise internal generator for observable x.
void computeBatch(double *output, size_t size, RooFit::Detail::DataMap const &) const override
Base function for computing multiple values of a RooAbsReal.
bool canComputeBatchWithCuda() const override
~RooTruthModel() override
RooAbsGenContext * modelGenContext(const RooAbsAnaConvPdf &convPdf, const RooArgSet &vars, const RooDataSet *prototype=nullptr, const RooArgSet *auxProto=nullptr, bool verbose=false) const override
double analyticalIntegral(Int_t code, const char *rangeName=nullptr) const override
Implement analytical integrals when used as p.d.f and for compiled basis functions.
Int_t basisCode(const char *name) const override
Return basis code for given basis definition string.
void changeBasis(RooFormulaVar *basis) override
Changes associated bases function to 'inBasis'.
Mother of all ROOT objects.
Definition TObject.h:41
static void output()