9std::ostream& operator<<(std::ostream& o,
const CaloCluster& c) {
10 return o <<
"CaloCluster { " <<
"Energy: " << c.energy_ <<
", "
11 <<
"Number of hits_: " << c.n_hits_ <<
" }";
32 std::vector<unsigned int> vec_ids;
33 for (
unsigned int i_hit = 0; i_hit < hitsVec.size(); i_hit++) {
34 vec_ids.push_back(hitsVec[i_hit]->getID());
Class that stores calorimeter cluster information.
Stores cluster information from the ECal.
void addHits(const std::vector< const ldmx::CalorimeterHit * > hitsVec)
Take in the hits that make up the cluster.
void clear()
Reset the CaloCluster object.
virtual ~CaloCluster()
Class destructor.
void setIDs(std::vector< unsigned int > &hitIDs)
Sets a sorted vector for the IDs of the hits_ that make up the cluster.