FarDetSliceHandle Class Reference

#include <FarDetSliceHandle.h>

Inheritance diagram for FarDetSliceHandle:
CandSliceHandle CandHandle

List of all members.

Public Member Functions

 FarDetSliceHandle ()
 FarDetSliceHandle (const FarDetSliceHandle &csh)
 FarDetSliceHandle (FarDetSlice *cs)
virtual ~FarDetSliceHandle ()
virtual FarDetSliceHandleDupHandle () const
virtual void Trace (const char *c) const
void SetSM1 (Double_t *charge, Double_t *xpos, Double_t *ypos, Double_t *zpos)
void SetSM2 (Double_t *charge, Double_t *xpos, Double_t *ypos, Double_t *zpos)
void SetMaxPlaneCharge (Double_t charge)
void SetEventId (Int_t id)
void SetEventIdSM1 (Int_t idsm1)
void SetEventIdSM2 (Int_t idsm2)
void SetEventIdX (Int_t idx)
void SetEdgesSM1 (Int_t nedges)
void SetEdgesSM2 (Int_t nedges)
void SetEdges (Int_t nedges)
void SetGoodUPlanes (Int_t uplanes)
void SetGoodVPlanes (Int_t vplanes)
void SetGoodPlanes (Int_t nplanes)
void SetGoodStrips (Int_t nstrips)
Double_t GetFidChargeSM1 (Int_t id) const
Double_t GetFidChargeSM2 (Int_t id) const
Double_t GetMeanXPosSM1 (Int_t id) const
Double_t GetMeanXPosSM2 (Int_t id) const
Double_t GetMeanYPosSM1 (Int_t id) const
Double_t GetMeanYPosSM2 (Int_t id) const
Double_t GetMeanZPosSM1 (Int_t id) const
Double_t GetMeanZPosSM2 (Int_t id) const
Double_t GetMaxPlaneCharge () const
Double_t GetTotalCharge () const
Double_t GetFidCharge () const
Int_t GetEventId () const
Int_t GetEventIdSM1 () const
Int_t GetEventIdSM2 () const
Int_t GetEventIdX () const
Int_t GetEdgesSM1 () const
Int_t GetEdgesSM2 () const
Int_t GetEdges () const
Int_t GetGoodUPlanes () const
Int_t GetGoodVPlanes () const
Int_t GetGoodPlanes () const
Int_t GetGoodStrips () const

Detailed Description

Definition at line 10 of file FarDetSliceHandle.h.


Constructor & Destructor Documentation

FarDetSliceHandle::FarDetSliceHandle (  ) 

Definition at line 6 of file FarDetSliceHandle.cxx.

Referenced by DupHandle().

00007 {
00008 
00009 }

FarDetSliceHandle::FarDetSliceHandle ( const FarDetSliceHandle csh  ) 

Definition at line 11 of file FarDetSliceHandle.cxx.

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

FarDetSliceHandle::FarDetSliceHandle ( FarDetSlice cs  ) 

Definition at line 17 of file FarDetSliceHandle.cxx.

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

FarDetSliceHandle::~FarDetSliceHandle (  )  [virtual]

Definition at line 23 of file FarDetSliceHandle.cxx.

00024 {
00025 
00026 }


Member Function Documentation

FarDetSliceHandle * FarDetSliceHandle::DupHandle (  )  const [virtual]

Reimplemented from CandSliceHandle.

Definition at line 28 of file FarDetSliceHandle.cxx.

References FarDetSliceHandle().

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

Int_t FarDetSliceHandle::GetEdges (  )  const

Definition at line 239 of file FarDetSliceHandle.cxx.

References CandHandle::GetCandBase().

Referenced by NtpMaker::FillSliceInfo().

00240 {
00241   return dynamic_cast< const FarDetSlice*>(GetCandBase())->fEdges;
00242 }

Int_t FarDetSliceHandle::GetEdgesSM1 (  )  const

Definition at line 229 of file FarDetSliceHandle.cxx.

References CandHandle::GetCandBase().

Referenced by NtpMaker::FillSliceInfo().

00230 {
00231   return dynamic_cast< const FarDetSlice*>(GetCandBase())->fEdgesSM1;
00232 }

Int_t FarDetSliceHandle::GetEdgesSM2 (  )  const

Definition at line 234 of file FarDetSliceHandle.cxx.

References CandHandle::GetCandBase().

Referenced by NtpMaker::FillSliceInfo().

00235 {
00236   return dynamic_cast< const FarDetSlice*>(GetCandBase())->fEdgesSM2;
00237 }

Int_t FarDetSliceHandle::GetEventId (  )  const

Definition at line 209 of file FarDetSliceHandle.cxx.

References CandHandle::GetCandBase().

