Belle II Software prerelease-11-00-00a
CDCWireHitCluster.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9
10#include <vector>
11
12namespace Belle2 {
17 namespace TrackingUtilities {
18 class CDCWireHit;
19
21 class CDCWireHitCluster : public std::vector<CDCWireHit*> {
22
24 using Super = std::vector<CDCWireHit*>;
25
26 public:
28 CDCWireHitCluster() = default;
29
31 CDCWireHitCluster(const CDCWireHitCluster& wireHitCluster) = default;
32
34 explicit CDCWireHitCluster(std::vector<CDCWireHit*> wireHits)
35 : Super(std::move(wireHits))
36 {
37 }
38
40 int getISuperCluster() const
41 {
42 return m_iSuperCluster;
43 }
44
46 void setISuperCluster(int iSuperCluster)
47 {
48 m_iSuperCluster = iSuperCluster;
49 }
50
52 bool getBackgroundFlag() const
53 {
54 return m_backgroundFlag;
55 }
56
58 void setBackgroundFlag(bool backgroundFlag = true)
59 {
60 m_backgroundFlag = backgroundFlag;
61 }
62
63 private:
66
68 bool m_backgroundFlag = false;
69 };
70 }
72}
void setBackgroundFlag(bool backgroundFlag=true)
Set whether this cluster is consider as made of background.
int m_iSuperCluster
Memory for the super cluster id.
void setISuperCluster(int iSuperCluster)
Set the super cluster id of this cluster.
CDCWireHitCluster(std::vector< CDCWireHit * > wireHits)
Constructor from a bunch of wire hits.
CDCWireHitCluster(const CDCWireHitCluster &wireHitCluster)=default
Default copy constructor.
std::vector< CDCWireHit * > Super
Type of the base class.
bool getBackgroundFlag() const
Return if this was set as background.
bool m_backgroundFlag
Memory for the flag marking this cluster as background.
int getISuperCluster() const
Get the super cluster id of this cluster.
CDCWireHitCluster()=default
Default constructor.
Class representing a hit wire in the central drift chamber.
Definition CDCWireHit.h:58
Abstract base class for different kinds of events.
STL namespace.