CandFitTrackSRHandle Class Reference

#include <CandFitTrackSRHandle.h>

Inheritance diagram for CandFitTrackSRHandle:
CandFitTrackHandle CandTrackHandle CandRecoHandle CandHandle

List of all members.

Public Member Functions

 CandFitTrackSRHandle ()
 CandFitTrackSRHandle (const CandFitTrackSRHandle &csh)
 CandFitTrackSRHandle (CandFitTrackSR *cs)
virtual ~CandFitTrackSRHandle ()
virtual CandFitTrackSRHandleDupHandle () const
virtual void Trace (const char *c="") const
void ClearKalmanPlaneList (Bool_t deletekp=1)
void ClearTrackClusterList ()
void ClearMaps ()
void AddTrackCluster (TrackClusterSR *)
TObjArray * GetPlaneList ()
TObjArray * GetTrackClusterList ()
Int_t GetKalmanLast () const
KalmanPlaneSRGetKalmanPlane (Int_t)
const KalmanPlaneSRGetKalmanPlane (Int_t) const
void RemoveKalmanPlane (Int_t, Int_t)
void CompressKalmanPlaneList ()
KalmanPlaneSRAddKalmanPlaneAt (KalmanPlaneSR *, Int_t)
void RemoveForward (KalmanPlaneSR *kp=0)
const KalmanPlaneSRGetCurrentKalmanPlane (PlaneView::PlaneView_t=PlaneView::kUnknown) const
KalmanPlaneSRGetCurrentKalmanPlane (PlaneView::PlaneView_t=PlaneView::kUnknown)
void SetCurrentKalmanPlane (KalmanPlaneSR *)
void AddUpstreamPlaneList (TObjArray *)
void SetNChangedFitPoint (Int_t)
void SetInitialQP (Double_t)
void SetVtx (const KalmanPlaneSR *)
void SetEnd (const KalmanPlaneSR *)
void SetPlanePreChi2 (Int_t, Double_t)
void SetVtxExtrapolate (Int_t, PlaneView::PlaneView_t)
void SetEndExtrapolate (Int_t, PlaneView::PlaneView_t)
void SetdUdZ (Int_t, Float_t)
void SetdVdZ (Int_t, Float_t)
Float_t GetdUdZ (Int_t) const
Float_t GetdVdZ (Int_t) const
void SetBadFit (TrackClusterSR *)
Double_t GetInitialQP () const
Int_t GetNChangedFitPoint ()
Bool_t GetBadFit (Int_t) const
Bool_t GetBadFit (TrackClusterSR *) const
Int_t GetNGoodFit () const
Float_t GetPlanePreChi2 (Int_t) const
Int_t GetNChangedFitPoint () const
Int_t GetVtxExtrapolate (PlaneView::PlaneView_t=PlaneView::kUnknown) const
Int_t GetEndExtrapolate (PlaneView::PlaneView_t=PlaneView::kUnknown) const

Detailed Description

Definition at line 26 of file CandFitTrackSRHandle.h.


Constructor & Destructor Documentation

CandFitTrackSRHandle::CandFitTrackSRHandle (  ) 

Definition at line 49 of file CandFitTrackSRHandle.cxx.

Referenced by DupHandle().

00050 {
00051 }

CandFitTrackSRHandle::CandFitTrackSRHandle ( const CandFitTrackSRHandle csh  ) 

Definition at line 54 of file CandFitTrackSRHandle.cxx.

00054                                                                           :
00055   CandFitTrackHandle(cdh)
00056 {
00057 }

CandFitTrackSRHandle::CandFitTrackSRHandle ( CandFitTrackSR cs  ) 

Definition at line 60 of file CandFitTrackSRHandle.cxx.

00060                                                              :
00061   CandFitTrackHandle(cd)
00062 {
00063 }

CandFitTrackSRHandle::~CandFitTrackSRHandle (  )  [virtual]

Definition at line 66 of file CandFitTrackSRHandle.cxx.

00067 {
00068 }


Member Function Documentation

KalmanPlaneSR * CandFitTrackSRHandle::AddKalmanPlaneAt ( KalmanPlaneSR kpnew,
Int_t  indx 
)

