BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
BTofSim.h
Go to the documentation of this file.
1#ifndef BTOF_SIM_H
2#define BTOF_SIM_H
3
4#include "TMath.h"
5
6class BTofSim {
7public:
8 BTofSim() {}
10
11public:
12 double getGain1() const { return m_gain * TMath::Exp( m_ratio ); }
13 double getGain2() const { return m_gain; }
14 double getAttenLength() const { return m_length; }
15
16public:
17 void setGain( double gain ) { m_gain = gain; }
18 void setRatio( double ratio ) { m_ratio = ratio; }
19 void setAttenLength( double length ) { m_length = length; }
20
21private:
22 double m_gain;
23 double m_ratio;
24 double m_length;
25};
26
27#endif
BTofSim()
Definition BTofSim.h:8
double getGain2() const
Definition BTofSim.h:13
void setAttenLength(double length)
Definition BTofSim.h:19
double getAttenLength() const
Definition BTofSim.h:14
double getGain1() const
Definition BTofSim.h:12
void setGain(double gain)
Definition BTofSim.h:17
void setRatio(double ratio)
Definition BTofSim.h:18
~BTofSim()
Definition BTofSim.h:9