-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
RooRealL.h
56 lines (42 loc) · 1.46 KB
/
RooRealL.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
/*
* Project: RooFit
* Authors:
* PB, Patrick Bos, Netherlands eScience Center, p.bos@esciencecenter.nl
*
* Copyright (c) 2021, CERN
*
* 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 ROOT_ROOFIT_TESTSTATISTICS_RooRealL
#define ROOT_ROOFIT_TESTSTATISTICS_RooRealL
#include "RooAbsReal.h"
#include "RooSetProxy.h"
#include "Rtypes.h" // ClassDef, ClassImp
#include <memory> // shared_ptr
namespace RooFit {
namespace TestStatistics {
class RooAbsL;
class RooRealL : public RooAbsReal {
public:
RooRealL(const char *name, const char *title, std::shared_ptr<RooAbsL> likelihood);
RooRealL(const RooRealL &other, const char *name = 0);
Double_t evaluate() const override;
inline TObject *clone(const char *newname) const override { return new RooRealL(*this, newname); }
inline double globalNormalization() const
{
// Default value of global normalization factor is 1.0
return 1.0;
}
inline double getCarry() const { return eval_carry; }
inline Double_t defaultErrorLevel() const override { return 0.5; }
private:
std::shared_ptr<RooAbsL> likelihood_;
mutable double eval_carry = 0;
RooSetProxy vars_proxy_; // sets up client-server connections
ClassDefOverride(RooRealL, 0);
};
} // namespace TestStatistics
} // namespace RooFit
#endif // ROOT_ROOFIT_TESTSTATISTICS_RooRealL