PandaRoot
PndMvdRadDamList.h
Go to the documentation of this file.
1 /*
2  * PndMvdRadDamList.h
3  *
4  * Created on: Dec 16, 2008
5  * Author: stockman
6  */
7 
8 #ifndef PNDMVDRADDAMLIST_H
9 #define PNDMVDRADDAMLIST_H
10 
11 #include <vector>
12 #include <utility>
13 
14 #include "TString.h"
15 
17  public:
18  PndMvdRadDamList(TString fileName);
19  virtual ~PndMvdRadDamList();
20 
21  Double_t GetWeight(Double_t energy);
22 
23  private:
24  std::vector<std::pair<Double_t, Double_t>> fList;
25 
26  Int_t FindClosestEnergyIndex(Double_t energy);
27  Double_t Interpolate(Double_t energy, Int_t index);
28 
29  ClassDef(PndMvdRadDamList, 1);
30 };
31 
32 #endif /* PNDMVDRADDAMLIST_H */
PndMvdRadDamList(TString fileName)
Double_t GetWeight(Double_t energy)
virtual ~PndMvdRadDamList()