CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
SiStripApproximateCluster Class Reference

#include <SiStripApproximateCluster.h>

Public Member Functions

float avgCharge () const
 
float barycenter () const
 
 SiStripApproximateCluster ()
 
 SiStripApproximateCluster (const SiStripCluster &cluster)
 
 SiStripApproximateCluster (float barycenter, uint8_t width, float avgCharge)
 
uint8_t width () const
 

Private Attributes

float avgCharge_ = 0
 
float barycenter_ = 0
 
uint8_t width_ = 0
 

Detailed Description

Definition at line 11 of file SiStripApproximateCluster.h.

Constructor & Destructor Documentation

◆ SiStripApproximateCluster() [1/3]

SiStripApproximateCluster::SiStripApproximateCluster ( )
inline

Definition at line 13 of file SiStripApproximateCluster.h.

13 {}

◆ SiStripApproximateCluster() [2/3]

SiStripApproximateCluster::SiStripApproximateCluster ( float  barycenter,
uint8_t  width,
float  avgCharge 
)
inlineexplicit

Definition at line 15 of file SiStripApproximateCluster.h.

15  {
17  width_ = width;
19  }

References avgCharge(), avgCharge_, barycenter(), barycenter_, width(), and width_.

◆ SiStripApproximateCluster() [3/3]

SiStripApproximateCluster::SiStripApproximateCluster ( const SiStripCluster cluster)
inlineexplicit

Definition at line 21 of file SiStripApproximateCluster.h.

21  {
22  barycenter_ = cluster.barycenter();
23  width_ = cluster.size();
24  avgCharge_ = cluster.charge() / cluster.size();
25  }

References avgCharge_, SiStripCluster::barycenter(), barycenter_, SiStripCluster::charge(), SiStripCluster::size(), and width_.

Member Function Documentation

◆ avgCharge()

float SiStripApproximateCluster::avgCharge ( ) const
inline

Definition at line 29 of file SiStripApproximateCluster.h.

29 { return avgCharge_; }

References avgCharge_.

Referenced by SiStripApproximateCluster().

◆ barycenter()

float SiStripApproximateCluster::barycenter ( ) const
inline

Definition at line 27 of file SiStripApproximateCluster.h.

27 { return barycenter_; }

References barycenter_.

Referenced by SiStripApproximateCluster().

◆ width()

uint8_t SiStripApproximateCluster::width ( ) const
inline

Definition at line 28 of file SiStripApproximateCluster.h.

28 { return width_; }

References width_.

Referenced by SiStripApproximateCluster().

Member Data Documentation

◆ avgCharge_

float SiStripApproximateCluster::avgCharge_ = 0
private

Definition at line 34 of file SiStripApproximateCluster.h.

Referenced by avgCharge(), and SiStripApproximateCluster().

◆ barycenter_

float SiStripApproximateCluster::barycenter_ = 0
private

Definition at line 32 of file SiStripApproximateCluster.h.

Referenced by barycenter(), and SiStripApproximateCluster().

◆ width_

uint8_t SiStripApproximateCluster::width_ = 0
private

Definition at line 33 of file SiStripApproximateCluster.h.

Referenced by SiStripApproximateCluster(), and width().

SiStripCluster::barycenter
float barycenter() const
Definition: SiStripCluster.cc:25
SiStripApproximateCluster::barycenter
float barycenter() const
Definition: SiStripApproximateCluster.h:27
SiStripApproximateCluster::width_
uint8_t width_
Definition: SiStripApproximateCluster.h:33
SiStripApproximateCluster::avgCharge_
float avgCharge_
Definition: SiStripApproximateCluster.h:34
SiStripCluster::size
uint8_t size() const
Definition: SiStripCluster.h:63
SiStripApproximateCluster::width
uint8_t width() const
Definition: SiStripApproximateCluster.h:28
SiStripApproximateCluster::avgCharge
float avgCharge() const
Definition: SiStripApproximateCluster.h:29
SiStripCluster::charge
int charge() const
Definition: SiStripCluster.h:78
SiStripApproximateCluster::barycenter_
float barycenter_
Definition: SiStripApproximateCluster.h:32