R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BTcutPar.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 <TCutG.h>
18#include <TNamed.h>
19
20class FairParamList;
21
22static constexpr UInt_t kMaxPoints = 40; // NOLINT
23
24class R3BTcutPar : public TNamed
25{
26 public:
28 R3BTcutPar(const TString& cutname = "Cut");
29
31 virtual ~R3BTcutPar() {}
32
34 void print();
35
37 virtual void putParams(FairParamList* list);
38
40 TCutG* getParams(FairParamList* list);
41
43 TCutG* GetCut() { return fCut; }
44
45 void SetMaxPoints(UInt_t p) { fMaxPoints = p; }
46 void SetCut(TCutG* c) { fCut = c; }
47 TString GetNameObj() { return GetName(); }
48
49 private:
51 TCutG* fCut = nullptr;
52
53 public:
54 ClassDef(R3BTcutPar, 0); // NOLINT
55};
static constexpr UInt_t kMaxPoints
Definition R3BTcutPar.h:22
void SetMaxPoints(UInt_t p)
Definition R3BTcutPar.h:45
void print()
Method to print values of parameters.
virtual void putParams(FairParamList *list)
Method to store all parameters using FairRuntimeDB.
virtual ~R3BTcutPar()
Destructor.
Definition R3BTcutPar.h:31
TString GetNameObj()
Definition R3BTcutPar.h:47
UInt_t fMaxPoints
Definition R3BTcutPar.h:50
ClassDef(R3BTcutPar, 0)
R3BTcutPar(const TString &cutname="Cut")
Default constructor.
void SetCut(TCutG *c)
Definition R3BTcutPar.h:46
TCutG * GetCut()
Accessor functions.
Definition R3BTcutPar.h:43
TCutG * getParams(FairParamList *list)
Method to retrieve all parameters using FairRuntimeDB.
TCutG * fCut
Definition R3BTcutPar.h:51