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_){};
static const int nbins_
std::vector< float > ph_
std::vector< float > phRaw_

◆ 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){};
std::vector< float > const & phRaw() const
int tmax() const
std::vector< float > ph_
std::vector< float > const & ph() const
std::vector< float > phRaw_

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.

References data, and ph_.

29 { return ph_[1] < data.ph_[1]; }
std::vector< float > ph_
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

◆ ph()

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

Definition at line 25 of file CSCStripHitData.h.

References ph_.

25 { return ph_; }
std::vector< float > ph_

◆ phRaw()

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

Definition at line 26 of file CSCStripHitData.h.

References phRaw_.

26 { return phRaw_; }
std::vector< float > phRaw_

◆ strip()

int CSCStripHitData::strip ( void  ) const
inline

Definition at line 23 of file CSCStripHitData.h.

References istrip_.

23 { return istrip_; }

◆ tmax()

int CSCStripHitData::tmax ( ) const
inline

Definition at line 24 of file CSCStripHitData.h.

References tmax_.

24 { return 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().