CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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::CSCStripHitData ( )
inline

Definition at line 20 of file CSCStripHitData.h.

20 : istrip_(-1), tmax_(-1), phRaw_(nbins_), ph_(nbins_){};
static const int nbins_
std::vector< float > ph_
std::vector< float > phRaw_
CSCStripHitData::CSCStripHitData ( int  istrip,
int  tmax,
const std::vector< float > &  phRaw,
const std::vector< float > &  ph 
)
inline

Definition at line 22 of file CSCStripHitData.h.

22  :
23  istrip_(istrip), tmax_(tmax), phRaw_(phRaw), ph_(ph){};
std::vector< float > const & phRaw() const
std::vector< float > const & ph() const
std::vector< float > ph_
std::vector< float > phRaw_
int tmax() const

Member Function Documentation

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

Order by 2nd ph bin.

Definition at line 31 of file CSCStripHitData.h.

References ph_.

31 { return ph_[1] < data.ph_[1]; }
std::vector< float > ph_
std::vector<float> const& CSCStripHitData::ph ( ) const
inline

Definition at line 27 of file CSCStripHitData.h.

References ph_.

27 { return ph_;}
std::vector< float > ph_
std::vector<float> const& CSCStripHitData::phRaw ( ) const
inline

Definition at line 28 of file CSCStripHitData.h.

References phRaw_.

28 { return phRaw_;}
std::vector< float > phRaw_
int CSCStripHitData::strip ( void  ) const
inline

Definition at line 25 of file CSCStripHitData.h.

References istrip_.

25 {return istrip_;}
int CSCStripHitData::tmax ( ) const
inline

Definition at line 26 of file CSCStripHitData.h.

References tmax_.

26 {return tmax_;}

Member Data Documentation

int CSCStripHitData::istrip_
private

Definition at line 35 of file CSCStripHitData.h.

Referenced by strip().

const int CSCStripHitData::nbins_ = 4
staticprivate

Definition at line 34 of file CSCStripHitData.h.

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

Definition at line 38 of file CSCStripHitData.h.

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

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

Definition at line 37 of file CSCStripHitData.h.

Referenced by phRaw().

int CSCStripHitData::tmax_
private

Definition at line 36 of file CSCStripHitData.h.

Referenced by tmax().