Belle II Software development
CDCWireHitCluster Class Reference

An aggregation of CDCWireHits. More...

#include <CDCWireHitCluster.h>

Inheritance diagram for CDCWireHitCluster:

Public Member Functions

 CDCWireHitCluster ()=default
 Default constructor.
 
 CDCWireHitCluster (const CDCWireHitCluster &wireHitCluster)=default
 Default copy constructor.
 
 CDCWireHitCluster (std::vector< CDCWireHit * > wireHits)
 Constructor from a bunch of wire hits.
 
int getISuperCluster () const
 Get the super cluster id of this cluster.
 
void setISuperCluster (int iSuperCluster)
 Set the super cluster id of this cluster.
 
bool getBackgroundFlag () const
 Return if this was set as background.
 
void setBackgroundFlag (bool backgroundFlag=true)
 Set whether this cluster is consider as made of background.
 

Public Attributes

T elements
 STL member.
 

Private Types

using Super = std::vector<CDCWireHit*>
 Type of the base class.
 

Private Member Functions

 ClassDefNV (CDCWireHitCluster, 1)
 ROOT dictionary macro; the streamer is hand written, see CDCWireHitCluster.cc.
 

Private Attributes

int m_iSuperCluster = -1
 Memory for the super cluster id.
 
bool m_backgroundFlag = false
 Memory for the flag marking this cluster as background.
 

Detailed Description

An aggregation of CDCWireHits.

Definition at line 23 of file CDCWireHitCluster.h.

Member Typedef Documentation

◆ Super

using Super = std::vector<CDCWireHit*>
private

Type of the base class.

Definition at line 26 of file CDCWireHitCluster.h.

Constructor & Destructor Documentation

◆ CDCWireHitCluster()

CDCWireHitCluster ( std::vector< CDCWireHit * > wireHits)
inlineexplicit

Constructor from a bunch of wire hits.

Definition at line 36 of file CDCWireHitCluster.h.

37 : Super(std::move(wireHits))
38 {
39 }

Member Function Documentation

◆ getBackgroundFlag()

bool getBackgroundFlag ( ) const
inline

Return if this was set as background.

Definition at line 54 of file CDCWireHitCluster.h.

55 {
56 return m_backgroundFlag;
57 }

◆ getISuperCluster()

int getISuperCluster ( ) const
inline

Get the super cluster id of this cluster.

Definition at line 42 of file CDCWireHitCluster.h.

43 {
44 return m_iSuperCluster;
45 }

◆ setBackgroundFlag()

void setBackgroundFlag ( bool backgroundFlag = true)
inline

Set whether this cluster is consider as made of background.

Definition at line 60 of file CDCWireHitCluster.h.

61 {
62 m_backgroundFlag = backgroundFlag;
63 }

◆ setISuperCluster()

void setISuperCluster ( int iSuperCluster)
inline

Set the super cluster id of this cluster.

Definition at line 48 of file CDCWireHitCluster.h.

49 {
50 m_iSuperCluster = iSuperCluster;
51 }

Member Data Documentation

◆ m_backgroundFlag

bool m_backgroundFlag = false
private

Memory for the flag marking this cluster as background.

Definition at line 70 of file CDCWireHitCluster.h.

◆ m_iSuperCluster

int m_iSuperCluster = -1
private

Memory for the super cluster id.

Definition at line 67 of file CDCWireHitCluster.h.


The documentation for this class was generated from the following file: