BOSS 7.0.9
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{
7 public:
8 BTofSim() {}
10 public:
11 double getGain1() const { return m_gain*TMath::Exp(m_ratio); }
12 double getGain2() const { return m_gain; }
13 double getAttenLength() const { return m_length; }
14
15 public:
16 void setGain( double gain ) { m_gain = gain; }
17 void setRatio( double ratio ) { m_ratio = ratio; }
18 void setAttenLength( double length ) { m_length = length; }
19
20 private:
21 double m_gain;
22 double m_ratio;
23 double m_length;
24
25};
26
27#endif
Definition: BTofSim.h:6
BTofSim()
Definition: BTofSim.h:8
double getGain2() const
Definition: BTofSim.h:12
void setAttenLength(double length)
Definition: BTofSim.h:18
double getAttenLength() const
Definition: BTofSim.h:13
double getGain1() const
Definition: BTofSim.h:11
void setGain(double gain)
Definition: BTofSim.h:16
void setRatio(double ratio)
Definition: BTofSim.h:17
~BTofSim()
Definition: BTofSim.h:9