Definition at line 171 of file CandFitTrackSRHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgFitTrackSR::AddForwardBestKPToFit(), and AlgFitTrackSR::DoKalmanFit().

00172 {
00173   TObjArray *KalmanPlaneList = dynamic_cast<CandFitTrackSR*>
00174     (GetOwnedCandBase())->fPlaneList;
00175   Int_t ilast = KalmanPlaneList->GetLast();
00176 
00177   // KalmanPlaneList owns objects, so create new KalmanPlaneSR based on input
00178   KalmanPlaneSR *kpnewer = new KalmanPlaneSR(kpnew);
00179   KalmanPlaneSR *kp = 0;
00180   for(int i=ilast; i>=indx; --i){
00181     kp = dynamic_cast<KalmanPlaneSR*>(KalmanPlaneList->At(i));
00182     KalmanPlaneList->AddAtAndExpand(kp,i+1);
00183   }
00184   KalmanPlaneList->AddAtAndExpand(kpnewer,indx);
00185   return kpnewer;
00186 }

void CandFitTrackSRHandle::AddTrackCluster ( TrackClusterSR tc  ) 

Definition at line 417 of file CandFitTrackSRHandle.cxx.

References CandFitTrackSR::fTrackClusterList, and CandHandle::GetOwnedCandBase().

Referenced by AlgFitTrackSR::MakeSliceClusterList(), and AlgFitTrackSR::MakeTrackClusterList().

00417                                                              {
00418   TrackClusterSR *newtc = new TrackClusterSR(*tc);
00419   CandFitTrackSR *track = dynamic_cast<CandFitTrackSR *>(GetOwnedCandBase());
00420   track->fTrackClusterList->Add(newtc);
00421 }

void CandFitTrackSRHandle::AddUpstreamPlaneList ( TObjArray *  uplist  ) 

Definition at line 324 of file CandFitTrackSRHandle.cxx.

References GetKalmanLast(), and CandHandle::GetOwnedCandBase().

00325 {
00326   Int_t nup = uplist->GetLast()+1;
00327   Int_t nmax = GetKalmanLast();
00328   TObjArray *KalmanPlaneList = dynamic_cast<CandFitTrackSR*>(GetOwnedCandBase())->fPlaneList;
00329   KalmanPlaneSR *kp = 0;
00330   for(Int_t i=nmax; i>=0; --i){
00331     kp = dynamic_cast<KalmanPlaneSR*>(KalmanPlaneList->At(i));
00332     KalmanPlaneList->AddAtAndExpand(kp,i+nup);
00333   }
00334   for(Int_t i=0; i<=uplist->GetLast(); ++i){
00335     kp = dynamic_cast<KalmanPlaneSR*>(uplist->At(i));
00336     KalmanPlaneList->AddAt(kp,nup-i-1);
00337   }
00338 
00339 }

void CandFitTrackSRHandle::ClearKalmanPlaneList ( Bool_t  deletekp = 1  ) 

Definition at line 95 of file CandFitTrackSRHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgFitTrackSR::DoKalmanFit(), and AlgFitTrackSR::IterateKalmanFit().

00096 {
00097   TObjArray *KalmanPlaneList = dynamic_cast<CandFitTrackSR*>
00098     (GetOwnedCandBase())->fPlaneList;
00099   if(deletekp){
00100     KalmanPlaneSR *kp = 0;
00101     for(int i=0; i<=KalmanPlaneList->GetLast(); ++i){
00102       kp = dynamic_cast<KalmanPlaneSR*>(KalmanPlaneList->At(i));
00103       delete kp;
00104     }
00105   }
00106   KalmanPlaneList->Clear();
00107   KalmanPlaneList->Compress();
00108   dynamic_cast<CandFitTrackSR*>(GetOwnedCandBase())->fCurrent = 0;
00109   dynamic_cast<CandFitTrackSR*>(GetOwnedCandBase())->fCurrentU = 0;
00110   dynamic_cast<CandFitTrackSR*>(GetOwnedCandBase())->fCurrentV = 0;
00111 }

void CandFitTrackSRHandle::ClearMaps (  )  [virtual]

Reimplemented from CandFitTrackHandle.

Definition at line 521 of file CandFitTrackSRHandle.cxx.

