R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BNeulandQCalPar.cxx
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#include "R3BNeulandQCalPar.h"
15#include "FairLogger.h"
16#include "FairParamList.h" // for FairParamList
17
18R3BNeulandQCalPar::R3BNeulandQCalPar(const char* name, const char* title, const char* context, Bool_t own)
19 : FairParGenericSet(name, title, context, own)
20{
21}
22
24
25void R3BNeulandQCalPar::putParams(FairParamList* list)
26{
27 LOG(info) << "R3BNeulandQCalPar::putParams() called";
28 if (!list)
29 {
30 return;
31 }
32 list->add("QCalParams", fParams);
33}
34
35Bool_t R3BNeulandQCalPar::getParams(FairParamList* list)
36{
37 LOG(info) << "R3BNeulandQCalPar::getParams() called";
38 if (!list)
39 {
40 return kFALSE;
41 }
42 if (!list->fill("QCalParams", &fParams))
43 {
44 return kFALSE;
45 }
46 return kTRUE;
47}
48
50{
51 fParams.Set(size);
52 fParams.Reset();
53}
54
56{
57
58 LOG(info) << " ----------- " << GetName() << " NeuLAND Parameters ------------- ";
59 LOG(info) << " Number of Parameters " << fParams.GetSize();
60 for (Int_t i = 0; i < fParams.GetSize(); i++)
61 LOG(info) << "PMT Nr. " << i << " : pedestal level = " << fParams.At(i);
62 LOG(info) << "----------------------------------------------------------------------";
63}
64
ClassImp(R3BNeulandQCalPar)
virtual ~R3BNeulandQCalPar(void)
Destructor.
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 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.