hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
CalCluster.cxx
Go to the documentation of this file.
1
7#include "CalCluster.h"
8
10
12 : TObject() {
13}
14
15
16//TODO Fix the relation between particles->CalClusters (same as tracks)
18 Clear();
19 //delete hits_;
20}
21
22
23void CalCluster::Clear(Option_t* /*option*/) {
24 TObject::Clear();
25 //hits_->Delete();
26 seed_hit_ = nullptr;
27 n_hits_ = 0;
28}
29
30void CalCluster::setPosition(const float* position) {
31 x_ = position[0];
32 y_ = position[1];
33 z_ = position[2];
34}
35
36void CalCluster::addHit(TObject* hit) {
37 ++n_hits_;
38 hits_.Add(hit);
39}
ClassImp(CalCluster) CalCluster
Definition CalCluster.cxx:9
void setPosition(const float *position)
TRefArray hits_
Definition CalCluster.h:100
void Clear(Option_t *option="")
double z_
Definition CalCluster.h:115
double y_
Definition CalCluster.h:112
void addHit(TObject *hit)
TRef seed_hit_
Definition CalCluster.h:103
double x_
Definition CalCluster.h:109