CMS 3D CMS Logo

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

#include <CSCStripHitData.h>

Public Member Functions

 CSCStripHitData ()
 
 CSCStripHitData (int istrip, int tmax, const std::vector< float > &phRaw, const std::vector< float > &ph)
 
bool operator< (const CSCStripHitData &data) const
 Order by 2nd ph bin. More...
 
std::vector< float > const & ph () const
 
std::vector< float > const & phRaw () const
 
int strip () const
 
int tmax () const
 

Private Attributes

int istrip_
 
std::vector< float > ph_
 
std::vector< float > phRaw_
 
int tmax_
 

Static Private Attributes

static const int nbins_ = 4
 

Detailed Description

Hold strip hit data while building strip hit clusters. Only 4 timebins of the SCA adc pulseheights are stored.

tmax() returns the bin with max pulseheight, and we store bins tmax-1 to tmax+2. Therefore the peak bin is the 2nd.

Definition at line 16 of file CSCStripHitData.h.

Constructor & Destructor Documentation

◆ CSCStripHitData() [1/2]

CSCStripHitData::CSCStripHitData ( )
inline

Definition at line 18 of file CSCStripHitData.h.

18 : istrip_(-1), tmax_(-1), phRaw_(nbins_), ph_(nbins_){};

◆ CSCStripHitData() [2/2]

CSCStripHitData::CSCStripHitData ( int  istrip,
int  tmax,
const std::vector< float > &  phRaw,
const std::vector< float > &  ph 
)
inline

Definition at line 20 of file CSCStripHitData.h.

21  : istrip_(istrip), tmax_(tmax), phRaw_(phRaw), ph_(ph){};

Member Function Documentation

◆ operator<()

bool CSCStripHitData::operator< ( const CSCStripHitData data) const
inline

Order by 2nd ph bin.

Definition at line 29 of file CSCStripHitData.h.

29 { return ph_[1] < data.ph_[1]; }

References data, and ph_.

◆ ph()

std::vector<float> const& CSCStripHitData::ph ( ) const
inline

Definition at line 25 of file CSCStripHitData.h.

25 { return ph_; }

References ph_.

◆ phRaw()

std::vector<float> const& CSCStripHitData::phRaw ( ) const
inline

Definition at line 26 of file CSCStripHitData.h.

26 { return phRaw_; }

References phRaw_.

◆ strip()

int CSCStripHitData::strip ( void  ) const
inline

Definition at line 23 of file CSCStripHitData.h.

23 { return istrip_; }

References istrip_.

◆ tmax()

int CSCStripHitData::tmax ( ) const
inline

Definition at line 24 of file CSCStripHitData.h.

24 { return tmax_; }

References tmax_.

Member Data Documentation

◆ istrip_

int CSCStripHitData::istrip_
private

Definition at line 33 of file CSCStripHitData.h.

Referenced by strip().

◆ nbins_

const int CSCStripHitData::nbins_ = 4
staticprivate

Definition at line 32 of file CSCStripHitData.h.

◆ ph_

std::vector<float> CSCStripHitData::ph_
private

Definition at line 36 of file CSCStripHitData.h.

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

◆ phRaw_

std::vector<float> CSCStripHitData::phRaw_
private

Definition at line 35 of file CSCStripHitData.h.

Referenced by phRaw().

◆ tmax_

int CSCStripHitData::tmax_
private

Definition at line 34 of file CSCStripHitData.h.

Referenced by tmax().

CSCStripHitData::tmax_
int tmax_
Definition: CSCStripHitData.h:34
CSCStripHitData::phRaw
std::vector< float > const & phRaw() const
Definition: CSCStripHitData.h:26
CSCStripHitData::istrip_
int istrip_
Definition: CSCStripHitData.h:33
CSCStripHitData::tmax
int tmax() const
Definition: CSCStripHitData.h:24
CSCStripHitData::ph
std::vector< float > const & ph() const
Definition: CSCStripHitData.h:25
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
CSCStripHitData::ph_
std::vector< float > ph_
Definition: CSCStripHitData.h:36
CSCStripHitData::phRaw_
std::vector< float > phRaw_
Definition: CSCStripHitData.h:35
CSCStripHitData::nbins_
static const int nbins_
Definition: CSCStripHitData.h:32