Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-10 10:18:06

0001 #pragma once
0002 
0003 namespace IRT2 {
0004 
0005 class CherenkovWaveLengthRange {
0006 public:
0007  CherenkovWaveLengthRange(unsigned wldim, double numin, double nustep): 
0008   m_WLDim(wldim) {
0009     m_PhotonEnergies = new double[wldim];
0010 
0011     for(unsigned iq=0; iq<wldim; iq++)
0012       m_PhotonEnergies[iq] = numin + iq*nustep;
0013   };
0014   virtual ~CherenkovWaveLengthRange() {};
0015 
0016   unsigned GetWLDim( void ) const { return m_WLDim; };
0017   double GetPhotonEnergy(unsigned bin) const { 
0018     return bin < m_WLDim ? m_PhotonEnergies[bin] : 0.0;
0019   };
0020   double *GetPhotonEnergies( void ) const { return m_PhotonEnergies; };
0021 
0022 private:
0023   unsigned m_WLDim;
0024   double *m_PhotonEnergies;
0025 };
0026 
0027 } // namespace IRT2