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::Phase2TrackerCluster1D ( )
inline

Definition at line 14 of file Phase2TrackerCluster1D.h.

14 : data_(0) { }
Phase2TrackerCluster1D::Phase2TrackerCluster1D ( unsigned int  row,
unsigned int  col,
unsigned int  size 
)
inline

Definition at line 15 of file Phase2TrackerCluster1D.h.

15 : firstDigi_(row, col), data_((size & 0x7fff)) { }
col
Definition: cuy.py:1010
Phase2TrackerCluster1D::Phase2TrackerCluster1D ( unsigned int  row,
unsigned int  col,
unsigned int  size,
unsigned int  threshold 
)
inline

Definition at line 16 of file Phase2TrackerCluster1D.h.

16 : firstDigi_(row, col), data_(((threshold & 0x1) << 15) | (size & 0x7fff)) { }
col
Definition: cuy.py:1010
Phase2TrackerCluster1D::Phase2TrackerCluster1D ( const Phase2TrackerDigi firstDigi,
unsigned int  size 
)
inline

Definition at line 17 of file Phase2TrackerCluster1D.h.

17 : firstDigi_(firstDigi), data_((size & 0x7fff)) { }
Phase2TrackerCluster1D::Phase2TrackerCluster1D ( const Phase2TrackerDigi firstDigi,
unsigned int  size,
unsigned int  threshold 
)
inline

Definition at line 18 of file Phase2TrackerCluster1D.h.

18 : firstDigi_(firstDigi), data_(((threshold & 0x1) << 15) | (size & 0x7fff)) { }

Member Function Documentation

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

Definition at line 28 of file Phase2TrackerCluster1D.h.

References center(), and column().

28 { return std::make_pair(column(), center()); }
unsigned int column() const
float Phase2TrackerCluster1D::center ( ) const
inline
unsigned int Phase2TrackerCluster1D::column ( ) const
inline
unsigned int Phase2TrackerCluster1D::edge ( void  ) const
inline

Definition at line 23 of file Phase2TrackerCluster1D.h.

References Phase2TrackerDigi::edge(), and firstDigi_.

23 { return firstDigi_.edge(); }
unsigned int edge() const
const Phase2TrackerDigi& Phase2TrackerCluster1D::firstDigi ( ) const
inline

Definition at line 20 of file Phase2TrackerCluster1D.h.

References firstDigi_.

20 { return firstDigi_; }
unsigned int Phase2TrackerCluster1D::firstRow ( ) const
inline

Definition at line 22 of file Phase2TrackerCluster1D.h.

References firstDigi_, and Phase2TrackerDigi::row().

Referenced by ClusterTPAssociationProducer::produce().

22 { return firstDigi_.row(); }
unsigned int row() const
unsigned int Phase2TrackerCluster1D::firstStrip ( ) const
inline

Definition at line 21 of file Phase2TrackerCluster1D.h.

References firstDigi_, and Phase2TrackerDigi::strip().

Referenced by center(), operator<(), and TkPhase2OTMeasurementDet::recHits().

21 { return firstDigi_.strip(); }
unsigned int strip() const
uint16_t Phase2TrackerCluster1D::size ( void  ) const
inline
uint16_t Phase2TrackerCluster1D::threshold ( ) const
inline

Definition at line 26 of file Phase2TrackerCluster1D.h.

References data_, and globals_cff::x1.

26 { return ((data_ >> 15) & 0x1); }

Member Data Documentation

uint16_t Phase2TrackerCluster1D::data_
private

Definition at line 33 of file Phase2TrackerCluster1D.h.

Referenced by size(), and threshold().

Phase2TrackerDigi Phase2TrackerCluster1D::firstDigi_
private

Definition at line 32 of file Phase2TrackerCluster1D.h.

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