Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

AltAlgStpPatternRec Class Reference

#include <AltAlgStpPatternRec.h>

Inheritance diagram for AltAlgStpPatternRec:

AlgBase List of all members.

Public Member Functions

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

Constructor & Destructor Documentation

AltAlgStpPatternRec::AltAlgStpPatternRec  ) 
 

Definition at line 35 of file AltAlgStpPatternRec.cxx.

00036 {
00037  LEA_CTOR;
00038 }

AltAlgStpPatternRec::~AltAlgStpPatternRec  )  [virtual]
 

Definition at line 40 of file AltAlgStpPatternRec.cxx.

00041 {
00042  LEA_DTOR;
00043 }


Member Function Documentation

void AltAlgStpPatternRec::RunAlg AlgConfig ac,
CandHandle ch,
CandContext cx
[virtual]
 

Implements AlgBase.

Definition at line 50 of file AltAlgStpPatternRec.cxx.

References CandStripHandle::DupHandle(), CandContext::GetDataIn(), CandHandle::GetDaughterIterator(), MSG, and AltCandStpProbHandle::SetStripLikelihood().

00052 {
00053   MSG("AltAlg",Msg::kDebug)
00054                      << "Begin Of AltAlgStpPatternRec::RunAlg()" << endl;
00055 
00056   assert(cx.GetDataIn());
00057   assert(cx.GetDataIn()->InheritsFrom("CandSliceHandle"));
00058 
00059   try {
00060      AltCandStpProbHandle & likelihoods =
00061                                dynamic_cast<AltCandStpProbHandle &>(ch);
00062 
00063      CandSliceHandle * cslh = (CandSliceHandle *) (cx.GetDataIn());
00064 
00065      CandStripHandleItr strip_iter( cslh->GetDaughterIterator() );
00066 
00067      while (CandStripHandle * cstph = strip_iter()) {
00068 
00069         // do the neural net calculation
00070 
00071         likelihoods.SetStripLikelihood(cstph->DupHandle(), 0.0);
00072      }
00073 
00074   } catch( std::bad_cast ) {
00075     
00076      MSG("AltAlg",Msg::kWarning)
00077            << "AltCandStpProbHandle & likelihoods = "
00078            << "dynamic_cast<AltCandStpProbHandle &>(ch) failed" << endl;
00079   }
00080 }

void AltAlgStpPatternRec::Trace const char *  c  )  const [virtual]
 

Reimplemented from AlgBase.

Definition at line 45 of file AltAlgStpPatternRec.cxx.

00046 {
00047 
00048 }


The documentation for this class was generated from the following files:
Generated on Mon Feb 15 11:08:34 2010 for loon by  doxygen 1.3.9.1