R3BROOT
R3B analysis software
Toggle main menu visibility
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
23
class
FairParamList;
24
25
class
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*/
R3BNeulandQCalPar::ClassDef
ClassDef(R3BNeulandQCalPar, 2)
R3BNeulandQCalPar::GetParAt
Int_t GetParAt(Int_t plane, Int_t bar, Int_t side)
Method to get the pedestal offset of a PMT.
Definition
R3BNeulandQCalPar.h:89
R3BNeulandQCalPar::printParams
void printParams()
Method to print value of parameters to the standard output.
Definition
R3BNeulandQCalPar.cxx:55
R3BNeulandQCalPar::R3BNeulandQCalPar
R3BNeulandQCalPar(const char *name="NeulandQCalPar", const char *title="Calibration", const char *context="TestDefaultContext", Bool_t own=kTRUE)
Standard constructor.
Definition
R3BNeulandQCalPar.cxx:18
R3BNeulandQCalPar::SetParAt
void SetParAt(Int_t plane, Int_t bar, Int_t side, Int_t offset)
Method to set the pedestal offset of a PMT.
Definition
R3BNeulandQCalPar.h:77
R3BNeulandQCalPar::putParams
void putParams(FairParamList *list)
Method to store parameters using FairRuntimeDB.
Definition
R3BNeulandQCalPar.cxx:25
R3BNeulandQCalPar::SetSize
void SetSize(Int_t size)
Method to set the size of the array of parameters.
Definition
R3BNeulandQCalPar.cxx:49
R3BNeulandQCalPar::getParams
Bool_t getParams(FairParamList *list)
Method to retrieve parameters using FairRuntimeDB.
Definition
R3BNeulandQCalPar.cxx:35
R3BNeulandQCalPar::fParams
TArrayI fParams
an array with parameters of all modules
Definition
R3BNeulandQCalPar.h:95
neuland
calibration
legacy
R3BNeulandQCalPar.h
Generated by
1.18.0