References CandFitTrackSR::fdUdZ, CandFitTrackSR::fdVdZ, CandFitTrackSR::fPlanePreChi2, and CandHandle::GetOwnedCandBase().

00522 {
00523   CandFitTrackSR *track = dynamic_cast<CandFitTrackSR*>(GetOwnedCandBase());
00524   track->fdUdZ.clear();
00525   track->fdVdZ.clear();
00526   track->fPlanePreChi2.clear();
00527   CandFitTrackHandle::ClearMaps();
00528 }

void CandFitTrackSRHandle::ClearTrackClusterList (  ) 

Definition at line 114 of file CandFitTrackSRHandle.cxx.

References CandHandle::GetOwnedCandBase(), and tc.

00115 {
00116   TObjArray *TrackClusterList = dynamic_cast<CandFitTrackSR*>
00117     (GetOwnedCandBase())->fTrackClusterList;
00118   TrackClusterSR *tc = 0;
00119   for(int i=0; i<=TrackClusterList->GetLast(); ++i){
00120     tc = dynamic_cast<TrackClusterSR*>(TrackClusterList->At(i));
00121     delete tc;
00122   }
00123   TrackClusterList->Clear();
00124   TrackClusterList->Compress();
00125 }

void CandFitTrackSRHandle::CompressKalmanPlaneList (  ) 

Definition at line 163 of file CandFitTrackSRHandle.cxx.

References CandHandle::GetOwnedCandBase().

00164 {
00165   TObjArray *KalmanPlaneList = dynamic_cast<CandFitTrackSR*>
00166     (GetOwnedCandBase())->fPlaneList;
00167   KalmanPlaneList->Compress();
00168 }

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

Reimplemented from CandFitTrackHandle.

Definition at line 71 of file CandFitTrackSRHandle.cxx.

References CandFitTrackSRHandle().

00072 {
00073    return (new CandFitTrackSRHandle(*this));
00074 }

Bool_t CandFitTrackSRHandle::GetBadFit ( TrackClusterSR tc  )  const

Definition at line 368 of file CandFitTrackSRHandle.cxx.

References CandHandle::GetCandBase().

00369 {
00370   map<TrackClusterSR *,Bool_t>::iterator iter;
00371   iter = (dynamic_cast<const CandFitTrackSR *>
00372           (GetCandBase())->fBadFit).find(tc);
00373   if (iter!=(dynamic_cast<const CandFitTrackSR *>
00374              (GetCandBase())->fBadFit).end()) {
00375     return 1;
00376   }
00377   return 0;
00378 }

Bool_t CandFitTrackSRHandle::GetBadFit ( Int_t  iplane  )  const

Definition at line 342 of file CandFitTrackSRHandle.cxx.

References CandHandle::GetCandBase(), TrackClusterSR::GetPlane(), and KalmanPlaneSR::GetTrackCluster().

Referenced by NtpSRModule::FillNtpTrack(), UberModule::FillNtpTrack(), UberModuleLite::FillNtpTrack(), GetNGoodFit(), and AlgFitTrackSR::ReverseFit().

00343 {
00344   map<TrackClusterSR *,Bool_t>::iterator iter;
00345   const TObjArray *KalmanPlaneList = dynamic_cast<const CandFitTrackSR*>
00346     (GetCandBase())->fPlaneList;
00347   Bool_t found(0);
00348  
00349   KalmanPlaneSR *kp = 0;
00350   for(int i=0; i<=KalmanPlaneList->GetLast() && !found; ++i){
00351     kp = dynamic_cast<KalmanPlaneSR*>(KalmanPlaneList->At(i));
00352     if(kp->GetTrackCluster()->GetPlane()==iplane){
00353       found = true;
00354       iter = (dynamic_cast<const CandFitTrackSR *>
00355               (GetCandBase())->fBadFit).find(kp->GetTrackCluster());
00356 
00357       if(iter!=(dynamic_cast<const CandFitTrackSR *>
00358                 (GetCandBase())->fBadFit).end()){
00359         return 1;
00360       }
00361       return 0;
00362     }//end if this is the plain
00363   }//end loop over kalman planes
00364   return 0;
00365 }

KalmanPlaneSR * CandFitTrackSRHandle::GetCurrentKalmanPlane ( PlaneView::PlaneView_t  planeview_t = PlaneView::kUnknown  ) 

