LDMX Software
HcalCluster.h
Go to the documentation of this file.
1
8#ifndef EVENT_HCALCLUSTER_H_
9#define EVENT_HCALCLUSTER_H_
10
11// ldmx-sw
12#include "Hcal/Event/HcalHit.h"
14
15namespace ldmx {
16
22 public:
26 HcalCluster() = default;
27
31 virtual ~HcalCluster();
32
36 void Clear();
37
43 void addHits(const std::vector<const ldmx::HcalHit*> hitsVec);
44
45 void setTime(double x) { time_ = x; }
46
47 double getTime() const { return time_; }
48
49 bool operator<(const HcalCluster& rhs) const {
50 return this->getEnergy() < rhs.getEnergy();
51 }
52
53 private:
54 double time_{0};
55
56 ClassDef(HcalCluster, 1);
57};
58} // namespace ldmx
59
60#endif
Class that stores calorimeter cluster information.
Class that stores Stores reconstructed hit information from the HCAL.
Stores cluster information from the ECal.
Definition CaloCluster.h:26
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.
HcalCluster()=default
Class constructor.
virtual ~HcalCluster()
Class destructor.