Belle II Software development
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 <Rtypes.h>
11
12#include <vector>
13
14namespace Belle2 {
19 namespace TrackingUtilities {
20 class CDCWireHit;
21
23 class CDCWireHitCluster : public std::vector<CDCWireHit*> {
24
26 using Super = std::vector<CDCWireHit*>;
27
28 public:
30 CDCWireHitCluster() = default;
31
33 CDCWireHitCluster(const CDCWireHitCluster& wireHitCluster) = default;
34
36 explicit CDCWireHitCluster(std::vector<CDCWireHit*> wireHits)
37 : Super(std::move(wireHits))
38 {
39 }
40
42 int getISuperCluster() const
43 {
44 return m_iSuperCluster;
45 }
46
48 void setISuperCluster(int iSuperCluster)
49 {
50 m_iSuperCluster = iSuperCluster;
51 }
52
54 bool getBackgroundFlag() const
55 {
56 return m_backgroundFlag;
57 }
58
60 void setBackgroundFlag(bool backgroundFlag = true)
61 {
62 m_backgroundFlag = backgroundFlag;
63 }
64
65 private:
68
70 bool m_backgroundFlag = false;
71
74 };
75 }
77}
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.
ClassDefNV(CDCWireHitCluster, 1)
ROOT dictionary macro; the streamer is hand written, see CDCWireHitCluster.cc.
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:56
Abstract base class for different kinds of events.
STL namespace.