Definition at line 289 of file CandFitTrackSRHandle.cxx.

References CandHandle::GetOwnedCandBase(), PlaneView::kU, and PlaneView::kV.

00290 {
00291   if (planeview_t==PlaneView::kU) 
00292     return dynamic_cast<CandFitTrackSR*>(GetOwnedCandBase())->fCurrentU;
00293   else if (planeview_t==PlaneView::kV) 
00294     return dynamic_cast<CandFitTrackSR*>(GetOwnedCandBase())->fCurrentV;
00295   else 
00296     return dynamic_cast<CandFitTrackSR*>(GetOwnedCandBase())->fCurrent;
00297   
00298 }

const KalmanPlaneSR * CandFitTrackSRHandle::GetCurrentKalmanPlane ( PlaneView::PlaneView_t  planeview_t = PlaneView::kUnknown  )  const

Definition at line 300 of file CandFitTrackSRHandle.cxx.

References CandHandle::GetCandBase(), PlaneView::kU, and PlaneView::kV.

Referenced by AlgFitTrackSR::InitializeFit(), RemoveForward(), and RemoveKalmanPlane().

00301 {
00302   if (planeview_t==PlaneView::kU) 
00303     return dynamic_cast<const CandFitTrackSR*>(GetCandBase())->fCurrentU;
00304   else if (planeview_t==PlaneView::kV) 
00305     return dynamic_cast<const CandFitTrackSR*>(GetCandBase())->fCurrentV;
00306   else 
00307     return dynamic_cast<const CandFitTrackSR*>(GetCandBase())->fCurrent;
00308   
00309 }

Float_t CandFitTrackSRHandle::GetdUdZ ( Int_t  plane  )  const

Definition at line 500 of file CandFitTrackSRHandle.cxx.

References CandFitTrackSR::fdUdZ, and CandHandle::GetCandBase().

Referenced by AlgFitTrackSR::MakeDaughterStripList().

00501 {
00502   const CandFitTrackSR *track = dynamic_cast<const CandFitTrackSR*>(GetCandBase());
00503   if ((track->fdUdZ).count(plane)) {
00504     return track->fdUdZ[plane];
00505   }
00506   return -99999.;
00507 }

Float_t CandFitTrackSRHandle::GetdVdZ ( Int_t  plane  )  const

Definition at line 510 of file CandFitTrackSRHandle.cxx.

References CandFitTrackSR::fdVdZ, and CandHandle::GetCandBase().

Referenced by AlgFitTrackSR::MakeDaughterStripList().

00511 {
00512   const CandFitTrackSR *track = dynamic_cast<const CandFitTrackSR*>(GetCandBase());
00513   if ((track->fdVdZ).count(plane)) {
00514     return track->fdVdZ[plane];
00515   }
00516   return -99999.;
00517 }

Int_t CandFitTrackSRHandle::GetEndExtrapolate ( PlaneView::PlaneView_t  planeview_t = PlaneView::kUnknown  )  const

Definition at line 470 of file CandFitTrackSRHandle.cxx.

References CandFitTrackSR::fEndExtrapolate, CandHandle::GetCandBase(), PlaneView::kU, PlaneView::kV, and min.

Referenced by UberModule::FillNtpTrackFidEnd(), and UberModuleLite::FillNtpTrackFidEnd().

00471 {
00472   const CandFitTrackSR *track = dynamic_cast<const CandFitTrackSR *>(GetCandBase());
00473   if(planeview_t == PlaneView::kU){
00474     return track->fEndExtrapolate[0];
00475   } 
00476   else if(planeview_t == PlaneView::kV){
00477     return track->fEndExtrapolate[1];
00478   } 
00479   else{
00480     return min(track->fEndExtrapolate[0],track->fEndExtrapolate[1]);
00481   }
00482 }

Double_t CandFitTrackSRHandle::GetInitialQP (  )  const

Definition at line 217 of file CandFitTrackSRHandle.cxx.

References CandHandle::GetCandBase().

Referenced by AlgFitTrackSR::InitializeFit().

00218 {
00219   return dynamic_cast<const CandFitTrackSR*>(GetCandBase())->fInitialQP;
00220 }

