/usr/include/root/RooAbsAnaConvPdf.h is in libroot-roofit-dev 5.34.19+dfsg-1.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | /*****************************************************************************
* Project: RooFit *
* Package: RooFitCore *
* File: $Id: RooAbsAnaConvPdf.h,v 1.8 2007/07/16 21:04:28 wouter Exp $
* Authors: *
* WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
* DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
* *
* Copyright (c) 2000-2005, Regents of the University of California *
* and Stanford University. All rights reserved. *
* *
* Redistribution and use in source and binary forms, *
* with or without modification, are permitted according to the terms *
* listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
*****************************************************************************/
#ifndef ROO_ABS_ANA_CONV_PDF
#define ROO_ABS_ANA_CONV_PDF
class TIterator ;
#include "RooAbsPdf.h"
#include "RooRealProxy.h"
#include "RooListProxy.h"
#include "RooDataSet.h"
#include "RooAICRegistry.h"
#include "RooObjCacheManager.h"
#include "RooAbsCacheElement.h"
class RooResolutionModel ;
class RooRealVar ;
class RooAbsGenContext ;
class RooConvGenContext ;
class RooAbsAnaConvPdf : public RooAbsPdf {
public:
// Constructors, assignment etc
RooAbsAnaConvPdf() ;
RooAbsAnaConvPdf(const char *name, const char *title,
const RooResolutionModel& model,
RooRealVar& convVar) ;
RooAbsAnaConvPdf(const RooAbsAnaConvPdf& other, const char* name=0);
virtual ~RooAbsAnaConvPdf();
Int_t declareBasis(const char* expression, const RooArgList& params) ;
virtual void printMultiline(std::ostream& stream, Int_t contents, Bool_t verbose=kFALSE, TString indent= "") const ;
// Coefficient normalization access
inline Double_t getCoefNorm(Int_t coefIdx, const RooArgSet& nset, const char* rangeName) const {
// Returns normalization integral for coefficient coefIdx for observables nset in range rangeNae
return getCoefNorm(coefIdx,&nset,rangeName) ;
}
Double_t getCoefNorm(Int_t coefIdx, const RooArgSet* nset=0, const char* rangeName=0) const {
return getCoefNorm(coefIdx,nset,RooNameReg::ptr(rangeName));
}
// Analytical integration support
virtual Int_t getAnalyticalIntegralWN(RooArgSet& allVars, RooArgSet& analVars, const RooArgSet* normSet, const char* rangeName=0) const ;
virtual Double_t analyticalIntegralWN(Int_t code, const RooArgSet* normSet, const char* rangeName=0) const ;
// Coefficient Analytical integration support
virtual Int_t getCoefAnalyticalIntegral(Int_t coef, RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=0) const ;
virtual Double_t coefAnalyticalIntegral(Int_t coef, Int_t code, const char* rangeName=0) const ;
virtual Bool_t forceAnalyticalInt(const RooAbsArg& dep) const ;
virtual Double_t coefficient(Int_t basisIndex) const = 0 ;
virtual RooArgSet* coefVars(Int_t coefIdx) const ;
virtual Bool_t isDirectGenSafe(const RooAbsArg& arg) const ;
protected:
Double_t getCoefNorm(Int_t coefIdx, const RooArgSet* nset, const TNamed* rangeName) const ;
Bool_t _isCopy ;
virtual Double_t evaluate() const ;
void makeCoefVarList(RooArgList&) const ;
friend class RooConvGenContext ;
Bool_t changeModel(const RooResolutionModel& newModel) ;
virtual RooAbsGenContext* genContext(const RooArgSet &vars, const RooDataSet *prototype=0,
const RooArgSet* auxProto=0, Bool_t verbose= kFALSE) const ;
RooRealProxy _model ; // Original model
RooRealProxy _convVar ; // Convolution variable
RooArgSet* parseIntegrationRequest(const RooArgSet& intSet, Int_t& coefCode, RooArgSet* analVars=0) const ;
const RooRealVar* convVar() const ; // Convolution variable
RooListProxy _convSet ; // Set of (resModel (x) basisFunc) convolution objects
RooArgList _basisList ; //! List of created basis functions
mutable RooArgSet* _convNormSet ; //! Subset of last normalization that applies to convolutions
mutable TIterator* _convSetIter ; //! Iterator over _convNormSet
class CacheElem : public RooAbsCacheElement {
public:
virtual ~CacheElem() {} ;
RooArgList containedArgs(Action) {
RooArgList l(_coefVarList) ;
l.add(_normList) ;
return l ;
}
RooArgList _coefVarList ;
RooArgList _normList ;
} ;
mutable RooObjCacheManager _coefNormMgr ; // Coefficient normalization manager
mutable RooAICRegistry _codeReg ; //! Registry of analytical integration codes
ClassDef(RooAbsAnaConvPdf,2) // Abstract Composite Convoluted PDF
};
#endif
|