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
22{
23 public:
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
Double_t fValue
Definition R3BDouble.h:43
R3BDouble & operator=(Double_t value)
Definition R3BDouble.h:36
R3BDouble(const R3BDouble &other)
Definition R3BDouble.h:29
virtual ~R3BDouble()
Definition R3BDouble.h:33