Int_t CandFitTrackSRHandle::GetKalmanLast (  )  const
const KalmanPlaneSR * CandFitTrackSRHandle::GetKalmanPlane ( Int_t  indx  )  const

Definition at line 208 of file CandFitTrackSRHandle.cxx.

References CandHandle::GetCandBase().

00209 {
00210   TObjArray *KalmanPlaneList = dynamic_cast<const CandFitTrackSR*>
00211     (GetCandBase())->fPlaneList;
00212   return dynamic_cast<const KalmanPlaneSR*>(KalmanPlaneList->At(indx));
00213 }

KalmanPlaneSR * CandFitTrackSRHandle::GetKalmanPlane ( Int_t  indx  ) 
Int_t CandFitTrackSRHandle::GetNChangedFitPoint (  )  const

Definition at line 425 of file CandFitTrackSRHandle.cxx.

References CandHandle::GetCandBase().

00426 {
00427   return dynamic_cast<const CandFitTrackSR *>(GetCandBase())->fNChangedFitPoint;
00428 }

Int_t CandFitTrackSRHandle::GetNChangedFitPoint (  ) 

Definition at line 280 of file CandFitTrackSRHandle.cxx.

References CandHandle::GetCandBase().

Referenced by AlgFitTrackSR::IterateKalmanFit(), and AlgFitTrackSR::ReverseFit().

00280                                                 {
00281   return dynamic_cast<const CandFitTrackSR*>(GetCandBase())->fNChangedFitPoint;
00282 }

Int_t CandFitTrackSRHandle::GetNGoodFit (  )  const

Definition at line 381 of file CandFitTrackSRHandle.cxx.

References GetBadFit(), GetKalmanLast(), GetKalmanPlane(), and KalmanPlaneSR::GetTrackCluster().

00382 {
00383   Int_t ngood=0;
00384   const KalmanPlaneSR *kp = 0;
00385   for(int i=0; i<=GetKalmanLast(); ++i){
00386     kp = GetKalmanPlane(i);
00387     if (!GetBadFit(kp->GetTrackCluster())) ngood++;
00388   }
00389   return ngood;
00390 }

TObjArray * CandFitTrackSRHandle::GetPlaneList (  ) 

Definition at line 275 of file CandFitTrackSRHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgFitTrackSR::AddToFit(), and AlgFitTrackSR::ReverseFit().

00275                                               {
00276   return dynamic_cast<CandFitTrackSR*>(GetOwnedCandBase())->fPlaneList;
00277 }

Float_t CandFitTrackSRHandle::GetPlanePreChi2 ( Int_t  iplane  )  const

Definition at line 400 of file CandFitTrackSRHandle.cxx.

References CandHandle::GetCandBase().

Referenced by NtpSRModule::FillNtpTrack(), UberModule::FillNtpTrack(), and UberModuleLite::FillNtpTrack().

00401 {
00402   map<Int_t,Float_t>::iterator iter;
00403   iter = (dynamic_cast<const CandFitTrackSR *>(GetCandBase())->fPlanePreChi2).find(iplane);
00404   if (iter!=(dynamic_cast<const CandFitTrackSR *>(GetCandBase())->fPlanePreChi2).end()) {
00405     return dynamic_cast<const CandFitTrackSR *>(GetCandBase())->fPlanePreChi2[iplane];
00406   }
00407   return -1.;
00408 }

TObjArray * CandFitTrackSRHandle::GetTrackClusterList (  ) 

Definition at line 269 of file CandFitTrackSRHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgFitTrackSR::ReverseFit().

00269                                                       {
00270   return dynamic_cast<CandFitTrackSR*>(GetOwnedCandBase())->fTrackClusterList;
00271 }

Int_t CandFitTrackSRHandle::GetVtxExtrapolate ( PlaneView::PlaneView_t  planeview_t = PlaneView::kUnknown  )  const

Definition at line 455 of file CandFitTrackSRHandle.cxx.

References CandFitTrackSR::fVtxExtrapolate, CandHandle::GetCandBase(), PlaneView::kU, PlaneView::kV, and min.

Referenced by UberModuleLite::FillNtpTrackFidVtx(), and UberModule::FillNtpTrackFidVtx().

