Belle II Software  release-05-01-25
CDCTriggerHoughCluster.h
1 #ifndef CDCTRIGGERHOUGHCLUSTER_H
2 #define CDCTRIGGERHOUGHCLUSTER_H
3 
4 #include <framework/datastore/RelationsObject.h>
5 
6 namespace Belle2 {
14  public:
17  xmin(0), xmax(0), ymin(0), ymax(0) { }
18 
20  CDCTriggerHoughCluster(int x1, int x2, int y1, int y2,
21  std::vector<TVector2>& cellList):
22  xmin(x1), xmax(x2), ymin(y1), ymax(y2), cells(cellList) { }
23 
26 
27  // accessors
29  TVector2 getClusterArea() const { return TVector2(xmax - xmin + 1, ymax - ymin + 1); }
31  TVector2 getCornerBL() const { return TVector2(xmin, ymin); }
33  TVector2 getCornerTR() const { return TVector2(xmax, ymax); }
35  std::vector<TVector2> getCells() const { return cells; }
36 
37  protected:
39  int xmin;
41  int xmax;
43  int ymin;
45  int ymax;
47  std::vector<TVector2> cells = {};
48 
51  };
53 }
54 #endif
Belle2::CDCTriggerHoughCluster::cells
std::vector< TVector2 > cells
list of cell indices in the cluster
Definition: CDCTriggerHoughCluster.h:47
Belle2::CDCTriggerHoughCluster::CDCTriggerHoughCluster
CDCTriggerHoughCluster()
default constructor
Definition: CDCTriggerHoughCluster.h:16
Belle2::CDCTriggerHoughCluster::xmin
int xmin
x index of left boundary cell
Definition: CDCTriggerHoughCluster.h:39
Belle2::CDCTriggerHoughCluster::getCornerTR
TVector2 getCornerTR() const
get top right corner
Definition: CDCTriggerHoughCluster.h:33
Belle2::CDCTriggerHoughCluster::~CDCTriggerHoughCluster
~CDCTriggerHoughCluster()
destructor, empty because we don't allocate memory anywhere.
Definition: CDCTriggerHoughCluster.h:25
Belle2::CDCTriggerHoughCluster::ymax
int ymax
y index of top boundary cell
Definition: CDCTriggerHoughCluster.h:45
Belle2::CDCTriggerHoughCluster::CDCTriggerHoughCluster
CDCTriggerHoughCluster(int x1, int x2, int y1, int y2, std::vector< TVector2 > &cellList)
constructor with arguments
Definition: CDCTriggerHoughCluster.h:20
Belle2::CDCTriggerHoughCluster::getCornerBL
TVector2 getCornerBL() const
get left bottom corner
Definition: CDCTriggerHoughCluster.h:31
Belle2::CDCTriggerHoughCluster::xmax
int xmax
x index of right boundary cell
Definition: CDCTriggerHoughCluster.h:41
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::CDCTriggerHoughCluster::getCells
std::vector< TVector2 > getCells() const
get list of cell indices
Definition: CDCTriggerHoughCluster.h:35
Belle2::CDCTriggerHoughCluster::getClusterArea
TVector2 getClusterArea() const
get size of bounding rectangle of cluster
Definition: CDCTriggerHoughCluster.h:29
Belle2::CDCTriggerHoughCluster
Cluster created by the Hough finder of the CDC trigger.
Definition: CDCTriggerHoughCluster.h:13
Belle2::RelationsInterface
Defines interface for accessing relations of objects in StoreArray.
Definition: RelationsObject.h:102
Belle2::CDCTriggerHoughCluster::ClassDef
ClassDef(CDCTriggerHoughCluster, 1)
Needed to make the ROOT object storable.
Belle2::CDCTriggerHoughCluster::ymin
int ymin
y index of bottom boundary cell
Definition: CDCTriggerHoughCluster.h:43