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 multipleHits () const
 
int ootIndex () 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)
 
bool isValid () const
 
int numberOfHits () const
 
int numberOfPlanes () 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 setTime (float t)
 
void setTimeSigma (float t_sigma)
 
void setValid (bool valid)
 
float time () const
 
float timeSigma () const
 
float x0 () const
 
float x0Sigma () const
 
float y0 () const
 
float y0Sigma () const
 
float z0 () const
 
float z0Sigma () const
 

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 : ts_index_(0), mh_(0) {}
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 17 of file CTPPSDiamondLocalTrack.cc.

19  : CTPPSTimingLocalTrack(pos0, pos0_sigma, t, t_sigma), ts_index_(oot_idx), mh_(mult_hits) {}
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 23 of file CTPPSDiamondLocalTrack.cc.

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

Referenced by CTPPSDiamondTrackRecognition::produceTracks().

23  {
25  return false;
26 
27  return (recHit.ootIndex() == ts_index_ ||
29 }
int ts_index_
Time slice index.
const double tolerance
bool containsHit(const CTPPSTimingRecHit &recHit, float tolerance=0.1f, CheckDimension check=CheckDimension::all) const
static constexpr int TIMESLICE_WITHOUT_LEADING
int CTPPSDiamondLocalTrack::multipleHits ( ) const
inline

Definition at line 34 of file CTPPSDiamondLocalTrack.h.

References mh_.

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

Definition at line 31 of file CTPPSDiamondLocalTrack.h.

References ts_index_.

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

Definition at line 33 of file CTPPSDiamondLocalTrack.h.

References mps_fire::i, and mh_.

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

Definition at line 30 of file CTPPSDiamondLocalTrack.h.

References mps_fire::i, and ts_index_.

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

Member Data Documentation

int CTPPSDiamondLocalTrack::mh_
private

Multiple hits counter.

Definition at line 40 of file CTPPSDiamondLocalTrack.h.

Referenced by multipleHits(), and setMultipleHits().

int CTPPSDiamondLocalTrack::ts_index_
private

Time slice index.

Definition at line 38 of file CTPPSDiamondLocalTrack.h.

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