Referenced by NtpMaker::FillSliceInfo().

00210 {
00211   return dynamic_cast< const FarDetSlice*>(GetCandBase())->fEventId;
00212 }

Int_t FarDetSliceHandle::GetEventIdSM1 (  )  const

Definition at line 214 of file FarDetSliceHandle.cxx.

References CandHandle::GetCandBase().

Referenced by NtpMaker::FillSliceInfo().

00215 {
00216   return dynamic_cast< const FarDetSlice*>(GetCandBase())->fEventIdSM1;
00217 }

Int_t FarDetSliceHandle::GetEventIdSM2 (  )  const

Definition at line 219 of file FarDetSliceHandle.cxx.

References CandHandle::GetCandBase().

Referenced by NtpMaker::FillSliceInfo().

00220 {
00221   return dynamic_cast< const FarDetSlice*>(GetCandBase())->fEventIdSM2;
00222 }

Int_t FarDetSliceHandle::GetEventIdX (  )  const

Definition at line 224 of file FarDetSliceHandle.cxx.

References CandHandle::GetCandBase().

Referenced by NtpMaker::FillSliceInfo().

00225 {
00226   return dynamic_cast< const FarDetSlice*>(GetCandBase())->fEventIdX;
00227 }

Double_t FarDetSliceHandle::GetFidCharge (  )  const

Definition at line 201 of file FarDetSliceHandle.cxx.

References CandHandle::GetCandBase().

Referenced by NtpMaker::FillSliceInfo().

00202 {
00203   Double_t qSM1=0.0,qSM2=0.0;
00204   qSM1=dynamic_cast< const FarDetSlice*>(GetCandBase())->fFidChargeSM1[0];
00205   qSM2=dynamic_cast< const FarDetSlice*>(GetCandBase())->fFidChargeSM2[0];
00206   return qSM1+qSM2;
00207 }

Double_t FarDetSliceHandle::GetFidChargeSM1 ( Int_t  id  )  const

Definition at line 122 of file FarDetSliceHandle.cxx.

References CandHandle::GetCandBase().

Referenced by NtpMaker::FillSliceInfo().

00123 {
00124   if(id>=0 && id<11){
00125     return dynamic_cast< const FarDetSlice*>(GetCandBase())->fFidChargeSM1[id];
00126   }
00127   else return 0.0;
00128 }

Double_t FarDetSliceHandle::GetFidChargeSM2 ( Int_t  id  )  const

Definition at line 130 of file FarDetSliceHandle.cxx.

References CandHandle::GetCandBase().

Referenced by NtpMaker::FillSliceInfo().

00131 {
00132   if(id>=0 && id<11){
00133     return dynamic_cast< const FarDetSlice*>(GetCandBase())->fFidChargeSM2[id];
00134   }
00135   else return 0.0;
00136 } 

Int_t FarDetSliceHandle::GetGoodPlanes (  )  const

Definition at line 254 of file FarDetSliceHandle.cxx.

References CandHandle::GetCandBase().

Referenced by NtpMaker::FillSliceInfo().

00255 {
00256   return dynamic_cast< const FarDetSlice*>(GetCandBase())->fGoodPlanes;
00257 }

Int_t FarDetSliceHandle::GetGoodStrips (  )  const

Definition at line 259 of file FarDetSliceHandle.cxx.

References CandHandle::GetCandBase().

Referenced by NtpMaker::FillSliceInfo().

00260 {
00261   return dynamic_cast< const FarDetSlice*>(GetCandBase())->fGoodStrips;
00262 }

Int_t FarDetSliceHandle::GetGoodUPlanes (  )  const

Definition at line 244 of file FarDetSliceHandle.cxx.

References CandHandle::GetCandBase().

Referenced by NtpMaker::FillSliceInfo().

00245 {
00246   return dynamic_cast< const FarDetSlice*>(GetCandBase())->fGoodUPlanes;
00247 }

Int_t FarDetSliceHandle::GetGoodVPlanes (  )  const

Definition at line 249 of file FarDetSliceHandle.cxx.

References CandHandle::GetCandBase().

Referenced by NtpMaker::FillSliceInfo().

00250 {
00251   return dynamic_cast< const FarDetSlice*>(GetCandBase())->fGoodVPlanes;
00252 }

Double_t FarDetSliceHandle::GetMaxPlaneCharge (  )  const

Definition at line 186 of file FarDetSliceHandle.cxx.

References CandHandle::GetCandBase().

Referenced by NtpMaker::FillSliceInfo().

00187 {
00188   return dynamic_cast< const FarDetSlice*>(GetCandBase())->fMaxPlaneCharge;
00189 }

Double_t FarDetSliceHandle::GetMeanXPosSM1 ( Int_t  id  )  const

