FarDetShieldPlankHandle Class Reference

#include <FarDetShieldPlankHandle.h>

Inheritance diagram for FarDetShieldPlankHandle:
CandHandle

List of all members.

Public Member Functions

 FarDetShieldPlankHandle ()
 FarDetShieldPlankHandle (const FarDetShieldPlankHandle &csh)
 FarDetShieldPlankHandle (FarDetShieldPlank *cs)
virtual ~FarDetShieldPlankHandle ()
virtual FarDetShieldPlankHandleDupHandle () const
virtual void Trace (const char *c) const
void SetSection (Int_t section)
void SetSubSection (Int_t subsection)
void SetPlane (Int_t plane)
void SetPlank (Int_t plank)
void SetNStrips (Int_t nstrips)
void SetGeomErrors (Int_t nerrors)
void SetX (Double_t X)
void SetY (Double_t Y)
void SetZ (Double_t *Z)
void SetTime (CalTimeType::CalTimeType_t caltype_t, Double_t *time)
void SetCharge (CalDigitType::CalDigitType_t caltype_t, Double_t *charge)
void SetFibreLengths (Double_t *green, Double_t *wls, Double_t *clear, Double_t half)
Int_t GetSection () const
Int_t GetSubSection () const
Int_t GetPlane () const
Int_t GetPlank () const
Int_t GetNStrips () const
Int_t GetGeomErrors () const
Double_t GetX () const
Double_t GetY () const
Double_t GetZ (StripEnd::StripEnd_t stripend_t) const
Double_t GetTime () const
Double_t GetTime (StripEnd::StripEnd_t stripend_t) const
Double_t GetTime (CalTimeType::CalTimeType_t caltype_t) const
Double_t GetTime (StripEnd::StripEnd_t stripend_t, CalTimeType::CalTimeType_t caltype_t) const
Double_t GetTime (CalTimeType::CalTimeType_t caltype_t, StripEnd::StripEnd_t stripend_t) const
Double_t GetCharge () const
Double_t GetCharge (StripEnd::StripEnd_t stripend_t) const
Double_t GetCharge (CalDigitType::CalDigitType_t caltype_t) const
Double_t GetCharge (StripEnd::StripEnd_t stripend_t, CalDigitType::CalDigitType_t caltype_t) const
Double_t GetCharge (CalDigitType::CalDigitType_t caltype_t, StripEnd::StripEnd_t stripend_t) const
Double_t GetGreenFibre (StripEnd::StripEnd_t stripend_t) const
Double_t GetWlsPigtail (StripEnd::StripEnd_t stripend_t) const
Double_t GetClearFibre (StripEnd::StripEnd_t stripend_t) const
Double_t GetHalfLength () const
 ClassDef (FarDetShieldPlankHandle, 1)

Detailed Description

Definition at line 13 of file FarDetShieldPlankHandle.h.


Constructor & Destructor Documentation

FarDetShieldPlankHandle::FarDetShieldPlankHandle (  ) 

Definition at line 6 of file FarDetShieldPlankHandle.cxx.

Referenced by DupHandle().

00007 {
00008 
00009 }

FarDetShieldPlankHandle::FarDetShieldPlankHandle ( const FarDetShieldPlankHandle csh  ) 

Definition at line 11 of file FarDetShieldPlankHandle.cxx.

00011                                                                                    :
00012   CandHandle(csh)
00013 {
00014 
00015 }

FarDetShieldPlankHandle::FarDetShieldPlankHandle ( FarDetShieldPlank cs  ) 

Definition at line 17 of file FarDetShieldPlankHandle.cxx.

00017                                                                       :
00018   CandHandle(cs)
00019 {
00020 
00021 }

FarDetShieldPlankHandle::~FarDetShieldPlankHandle (  )  [virtual]

Definition at line 23 of file FarDetShieldPlankHandle.cxx.

00024 {
00025 
00026 }


Member Function Documentation

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

Reimplemented from CandHandle.

Definition at line 28 of file FarDetShieldPlankHandle.cxx.

References FarDetShieldPlankHandle().

00029 {
00030   return (new FarDetShieldPlankHandle(*this));
00031 }

Double_t FarDetShieldPlankHandle::GetCharge ( CalDigitType::CalDigitType_t  caltype_t,
StripEnd::StripEnd_t  stripend_t 
) const

Definition at line 295 of file FarDetShieldPlankHandle.cxx.

References GetCharge().

00296 {
00297   return this->GetCharge(stripend_t,caltype_t);
00298 }

Double_t FarDetShieldPlankHandle::GetCharge ( StripEnd::StripEnd_t  stripend_t,
CalDigitType::CalDigitType_t  caltype_t 
) const

