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