PandaRoot
PndMvdRadDamList.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 /*
14  * PndMvdRadDamList.h
15  *
16  * Created on: Dec 16, 2008
17  * Author: stockman
18  */
19 
20 #ifndef PNDMVDRADDAMLIST_H
21 #define PNDMVDRADDAMLIST_H
22 
23 #include <vector>
24 #include <utility>
25 
26 #include "TString.h"
27 
29  public:
30  PndMvdRadDamList(TString fileName);
31  virtual ~PndMvdRadDamList();
32 
33  Double_t GetWeight(Double_t energy);
34 
35  private:
36  std::vector<std::pair<Double_t, Double_t>> fList;
37 
38  Int_t FindClosestEnergyIndex(Double_t energy);
39  Double_t Interpolate(Double_t energy, Int_t index);
40 
41  ClassDef(PndMvdRadDamList, 1);
42 };
43 
44 #endif /* PNDMVDRADDAMLIST_H */
PndMvdRadDamList(TString fileName)
Double_t GetWeight(Double_t energy)
virtual ~PndMvdRadDamList()