CandShieldPlankHandle Class Reference

#include <CandShieldPlankHandle.h>

Inheritance diagram for CandShieldPlankHandle:
CandHandle

List of all members.

Public Member Functions

 CandShieldPlankHandle ()
 CandShieldPlankHandle (const CandShieldPlankHandle &rhs)
 CandShieldPlankHandle (CandShieldPlank *candidate)
virtual ~CandShieldPlankHandle ()
virtual CandShieldPlankHandleDupHandle () const
void SetSection (const int section)
void SetSubSection (const int section)
void SetMeanX (const double meanx)
void SetMeanY (const double meany)
void SetMeanZ (const double *meanz)
void SetMeanT (const double *meant)
void SetMeanCorrectedT (const double *meant)
void SetChargePE (const double *pe)
void SetNErrors (const int errors)
Int_t GetSection () const
Int_t GetSubSection () const
Double_t GetMeanX () const
Double_t GetMeanY () const
Double_t GetMeanZ (StripEnd::StripEnd_t stripend=StripEnd::kWhole) const
Double_t GetMeanTime (StripEnd::StripEnd_t stripend=StripEnd::kWhole) const
Double_t GetMeanCorrectedTime (StripEnd::StripEnd_t stripend=StripEnd::kWhole) const
Double_t GetCharge (StripEnd::StripEnd_t stripend=StripEnd::kWhole) const
Int_t GetNErrors () const
 ClassDef (CandShieldPlankHandle, 2)

Detailed Description

Definition at line 27 of file CandShieldPlankHandle.h.


Constructor & Destructor Documentation

CandShieldPlankHandle::CandShieldPlankHandle (  ) 

Definition at line 23 of file CandShieldPlankHandle.cxx.

Referenced by DupHandle().

00024 {
00025 }

CandShieldPlankHandle::CandShieldPlankHandle ( const CandShieldPlankHandle rhs  ) 

Definition at line 26 of file CandShieldPlankHandle.cxx.

00027     : CandHandle(handle)
00028 {
00029 }

CandShieldPlankHandle::CandShieldPlankHandle ( CandShieldPlank candidate  ) 

Definition at line 30 of file CandShieldPlankHandle.cxx.

00031     : CandHandle(candidate)
00032 {
00033 }

CandShieldPlankHandle::~CandShieldPlankHandle (  )  [virtual]

Definition at line 34 of file CandShieldPlankHandle.cxx.

00035 {
00036 }


Member Function Documentation

CandShieldPlankHandle::ClassDef ( CandShieldPlankHandle  ,
 
)
CandShieldPlankHandle * CandShieldPlankHandle::DupHandle (  )  const [virtual]

Reimplemented from CandHandle.

Definition at line 38 of file CandShieldPlankHandle.cxx.

References CandShieldPlankHandle().

00039 {
00040     return new CandShieldPlankHandle(*this);
00041 }

Double_t CandShieldPlankHandle::GetCharge ( StripEnd::StripEnd_t  stripend = StripEnd::kWhole  )  const

Definition at line 102 of file CandShieldPlankHandle.cxx.

References CandShieldPlank::fChargePE, CandHandle::GetCandBase(), StripEnd::kNegative, and StripEnd::kPositive.

00103 {
00104   const CandShieldPlank *candstrip = dynamic_cast<const CandShieldPlank *>(GetCandBase());
00105   switch (stripend) {
00106   case StripEnd::kNegative:
00107     return candstrip->fChargePE[0];
00108     break;
00109   case StripEnd::kPositive:
00110     return candstrip->fChargePE[1];
00111     break;
00112   default:
00113     return (candstrip->fChargePE[2]);
00114     break;
00115   }
00116 } 

Double_t CandShieldPlankHandle::GetMeanCorrectedTime ( StripEnd::StripEnd_t  stripend = StripEnd::kWhole  )  const

Definition at line 162 of file CandShieldPlankHandle.cxx.

References CandShieldPlank::fMeanCorrectedTime, CandHandle::GetCandBase(), StripEnd::kNegative, and StripEnd::kPositive.

Referenced by AlgShieldPlank::RunAlg().

00163 { 
00164   const CandShieldPlank *candstrip = dynamic_cast<const CandShieldPlank *>(GetCandBase());
00165   switch (stpend) {
00166   case StripEnd::kNegative:
00167     return (candstrip->fMeanCorrectedTime[0]);
00168     break;
00169   case StripEnd::kPositive:
00170     return (candstrip->fMeanCorrectedTime[1]);
00171     break;
00172   default:
00173     return (candstrip->fMeanCorrectedTime[2]);
00174     break;
00175   }
00176 }

Double_t CandShieldPlankHandle::GetMeanTime ( StripEnd::StripEnd_t  stripend = StripEnd::kWhole  )  const

Definition at line 146 of file CandShieldPlankHandle.cxx.

References CandShieldPlank::fMeanTime, CandHandle::GetCandBase(), StripEnd::kNegative, and StripEnd::kPositive.

00147 { 
00148   const CandShieldPlank *candstrip = dynamic_cast<const CandShieldPlank *>(GetCandBase());
00149   switch (stpend) {
00150   case StripEnd::kNegative:
00151     return candstrip->fMeanTime[0];
00152     break;
00153   case StripEnd::kPositive:
00154     return candstrip->fMeanTime[1];
00155     break;
00156   default:
00157     return (candstrip->fMeanTime[2]);
00158     break;
00159   }
00160 }

Double_t CandShieldPlankHandle::GetMeanX (  )  const

Definition at line 118 of file CandShieldPlankHandle.cxx.

References CandShieldPlank::fMeanX, and CandHandle::GetCandBase().

00119 {
00120   const CandShieldPlank *candstrip = dynamic_cast<const CandShieldPlank *>(GetCandBase());
00121   return (candstrip->fMeanX);
00122 }

Double_t CandShieldPlankHandle::GetMeanY (  )  const

Definition at line 124 of file CandShieldPlankHandle.cxx.

References CandShieldPlank::fMeanY, and CandHandle::GetCandBase().

00125 {
00126   const CandShieldPlank *candstrip = dynamic_cast<const CandShieldPlank *>(GetCandBase());
00127   return (candstrip->fMeanY);
00128 }

Double_t CandShieldPlankHandle::GetMeanZ ( StripEnd::StripEnd_t  stripend = StripEnd::kWhole  )  const

Definition at line 130 of file CandShieldPlankHandle.cxx.

References CandShieldPlank::fMeanZ, CandHandle::GetCandBase(), StripEnd::kNegative, and StripEnd::kPositive.

00131 {
00132   const CandShieldPlank *candstrip = dynamic_cast<const CandShieldPlank *>(GetCandBase());
00133   switch (stpend) {
00134   case StripEnd::kNegative:
00135     return candstrip->fMeanZ[0];
00136     break;
00137   case StripEnd::kPositive:
00138     return candstrip->fMeanZ[1];
00139     break;
00140   default:
00141     return (candstrip->fMeanZ[2]);
00142     break;
00143   }
00144 }

Int_t CandShieldPlankHandle::GetNErrors (  )  const

Definition at line 190 of file CandShieldPlankHandle.cxx.

References CandShieldPlank::fNErrors, and CandHandle::GetCandBase().

00191 {
00192   const CandShieldPlank *candstrip = dynamic_cast<const CandShieldPlank *>(GetCandBase());
00193   return (candstrip->fNErrors);
00194 }

Int_t CandShieldPlankHandle::GetSection (  )  const

Definition at line 178 of file CandShieldPlankHandle.cxx.

References CandShieldPlank::fSection, and CandHandle::GetCandBase().

00179 {
00180   const CandShieldPlank *candstrip = dynamic_cast<const CandShieldPlank *>(GetCandBase());
00181   return (candstrip->fSection);
00182 }

Int_t CandShieldPlankHandle::GetSubSection (  )  const

Definition at line 184 of file CandShieldPlankHandle.cxx.

References CandShieldPlank::fSubSection, and CandHandle::GetCandBase().

00185 {
00186   const CandShieldPlank *candstrip = dynamic_cast<const CandShieldPlank *>(GetCandBase());
00187   return (candstrip->fSubSection);
00188 }

void CandShieldPlankHandle::SetChargePE ( const double *  pe  ) 

Definition at line 44 of file CandShieldPlankHandle.cxx.

References CandShieldPlank::fChargePE, and CandHandle::GetOwnedCandBase().

Referenced by AlgShieldPlank::RunAlg().

00045 {
00046   CandShieldPlank *candstrip = dynamic_cast<CandShieldPlank*>(GetOwnedCandBase());
00047   for(unsigned int i=0; i<3; ++i)
00048     candstrip->fChargePE[i]=charge[i];
00049 }

void CandShieldPlankHandle::SetMeanCorrectedT ( const double *  meant  ) 

Definition at line 77 of file CandShieldPlankHandle.cxx.

References CandShieldPlank::fMeanCorrectedTime, and CandHandle::GetOwnedCandBase().

Referenced by AlgShieldPlank::RunAlg().

00078 {
00079   CandShieldPlank *candstrip = dynamic_cast<CandShieldPlank*>(GetOwnedCandBase());
00080   for(unsigned int i=0; i<3; ++i)
00081     candstrip->fMeanCorrectedTime[i]=time[i];
00082 }

void CandShieldPlankHandle::SetMeanT ( const double *  meant  ) 

Definition at line 70 of file CandShieldPlankHandle.cxx.

References CandShieldPlank::fMeanTime, and CandHandle::GetOwnedCandBase().

Referenced by AlgShieldPlank::RunAlg().

00071 {
00072   CandShieldPlank *candstrip = dynamic_cast<CandShieldPlank*>(GetOwnedCandBase());
00073   for(unsigned int i=0; i<3; ++i)
00074     candstrip->fMeanTime[i]=time[i];
00075 }

void CandShieldPlankHandle::SetMeanX ( const double  meanx  ) 

Definition at line 51 of file CandShieldPlankHandle.cxx.

References CandShieldPlank::fMeanX, and CandHandle::GetOwnedCandBase().

Referenced by AlgShieldPlank::RunAlg().

00052 {
00053   CandShieldPlank *candstrip = dynamic_cast<CandShieldPlank*>(GetOwnedCandBase());
00054   candstrip->fMeanX=x;
00055 }

void CandShieldPlankHandle::SetMeanY ( const double  meany  ) 

Definition at line 57 of file CandShieldPlankHandle.cxx.

References CandShieldPlank::fMeanY, and CandHandle::GetOwnedCandBase().

Referenced by AlgShieldPlank::RunAlg().

00058 {
00059   CandShieldPlank *candstrip = dynamic_cast<CandShieldPlank*>(GetOwnedCandBase());
00060   candstrip->fMeanY=y;
00061 }

void CandShieldPlankHandle::SetMeanZ ( const double *  meanz  ) 

Definition at line 63 of file CandShieldPlankHandle.cxx.

References CandShieldPlank::fMeanZ, and CandHandle::GetOwnedCandBase().

Referenced by AlgShieldPlank::RunAlg().

00064 {
00065   CandShieldPlank *candstrip = dynamic_cast<CandShieldPlank*>(GetOwnedCandBase());
00066   for(unsigned int i=0; i<3; ++i)
00067     candstrip->fMeanZ[i]=z[i];
00068 }

void CandShieldPlankHandle::SetNErrors ( const int  errors  ) 

Definition at line 84 of file CandShieldPlankHandle.cxx.

References CandShieldPlank::fNErrors, and CandHandle::GetOwnedCandBase().

Referenced by AlgShieldPlank::RunAlg().

00085 {
00086   CandShieldPlank *candstrip = dynamic_cast<CandShieldPlank*>(GetOwnedCandBase());
00087   candstrip->fNErrors = errors;  
00088 }

void CandShieldPlankHandle::SetSection ( const int  section  ) 

Definition at line 90 of file CandShieldPlankHandle.cxx.

References CandShieldPlank::fSection, and CandHandle::GetOwnedCandBase().

Referenced by AlgShieldPlank::RunAlg().

00091 {
00092   CandShieldPlank *candstrip = dynamic_cast<CandShieldPlank*>(GetOwnedCandBase());
00093   candstrip->fSection = section;
00094 }

void CandShieldPlankHandle::SetSubSection ( const int  section  ) 

Definition at line 96 of file CandShieldPlankHandle.cxx.

References CandShieldPlank::fSubSection, and CandHandle::GetOwnedCandBase().

Referenced by AlgShieldPlank::RunAlg().

00097 {
00098   CandShieldPlank *candstrip = dynamic_cast<CandShieldPlank*>(GetOwnedCandBase());
00099   candstrip->fSubSection = section;
00100 }


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1