AlgFitTrackAtNuList Class Reference

#include <AlgFitTrackAtNuList.h>

Inheritance diagram for AlgFitTrackAtNuList:
AlgBase

List of all members.

Public Member Functions

 AlgFitTrackAtNuList ()
 ~AlgFitTrackAtNuList ()
void RunAlg (AlgConfig &ac, CandHandle &ch, CandContext &cx)
void Trace (const char *c) const

Detailed Description

Definition at line 7 of file AlgFitTrackAtNuList.h.


Constructor & Destructor Documentation

AlgFitTrackAtNuList::AlgFitTrackAtNuList (  ) 

Definition at line 20 of file AlgFitTrackAtNuList.cxx.

00021 {
00022 
00023 }

AlgFitTrackAtNuList::~AlgFitTrackAtNuList (  ) 

Definition at line 25 of file AlgFitTrackAtNuList.cxx.

00026 {
00027 
00028 }


Member Function Documentation

void AlgFitTrackAtNuList::RunAlg ( AlgConfig ac,
CandHandle ch,
CandContext cx 
) [virtual]

Implements AlgBase.

Definition at line 29 of file AlgFitTrackAtNuList.cxx.

References CandHandle::AddDaughterLink(), AlgFactory::GetAlgHandle(), CandContext::GetCandRecord(), CandContext::GetDataIn(), CandHandle::GetDaughterIterator(), AlgFactory::GetInstance(), CandContext::GetMom(), CandFitTrackAtNu::MakeCandidate(), CandHandle::SetName(), and CandHandle::SetTitle().

00030 {
00031 
00032   // Get CandFitTrackListHandle
00033   CandFitTrackAtNuListHandle& fittrk_list = dynamic_cast<CandFitTrackAtNuListHandle&>(ch);
00034 
00035   // Get singleton instance of AlgFactory
00036   AlgFactory &af = AlgFactory::GetInstance();
00037   AlgHandle ah_fittrk = af.GetAlgHandle("AlgFitTrackAtNu", "default");
00038   CandRecord* candrec = (CandRecord*)(cx.GetCandRecord());
00039   CandContext cx_fittrk(this, cx.GetMom());
00040   cx_fittrk.SetCandRecord(candrec);
00041 
00042   // Make CandFitTrackHandle
00043   const CandTrackListHandle* trk_list = dynamic_cast<const CandTrackListHandle*>(cx.GetDataIn());
00044   TIter trk_itr(trk_list->GetDaughterIterator());
00045   while(CandTrackHandle* trk = dynamic_cast<CandTrackHandle*>(trk_itr())){ 
00046     cx_fittrk.SetDataIn(trk);
00047     CandFitTrackAtNuHandle fittrk = CandFitTrackAtNu::MakeCandidate(ah_fittrk,cx_fittrk);
00048     fittrk.SetName(TString("CandFitTrackAtNuHandle"));
00049     fittrk.SetTitle(TString("Created by AlgFitTrackAtNu from ").Append(trk->GetName()));
00050     fittrk_list.AddDaughterLink(fittrk);
00051   }  
00052 
00053   return;
00054 }

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

Reimplemented from AlgBase.

Definition at line 56 of file AlgFitTrackAtNuList.cxx.

00057 {
00058 
00059 }


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1