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

Public Member Functions | |
| AltAlgSlice () | |
| virtual | ~AltAlgSlice () |
| virtual void | RunAlg (AlgConfig &ac, CandHandle &ch, CandContext &cx) |
| virtual void | Trace (const char *c) const |
|
|
Definition at line 33 of file AltAlgSlice.cxx. 00034 {
00035 LEA_CTOR;
00036 }
|
|
|
Definition at line 38 of file AltAlgSlice.cxx. 00039 {
00040 LEA_DTOR;
00041 }
|
|
||||||||||||||||
|
Implements AlgBase. Definition at line 48 of file AltAlgSlice.cxx. References CandHandle::AddDaughterLink(), CandContext::GetDataIn(), and MSG. 00050 {
00051 MSG("AltAlg",Msg::kDebug) << "Begin Of AltAlgSlice::RunAlg()" << endl;
00052
00053 assert(ch.InheritsFrom("CandSliceHandle"));
00054
00055 try {
00056 CandSliceHandle & csh = dynamic_cast<CandSliceHandle &>(ch);
00057
00058 assert(cx.GetDataIn());
00059 assert(cx.GetDataIn()->InheritsFrom("TObject"));
00060
00061 const std::vector<CandStripHandle *> & slice_strips =
00062 ((AltWrapperStlVecStripHandle *) cx.GetDataIn())->GetVec();
00063 assert(slice_strips.size() > 0);
00064
00065 std::vector<CandStripHandle *>::const_iterator strip_iter;
00066
00067 for(strip_iter = slice_strips.begin();
00068 strip_iter != slice_strips.end(); ++strip_iter) {
00069
00070 assert( (*strip_iter)->InheritsFrom("CandStripHandle") );
00071 csh.AddDaughterLink( * (*strip_iter) );
00072 }
00073
00074 } catch( std::bad_cast ) {
00075 MSG("AltAlg",Msg::kWarning)
00076 << "CandSliceHandle &csh = dynamic_cast<CandSliceHandle &>(ch)"
00077 << " failed" << endl;
00078 }
00079
00080 }
|
|
|
Reimplemented from AlgBase. Definition at line 43 of file AltAlgSlice.cxx. 00044 {
00045
00046 }
|
1.3.9.1