Definition at line 261 of file FarDetShieldPlankHandle.cxx.

References FarDetShieldPlank::fChargeNone, FarDetShieldPlank::fChargePE, CandHandle::GetCandBase(), StripEnd::kNegative, CalDigitType::kNone, CalDigitType::kPE, and StripEnd::kPositive.

00262 {    
00263   const FarDetShieldPlank* myplank = dynamic_cast<const FarDetShieldPlank*>(GetCandBase());
00264  
00265   Double_t charge[2];
00266 
00267   switch (caltype_t) {
00268     case CalDigitType::kNone:
00269       charge[0] = myplank->fChargeNone[0];
00270       charge[1] = myplank->fChargeNone[1];
00271       break;
00272     case CalDigitType::kPE:
00273       charge[0]=myplank->fChargePE[0];
00274       charge[1]=myplank->fChargePE[1];
00275       break;
00276     default:    
00277       charge[0]=myplank->fChargePE[0];
00278       charge[1]=myplank->fChargePE[1];
00279       break;  
00280   }
00281 
00282   switch (stripend_t) {
00283     case StripEnd::kNegative:
00284       return charge[0];
00285       break;
00286     case StripEnd::kPositive:
00287       return charge[1];
00288       break;
00289     default:
00290       return charge[0]+charge[1];
00291       break;
00292   }
00293 }

Double_t FarDetShieldPlankHandle::GetCharge ( CalDigitType::CalDigitType_t  caltype_t  )  const

Definition at line 256 of file FarDetShieldPlankHandle.cxx.

References GetCharge(), and StripEnd::kWhole.

00257 {
00258   return this->GetCharge(StripEnd::kWhole,caltype_t);
00259 }

Double_t FarDetShieldPlankHandle::GetCharge ( StripEnd::StripEnd_t  stripend_t  )  const

Definition at line 251 of file FarDetShieldPlankHandle.cxx.

References GetCharge(), and CalDigitType::kPE.

00252 {
00253   return this->GetCharge(stripend_t,CalDigitType::kPE);
00254 }

Double_t FarDetShieldPlankHandle::GetCharge (  )  const

Definition at line 246 of file FarDetShieldPlankHandle.cxx.

References StripEnd::kWhole.

Referenced by GetCharge(), and AlgFarDetShieldPlank::RunAlg().

00247 {
00248   return this->GetCharge(StripEnd::kWhole);
00249 }

Double_t FarDetShieldPlankHandle::GetClearFibre ( StripEnd::StripEnd_t  stripend_t  )  const

Definition at line 332 of file FarDetShieldPlankHandle.cxx.

References FarDetShieldPlank::fClearFibre, CandHandle::GetCandBase(), StripEnd::kNegative, and StripEnd::kPositive.

00333 {
00334   const FarDetShieldPlank* myplank = dynamic_cast<const FarDetShieldPlank*>(GetCandBase());
00335   switch (stripend_t) {
00336     case StripEnd::kNegative:
00337       return myplank->fClearFibre[0];
00338       break;
00339     case StripEnd::kPositive:
00340       return myplank->fClearFibre[1];
00341       break;
00342     default:
00343       return 0.0;
00344       break;
00345   }
00346 }

Int_t FarDetShieldPlankHandle::GetGeomErrors (  )  const

Definition at line 158 of file FarDetShieldPlankHandle.cxx.

References CandHandle::GetCandBase().

00159 {
00160   return dynamic_cast<const FarDetShieldPlank*>(GetCandBase())->fGeomErrors;
00161 }

Double_t FarDetShieldPlankHandle::GetGreenFibre ( StripEnd::StripEnd_t  stripend_t  )  const

Definition at line 300 of file FarDetShieldPlankHandle.cxx.

References FarDetShieldPlank::fGreenFibre, CandHandle::GetCandBase(), StripEnd::kNegative, and StripEnd::kPositive.

00301 {
00302   const FarDetShieldPlank* myplank = dynamic_cast<const FarDetShieldPlank*>(GetCandBase());
00303   switch (stripend_t) {
00304     case StripEnd::kNegative:
00305       return myplank->fGreenFibre[0];
00306       break;
00307     case StripEnd::kPositive:
00308       return myplank->fGreenFibre[1];
00309       break;
00310     default:
00311       return 0.0;
00312       break;
00313   }
00314 }

Double_t FarDetShieldPlankHandle::GetHalfLength (  )  const

Definition at line 348 of file FarDetShieldPlankHandle.cxx.

References CandHandle::GetCandBase().

