10 #include <phparameter/PHParameters.h>
36 , _calib_algorithm(kNo_calibration)
38 _calib_towers(nullptr)
39 , _raw_towers(nullptr)
45 _calib_tower_node_prefix(
"CALIB")
46 , _raw_tower_node_prefix(
"RAW")
55 _calib_const_GeV_ADC(NAN)
60 , _tower_calib_params(name)
74 std::cout <<
Name() <<
"::" <<
detector <<
"::" << __PRETTY_FUNCTION__
75 <<
"DST Node missing, doing nothing." << std::endl;
83 catch (std::exception &
e)
85 std::cout << e.what() << std::endl;
95 std::cout <<
Name() <<
"::" <<
detector <<
"::" << __PRETTY_FUNCTION__
96 <<
"Process event entered" << std::endl;
101 for (rtiter = begin_end.first; rtiter != begin_end.second; ++rtiter)
110 assert(raw_tower_geom);
127 const double raw_energy = raw_tower->
get_energy();
139 const int twr = raw_tower->
get_binl();
141 double tower_by_tower_calib = 1.;
158 const double raw_energy = raw_tower->
get_energy();
168 std::cout <<
Name() <<
"::" <<
detector <<
"::" << __PRETTY_FUNCTION__
178 std::cout <<
Name() <<
"::" <<
detector <<
"::" << __PRETTY_FUNCTION__
180 <<
", output sum digitalized value = "
195 "PHCompositeNode",
"RUN"));
198 std::cerr <<
Name() <<
"::" <<
detector <<
"::" << __PRETTY_FUNCTION__
199 <<
"Run Node missing, doing nothing." << std::endl;
200 throw std::runtime_error(
201 "Failed to find Run node in RawTowerZDCCalibration::CreateNodes");
205 rawtowergeom = findNode::getClass<RawTowerZDCGeomContainer>(topNode,
209 std::cerr <<
Name() <<
"::" <<
detector <<
"::" << __PRETTY_FUNCTION__
212 throw std::runtime_error(
213 "Failed to find " +
TowerGeomNodeName +
" node in RawTowerZDCCalibration::CreateNodes");
222 "PHCompositeNode",
"DST"));
225 std::cerr <<
Name() <<
"::" <<
detector <<
"::" << __PRETTY_FUNCTION__
226 <<
"DST Node missing, doing nothing." << std::endl;
227 throw std::runtime_error(
228 "Failed to find DST node in RawTowerZDCCalibration::CreateNodes");
232 _raw_towers = findNode::getClass<RawTowerZDCContainer>(dstNode,
236 std::cerr <<
Name() <<
"::" << detector <<
"::" << __PRETTY_FUNCTION__
239 throw std::runtime_error(
240 "Failed to find " +
RawTowerNodeName +
" node in RawTowerZDCCalibration::CreateNodes");
246 "PHCompositeNode", detector));
250 dstNode->addNode(DetNode);
255 _calib_towers = findNode::getClass<RawTowerZDCContainer>(DetNode,
261 DetNode->addNode(towerNode);