PandaRoot
PndEmcDigiNonuniformityPar.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 //#pragma once
14 #ifndef PNDEMCDIGINONUNIFORMITYPAR_H
15 #define PNDEMCDIGINONUNIFORMITYPAR_H
16 
17 #include "FairParGenericSet.h"
18 #include "FairParamList.h"
19 #include <map>
20 #include <vector>
21 
22 class PndEmcDigiNonuniParObject : public TObject {
23  public:
24  void SetNonuniformity(Int_t crystaltype, Double_t *pars);
25  void GetNonuniformity(Int_t crystaltype, Double_t *pars);
26 
27  PndEmcDigiNonuniParObject() : fNonUniPars() { fNonUniPars.clear(); };
29 
30  private:
31  std::map<Int_t, std::vector<Double_t>> fNonUniPars;
32  ClassDef(PndEmcDigiNonuniParObject, 1);
33 };
34 
35 class PndEmcDigiNonuniformityPar : public FairParGenericSet {
36  public:
37  void GetNonuniformityParameters(Int_t DetId, Double_t *pars);
38  void SetNonuniParObject(PndEmcDigiNonuniParObject *ParObject) { fParObject = ParObject; };
39  PndEmcDigiNonuniformityPar(const char *name = "PndEmcDigiPar", const char *title = "Emc digi parameter", const char *context = "TestDefaultContext");
41 
42  void clear(void){};
43 
44  void putParams(FairParamList *list);
45  Bool_t getParams(FairParamList *list);
46 
47  private:
48  PndEmcDigiNonuniParObject *fParObject;
49 
51  PndEmcDigiNonuniformityPar &operator=(const PndEmcDigiNonuniformityPar &) { return *this; };
52 
53  ClassDef(PndEmcDigiNonuniformityPar, 1);
54 };
55 
56 #endif
void GetNonuniformity(Int_t crystaltype, Double_t *pars)
void SetNonuniParObject(PndEmcDigiNonuniParObject *ParObject)
void SetNonuniformity(Int_t crystaltype, Double_t *pars)