00456 {
00457   const CandFitTrackSR *track = dynamic_cast<const CandFitTrackSR *>(GetCandBase());
00458   if(planeview_t == PlaneView::kU){
00459     return track->fVtxExtrapolate[0];
00460   } 
00461   else if(planeview_t == PlaneView::kV){
00462     return track->fVtxExtrapolate[1];
00463   }
00464   else{
00465     return min(track->fVtxExtrapolate[0],track->fVtxExtrapolate[1]);
00466   }
00467 }

void CandFitTrackSRHandle::RemoveForward ( KalmanPlaneSR kp = 0  ) 

Definition at line 189 of file CandFitTrackSRHandle.cxx.

References GetCurrentKalmanPlane(), GetKalmanPlane(), CandHandle::GetOwnedCandBase(), and SetCurrentKalmanPlane().

00190 {
00191   TObjArray *KalmanPlaneList = dynamic_cast<CandFitTrackSR*>
00192     (GetOwnedCandBase())->fPlaneList;
00193   if(!kp) kp = GetCurrentKalmanPlane();
00194   Int_t indx = KalmanPlaneList->IndexOf(kp);
00195   KalmanPlaneSR *newkplast = GetKalmanPlane(indx-1);
00196   SetCurrentKalmanPlane(newkplast);
00197   Int_t nmax = KalmanPlaneList->GetLast();
00198   for(Int_t i=indx; i<=nmax; ++i){
00199     KalmanPlaneList->RemoveAt(i);
00200     kp = dynamic_cast<KalmanPlaneSR*>(KalmanPlaneList->At(i));
00201     delete kp;
00202   }
00203   KalmanPlaneList->Compress();
00204 }

void CandFitTrackSRHandle::RemoveKalmanPlane ( Int_t  indx,
Int_t  idir 
)

Definition at line 136 of file CandFitTrackSRHandle.cxx.

References GetCurrentKalmanPlane(), GetKalmanLast(), GetKalmanPlane(), CandHandle::GetOwnedCandBase(), and SetCurrentKalmanPlane().

Referenced by AlgFitTrackSR::AddForwardBestKPToFit().

00137 {
00138 // assumes first kalmanplane in kalmanplanelist is never removed
00139   TObjArray *KalmanPlaneList = dynamic_cast<CandFitTrackSR*>
00140     (GetOwnedCandBase())->fPlaneList;
00141   KalmanPlaneSR *kp = 0;
00142   if(indx>=0) kp = dynamic_cast<KalmanPlaneSR*>(KalmanPlaneList->At(indx));
00143   else {
00144     kp = GetCurrentKalmanPlane();
00145     indx = KalmanPlaneList->IndexOf(kp);
00146   }
00147   KalmanPlaneSR *newkplast = 0;
00148   if(idir==0){
00149     assert(indx-1>=0);
00150     newkplast = GetKalmanPlane(indx-1);
00151   } 
00152   else{
00153     assert(indx+1<=GetKalmanLast());
00154     newkplast = GetKalmanPlane(indx+1);
00155   }
00156   SetCurrentKalmanPlane(newkplast);
00157   KalmanPlaneList->RemoveAt(indx);
00158   KalmanPlaneList->Compress();
00159   delete kp;
00160 }

void CandFitTrackSRHandle::SetBadFit ( TrackClusterSR tc  ) 

Definition at line 393 of file CandFitTrackSRHandle.cxx.

References CandHandle::GetOwnedCandBase().

00394 {
00395   dynamic_cast<CandFitTrackSR *>(GetOwnedCandBase())->fBadFit[tc] = 1;
00396 }

void CandFitTrackSRHandle::SetCurrentKalmanPlane ( KalmanPlaneSR kp  ) 
void CandFitTrackSRHandle::SetdUdZ ( Int_t  plane,
Float_t  ddz 
)

Definition at line 486 of file CandFitTrackSRHandle.cxx.

References CandFitTrackSR::fdUdZ, and CandHandle::GetOwnedCandBase().

Referenced by AlgFitTrackSR::SetPlaneParameters().

00487 {
00488   CandFitTrackSR *track = dynamic_cast<CandFitTrackSR*>(GetOwnedCandBase());
00489   track->fdUdZ[plane] = ddz;
00490 }

