R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BDouble.h
Go to the documentation of this file.
1
/******************************************************************************
2
* Copyright (C) 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
3
* Copyright (C) 2019-2025 Members of R3B Collaboration *
4
* *
5
* This software is distributed under the terms of the *
6
* GNU General Public Licence (GPL) version 3, *
7
* copied verbatim in the file "LICENSE". *
8
* *
9
* In applying this license GSI does not waive the privileges and immunities *
10
* granted to it by virtue of its status as an Intergovernmental Organization *
11
* or submit itself to any jurisdiction. *
12
******************************************************************************/
13
14
// Copy of RooDouble to store a double value in a TNamed to store it in a tree.
15
16
#ifndef R3B_Double
17
#define R3B_Double
18
19
#include "Rtypes.h"
20
21
class
R3BDouble
22
{
23
public
:
24
R3BDouble
()
25
:
fValue
(0)
26
{
27
}
28
R3BDouble
(Double_t value);
29
R3BDouble
(
const
R3BDouble
& other)
30
:
fValue
(other.
fValue
)
31
{
32
}
33
virtual
~R3BDouble
() {}
34
35
inline
operator
Double_t()
const
{
return
fValue
; }
36
R3BDouble
&
operator=
(Double_t value)
37
{
38
fValue
= value;
39
return
*
this
;
40
}
41
42
protected
:
43
Double_t
fValue
;
// Value payload
44
};
45
46
#endif
R3BDouble::fValue
Double_t fValue
Definition
R3BDouble.h:43
R3BDouble::operator=
R3BDouble & operator=(Double_t value)
Definition
R3BDouble.h:36
R3BDouble::R3BDouble
R3BDouble(const R3BDouble &other)
Definition
R3BDouble.h:29
R3BDouble::~R3BDouble
virtual ~R3BDouble()
Definition
R3BDouble.h:33
R3BDouble::R3BDouble
R3BDouble()
Definition
R3BDouble.h:24
r3bdata
R3BDouble.h
Generated by
1.13.2