00001 #ifndef BTOF_SIM_H 00002 #define BTOF_SIM_H 00003 00004 #include "TMath.h" 00005 00006 class BTofSim{ 00007 public: 00008 BTofSim() {} 00009 ~BTofSim(){} 00010 public: 00011 double getGain1() const { return m_gain*TMath::Exp(m_ratio); } 00012 double getGain2() const { return m_gain; } 00013 double getAttenLength() const { return m_length; } 00014 00015 public: 00016 void setGain( double gain ) { m_gain = gain; } 00017 void setRatio( double ratio ) { m_ratio = ratio; } 00018 void setAttenLength( double length ) { m_length = length; } 00019 00020 private: 00021 double m_gain; 00022 double m_ratio; 00023 double m_length; 00024 00025 }; 00026 00027 #endif