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

AltAlgSlice Class Reference

#include <AltAlgSlice.h>

Inheritance diagram for AltAlgSlice:

AlgBase List of all members.

Public Member Functions

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

Constructor & Destructor Documentation

AltAlgSlice::AltAlgSlice  ) 
 

Definition at line 33 of file AltAlgSlice.cxx.

00034 {
00035  LEA_CTOR;
00036 }

AltAlgSlice::~AltAlgSlice  )  [virtual]
 

Definition at line 38 of file AltAlgSlice.cxx.

00039 {
00040  LEA_DTOR;
00041 }


Member Function Documentation

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

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 }

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

Reimplemented from AlgBase.

Definition at line 43 of file AltAlgSlice.cxx.

00044 {
00045 
00046 }


The documentation for this class was generated from the following files:
Generated on Thu Nov 1 15:55:32 2007 for loon by  doxygen 1.3.9.1