82 MsgStream log(
msgSvc(), name() );
86 std::string fullPath =
"/Calib/TofCal";
87 log << MSG::INFO <<
"execute() fullPath = " << fullPath << endmsg;
89 SmartDataPtr<CalibData::TofCalibData> btof( m_pCalibDataSvc, fullPath );
91 for (
int i = 0; i < 176; i++ )
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 );
104 double bSpeed0 = btof->getBTofSpeed( i, 0 );
105 double bSpeed1 = btof->getBTofSpeed( i, 1 );
110 std::cout <<
"=========================================="
112 std::cout <<
"cnt =" << i <<
"\n";
113 std::cout <<
"Atten0=" << bAtten0 <<
"Atten1=" << bAtten1 <<
"Q="
115 <<
"Speed0=" << bSpeed0 <<
"Speed1=" << bSpeed1 <<
"P0=" << bP0 <<
"P1=" << bP1
116 <<
"P2=" << bP2 <<
"P3=" << bP3 <<
"P4=" << bP4 <<
"P10=" << bP10;
118 std::cout <<
"P5=" << bP5 <<
"Q="
129 for (
int i = 0; i < 96; i++ )
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 );
141 double eSpeed0 = btof->getETofSpeed( i, 0 );
142 double eSpeed1 = btof->getETofSpeed( i, 1 );
144 std::cout <<
"=========================================="
146 std::cout <<
"cnt =" << i <<
"\n";
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;
152 std::cout <<
"P5=" << eP5;
158 return StatusCode::SUCCESS;