11 #ifndef CALOBASE_RAWCLUSTERUTILITY_H
12 #define CALOBASE_RAWCLUSTERUTILITY_H
16 #include <CLHEP/Vector/ThreeVector.h>
43 const CLHEP::Hep3Vector cluster_vec(cluster.
get_position() - vertex);
44 const double mag = cluster_vec.mag();
46 return mag > 0 ? cluster_vec.perp() / cluster_vec.mag() * cluster.
get_energy() : 0;
53 const CLHEP::Hep3Vector cluster_vec(cluster.
get_position() - vertex);
55 return cluster_vec.perp() / cluster_vec.mag() * cluster.
get_ecore();