3 #include <calobase/RawCluster.h>
4 #include <calobase/RawClusterContainer.h>
5 #include <calobase/RawClusterDefs.h>
6 #include <calobase/RawClusterv1.h>
7 #include <calobase/RawTower.h>
8 #include <calobase/RawTowerContainer.h>
9 #include <calobase/RawTowerDefs.h>
10 #include <calobase/RawTowerGeom.h>
11 #include <calobase/RawTowerGeomContainer.h>
50 catch (std::exception &
e)
52 std::cout <<
PHWHERE <<
": " << e.what() << std::endl;
60 std::string towernodename =
"TOWER_CALIB_" +
detector;
62 RawTowerContainer *towers = findNode::getClass<RawTowerContainer>(topNode, towernodename);
65 std::cout <<
PHWHERE <<
": Could not find node " << towernodename << std::endl;
68 std::string towergeomnodename =
"TOWERGEOM_" +
detector;
69 RawTowerGeomContainer *towergeom = findNode::getClass<RawTowerGeomContainer>(topNode, towergeomnodename);
72 std::cout <<
PHWHERE <<
": Could not find node " << towergeomnodename << std::endl;
77 std::vector<towersStrct> input_towers;
97 tempTower.
twr = itr->second;
98 input_towers.push_back(tempTower);
113 assert(cluster->
get_id() == clusterid);
126 assert(rawtowergeom);
147 cluster->
set_r(sqrt(sum_y * sum_y + sum_x * sum_x));
148 cluster->
set_phi(atan2(sum_y, sum_x));
150 cluster->
set_z(sum_z);
155 std::cout <<
"RawClusterBuilderGraph constucted ";
166 std::cout <<
"\n\tnTowers: " << cluster_pair.second->getNTowers() << std::endl;
167 std::cout <<
"\tE: " << cluster_pair.second->get_energy() <<
"\tPhi: " << cluster_pair.second->get_phi() << std::endl;
168 std::cout <<
"\tX: " << cluster_pair.second->get_x();
169 std::cout <<
"\tY: " << cluster_pair.second->get_y();
170 std::cout <<
"\tZ: " << cluster_pair.second->get_z() << std::endl;
211 std::cout <<
"IsForwardCalorimeter: caloID " << caloID <<
" not defined, returning false" << std::endl;
244 std::cerr <<
PHWHERE <<
"DST Node missing, doing nothing." << std::endl;
245 throw std::runtime_error(
"Failed to find DST node in EmcRawTowerBuilder::CreateNodes");