CMS 3D CMS Logo

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

#include <ClusterVariables.h>

Public Member Functions

uint16_t charge () const
 
const SiStripClustercluster () const
 
const unsigned clusterSize () const
 
 ClusterVariables ()
 
 ClusterVariables (const SiStripCluster &cluster)
 
auto stripCharges () const -> decltype(cluster() ->amplitudes())
 
 ~ClusterVariables ()
 

Private Attributes

const SiStripClustercluster_ptr
 

Detailed Description

Definition at line 13 of file ClusterVariables.h.

Constructor & Destructor Documentation

◆ ClusterVariables() [1/2]

ClusterVariables::ClusterVariables ( )
inline

Definition at line 15 of file ClusterVariables.h.

15 {}

◆ ~ClusterVariables()

ClusterVariables::~ClusterVariables ( )
inline

Definition at line 16 of file ClusterVariables.h.

16 {}

◆ ClusterVariables() [2/2]

ClusterVariables::ClusterVariables ( const SiStripCluster cluster)
inline

Definition at line 18 of file ClusterVariables.h.

18 : cluster_ptr(&cluster) {}

Member Function Documentation

◆ charge()

uint16_t ClusterVariables::charge ( void  ) const
inline

Definition at line 32 of file ClusterVariables.h.

32 { return std::accumulate(stripCharges().begin(), stripCharges().end(), uint16_t(0)); }

References mps_fire::end, and stripCharges().

Referenced by ClusterSummaryProducer::produce().

◆ cluster()

const SiStripCluster* ClusterVariables::cluster ( ) const
inline

Definition at line 20 of file ClusterVariables.h.

20 { return cluster_ptr; }

References cluster_ptr.

Referenced by clusterSize(), and stripCharges().

◆ clusterSize()

const unsigned ClusterVariables::clusterSize ( ) const
inline

Definition at line 25 of file ClusterVariables.h.

25 { return cluster()->amplitudes().size(); }

References SiStripCluster::amplitudes(), cluster(), and SiStripCluster::size().

Referenced by ClusterSummaryProducer::produce().

◆ stripCharges()

auto ClusterVariables::stripCharges ( ) const -> decltype(cluster()->amplitudes())
inline

Definition at line 27 of file ClusterVariables.h.

27 { return cluster()->amplitudes(); }

References SiStripCluster::amplitudes(), and cluster().

Referenced by charge().

Member Data Documentation

◆ cluster_ptr

const SiStripCluster* ClusterVariables::cluster_ptr
private

Definition at line 35 of file ClusterVariables.h.

Referenced by cluster().

ClusterVariables::stripCharges
auto stripCharges() const -> decltype(cluster() ->amplitudes())
Definition: ClusterVariables.h:27
mps_fire.end
end
Definition: mps_fire.py:242
ClusterVariables::cluster
const SiStripCluster * cluster() const
Definition: ClusterVariables.h:20
SiStripCluster::size
uint8_t size() const
Definition: SiStripCluster.h:63
ClusterVariables::cluster_ptr
const SiStripCluster * cluster_ptr
Definition: ClusterVariables.h:35
SiStripCluster::amplitudes
SiStripCluster const & amplitudes() const
Definition: SiStripCluster.h:68