00349 {
00350   return dynamic_cast<const FarDetShieldPlank*>(GetCandBase())->fHalfLength;
00351 }

Int_t FarDetShieldPlankHandle::GetNStrips (  )  const

Definition at line 153 of file FarDetShieldPlankHandle.cxx.

References CandHandle::GetCandBase().

00154 {
00155   return dynamic_cast<const FarDetShieldPlank*>(GetCandBase())->fNStrips;
00156 }

Int_t FarDetShieldPlankHandle::GetPlane (  )  const

Definition at line 143 of file FarDetShieldPlankHandle.cxx.

References CandHandle::GetCandBase().

Referenced by AlgFarDetShieldPlank::RunAlg().

00144 {
00145   return dynamic_cast<const FarDetShieldPlank*>(GetCandBase())->fPlane;
00146 }

Int_t FarDetShieldPlankHandle::GetPlank (  )  const

Definition at line 148 of file FarDetShieldPlankHandle.cxx.

References CandHandle::GetCandBase().

00149 {
00150   return dynamic_cast<const FarDetShieldPlank*>(GetCandBase())->fPlank;
00151 }

Int_t FarDetShieldPlankHandle::GetSection (  )  const

Definition at line 133 of file FarDetShieldPlankHandle.cxx.

References CandHandle::GetCandBase().

Referenced by AlgFarDetShieldPlank::RunAlg().

00134 {
00135   return dynamic_cast<const FarDetShieldPlank*>(GetCandBase())->fSection;
00136 }

Int_t FarDetShieldPlankHandle::GetSubSection (  )  const

Definition at line 138 of file FarDetShieldPlankHandle.cxx.

References CandHandle::GetCandBase().

Referenced by AlgFarDetShieldPlank::RunAlg().

00139 {
00140   return dynamic_cast<const FarDetShieldPlank*>(GetCandBase())->fSubSection;
00141 }

Double_t FarDetShieldPlankHandle::GetTime ( CalTimeType::CalTimeType_t  caltype_t,
StripEnd::StripEnd_t  stripend_t 
) const

Definition at line 241 of file FarDetShieldPlankHandle.cxx.

References GetTime().

00242 {
00243   return this->GetTime(stripend_t,caltype_t);
00244 }

Double_t FarDetShieldPlankHandle::GetTime ( StripEnd::StripEnd_t  stripend_t,
CalTimeType::CalTimeType_t  caltype_t 
) const

Definition at line 204 of file FarDetShieldPlankHandle.cxx.

References FarDetShieldPlank::fCalTime, FarDetShieldPlank::fRawTime, CandHandle::GetCandBase(), StripEnd::kNegative, CalTimeType::kNone, StripEnd::kPositive, and CalTimeType::kT0.

00205 {
00206   const FarDetShieldPlank* myplank = dynamic_cast<const FarDetShieldPlank*>(GetCandBase());
00207  
00208   Double_t time[3];
00209  
00210   switch (caltype_t) {
00211     case CalTimeType::kNone:
00212       time[0] = myplank->fRawTime[0];
00213       time[1] = myplank->fRawTime[1];
00214       time[2] = myplank->fRawTime[2];
00215       break;
00216     case CalTimeType::kT0:
00217       time[0] = myplank->fCalTime[0];
00218       time[1] = myplank->fCalTime[1];
00219       time[2] = myplank->fCalTime[2];
00220       break;
00221     default:
00222       time[0] = myplank->fCalTime[0];
00223       time[1] = myplank->fCalTime[1];
00224       time[2] = myplank->fCalTime[2];
00225       break;
00226   }
00227  
00228   switch (stripend_t) {
00229     case StripEnd::kNegative:
00230       return time[0];
00231       break;
00232     case StripEnd::kPositive:
00233       return time[1];
00234       break;
00235     default:
00236       return time[2];
00237       break;
00238   }
00239 }

Double_t FarDetShieldPlankHandle::GetTime ( CalTimeType::CalTimeType_t  caltype_t  )  const

Definition at line 199 of file FarDetShieldPlankHandle.cxx.

References GetTime(), and StripEnd::kWhole.

00200 {
00201   return this->GetTime(StripEnd::kWhole,caltype_t);
00202 }

Double_t FarDetShieldPlankHandle::GetTime ( StripEnd::StripEnd_t  stripend_t  )  const

Definition at line 194 of file FarDetShieldPlankHandle.cxx.

References GetTime(), and CalTimeType::kT0.

00195 {
00196   return this->GetTime(stripend_t,CalTimeType::kT0);
00197 }

