R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BNeulandQCalPar.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#ifndef R3BNEULANDQCALPAR_H
15#define R3BNEULANDQCALPAR_H
16
17#include "FairParGenericSet.h" // for FairParGenericSet
18#include "TArrayI.h"
19#include "TObjArray.h"
20
21#define NMODULEMAX 6000
22
23class FairParamList;
24
25class R3BNeulandQCalPar : public FairParGenericSet
26{
27
28 public:
36 R3BNeulandQCalPar(const char* name = "NeulandQCalPar",
37 const char* title = "Calibration",
38 const char* context = "TestDefaultContext",
39 Bool_t own = kTRUE);
43 virtual ~R3BNeulandQCalPar(void);
44
49 void SetSize(Int_t size);
50
55 void putParams(FairParamList* list);
56
62 Bool_t getParams(FairParamList* list);
63
68 void printParams();
69
77 void SetParAt(Int_t plane, Int_t bar, Int_t side, Int_t offset)
78 {
79 fParams[((plane - 1) * 50 + (bar - 1)) * 2 + side - 1] = offset;
80 }
81
89 Int_t GetParAt(Int_t plane, Int_t bar, Int_t side)
90 {
91 return fParams[((plane - 1) * 50 + (bar - 1)) * 2 + side - 1];
92 }
93
94 private:
95 TArrayI fParams;
96
97 ClassDef(R3BNeulandQCalPar, 2);
98};
99
100#endif /* !R3BNEULANDQCALPAR_H*/
virtual ~R3BNeulandQCalPar(void)
Destructor.
Int_t GetParAt(Int_t plane, Int_t bar, Int_t side)
Method to get the pedestal offset of a PMT.
void printParams()
Method to print value of parameters to the standard output.
R3BNeulandQCalPar(const char *name="NeulandQCalPar", const char *title="Calibration", const char *context="TestDefaultContext", Bool_t own=kTRUE)
Standard constructor.
void SetParAt(Int_t plane, Int_t bar, Int_t side, Int_t offset)
Method to set the pedestal offset of a PMT.
void putParams(FairParamList *list)
Method to store parameters using FairRuntimeDB.
void SetSize(Int_t size)
Method to set the size of the array of parameters.
Bool_t getParams(FairParamList *list)
Method to retrieve parameters using FairRuntimeDB.