GamR  0.0.0
GammaROOT
Loading...
Searching...
No Matches
SolidAttenuation.hh
Go to the documentation of this file.
1
13
14#ifndef SOLIDATT_HH
15#define SOLIDATT_HH
16
17#include <vector>
18
19namespace GamR {
20namespace AngDist {
21 double GetTauG(double E);
26private:
27 std::vector<double> Qk;
28
29public:
30 SolidAttenuation(std::vector<double> Qk);
31 SolidAttenuation(double distance, double radius, int kmax = 4, double absorbCoeff = -1);
32 SolidAttenuation(double distance, double length, double outer_radius, double inner_radius, double energy, int kmax = 4);
33 std::vector<double> Get() { return Qk; }
34 double Get(double k) { return Qk[(int)k]; }
35 void Set(double k,double Qk_in) { Qk[(int)k]=Qk_in; }
36 void Print() {for (int k=0; k<(int)Qk.size(); ++k) { printf("%3d %7.5f\n", k, Qk[k]); } }
37};
38} /* namespace AngDist */
39} /* namespace GamR */
40
41#endif /* SOLIDATT_HH */
void Set(double k, double Qk_in)
SolidAttenuation(std::vector< double > Qk)
double GetTauG(double E)
Definition Gain.cc:19