CMS 3D CMS Logo

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

#include <CTPPSDiamondLocalTrack.h>

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 getNumOfHits () const
 
int getNumOfPlanes () const
 
int getOOTIndex () 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 setMultipleHits (const int i)
 
void setNumOfHits (const int num_hits)
 
void setNumOfPlanes (const int num_planes)
 
void setOOTIndex (const int i)
 
void setPosition (const math::XYZPoint &pos0)
 
void setPositionSigma (const math::XYZPoint &pos0_sigma)
 
void setT (const float t)
 
void setTSigma (const float t_sigma)
 
void setValid (bool valid)
 
virtual ~CTPPSDiamondLocalTrack ()
 

Private Attributes

int mh_
 Multiple hits counter. More...
 
int num_hits_
 number of hits participating in the track More...
 
int num_planes_
 number of planes participating in the track More...
 
math::XYZPoint pos0_
 initial track position More...
 
math::XYZPoint pos0_sigma_
 error on the initial track position More...
 
float t_
 
float t_sigma_
 
int ts_index_
 Time slice index. More...
 
bool valid_
 fit valid? More...
 

Detailed Description

Definition at line 18 of file CTPPSDiamondLocalTrack.h.

Constructor & Destructor Documentation

CTPPSDiamondLocalTrack::CTPPSDiamondLocalTrack ( )
inline

Definition at line 21 of file CTPPSDiamondLocalTrack.h.

21  :
22  num_hits_( 0 ), num_planes_( 0 ), valid_( true ),
23  t_( 0. ), t_sigma_( 0. ), ts_index_( 0 ), mh_( 0 ) {}
int ts_index_
Time slice index.
int num_planes_
number of planes participating in the track
int mh_
Multiple hits counter.
int num_hits_
number of hits participating in the track
CTPPSDiamondLocalTrack::CTPPSDiamondLocalTrack ( const math::XYZPoint pos0,
const math::XYZPoint pos0_sigma,
float  t,
float  t_sigma,
int  oot_idx,
int  mult_hits 
)
inline

Definition at line 24 of file CTPPSDiamondLocalTrack.h.

24  :
25  pos0_( pos0 ), pos0_sigma_( pos0_sigma ),
26  num_hits_( 0 ), num_planes_( 0 ), valid_( false ),
27  t_( t ), t_sigma_( t_sigma ), ts_index_( oot_idx ), mh_( mult_hits ) {}
int ts_index_
Time slice index.
int num_planes_
number of planes participating in the track
int mh_
Multiple hits counter.
math::XYZPoint pos0_
initial track position
int num_hits_
number of hits participating in the track
math::XYZPoint pos0_sigma_
error on the initial track position
virtual CTPPSDiamondLocalTrack::~CTPPSDiamondLocalTrack ( )
inlinevirtual

Definition at line 28 of file CTPPSDiamondLocalTrack.h.

28 {}

Member Function Documentation

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

Definition at line 30 of file CTPPSDiamondLocalTrack.h.

References CTPPSDiamondRecHit::getOOTIndex(), CTPPSTimingRecHit::getX(), CTPPSTimingRecHit::getXWidth(), CTPPSTimingRecHit::getZ(), pos0_, pos0_sigma_, CTPPSDiamondRecHit::TIMESLICE_WITHOUT_LEADING, tolerance, and ts_index_.

