R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BTsplinePar.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) 2022 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
3 * Copyright (C) 2022-2026 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#pragma once
15
16#include <Rtypes.h>
17#include <TNamed.h>
18#include <TSpline.h>
19
20class FairParamList;
21
22class R3BTsplinePar : public TNamed
23{
24 public:
26 R3BTsplinePar(const TString& name = "Spline");
27
29 virtual ~R3BTsplinePar() {}
30
32 void print();
33
35 virtual void putParams(FairParamList* list);
36
38 TSpline3* getParams(FairParamList* list);
39
41 TString GetNameObj() { return GetName(); }
42 TSpline3* GetSpline() { return fSpline; }
43
44 void SetMaxPoints(UInt_t p) { fMaxPoints = p; }
45 void SetSpline(TSpline3* c) { fSpline = c; }
46
47 private:
48 UInt_t fMaxPoints;
49 TSpline3* fSpline;
50 Double_t fxmin;
51 Double_t fxmax;
52
53 public:
54 ClassDef(R3BTsplinePar, 0); // NOLINT
55};
TSpline3 * getParams(FairParamList *list)
Method to retrieve all parameters using FairRuntimeDB.
virtual void putParams(FairParamList *list)
Method to store all parameters using FairRuntimeDB.
R3BTsplinePar(const TString &name="Spline")
Default constructor.
ClassDef(R3BTsplinePar, 0)
virtual ~R3BTsplinePar()
Destructor.
void SetMaxPoints(UInt_t p)
TString GetNameObj()
Accessor functions.
void print()
Method to print values of parameters.
TSpline3 * fSpline
void SetSpline(TSpline3 *c)
TSpline3 * GetSpline()