Definition at line 138 of file FarDetSliceHandle.cxx.

References CandHandle::GetCandBase().

Referenced by NtpMaker::FillSliceInfo().

00139 {
00140   if(id>=0 && id<11){
00141     return dynamic_cast< const FarDetSlice*>(GetCandBase())->fMeanXPosSM1[id];
00142   }
00143   else return -999.9;
00144 }

Double_t FarDetSliceHandle::GetMeanXPosSM2 ( Int_t  id  )  const

Definition at line 146 of file FarDetSliceHandle.cxx.

References CandHandle::GetCandBase().

Referenced by NtpMaker::FillSliceInfo().

00147 {
00148   if(id>=0 && id<11){
00149     return dynamic_cast< const FarDetSlice*>(GetCandBase())->fMeanXPosSM2[id];
00150   }
00151   else return -999.9;
00152 }

Double_t FarDetSliceHandle::GetMeanYPosSM1 ( Int_t  id  )  const

Definition at line 154 of file FarDetSliceHandle.cxx.

References CandHandle::GetCandBase().

Referenced by NtpMaker::FillSliceInfo().

00155 {
00156   if(id>=0 && id<11){
00157     return dynamic_cast< const FarDetSlice*>(GetCandBase())->fMeanYPosSM1[id];
00158   }
00159   else return -999.9;
00160 }

Double_t FarDetSliceHandle::GetMeanYPosSM2 ( Int_t  id  )  const

Definition at line 162 of file FarDetSliceHandle.cxx.

References CandHandle::GetCandBase().

Referenced by NtpMaker::FillSliceInfo().

00163 {
00164   if(id>=0 && id<11){
00165     return dynamic_cast< const FarDetSlice*>(GetCandBase())->fMeanYPosSM2[id];
00166   }
00167   else return -999.9;
00168 }

Double_t FarDetSliceHandle::GetMeanZPosSM1 ( Int_t  id  )  const

Definition at line 170 of file FarDetSliceHandle.cxx.

References CandHandle::GetCandBase().

Referenced by NtpMaker::FillSliceInfo().

00171 {
00172   if(id>=0 && id<11){
00173     return dynamic_cast< const FarDetSlice*>(GetCandBase())->fMeanZPosSM1[id];
00174   }
00175   else return -999.9;
00176 }

Double_t FarDetSliceHandle::GetMeanZPosSM2 ( Int_t  id  )  const

Definition at line 178 of file FarDetSliceHandle.cxx.

References CandHandle::GetCandBase().

Referenced by NtpMaker::FillSliceInfo().

00179 {
00180   if(id>=0 && id<11){
00181     return dynamic_cast< const FarDetSlice*>(GetCandBase())->fMeanZPosSM2[id];
00182   }
00183   else return -999.9;
00184 }

Double_t FarDetSliceHandle::GetTotalCharge (  )  const

Definition at line 191 of file FarDetSliceHandle.cxx.

References CandHandle::GetCandBase().

Referenced by NtpMaker::FillSliceInfo().

00192 {
00193   Double_t qSM1=0.0,qSM2=0.0;
00194   for(Int_t myint=0;myint<11;myint++){
00195     qSM1+=dynamic_cast<const FarDetSlice*>(GetCandBase())->fFidChargeSM1[myint];
00196     qSM2+=dynamic_cast<const FarDetSlice*>(GetCandBase())->fFidChargeSM2[myint];
00197   }
00198   return qSM1+qSM2;
00199 }

void FarDetSliceHandle::SetEdges ( Int_t  nedges  ) 

Definition at line 97 of file FarDetSliceHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgFarDetSlice::RunAlg().

00098 {
00099   dynamic_cast< FarDetSlice*>(GetOwnedCandBase())->fEdges=nedges;
00100 }

void FarDetSliceHandle::SetEdgesSM1 ( Int_t  nedges  ) 

Definition at line 87 of file FarDetSliceHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgFarDetSlice::RunAlg().

00088 {
00089   dynamic_cast< FarDetSlice*>(GetOwnedCandBase())->fEdgesSM1=nedges;
00090 }

void FarDetSliceHandle::SetEdgesSM2 ( Int_t  nedges  ) 

Definition at line 92 of file FarDetSliceHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgFarDetSlice::RunAlg().

00093 {
00094   dynamic_cast< FarDetSlice*>(GetOwnedCandBase())->fEdgesSM2=nedges;
00095 }

void FarDetSliceHandle::SetEventId ( Int_t  id  ) 

Definition at line 67 of file FarDetSliceHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgFarDetSlice::RunAlg().

00068 {
00069   dynamic_cast< FarDetSlice*>(GetOwnedCandBase())->fEventId=id;
00070 }

