LDMX Software
EcalCluster.cxx
2
3ClassImp(ldmx::EcalCluster)
4
5 namespace ldmx {
7
9
10 void EcalCluster::addHits(const std::vector<const EcalHit *> hitsVec) {
11 std::vector<unsigned int> vecIDs;
12 for (int iHit = 0; iHit < hitsVec.size(); iHit++) {
13 vecIDs.push_back(hitsVec[iHit]->getID());
14 }
15 setIDs(vecIDs);
16 }
17} // 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 ECal.
Definition EcalCluster.h:20
void addHits(const std::vector< const ldmx::EcalHit * > hitsVec)
Take in the hits that make up the cluster.
virtual ~EcalCluster()
Class destructor.
EcalCluster()
Class constructor.