BOSS 7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
Tof/TofQElecSvc/TofQElecSvc-00-00-05/TofQElecSvc/EndcapElec.h
Go to the documentation of this file.
1#ifndef ENDCAPELELEC_H
2#define ENDCAPELELEC_H
3
5 public:
8 public:
9 unsigned int getNum( unsigned int idx ) const { return m_num[idx]; }
10 double getP( unsigned int idx ) const { return m_p[idx]; }
11 double getSimP( unsigned int idx ) const { return m_simP[idx]; }
12
13 void setNum( unsigned int idx, unsigned int num ) { m_num[idx] = num;}
14 void setNum( unsigned int num[4] ) {
15 for( unsigned int i=0; i<4; i++ ) m_num[i] = num[i];
16 }
17 void setP( unsigned int idx, double p ) { m_p[idx] = p; }
18 void setP( double p[11] ) {
19 for( unsigned int i=0; i<11; i++ ) { m_p[i] = p[i]; }
20 }
21 void setSimP( unsigned int idx, double p ) { m_simP[idx] = p; }
22 void setSimP( double p[11] ) {
23 for( unsigned int i=0; i<11; i++ ) { m_simP[i] = p[i]; }
24 }
25
26 private:
27 unsigned int m_num[4];
28 double m_p[11];
29 double m_simP[11];
30}
31
32#endif
unsigned int getNum(unsigned int idx) const
void setNum(unsigned int idx, unsigned int num)