void FarDetSliceHandle::SetEventIdSM1 ( Int_t  idsm1  ) 

Definition at line 72 of file FarDetSliceHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgFarDetSlice::RunAlg().

00073 {
00074   dynamic_cast< FarDetSlice*>(GetOwnedCandBase())->fEventIdSM1=idsm1;
00075 }

void FarDetSliceHandle::SetEventIdSM2 ( Int_t  idsm2  ) 

Definition at line 77 of file FarDetSliceHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgFarDetSlice::RunAlg().

00078 {
00079   dynamic_cast< FarDetSlice*>(GetOwnedCandBase())->fEventIdSM2=idsm2;
00080 }

void FarDetSliceHandle::SetEventIdX ( Int_t  idx  ) 

Definition at line 82 of file FarDetSliceHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgFarDetSlice::RunAlg().

00083 {
00084   dynamic_cast< FarDetSlice*>(GetOwnedCandBase())->fEventIdX=idx;
00085 }

void FarDetSliceHandle::SetGoodPlanes ( Int_t  nplanes  ) 

Definition at line 112 of file FarDetSliceHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgFarDetSlice::RunAlg().

00113 {
00114   dynamic_cast< FarDetSlice*>(GetOwnedCandBase())->fGoodPlanes=nplanes;
00115 }

void FarDetSliceHandle::SetGoodStrips ( Int_t  nstrips  ) 

Definition at line 117 of file FarDetSliceHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgFarDetSlice::RunAlg().

00118 {
00119   dynamic_cast< FarDetSlice*>(GetOwnedCandBase())->fGoodStrips=nstrips;
00120 }

void FarDetSliceHandle::SetGoodUPlanes ( Int_t  uplanes  ) 

Definition at line 102 of file FarDetSliceHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgFarDetSlice::RunAlg().

00103 {
00104   dynamic_cast< FarDetSlice*>(GetOwnedCandBase())->fGoodUPlanes=uplanes;
00105 }

void FarDetSliceHandle::SetGoodVPlanes ( Int_t  vplanes  ) 

Definition at line 107 of file FarDetSliceHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgFarDetSlice::RunAlg().

00108 { 
00109   dynamic_cast< FarDetSlice*>(GetOwnedCandBase())->fGoodVPlanes=vplanes;
00110 }

void FarDetSliceHandle::SetMaxPlaneCharge ( Double_t  charge  ) 

Definition at line 62 of file FarDetSliceHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgFarDetSlice::RunAlg().

00063 {
00064   dynamic_cast< FarDetSlice*>(GetOwnedCandBase())->fMaxPlaneCharge=charge;
00065 }

void FarDetSliceHandle::SetSM1 ( Double_t *  charge,
Double_t *  xpos,
Double_t *  ypos,
Double_t *  zpos 
)

Definition at line 38 of file FarDetSliceHandle.cxx.

References FarDetSlice::fFidChargeSM1, FarDetSlice::fMeanXPosSM1, FarDetSlice::fMeanYPosSM1, FarDetSlice::fMeanZPosSM1, and CandHandle::GetOwnedCandBase().

Referenced by AlgFarDetSlice::RunAlg().

00039 {
00040   FarDetSlice* myslice = dynamic_cast< FarDetSlice*>(GetOwnedCandBase());
00041   
00042   for(Int_t i=0;i<11;i++){
00043     myslice->fFidChargeSM1[i]=charge[i];
00044     myslice->fMeanXPosSM1[i]=xpos[i];
00045     myslice->fMeanYPosSM1[i]=ypos[i];  
00046     myslice->fMeanZPosSM1[i]=zpos[i];
00047   }
00048 }

void FarDetSliceHandle::SetSM2 ( Double_t *  charge,
Double_t *  xpos,
Double_t *  ypos,
Double_t *  zpos 
)

Definition at line 50 of file FarDetSliceHandle.cxx.

References FarDetSlice::fFidChargeSM2, FarDetSlice::fMeanXPosSM2, FarDetSlice::fMeanYPosSM2, FarDetSlice::fMeanZPosSM2, and CandHandle::GetOwnedCandBase().

Referenced by AlgFarDetSlice::RunAlg().

00051 {
00052   FarDetSlice* myslice = dynamic_cast< FarDetSlice*>(GetOwnedCandBase());
00053   
00054   for(Int_t i=0;i<11;i++){
00055     myslice->fFidChargeSM2[i]=charge[i];
00056     myslice->fMeanXPosSM2[i]=xpos[i];
00057     myslice->fMeanYPosSM2[i]=ypos[i];
00058     myslice->fMeanZPosSM2[i]=zpos[i];
00059   }
00060 }

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

Reimplemented from CandSliceHandle.

Definition at line 33 of file FarDetSliceHandle.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