LDMX Software
HcalCluster.cxx
2
3ClassImp(ldmx::HcalCluster);
4
5namespace ldmx {
7
10 time_ = 0;
11}
12
13void HcalCluster::addHits(const std::vector<const HcalHit *> hitsVec) {
14 std::vector<unsigned int> vec_i_ds;
15 for (unsigned int i_hit = 0; i_hit < hitsVec.size(); i_hit++) {
16 vec_i_ds.push_back(hitsVec[i_hit]->getID());
17 }
18 setIDs(vec_i_ds);
19}
20} // namespace ldmx
Class that stores cluster information from the ECal.
void clear()
Reset the CaloCluster object.
void setIDs(std::vector< unsigned int > &hitIDs)
Sets a sorted vector for the IDs of the hits_ that make up the cluster.
Definition CaloCluster.h:72
Stores cluster information from the HCal.
Definition HcalCluster.h:21
void clear()
Reset the HcalCluster object.
void addHits(const std::vector< const ldmx::HcalHit * > hitsVec)
Take in the hits that make up the cluster.
virtual ~HcalCluster()
Class destructor.