00001 //_____________________________________________________________________________ 00010 00011 #include <string> 00012 00013 #include "Algorithm/AlgConfig.h" 00014 #include "MessageService/MsgService.h" 00015 00016 #include "CandFitTrackSA/DataFT.h" 00017 #include "CandFitTrackSA/MatrixCalculator.h" 00018 00019 #include "CandFitTrackSA/FitStateFactory.h" 00020 #include "CandFitTrackSA/FitStateFinal.h" 00021 #include "CandFitTrackSA/FitContext.h" 00022 00023 CVSID("$Id: FitStateFinal.cxx,v 1.2 2006/02/04 21:47:35 avva Exp $"); 00024 00025 // The ID of class Line 00026 static const std::string FINAL_FIT_STATE = "Final"; 00027 00028 // Create an anonymous namespace 00029 // to make the function invisible from other modules 00030 namespace { 00031 00032 FitState* CreateFinalFS() { return new FitStateFinal; } 00033 00034 // register block 00035 bool registered = FitStateFactory::Instance().RegisterFitState( 00036 FINAL_FIT_STATE, 00037 CreateFinalFS); 00038 } // namespace 00039 00040 00044 void FitStateFinal::Iterate(FitContext& context) const 00045 { 00046 if ( context.fTimesConverged != 0 ) { 00047 MSG("FitTrackSA",Msg::kInfo) << "Fit Successful!\n"; 00048 } else { 00049 MSG("FitTrackSA",Msg::kInfo) << "Fit Failed!\n"; 00050 } 00051 } 00052 00053 00057 const std::string& FitStateFinal::Name() const 00058 { 00059 return FINAL_FIT_STATE; 00060 }
1.3.9.1