Belle II Software  release-05-02-19
CDCWireHitCluster.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2012 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Oliver Frost *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <vector>
13 
14 namespace Belle2 {
19  namespace TrackFindingCDC {
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  // cppcheck-suppress passedByValue
37  explicit CDCWireHitCluster(std::vector<CDCWireHit*> wireHits)
38  : Super(std::move(wireHits))
39  {
40  }
41 
43  int getISuperCluster() const
44  {
46  }
47 
49  void setISuperCluster(int iSuperCluster)
50  {
51  m_iSuperCluster = iSuperCluster;
52  }
53 
55  bool getBackgroundFlag() const
56  {
58  }
59 
61  void setBackgroundFlag(bool backgroundFlag = true)
62  {
63  m_backgroundFlag = backgroundFlag;
64  }
65 
66  private:
68  int m_iSuperCluster = -1;
69 
71  bool m_backgroundFlag = false;
72  };
73  }
75 }
Belle2::TrackFindingCDC::CDCWireHitCluster::m_backgroundFlag
bool m_backgroundFlag
Memory for the flag marking this cluster as background.
Definition: CDCWireHitCluster.h:79
Belle2::TrackFindingCDC::CDCWireHitCluster::m_iSuperCluster
int m_iSuperCluster
Memory for the super cluster id.
Definition: CDCWireHitCluster.h:76
Belle2::TrackFindingCDC::CDCWireHitCluster::Super
std::vector< CDCWireHit * > Super
Type of the base class.
Definition: CDCWireHitCluster.h:34
Belle2::TrackFindingCDC::CDCWireHitCluster::CDCWireHitCluster
CDCWireHitCluster()=default
Default constructor.
Belle2::TrackFindingCDC::CDCWireHitCluster::setBackgroundFlag
void setBackgroundFlag(bool backgroundFlag=true)
Set whether this cluster is consider as made of background.
Definition: CDCWireHitCluster.h:69
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::CDCWireHitCluster::getISuperCluster
int getISuperCluster() const
Get the super cluster id of this cluster.
Definition: CDCWireHitCluster.h:51
Belle2::TrackFindingCDC::CDCWireHitCluster
An aggregation of CDCWireHits.
Definition: CDCWireHitCluster.h:31
Belle2::TrackFindingCDC::CDCWireHitCluster::setISuperCluster
void setISuperCluster(int iSuperCluster)
Set the super cluster id of this cluster.
Definition: CDCWireHitCluster.h:57
Belle2::TrackFindingCDC::CDCWireHitCluster::getBackgroundFlag
bool getBackgroundFlag() const
Return if this was set as background.
Definition: CDCWireHitCluster.h:63