void CandFitTrackSRHandle::SetdVdZ ( Int_t  plane,
Float_t  ddz 
)

Definition at line 493 of file CandFitTrackSRHandle.cxx.

References CandFitTrackSR::fdVdZ, and CandHandle::GetOwnedCandBase().

Referenced by AlgFitTrackSR::SetPlaneParameters().

00494 {
00495   CandFitTrackSR *track = dynamic_cast<CandFitTrackSR*>(GetOwnedCandBase());
00496   track->fdVdZ[plane] = ddz;
00497 }

void CandFitTrackSRHandle::SetEnd ( const KalmanPlaneSR currentkp  ) 

Definition at line 250 of file CandFitTrackSRHandle.cxx.

References KalmanPlaneSR::GetFilStateValue(), TrackClusterSR::GetPlane(), KalmanPlaneSR::GetTrackCluster(), KalmanPlaneSR::GetZDir(), TrackClusterSR::GetZPos(), kdUdZ, kdVdZ, kQoverP, kU, kV, CandRecoHandle::SetEndDirCosU(), CandRecoHandle::SetEndDirCosV(), CandRecoHandle::SetEndDirCosZ(), CandRecoHandle::SetEndPlane(), CandFitTrackHandle::SetEndQP(), CandRecoHandle::SetEndU(), CandRecoHandle::SetEndV(), and CandRecoHandle::SetEndZ().

Referenced by AlgFitTrackSR::AddToFit().

00251 {
00252   SetEndQP(currentkp->GetFilStateValue(kQoverP,0));
00253   if(currentkp->GetFilStateValue(kU,1)!=0) 
00254     SetEndU(currentkp->GetFilStateValue(kU,0));
00255   if(currentkp->GetFilStateValue(kV,1)!=0) 
00256      SetEndV(currentkp->GetFilStateValue(kV,0));
00257   SetEndZ(currentkp->GetTrackCluster()->GetZPos());
00258   Double_t dudz = currentkp->GetFilStateValue(kdUdZ,0);
00259   Double_t dvdz = currentkp->GetFilStateValue(kdVdZ,0);
00260   Double_t dsdz = TMath::Sqrt(1.+dudz*dudz+dvdz*dvdz)*(Double_t)(currentkp->GetZDir());
00261   if(dudz!=0) SetEndDirCosU(dudz/dsdz);
00262   if(dvdz!=0) SetEndDirCosV(dvdz/dsdz);
00263   if(dsdz!=1) SetEndDirCosZ(1./dsdz);
00264   SetEndPlane(currentkp->GetTrackCluster()->GetPlane());
00265 }

void CandFitTrackSRHandle::SetEndExtrapolate ( Int_t  nplane,
PlaneView::PlaneView_t  planeview_t 
)

Definition at line 443 of file CandFitTrackSRHandle.cxx.

References CandHandle::GetOwnedCandBase(), PlaneView::kU, and PlaneView::kV.

Referenced by AlgFitTrackSR::SwimVertexAndEndPoints().

00445 {
00446   if(planeview_t == PlaneView::kU){
00447     dynamic_cast<CandFitTrackSR *>(GetOwnedCandBase())->fEndExtrapolate[0] = nplane;
00448   } 
00449   else if (planeview_t == PlaneView::kV){
00450     dynamic_cast<CandFitTrackSR *>(GetOwnedCandBase())->fEndExtrapolate[1] = nplane;
00451   }
00452 }

void CandFitTrackSRHandle::SetInitialQP ( Double_t  qp0  ) 

Definition at line 224 of file CandFitTrackSRHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgFitTrackSR::SetTrackParameters(), and SetVtx().

00225 {
00226   dynamic_cast<CandFitTrackSR*>(GetOwnedCandBase())->fInitialQP = qp0;
00227 }

void CandFitTrackSRHandle::SetNChangedFitPoint ( Int_t  i  ) 

Definition at line 285 of file CandFitTrackSRHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgFitTrackSR::ReverseFit().

00285                                                      {
00286   dynamic_cast<CandFitTrackSR*>(GetOwnedCandBase())->fNChangedFitPoint=i;
00287 }

