CMS 3D CMS Logo

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

#include <Phase2TrackerCluster1D.h>

Public Member Functions

std::pair< float, float > barycenter () const
 
float center () const
 
unsigned int column () const
 
unsigned int edge () const
 
const Phase2TrackerDigifirstDigi () const
 
unsigned int firstRow () const
 
unsigned int firstStrip () const
 
 Phase2TrackerCluster1D ()
 
 Phase2TrackerCluster1D (unsigned int row, unsigned int col, unsigned int size)
 
 Phase2TrackerCluster1D (unsigned int row, unsigned int col, unsigned int size, unsigned int threshold)
 
 Phase2TrackerCluster1D (const Phase2TrackerDigi &firstDigi, unsigned int size)
 
 Phase2TrackerCluster1D (const Phase2TrackerDigi &firstDigi, unsigned int size, unsigned int threshold)
 
uint16_t size () const
 
uint16_t threshold () const
 

Private Attributes

uint16_t data_
 
Phase2TrackerDigi firstDigi_
 

Detailed Description

Definition at line 10 of file Phase2TrackerCluster1D.h.

Constructor & Destructor Documentation

◆ Phase2TrackerCluster1D() [1/5]

Phase2TrackerCluster1D::Phase2TrackerCluster1D ( )
inline

Definition at line 12 of file Phase2TrackerCluster1D.h.

◆ Phase2TrackerCluster1D() [2/5]

Phase2TrackerCluster1D::Phase2TrackerCluster1D ( unsigned int  row,
unsigned int  col,
unsigned int  size 
)
inline

Definition at line 13 of file Phase2TrackerCluster1D.h.

14  : firstDigi_(row, col), data_((size & 0x7fff)) {}
col
Definition: cuy.py:1009

◆ Phase2TrackerCluster1D() [3/5]

Phase2TrackerCluster1D::Phase2TrackerCluster1D ( unsigned int  row,
unsigned int  col,
unsigned int  size,
unsigned int  threshold 
)
inline

◆ Phase2TrackerCluster1D() [4/5]

Phase2TrackerCluster1D::Phase2TrackerCluster1D ( const Phase2TrackerDigi firstDigi,
unsigned int  size 
)
inline

Definition at line 17 of file Phase2TrackerCluster1D.h.

18  : firstDigi_(firstDigi), data_((size & 0x7fff)) {}
const Phase2TrackerDigi & firstDigi() const

◆ Phase2TrackerCluster1D() [5/5]

Phase2TrackerCluster1D::Phase2TrackerCluster1D ( const Phase2TrackerDigi firstDigi,
unsigned int  size,
unsigned int  threshold 
)
inline

Member Function Documentation

◆ barycenter()

std::pair<float, float> Phase2TrackerCluster1D::barycenter ( ) const
inline

Definition at line 30 of file Phase2TrackerCluster1D.h.

References center(), and column().

30 { return std::make_pair(column(), center()); }
unsigned int column() const

◆ center()

float Phase2TrackerCluster1D::center ( ) const
inline

◆ column()

unsigned int Phase2TrackerCluster1D::column ( ) const
inline

◆ edge()

unsigned int Phase2TrackerCluster1D::edge ( void  ) const
inline

Definition at line 25 of file Phase2TrackerCluster1D.h.

References Phase2TrackerDigi::edge(), and firstDigi_.

25 { return firstDigi_.edge(); }
unsigned int edge() const

◆ firstDigi()

const Phase2TrackerDigi& Phase2TrackerCluster1D::firstDigi ( ) const
inline

Definition at line 22 of file Phase2TrackerCluster1D.h.

References firstDigi_.

22 { return firstDigi_; }

◆ firstRow()

unsigned int Phase2TrackerCluster1D::firstRow ( ) const
inline

Definition at line 24 of file Phase2TrackerCluster1D.h.

References firstDigi_, and Phase2TrackerDigi::row().

Referenced by ClusterTPAssociationProducer::produce().

24 { return firstDigi_.row(); }
unsigned int row() const

◆ firstStrip()

unsigned int Phase2TrackerCluster1D::firstStrip ( ) const
inline

Definition at line 23 of file Phase2TrackerCluster1D.h.

References firstDigi_, and Phase2TrackerDigi::strip().

Referenced by center().

23 { return firstDigi_.strip(); }
unsigned int strip() const

◆ size()

uint16_t Phase2TrackerCluster1D::size ( void  ) const
inline

◆ threshold()

uint16_t Phase2TrackerCluster1D::threshold ( ) const
inline

Member Data Documentation

◆ data_

uint16_t Phase2TrackerCluster1D::data_
private

Definition at line 34 of file Phase2TrackerCluster1D.h.

Referenced by size(), and threshold().

◆ firstDigi_

Phase2TrackerDigi Phase2TrackerCluster1D::firstDigi_
private

Definition at line 33 of file Phase2TrackerCluster1D.h.

Referenced by column(), edge(), firstDigi(), firstRow(), and firstStrip().