30  {
31  const float x_low = pos0_.x() - pos0_sigma_.x() - tolerance;
32  const float x_high = pos0_.x() + pos0_sigma_.x() + tolerance;
33  return ( ( recHit.getZ() * pos0_.z() > 0. )
35  && ( ( recHit.getX() + 0.5 * recHit.getXWidth() > x_low && recHit.getX() + 0.5 * recHit.getXWidth() < x_high )
36  || ( recHit.getX() - 0.5 * recHit.getXWidth() > x_low && recHit.getX() - 0.5 * recHit.getXWidth() < x_high )
37  || ( recHit.getX() - 0.5 * recHit.getXWidth() < x_low && recHit.getX() + 0.5 * recHit.getXWidth() > x_high ) ) );
38  }
float getX() const
int ts_index_
Time slice index.
const double tolerance
int getOOTIndex() const
float getZ() const
float getXWidth() const
math::XYZPoint pos0_
initial track position
static constexpr int TIMESLICE_WITHOUT_LEADING
math::XYZPoint pos0_sigma_
error on the initial track position
int CTPPSDiamondLocalTrack::getMultipleHits ( ) const
inline

Definition at line 79 of file CTPPSDiamondLocalTrack.h.

References mh_.

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

Definition at line 51 of file CTPPSDiamondLocalTrack.h.

References num_hits_.

51 { return num_hits_; }
int num_hits_
number of hits participating in the track
int CTPPSDiamondLocalTrack::getNumOfPlanes ( ) const
inline

Definition at line 52 of file CTPPSDiamondLocalTrack.h.

References num_planes_.

52 { return num_planes_; }
int num_planes_
number of planes participating in the track
int CTPPSDiamondLocalTrack::getOOTIndex ( ) const
inline

Definition at line 76 of file CTPPSDiamondLocalTrack.h.

References ts_index_.

76 { return ts_index_; }
int ts_index_
Time slice index.
float CTPPSDiamondLocalTrack::getT ( ) const
inline

Definition at line 67 of file CTPPSDiamondLocalTrack.h.

References t_.

Referenced by operator<().

67 { return t_; }
float CTPPSDiamondLocalTrack::getTSigma ( ) const
inline

Definition at line 68 of file CTPPSDiamondLocalTrack.h.

References t_sigma_.

float CTPPSDiamondLocalTrack::getX0 ( ) const
inline

Definition at line 42 of file CTPPSDiamondLocalTrack.h.

References pos0_.

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

42 { return pos0_.x(); }
math::XYZPoint pos0_
initial track position
float CTPPSDiamondLocalTrack::getX0Sigma ( ) const
inline

Definition at line 43 of file CTPPSDiamondLocalTrack.h.

References pos0_sigma_.

Referenced by channelAlignedWithTrack().

43 { return pos0_sigma_.x(); }
math::XYZPoint pos0_sigma_
error on the initial track position
float CTPPSDiamondLocalTrack::getY0 ( ) const
inline

Definition at line 45 of file CTPPSDiamondLocalTrack.h.

References pos0_.

45 { return pos0_.y(); }
math::XYZPoint pos0_
initial track position
float CTPPSDiamondLocalTrack::getY0Sigma ( ) const
inline

Definition at line 46 of file CTPPSDiamondLocalTrack.h.

References pos0_sigma_.

46 { return pos0_sigma_.y(); }
math::XYZPoint pos0_sigma_
error on the initial track position
float CTPPSDiamondLocalTrack::getZ0 ( ) const
inline

Definition at line 48 of file CTPPSDiamondLocalTrack.h.

References pos0_.

48 { return pos0_.z(); }
math::XYZPoint pos0_
initial track position
float CTPPSDiamondLocalTrack::getZ0Sigma ( ) const
inline

Definition at line 49 of file CTPPSDiamondLocalTrack.h.

References pos0_sigma_.

49 { return pos0_sigma_.z(); }
math::XYZPoint pos0_sigma_
error on the initial track position
bool CTPPSDiamondLocalTrack::isValid ( void  ) const
inline
void CTPPSDiamondLocalTrack::setMultipleHits ( const int  i)
inline

Definition at line 78 of file CTPPSDiamondLocalTrack.h.

References mps_fire::i, and mh_.

78 { mh_ = i; }
int mh_
Multiple hits counter.
void CTPPSDiamondLocalTrack::setNumOfHits ( const int  num_hits)
inline

Definition at line 59 of file CTPPSDiamondLocalTrack.h.

