80 {
81
82 MsgStream log(
msgSvc(), name() );
83
84
85
86 std::string fullPath = "/Calib/TofCal";
87 log << MSG::INFO << "execute() fullPath = " << fullPath << endmsg;
88
89 SmartDataPtr<CalibData::TofCalibData> btof( m_pCalibDataSvc, fullPath );
90
91 for ( int i = 0; i < 176; i++ )
92 {
93 double bAtten0 = btof->getBTofAtten( i, 0 );
94 double bAtten1 = btof->getBTofAtten( i, 1 );
95 double bP0 = btof->getBTofPleft( i, 0 );
96 double bP1 = btof->getBTofPleft( i, 1 );
97 double bP2 = btof->getBTofPleft( i, 2 );
98 double bP3 = btof->getBTofPleft( i, 3 );
99 double bP4 = btof->getBTofPleft( i, 4 );
100 double bP5 = btof->getBTofPleft( i, 5 );
101 double bP10 = btof->getBTofPright( i, 0 );
102
103
104 double bSpeed0 = btof->getBTofSpeed( i, 0 );
105 double bSpeed1 = btof->getBTofSpeed( i, 1 );
106
107
108
109
110 std::cout << "=========================================="
111 << "\n";
112 std::cout << "cnt =" << i << "\n";
113 std::cout << "Atten0=" << bAtten0 << "Atten1=" << bAtten1 << "Q="
114 << "bQ"
115 << "Speed0=" << bSpeed0 << "Speed1=" << bSpeed1 << "P0=" << bP0 << "P1=" << bP1
116 << "P2=" << bP2 << "P3=" << bP3 << "P4=" << bP4 << "P10=" << bP10;
117 std::cout << "\n";
118 std::cout << "P5=" << bP5 << "Q="
119 << "bQ";
120
121 std::cout << "\n";
122
123
124
125
126
127
128 }
129 for ( int i = 0; i < 96; i++ )
130 {
131 double eAtten0 = btof->getETofAtten( i, 0 );
132 double eAtten1 = btof->getETofAtten( i, 1 );
133 double eP0 = btof->getETofP( i, 0 );
134 double eP1 = btof->getETofP( i, 1 );
135 double eP2 = btof->getETofP( i, 2 );
136 double eP3 = btof->getETofP( i, 3 );
137 double eP4 = btof->getETofP( i, 4 );
138 double eP5 = btof->getETofP( i, 5 );
139 double eP6 = btof->getETofP( i, 6 );
140
141 double eSpeed0 = btof->getETofSpeed( i, 0 );
142 double eSpeed1 = btof->getETofSpeed( i, 1 );
143
144 std::cout << "=========================================="
145 << "\n";
146 std::cout << "cnt =" << i << "\n";
147
148 std::cout << "Atten0=" << eAtten0 << "Atten1=" << eAtten1 << "Speed0=" << eSpeed0
149 << "Speed1=" << eSpeed1 << "P0=" << eP0 << "P1=" << eP1 << "P2=" << eP2
150 << "P3=" << eP3 << "P4=" << eP4 << "P6=" << eP6;
151 std::cout << "\n";
152 std::cout << "P5=" << eP5;
153 std::cout << "\n";
154 }
155
156
157
158 return StatusCode::SUCCESS;
159}