CMS 3D CMS Logo

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

#include <CTPPSDiamondLocalTrack.h>

Inheritance diagram for CTPPSDiamondLocalTrack:
CTPPSTimingLocalTrack

Public Member Functions

bool containsHit (const CTPPSDiamondRecHit &recHit, float tolerance=0.1) const
 
 CTPPSDiamondLocalTrack ()
 
 CTPPSDiamondLocalTrack (const math::XYZPoint &pos0, const math::XYZPoint &pos0_sigma, float t, float t_sigma, int oot_idx, int mult_hits)
 
int getMultipleHits () const
 
int getOOTIndex () const
 
void setMultipleHits (int i)
 
void setOOTIndex (int i)
 
- Public Member Functions inherited from CTPPSTimingLocalTrack
bool containsHit (const CTPPSTimingRecHit &recHit, float tolerance=0.1f, CheckDimension check=CheckDimension::all) const
 
 CTPPSTimingLocalTrack ()
 
 CTPPSTimingLocalTrack (const math::XYZPoint &pos0, const math::XYZPoint &pos0_sigma, float t, float t_sigma)
 
int getNumOfHits () const
 
int getNumOfPlanes () const
 
float getT () const
 
float getTSigma () const
 
float getX0 () const
 
float getX0Sigma () const
 
float getY0 () const
 
float getY0Sigma () const
 
float getZ0 () const
 
float getZ0Sigma () const
 
bool isValid () const
 
void setNumOfHits (int num_hits)
 
void setNumOfPlanes (int num_planes)
 
void setPosition (const math::XYZPoint &pos0)
 
void setPositionSigma (const math::XYZPoint &pos0_sigma)
 
void setT (float t)
 
void setTSigma (float t_sigma)
 
void setValid (bool valid)
 

Private Attributes

int mh_
 Multiple hits counter. More...
 
int ts_index_
 Time slice index. More...
 

Additional Inherited Members

- Public Types inherited from CTPPSTimingLocalTrack
enum  CheckDimension { CheckDimension::x, CheckDimension::y, CheckDimension::all }
 

Detailed Description

Definition at line 20 of file CTPPSDiamondLocalTrack.h.

Constructor & Destructor Documentation

CTPPSDiamondLocalTrack::CTPPSDiamondLocalTrack ( )

Definition at line 15 of file CTPPSDiamondLocalTrack.cc.

15  :
16  ts_index_( 0 ), mh_( 0 )
17 {}
int ts_index_
Time slice index.
int mh_
Multiple hits counter.
CTPPSDiamondLocalTrack::CTPPSDiamondLocalTrack ( const math::XYZPoint pos0,
const math::XYZPoint pos0_sigma,
float  t,
float  t_sigma,
int  oot_idx,
int  mult_hits 
)

Definition at line 19 of file CTPPSDiamondLocalTrack.cc.

20  :
21  CTPPSTimingLocalTrack( pos0, pos0_sigma, t, t_sigma ), ts_index_( oot_idx ), mh_( mult_hits )
22 {}
int ts_index_
Time slice index.
int mh_
Multiple hits counter.

Member Function Documentation

bool CTPPSDiamondLocalTrack::containsHit ( const CTPPSDiamondRecHit recHit,
float  tolerance = 0.1 
) const

Definition at line 27 of file CTPPSDiamondLocalTrack.cc.

References CTPPSTimingLocalTrack::containsHit(), CTPPSDiamondRecHit::getOOTIndex(), CTPPSDiamondRecHit::TIMESLICE_WITHOUT_LEADING, and ts_index_.

Referenced by CTPPSDiamondTrackRecognition::produceTracks().

28 {
30  return false;
31 
32  return ( recHit.getOOTIndex() == ts_index_ ||
34 }
int ts_index_
Time slice index.
const double tolerance
int getOOTIndex() const
bool containsHit(const CTPPSTimingRecHit &recHit, float tolerance=0.1f, CheckDimension check=CheckDimension::all) const
static constexpr int TIMESLICE_WITHOUT_LEADING
int CTPPSDiamondLocalTrack::getMultipleHits ( ) const
inline

Definition at line 35 of file CTPPSDiamondLocalTrack.h.

References mh_.

35 { return mh_; }
int mh_
Multiple hits counter.
int CTPPSDiamondLocalTrack::getOOTIndex ( ) const
inline

Definition at line 32 of file CTPPSDiamondLocalTrack.h.

References ts_index_.

32 { return ts_index_; }
int ts_index_
Time slice index.
void CTPPSDiamondLocalTrack::setMultipleHits ( int  i)
inline

Definition at line 34 of file CTPPSDiamondLocalTrack.h.

References mps_fire::i, and mh_.

34 { mh_ = i; }
int mh_
Multiple hits counter.
void CTPPSDiamondLocalTrack::setOOTIndex ( int  i)
inline

Definition at line 31 of file CTPPSDiamondLocalTrack.h.

References mps_fire::i, and ts_index_.

31 { ts_index_ = i; }
int ts_index_
Time slice index.

Member Data Documentation

int CTPPSDiamondLocalTrack::mh_
private

Multiple hits counter.

Definition at line 41 of file CTPPSDiamondLocalTrack.h.

Referenced by getMultipleHits(), and setMultipleHits().

int CTPPSDiamondLocalTrack::ts_index_
private

Time slice index.

Definition at line 39 of file CTPPSDiamondLocalTrack.h.

Referenced by containsHit(), getOOTIndex(), and setOOTIndex().