-
Notifications
You must be signed in to change notification settings - Fork 0
/
RooArgusGenBG.h
68 lines (55 loc) · 2.13 KB
/
RooArgusGenBG.h
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
/*****************************************************************************
* Project: BaBar detector at the SLAC PEP-II B-factory
* Package: RooDKDalitz
* File: $Id: RooArgusGenBG.rdl,v 1.2 2007/11/08 14:46:17 martinee Exp $
* See .cc file
*****************************************************************************/
#ifndef ROOARGUSGENBG
#define ROOARGUSGENBG
#include "RooAbsPdf.h"
#include "RooAbsReal.h"
#include "RooRealProxy.h"
// class RooRealVar;
// class RooAbsReal;
class RooArgusGenBG : public RooAbsPdf {
public:
enum ThresholdType { UpperThreshold, LowerThreshold, BrianLowerThreshold };
RooArgusGenBG(){};
RooArgusGenBG(const char *name,
const char *title,
RooAbsReal &_m,
RooAbsReal &_m0,
RooAbsReal &_c,
ThresholdType _thresholdType = UpperThreshold);
RooArgusGenBG(const char *name,
const char *title,
RooAbsReal &_m,
RooAbsReal &_m0,
RooAbsReal &_c,
RooAbsReal &_p,
ThresholdType _thresholdType = UpperThreshold);
RooArgusGenBG(const char *name,
const char *title,
RooAbsReal &_m,
RooAbsReal &_m0,
RooAbsReal &_c,
RooAbsReal &_c2,
RooAbsReal &_p,
ThresholdType _thresholdType = BrianLowerThreshold);
RooArgusGenBG(const RooArgusGenBG &other, const char *name = 0);
virtual TObject *clone(const char *newname) const { return new RooArgusGenBG(*this, newname); }
virtual ~RooArgusGenBG() = default;
// Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=0) const ;
// Double_t analyticalIntegral(Int_t code, const char* rangeName=0) const ;
protected:
RooRealProxy m;
RooRealProxy m0;
RooRealProxy c;
RooRealProxy c2;
RooRealProxy p;
ThresholdType thresholdType;
Double_t evaluate() const;
// Argus background shape generic PDF (for lower and upper thresholds)
ClassDef(RooArgusGenBG, 1);
};
#endif