BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Tof/TofQElecSvc/TofQElecSvc-00-01-01/TofQElecSvc/BarrelElec.h
Go to the documentation of this file.
1#ifndef BARRELELEC_H
2#define BARRELELEC_H
3
5 public:
8 public:
9 unsigned int getNumEast( int idx ) const { return m_num[0][idx]; }
10 unsigned int getNumWest( int idx ) const { return m_num[1][idx]; }
11 double getP1( int idx ) const { return m_pEast[idx]; }
12 double getP2( int idx ) const { return m_pWest[idx]; }
13 double getSimP1( int idx ) const { return m_simPEast[idx]; }
14 double getSimP2( int idx ) const { return m_simPWest[idx]; }
15
16 void setNumEast( unsigned int idx, unsigned int num ) { m_num[0][idx] = num; }
17 void setNumEast( unsigned int num[4] ) {
18 for( unsigned int i=0; i<4; i++ ) { m_num[0][i] = num[i]; }
19 }
20 void setNumWest( unsigned int idx, unsigned int num ) { m_num[1][idx] = num; }
21 void setNumWest( unsigned int num[4] ) {
22 for( unsigned int i=0; i<4; i++ ) { m_num[1][i] = num[i]; }
23 }
24 void setP1( unsigned int idx, double p ) { m_pEast[idx] = p; }
25 void setP1( double p[11] ) {
26 for( unsigned int i=0; i<11; i++ ) { m_pEast[i] = p[i]; }
27 }
28 void setP2( unsigned int idx, double p ) { m_pWest[idx] = p; }
29 void setP2( double p[11] ) {
30 for( unsigned int i=0; i<11; i++ ) { m_pWest[i] = p[i]; }
31 }
32 void setSimP1( unsigned int idx, double p ) { m_simPEast[idx] = p; }
33 void setSimP1( double p[11] ) {
34 for( unsigned int i=0; i<11; i++ ) { m_simPEast[i] = p[i]; }
35 }
36 void setSimP2( unsigned int idx, double p ) { m_simPWest[idx] = p; }
37 void setSimP2( double p[11] ) {
38 for( unsigned int i=0; i<11; i++ ) { m_simPWest[i] = p[i]; }
39 }
40
41 private:
42 unsigned int m_num[2][4];
43 double m_pEast[11];
44 double m_pWest[11];
45 double m_simPEast[11];
46 double m_simPWest[11];
47}
48
49#endif
void setNumEast(unsigned int idx, unsigned int num)
void setNumWest(unsigned int idx, unsigned int num)