Double_t FarDetShieldPlankHandle::GetTime (  )  const

Definition at line 189 of file FarDetShieldPlankHandle.cxx.

References CalTimeType::kT0, and StripEnd::kWhole.

Referenced by GetTime(), and AlgFarDetShieldPlank::RunAlg().

00190 {
00191   return this->GetTime(StripEnd::kWhole,CalTimeType::kT0);
00192 }

Double_t FarDetShieldPlankHandle::GetWlsPigtail ( StripEnd::StripEnd_t  stripend_t  )  const

Definition at line 316 of file FarDetShieldPlankHandle.cxx.

References FarDetShieldPlank::fWlsPigtail, CandHandle::GetCandBase(), StripEnd::kNegative, and StripEnd::kPositive.

00317 {
00318   const FarDetShieldPlank* myplank = dynamic_cast<const FarDetShieldPlank*>(GetCandBase());
00319   switch (stripend_t) {
00320     case StripEnd::kNegative:
00321       return myplank->fWlsPigtail[0];
00322       break;
00323     case StripEnd::kPositive:
00324       return myplank->fWlsPigtail[1];
00325       break;
00326     default:
00327       return 0.0;
00328       break;
00329   }
00330 }

Double_t FarDetShieldPlankHandle::GetX (  )  const

Definition at line 163 of file FarDetShieldPlankHandle.cxx.

References CandHandle::GetCandBase().

00164 {
00165   return dynamic_cast<const FarDetShieldPlank*>(GetCandBase())->fX;
00166 }

Double_t FarDetShieldPlankHandle::GetY (  )  const

Definition at line 168 of file FarDetShieldPlankHandle.cxx.

References CandHandle::GetCandBase().

00169 {
00170   return dynamic_cast<const FarDetShieldPlank*>(GetCandBase())->fY;
00171 }

Double_t FarDetShieldPlankHandle::GetZ ( StripEnd::StripEnd_t  stripend_t  )  const

Definition at line 173 of file FarDetShieldPlankHandle.cxx.

References FarDetShieldPlank::fZ, CandHandle::GetCandBase(), StripEnd::kNegative, and StripEnd::kPositive.

00174 {
00175   const FarDetShieldPlank* myplank = dynamic_cast<const FarDetShieldPlank*>(GetCandBase());
00176   switch (stripend_t) {
00177     case StripEnd::kNegative:
00178       return myplank->fZ[0];
00179       break;
00180     case StripEnd::kPositive:
00181       return myplank->fZ[1];
00182       break;
00183     default:
00184       return 0.0;
00185       break;
00186   }
00187 }

void FarDetShieldPlankHandle::SetCharge ( CalDigitType::CalDigitType_t  caltype_t,
Double_t *  charge 
)

Definition at line 105 of file FarDetShieldPlankHandle.cxx.

References FarDetShieldPlank::fChargeNone, FarDetShieldPlank::fChargePE, CandHandle::GetOwnedCandBase(), CalDigitType::kNone, and CalDigitType::kPE.

Referenced by AlgFarDetShieldPlank::RunAlg().

00106 {
00107   FarDetShieldPlank* myplank = dynamic_cast<FarDetShieldPlank*>(GetOwnedCandBase());
00108   switch (caltype_t) {
00109     case CalDigitType::kNone:
00110       myplank->fChargeNone[0]=charge[0];
00111       myplank->fChargeNone[1]=charge[1];
00112       break;
00113     case CalDigitType::kPE:
00114       myplank->fChargePE[0]=charge[0];
00115       myplank->fChargePE[1]=charge[1];
00116       break;
00117     default:
00118       break;
00119   }
00120 }

void FarDetShieldPlankHandle::SetFibreLengths ( Double_t *  green,
Double_t *  wls,
Double_t *  clear,
Double_t  half 
)

Definition at line 122 of file FarDetShieldPlankHandle.cxx.

References FarDetShieldPlank::fClearFibre, FarDetShieldPlank::fGreenFibre, FarDetShieldPlank::fHalfLength, FarDetShieldPlank::fWlsPigtail, and CandHandle::GetOwnedCandBase().

Referenced by AlgFarDetShieldPlank::RunAlg().

00123 {
00124   FarDetShieldPlank* myplank = dynamic_cast<FarDetShieldPlank*>(GetOwnedCandBase());
00125   for(Int_t i=0;i<2;i++){
00126     myplank->fGreenFibre[i]=green[i];
00127     myplank->fWlsPigtail[i]=wls[i];
00128     myplank->fClearFibre[i]=clear[i];
00129   }
00130   myplank->fHalfLength = half;
00131 }