void CandFitTrackSRHandle::SetPlanePreChi2 ( Int_t  iplane,
Double_t  chi2 
)

Definition at line 411 of file CandFitTrackSRHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgFitTrackSR::ReverseFit(), and AlgFitTrackSR::SetPlaneParameters().

00412 {
00413   dynamic_cast<CandFitTrackSR *>(GetOwnedCandBase())->fPlanePreChi2[iplane] = (Float_t)chi2;
00414 }

void CandFitTrackSRHandle::SetVtx ( const KalmanPlaneSR currentkp  ) 

Definition at line 230 of file CandFitTrackSRHandle.cxx.

References KalmanPlaneSR::GetFilStateValue(), TrackClusterSR::GetPlane(), KalmanPlaneSR::GetTrackCluster(), KalmanPlaneSR::GetZDir(), TrackClusterSR::GetZPos(), kdUdZ, kdVdZ, kQoverP, kU, kV, CandRecoHandle::SetDirCosU(), CandRecoHandle::SetDirCosV(), CandRecoHandle::SetDirCosZ(), SetInitialQP(), CandRecoHandle::SetVtxPlane(), CandRecoHandle::SetVtxU(), CandRecoHandle::SetVtxV(), and CandRecoHandle::SetVtxZ().

Referenced by AlgFitTrackSR::DoKalmanFit(), AlgFitTrackSR::RemoveBadPointsFromFit(), and AlgFitTrackSR::ReverseFit().

00231 {
00232   if(currentkp->GetFilStateValue(kQoverP,1)!=0) 
00233     SetInitialQP(currentkp->GetFilStateValue(kQoverP,1));
00234   if(currentkp->GetFilStateValue(kU,1)!=0) 
00235     SetVtxU(currentkp->GetFilStateValue(kU,1));
00236   if(currentkp->GetFilStateValue(kV,1)!=0) 
00237     SetVtxV(currentkp->GetFilStateValue(kV,1));
00238   SetVtxZ(currentkp->GetTrackCluster()->GetZPos());
00239   Double_t dudz = currentkp->GetFilStateValue(kdUdZ,1);
00240   Double_t dvdz = currentkp->GetFilStateValue(kdVdZ,1);
00241   Double_t dsdz = TMath::Sqrt(1.+dudz*dudz+dvdz*dvdz)*(Double_t)(currentkp->GetZDir());
00242   if(dudz!=0) SetDirCosU(dudz/dsdz);
00243   if(dvdz!=0)SetDirCosV(dvdz/dsdz);
00244   if(dsdz!=1) SetDirCosZ(1./dsdz);
00245   SetVtxPlane(currentkp->GetTrackCluster()->GetPlane());
00246 
00247 }

void CandFitTrackSRHandle::SetVtxExtrapolate ( Int_t  nplane,
PlaneView::PlaneView_t  planeview_t 
)

Definition at line 431 of file CandFitTrackSRHandle.cxx.

References CandHandle::GetOwnedCandBase(), PlaneView::kU, and PlaneView::kV.

Referenced by AlgFitTrackSR::SwimVertexAndEndPoints().

00433 {
00434   if(planeview_t == PlaneView::kU){
00435     dynamic_cast<CandFitTrackSR *>(GetOwnedCandBase())->fVtxExtrapolate[0] = nplane;
00436   } 
00437   else if(planeview_t == PlaneView::kV){
00438     dynamic_cast<CandFitTrackSR *>(GetOwnedCandBase())->fVtxExtrapolate[1] = nplane;
00439   }
00440 }

void CandFitTrackSRHandle::Trace ( const char *  c = ""  )  const [virtual]

Reimplemented from CandFitTrackHandle.

Definition at line 77 of file CandFitTrackSRHandle.cxx.

References Msg::kDebug, and MSG.

00078 {
00079   MSG("Cand", Msg::kDebug)
00080     << "**********Begin CandFitTrackSRHandle::Trace(\"" << c << "\")" << endl
00081            << "Information from CandFitTrackSRHandle's CandHandle: " << endl;
00082   CandHandle::Trace(c);
00083   MSG("Cand", Msg::kDebug)
00084      << "**********End CandFitTrackSRHandle::Trace(\"" << c << "\")" << endl;
00085 }


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1