ATLAS Offline Software
LArG4BirksLaw.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef LArG4BirksLaw_h_
6 #define LArG4BirksLaw_h_
7 
8 class LArG4BirksLaw {
9 
10  public:
11 
12  // Constructor. Set the density of liquid argon and the Birk's law
13  // constant K:
14 
15  LArG4BirksLaw(double density, double k):
16  m_LArDensity(density), m_BirksLawK(k) {}
17 
18  // Get the K factor
19  double k() const { return m_BirksLawK;}
20 
21  // Get the LAr Density
22  double LArDensity() const { return m_LArDensity;}
23 
24  //
25  // Function call operator
26  //
27  double operator () (double dEMeV, double dXCm, double EFieldKVPerCm) const;
28 
29 
30  private:
31 
32  // Density: g/cm^3
33  double m_LArDensity;
34 
35  // Birk's K kV/cm g/(cm^2 MeV)
36  double m_BirksLawK;
37 
38 };
39 
40 #endif
LArG4BirksLaw::operator()
double operator()(double dEMeV, double dXCm, double EFieldKVPerCm) const
LArG4BirksLaw::LArG4BirksLaw
LArG4BirksLaw(double density, double k)
Definition: LArG4BirksLaw.h:15
LArG4BirksLaw::k
double k() const
Definition: LArG4BirksLaw.h:19
LArG4BirksLaw
Definition: LArG4BirksLaw.h:8
LArG4BirksLaw::m_LArDensity
double m_LArDensity
Definition: LArG4BirksLaw.h:33
LArG4BirksLaw::LArDensity
double LArDensity() const
Definition: LArG4BirksLaw.h:22
LArG4BirksLaw::m_BirksLawK
double m_BirksLawK
Definition: LArG4BirksLaw.h:36