test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 14 of file ClusterVariables.h.

Constructor & Destructor Documentation

ClusterVariables::ClusterVariables ( )
inline

Definition at line 18 of file ClusterVariables.h.

18 {}
ClusterVariables::~ClusterVariables ( )
inline

Definition at line 19 of file ClusterVariables.h.

19 {}
ClusterVariables::ClusterVariables ( const SiStripCluster cluster)
inline

Definition at line 21 of file ClusterVariables.h.

21 : cluster_ptr(&cluster){}
const SiStripCluster * cluster_ptr

Member Function Documentation

uint16_t ClusterVariables::charge ( void  ) const
inline

Definition at line 37 of file ClusterVariables.h.

References begin, end, and stripCharges().

Referenced by ClusterSummaryProducer::produce().

37 {return std::accumulate( stripCharges().begin(), stripCharges().end(), uint16_t(0));}
auto stripCharges() const -> decltype(cluster() ->amplitudes())
#define end
Definition: vmac.h:37
#define begin
Definition: vmac.h:30
const SiStripCluster* ClusterVariables::cluster ( ) const
inline

Definition at line 24 of file ClusterVariables.h.

References cluster_ptr.

Referenced by clusterSize(), and stripCharges().

24 {return cluster_ptr;}
const SiStripCluster * cluster_ptr
const unsigned ClusterVariables::clusterSize ( ) const
inline

Definition at line 29 of file ClusterVariables.h.

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

Referenced by ClusterSummaryProducer::produce().

29 {return cluster()->amplitudes().size();}
const SiStripCluster * cluster() const
const std::vector< uint8_t > & amplitudes() const
auto ClusterVariables::stripCharges ( ) const -> decltype(cluster()->amplitudes())
inline

Definition at line 32 of file ClusterVariables.h.

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

Referenced by charge().

32 {return cluster()->amplitudes();}
const SiStripCluster * cluster() const
const std::vector< uint8_t > & amplitudes() const

Member Data Documentation

const SiStripCluster* ClusterVariables::cluster_ptr
private

Definition at line 42 of file ClusterVariables.h.

Referenced by cluster().