#include <AltAlgStpPatternRec.h>
Inheritance diagram for AltAlgStpPatternRec:

Public Member Functions | |
| AltAlgStpPatternRec () | |
| virtual | ~AltAlgStpPatternRec () |
| virtual void | RunAlg (AlgConfig &ac, CandHandle &ch, CandContext &cx) |
| virtual void | Trace (const char *c) const |
|
|
Definition at line 35 of file AltAlgStpPatternRec.cxx. 00036 {
00037 LEA_CTOR;
00038 }
|
|
|
Definition at line 40 of file AltAlgStpPatternRec.cxx. 00041 {
00042 LEA_DTOR;
00043 }
|
|
||||||||||||||||
|
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 }
|
|
|
Reimplemented from AlgBase. Definition at line 45 of file AltAlgStpPatternRec.cxx. 00046 {
00047
00048 }
|
1.3.9.1