TrkClsSlpSR Class Reference

#include <TrkClsSlpSR.h>

List of all members.

Public Member Functions

 TrkClsSlpSR ()
 TrkClsSlpSR (TrackClusterSR *)
 TrkClsSlpSR (const TrkClsSlpSR &rhs)
virtual ~TrkClsSlpSR ()
Bool_t IsEquivalent (const TrkClsSlpSR *rhs) const
Double_t GetForwardSlope ()
Double_t GetBackwardSlope ()
Bool_t GetIndex ()
void SetForwardSlope (Double_t s)
void SetBackwardSlope (Double_t s)
void SetIndex (Bool_t i)

Public Attributes

TrackClusterSRfTrackCluster

Private Attributes

Double_t fForwardSlope
Double_t fBackwardSlope
Bool_t fIndex

Detailed Description

Definition at line 20 of file TrkClsSlpSR.h.


Constructor & Destructor Documentation

TrkClsSlpSR::TrkClsSlpSR (  ) 

Definition at line 23 of file TrkClsSlpSR.cxx.

00023                          :
00024   fTrackCluster(0)
00025 , fForwardSlope(0.)
00026 , fBackwardSlope(0.)
00027 , fIndex(0)
00028 {
00029 }

TrkClsSlpSR::TrkClsSlpSR ( TrackClusterSR tc  ) 

Definition at line 32 of file TrkClsSlpSR.cxx.

References fTrackCluster.

00032                                            :
00033   fTrackCluster(0)
00034 , fForwardSlope(0.)
00035 , fBackwardSlope(0.)
00036 , fIndex(0)
00037 {
00038 
00039 // copy trackcluster
00040   if (tc) fTrackCluster = new TrackClusterSR(*tc);
00041 }

TrkClsSlpSR::TrkClsSlpSR ( const TrkClsSlpSR rhs  ) 

Definition at line 44 of file TrkClsSlpSR.cxx.

References fTrackCluster.

00044                                                :   // Copy Constructor
00045   TObject(rhs)
00046 , fTrackCluster(0)
00047 , fForwardSlope(rhs.fForwardSlope)
00048 , fBackwardSlope(rhs.fBackwardSlope)
00049 , fIndex(rhs.fIndex)
00050 {
00051   if (rhs.fTrackCluster)
00052     fTrackCluster = new TrackClusterSR(*rhs.fTrackCluster);
00053 }

TrkClsSlpSR::~TrkClsSlpSR (  )  [virtual]

Definition at line 56 of file TrkClsSlpSR.cxx.

References fTrackCluster.

00057 {
00058   delete fTrackCluster;
00059 }


Member Function Documentation

Double_t TrkClsSlpSR::GetBackwardSlope (  )  [inline]

Definition at line 33 of file TrkClsSlpSR.h.

References fBackwardSlope.

Referenced by Track2DSR::CalculateBackwardSlope(), and Track2DSR::GetBackwardSlope().

00033 {return fBackwardSlope;}

Double_t TrkClsSlpSR::GetForwardSlope (  )  [inline]

Definition at line 32 of file TrkClsSlpSR.h.

References fForwardSlope.

Referenced by Track2DSR::GetForwardSlope().

00032 { return fForwardSlope;}

Bool_t TrkClsSlpSR::GetIndex (  )  [inline]

Definition at line 34 of file TrkClsSlpSR.h.

References fIndex.

00034 {return fIndex;}

Bool_t TrkClsSlpSR::IsEquivalent ( const TrkClsSlpSR rhs  )  const

Definition at line 62 of file TrkClsSlpSR.cxx.

References fBackwardSlope, fForwardSlope, fIndex, fTrackCluster, Msg::kDebug, and MSG.

Referenced by Track2DSR::operator==().

00063 {
00064   if (!(this->fForwardSlope  == rhs->fForwardSlope   &&
00065         this->fBackwardSlope == rhs->fBackwardSlope  &&
00066         this->fIndex         == rhs->fIndex          )) {
00067     MSG("VCand", Msg::kDebug)
00068                           << "TrkClsSlpSR primitive members [not ok]\n";
00069     return false;
00070   }
00071 
00072   if (this->fTrackCluster == rhs->fTrackCluster) {
00073     MSG("VCand", Msg::kDebug)
00074                      << "TrkClsSlpSR::fTrackCluster \t[shallow copy]\n";
00075     return false;
00076   }
00077 
00078   if (!((this->fTrackCluster)->IsEquivalent(rhs->fTrackCluster))) {
00079     MSG("VCand", Msg::kDebug) << "TrkClsSlpSR fTrackCluster [not ok]\n";
00080     return false;
00081   }
00082 
00083   return true;
00084 }

void TrkClsSlpSR::SetBackwardSlope ( Double_t  s  )  [inline]

Definition at line 36 of file TrkClsSlpSR.h.

References fBackwardSlope.

Referenced by Track2DSR::Add(), Track2DSR::CalculateBackwardSlope(), and Track2DSR::SetCluster().

00036 {fBackwardSlope=s;}

void TrkClsSlpSR::SetForwardSlope ( Double_t  s  )  [inline]

Definition at line 35 of file TrkClsSlpSR.h.

References fForwardSlope.

Referenced by Track2DSR::Add(), and Track2DSR::SetCluster().

00035 {fForwardSlope=s;}

void TrkClsSlpSR::SetIndex ( Bool_t  i  )  [inline]

Definition at line 37 of file TrkClsSlpSR.h.

References fIndex.

Referenced by Track2DSR::Add(), and Track2DSR::SetCluster().

00037 {fIndex=i;}


Member Data Documentation

Double_t TrkClsSlpSR::fBackwardSlope [private]

Definition at line 41 of file TrkClsSlpSR.h.

Referenced by GetBackwardSlope(), IsEquivalent(), and SetBackwardSlope().

Double_t TrkClsSlpSR::fForwardSlope [private]

Definition at line 40 of file TrkClsSlpSR.h.

Referenced by GetForwardSlope(), IsEquivalent(), and SetForwardSlope().

Bool_t TrkClsSlpSR::fIndex [private]

Definition at line 42 of file TrkClsSlpSR.h.

Referenced by GetIndex(), IsEquivalent(), and SetIndex().


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1