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

Public Member Functions | |
| AltAlgStpPatternRecList () | |
| virtual | ~AltAlgStpPatternRecList () |
| virtual void | RunAlg (AlgConfig &ac, CandHandle &ch, CandContext &cx) |
| virtual void | Trace (const char *c) const |
|
|
Definition at line 47 of file AltAlgStpPatternRecList.cxx. 00048 {
00049 LEA_CTOR;
00050 }
|
|
|
Definition at line 52 of file AltAlgStpPatternRecList.cxx. 00053 {
00054 LEA_DTOR;
00055 }
|
|
||||||||||||||||
|
Implements AlgBase. Definition at line 62 of file AltAlgStpPatternRecList.cxx. References CandSliceHandle::DupHandle(), AlgFactory::GetAlgHandle(), CandContext::GetDataIn(), CandHandle::GetDaughterIterator(), AlgFactory::GetInstance(), CandContext::GetMom(), CandHandle::GetUidInt(), AltCandStpProb::MakeCandidate(), MSG, Registry::Print(), and AltCandStpProbListHandle::SetLikelihoods(). 00064 {
00065 MSG("AltAlg",Msg::kInfo)
00066 << "[-] Begin of AltAlgStpPatternRecList::RunAlg() with parameters"
00067 << endl;
00068 ac.Print();
00069
00070 //--Create a candidate context and get a handle to StpPatternRec algorithm
00071
00072 AlgFactory & af = AlgFactory::GetInstance();
00073 AlgHandle ah = af.GetAlgHandle("AltAlgStpPatternRec","default");
00074
00075 CandContext ccx(this, cx.GetMom());
00076
00077 //-- Get input event slices
00078 assert(cx.GetDataIn());
00079 const CandSliceListHandle * slices =
00080 dynamic_cast<const CandSliceListHandle *> (cx.GetDataIn());
00081
00082 CandSliceHandleItr sliceItr( slices->GetDaughterIterator() );
00083
00084 try {
00085 AltCandStpProbListHandle & likelihood_list =
00086 dynamic_cast<AltCandStpProbListHandle &>(ch);
00087
00088
00089 while (CandSliceHandle * slch = sliceItr()) {
00090
00091 MSG("AltAlg", Msg::kDebug)
00092 << " Slice: " << slch->GetUidInt()
00093 << " / Running AltCandStpProb::MakeCandidate" << endl;
00094
00095 ccx.SetDataIn(slch);
00096 AltCandStpProbHandle prob = AltCandStpProb::MakeCandidate(ah,ccx);
00097
00098 likelihood_list.SetLikelihoods(slch->DupHandle(), &prob);
00099 }
00100
00101 MSG("AltAlg", Msg::kInfo) << "* all AltCandStpProbs created!" << endl;
00102 }
00103
00104 catch( std::bad_cast ) {
00105
00106 MSG("AltAlg",Msg::kWarning)
00107 << "AltCandStpProbListHandle & likelihood_list = "
00108 << "dynamic_cast<AltCandStpProbListHandle &>(ch) failed"<< endl;
00109 }
00110 }
|
|
|
Reimplemented from AlgBase. Definition at line 57 of file AltAlgStpPatternRecList.cxx. 00058 {
00059
00060 }
|
1.3.9.1