void FarDetShieldPlankHandle::SetGeomErrors ( Int_t  nerrors  ) 

Definition at line 63 of file FarDetShieldPlankHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgFarDetShieldPlank::RunAlg().

00064 {
00065   dynamic_cast<FarDetShieldPlank*>(GetOwnedCandBase())->fGeomErrors=nerrors;
00066 }

void FarDetShieldPlankHandle::SetNStrips ( Int_t  nstrips  ) 

Definition at line 58 of file FarDetShieldPlankHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgFarDetShieldPlank::RunAlg().

00059 {
00060   dynamic_cast<FarDetShieldPlank*>(GetOwnedCandBase())->fNStrips=nstrips;
00061 }

void FarDetShieldPlankHandle::SetPlane ( Int_t  plane  ) 

Definition at line 48 of file FarDetShieldPlankHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgFarDetShieldPlank::RunAlg().

00049 {
00050   dynamic_cast<FarDetShieldPlank*>(GetOwnedCandBase())->fPlane=plane;
00051 }

void FarDetShieldPlankHandle::SetPlank ( Int_t  plank  ) 

Definition at line 53 of file FarDetShieldPlankHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgFarDetShieldPlank::RunAlg().

00054 {
00055   dynamic_cast<FarDetShieldPlank*>(GetOwnedCandBase())->fPlank=plank;
00056 }

void FarDetShieldPlankHandle::SetSection ( Int_t  section  ) 

Definition at line 38 of file FarDetShieldPlankHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgFarDetShieldPlank::RunAlg().

00039 {
00040   dynamic_cast<FarDetShieldPlank*>(GetOwnedCandBase())->fSection=section;
00041 }

void FarDetShieldPlankHandle::SetSubSection ( Int_t  subsection  ) 

Definition at line 43 of file FarDetShieldPlankHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgFarDetShieldPlank::RunAlg().

00044 {
00045   dynamic_cast<FarDetShieldPlank*>(GetOwnedCandBase())->fSubSection=subsection;
00046 }

void FarDetShieldPlankHandle::SetTime ( CalTimeType::CalTimeType_t  caltype_t,
Double_t *  time 
)

Definition at line 85 of file FarDetShieldPlankHandle.cxx.

References FarDetShieldPlank::fCalTime, FarDetShieldPlank::fRawTime, CandHandle::GetOwnedCandBase(), CalTimeType::kNone, and CalTimeType::kT0.

Referenced by AlgFarDetShieldPlank::RunAlg().

00086 {
00087   FarDetShieldPlank* myplank = dynamic_cast<FarDetShieldPlank*>(GetOwnedCandBase());
00088 
00089   switch (caltype_t) {
00090     case CalTimeType::kNone:
00091       myplank->fRawTime[0]=time[0];
00092       myplank->fRawTime[1]=time[1];
00093       myplank->fRawTime[2]=time[2];
00094       break;
00095     case CalTimeType::kT0:
00096       myplank->fCalTime[0]=time[0];
00097       myplank->fCalTime[1]=time[1];
00098       myplank->fCalTime[2]=time[2];
00099       break;
00100     default:
00101       break;
00102   }
00103 }

void FarDetShieldPlankHandle::SetX ( Double_t  X  ) 

Definition at line 68 of file FarDetShieldPlankHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgFarDetShieldPlank::RunAlg().

00069 {
00070   dynamic_cast<FarDetShieldPlank*>(GetOwnedCandBase())->fX=X;
00071 }

void FarDetShieldPlankHandle::SetY ( Double_t  Y  ) 

Definition at line 73 of file FarDetShieldPlankHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgFarDetShieldPlank::RunAlg().

00074 {
00075   dynamic_cast<FarDetShieldPlank*>(GetOwnedCandBase())->fY=Y;
00076 }

void FarDetShieldPlankHandle::SetZ ( Double_t *  Z  ) 

Definition at line 78 of file FarDetShieldPlankHandle.cxx.

References FarDetShieldPlank::fZ, and CandHandle::GetOwnedCandBase().

Referenced by AlgFarDetShieldPlank::RunAlg().

00079 {
00080   FarDetShieldPlank* myplank = dynamic_cast<FarDetShieldPlank*>(GetOwnedCandBase());
00081   myplank->fZ[0]=Z[0];
00082   myplank->fZ[1]=Z[1];
00083 }

void FarDetShieldPlankHandle::Trace ( const char *  c  )  const [virtual]

Reimplemented from CandHandle.

Definition at line 33 of file FarDetShieldPlankHandle.cxx.

00034 {
00035   CandHandle::Trace(c);
00036 }


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1