#include <ClusterVariables.h>
Public Member Functions | |
uint16_t | charge () const |
const SiStripCluster * | cluster () const |
const unsigned | clusterSize () const |
ClusterVariables () | |
ClusterVariables (const SiStripCluster &cluster) | |
const std::vector< uint8_t > & | stripCharges () const |
~ClusterVariables () | |
Private Attributes | |
const SiStripCluster * | cluster_ptr |
Definition at line 13 of file ClusterVariables.h.
ClusterVariables::ClusterVariables | ( | ) | [inline] |
Definition at line 17 of file ClusterVariables.h.
{};
ClusterVariables::~ClusterVariables | ( | ) | [inline] |
Definition at line 18 of file ClusterVariables.h.
{};
ClusterVariables::ClusterVariables | ( | const SiStripCluster & | cluster | ) | [inline] |
Definition at line 20 of file ClusterVariables.h.
: cluster_ptr(&cluster){}
uint16_t ClusterVariables::charge | ( | void | ) | const [inline] |
Definition at line 36 of file ClusterVariables.h.
References begin, end, and stripCharges().
Referenced by ClusterSummaryProducer::produce().
{return accumulate( stripCharges().begin(), stripCharges().end(), uint16_t(0));}
const SiStripCluster* ClusterVariables::cluster | ( | ) | const [inline] |
Definition at line 23 of file ClusterVariables.h.
References cluster_ptr.
Referenced by clusterSize(), and stripCharges().
{return cluster_ptr;}
const unsigned ClusterVariables::clusterSize | ( | ) | const [inline] |
Definition at line 28 of file ClusterVariables.h.
References SiStripCluster::amplitudes(), and cluster().
Referenced by ClusterSummaryProducer::produce().
{return cluster()->amplitudes().size();}
const std::vector<uint8_t>& ClusterVariables::stripCharges | ( | ) | const [inline] |
Definition at line 31 of file ClusterVariables.h.
References SiStripCluster::amplitudes(), and cluster().
Referenced by charge().
{return cluster()->amplitudes();}
const SiStripCluster* ClusterVariables::cluster_ptr [private] |
Definition at line 41 of file ClusterVariables.h.
Referenced by cluster().