References num_hits_.

59 { num_hits_ = num_hits; }
int num_hits_
number of hits participating in the track
void CTPPSDiamondLocalTrack::setNumOfPlanes ( const int  num_planes)
inline

Definition at line 60 of file CTPPSDiamondLocalTrack.h.

References num_planes_.

60 { num_planes_ = num_planes; }
int num_planes_
number of planes participating in the track
void CTPPSDiamondLocalTrack::setOOTIndex ( const int  i)
inline

Definition at line 75 of file CTPPSDiamondLocalTrack.h.

References mps_fire::i, and ts_index_.

75 { ts_index_ = i; }
int ts_index_
Time slice index.
void CTPPSDiamondLocalTrack::setPosition ( const math::XYZPoint pos0)
inline

Definition at line 56 of file CTPPSDiamondLocalTrack.h.

References pos0_.

56 { pos0_ = pos0; }
math::XYZPoint pos0_
initial track position
void CTPPSDiamondLocalTrack::setPositionSigma ( const math::XYZPoint pos0_sigma)
inline

Definition at line 57 of file CTPPSDiamondLocalTrack.h.

References pos0_sigma_.

57 { pos0_sigma_ = pos0_sigma; }
math::XYZPoint pos0_sigma_
error on the initial track position
void CTPPSDiamondLocalTrack::setT ( const float  t)
inline

Definition at line 72 of file CTPPSDiamondLocalTrack.h.

References lumiQTWidget::t, and t_.

void CTPPSDiamondLocalTrack::setTSigma ( const float  t_sigma)
inline

Definition at line 73 of file CTPPSDiamondLocalTrack.h.

References t_sigma_.

73 { t_sigma_ = t_sigma; }
void CTPPSDiamondLocalTrack::setValid ( bool  valid)
inline

Definition at line 63 of file CTPPSDiamondLocalTrack.h.

References valid_.

63 { valid_ = valid; }

Member Data Documentation

int CTPPSDiamondLocalTrack::mh_
private

Multiple hits counter.

Definition at line 105 of file CTPPSDiamondLocalTrack.h.

Referenced by getMultipleHits(), and setMultipleHits().

int CTPPSDiamondLocalTrack::num_hits_
private

number of hits participating in the track

Definition at line 90 of file CTPPSDiamondLocalTrack.h.

Referenced by getNumOfHits(), and setNumOfHits().

int CTPPSDiamondLocalTrack::num_planes_
private

number of planes participating in the track

Definition at line 93 of file CTPPSDiamondLocalTrack.h.

Referenced by getNumOfPlanes(), and setNumOfPlanes().

math::XYZPoint CTPPSDiamondLocalTrack::pos0_
private

initial track position

Definition at line 85 of file CTPPSDiamondLocalTrack.h.

Referenced by containsHit(), getX0(), getY0(), getZ0(), and setPosition().

math::XYZPoint CTPPSDiamondLocalTrack::pos0_sigma_
private

error on the initial track position

Definition at line 87 of file CTPPSDiamondLocalTrack.h.

Referenced by containsHit(), getX0Sigma(), getY0Sigma(), getZ0Sigma(), and setPositionSigma().

float CTPPSDiamondLocalTrack::t_
private

Definition at line 100 of file CTPPSDiamondLocalTrack.h.

Referenced by getT(), and setT().

float CTPPSDiamondLocalTrack::t_sigma_
private

Definition at line 101 of file CTPPSDiamondLocalTrack.h.

Referenced by getTSigma(), and setTSigma().

int CTPPSDiamondLocalTrack::ts_index_
private

Time slice index.

Definition at line 103 of file CTPPSDiamondLocalTrack.h.

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

bool CTPPSDiamondLocalTrack::valid_
private

fit valid?

Definition at line 96 of file CTPPSDiamondLocalTrack.h.

Referenced by isValid(), and setValid().