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 (const Phase2TrackerDigi &firstDigi, unsigned int size)
 
 Phase2TrackerCluster1D (const Phase2TrackerDigi &firstDigi, unsigned int size, unsigned int threshold)
 
 Phase2TrackerCluster1D (unsigned int row, unsigned int col, unsigned int size)
 
 Phase2TrackerCluster1D (unsigned int row, unsigned int col, 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.

12 : data_(0) {}

◆ 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)) {}

◆ Phase2TrackerCluster1D() [3/5]

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

Definition at line 15 of file Phase2TrackerCluster1D.h.

16  : firstDigi_(row, col), data_(((threshold & 0x1) << 15) | (size & 0x7fff)) {}

◆ 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)) {}

◆ Phase2TrackerCluster1D() [5/5]

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

Definition at line 19 of file Phase2TrackerCluster1D.h.

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

Member Function Documentation

◆ barycenter()

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

Definition at line 30 of file Phase2TrackerCluster1D.h.

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

References center(), and column().

◆ 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.

25 { return firstDigi_.edge(); }

References Phase2TrackerDigi::edge(), and firstDigi_.

◆ firstDigi()

const Phase2TrackerDigi& Phase2TrackerCluster1D::firstDigi ( ) const
inline

Definition at line 22 of file Phase2TrackerCluster1D.h.

22 { return firstDigi_; }

References firstDigi_.

◆ firstRow()

unsigned int Phase2TrackerCluster1D::firstRow ( ) const
inline

Definition at line 24 of file Phase2TrackerCluster1D.h.

24 { return firstDigi_.row(); }

References firstDigi_, and Phase2TrackerDigi::row().

Referenced by ClusterTPAssociationProducer::produce().

◆ firstStrip()

unsigned int Phase2TrackerCluster1D::firstStrip ( ) const
inline

Definition at line 23 of file Phase2TrackerCluster1D.h.

23 { return firstDigi_.strip(); }

References firstDigi_, and Phase2TrackerDigi::strip().

Referenced by center(), and operator<().

◆ size()

uint16_t Phase2TrackerCluster1D::size ( void  ) const
inline

◆ threshold()

uint16_t Phase2TrackerCluster1D::threshold ( ) const
inline

Definition at line 28 of file Phase2TrackerCluster1D.h.

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

References data_, and testProducerWithPsetDescEmpty_cfi::x1.

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().

Phase2TrackerCluster1D::firstStrip
unsigned int firstStrip() const
Definition: Phase2TrackerCluster1D.h:23
Phase2TrackerDigi::row
unsigned int row() const
Definition: Phase2TrackerDigi.h:29
dqmMemoryStats.float
float
Definition: dqmMemoryStats.py:127
Phase2TrackerCluster1D::column
unsigned int column() const
Definition: Phase2TrackerCluster1D.h:26
Phase2TrackerDigi::edge
unsigned int edge() const
Definition: Phase2TrackerDigi.h:33
cuy.col
col
Definition: cuy.py:1010
Phase2TrackerCluster1D::center
float center() const
Definition: Phase2TrackerCluster1D.h:29
Phase2TrackerDigi::column
unsigned int column() const
Definition: Phase2TrackerDigi.h:30
testProducerWithPsetDescEmpty_cfi.x1
x1
Definition: testProducerWithPsetDescEmpty_cfi.py:33
Phase2TrackerCluster1D::threshold
uint16_t threshold() const
Definition: Phase2TrackerCluster1D.h:28
Phase2TrackerCluster1D::firstDigi_
Phase2TrackerDigi firstDigi_
Definition: Phase2TrackerCluster1D.h:33
Phase2TrackerCluster1D::data_
uint16_t data_
Definition: Phase2TrackerCluster1D.h:34
Phase2TrackerCluster1D::size
uint16_t size() const
Definition: Phase2TrackerCluster1D.h:27
Phase2TrackerCluster1D::firstDigi
const Phase2TrackerDigi & firstDigi() const
Definition: Phase2TrackerCluster1D.h:22
Phase2TrackerDigi::strip
unsigned int strip() const
Definition: Phase2TrackerDigi.h:32