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

AlgSuperSliceList Class Reference

#include <AlgSuperSliceList.h>

Inheritance diagram for AlgSuperSliceList:

AlgBase List of all members.

Public Member Functions

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

Constructor & Destructor Documentation

AlgSuperSliceList::AlgSuperSliceList  ) 
 

Definition at line 40 of file AlgSuperSliceList.cxx.

00041 {
00042 //
00043 //  Purpose:    Default constructor.
00044 //
00045 //  Arguments:  n/a
00046 //
00047 //  Return:     n/a
00048 //
00049 }

AlgSuperSliceList::~AlgSuperSliceList  )  [virtual]
 

Definition at line 53 of file AlgSuperSliceList.cxx.

00054 {
00055 //
00056 //  Purpose:    Default destructor.
00057 //
00058 //  Arguments:  n/a
00059 //
00060 //  Return:     n/a
00061 //
00062 }


Member Function Documentation

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

Implements AlgBase.

Definition at line 66 of file AlgSuperSliceList.cxx.

References CandHandle::AddDaughterLink(), AlgFactory::GetAlgHandle(), CandContext::GetCandRecord(), CandContext::GetDataIn(), AlgFactory::GetInstance(), CandContext::GetMom(), CandSlice::MakeCandidate(), and MSG.

00068 {
00069 //
00070 //  Purpose:  Fills the CandSliceList with CandSlices constructed
00071 //            using the supplied CandStripList.
00072 //
00073 //  Argument:
00074 //    ac        in    AlgConfig (not used).
00075 //    ch        in    Handle to the CandSliceList to fill.
00076 //    cx        in    CandContext containing a CandStripList.
00077 //
00078 //  Return:   n/a
00079 //
00080 
00081    MSG("BubAlg", Msg::kVerbose)
00082       << "Starting AlgSuperSliceList::RunAlg()" << endl;
00083 
00084    assert(cx.GetDataIn());
00085 
00086 // Check for CandStripListHandle input.
00087    assert(cx.GetDataIn()->InheritsFrom("CandStripListHandle"));
00088    MSG("BubAlg", Msg::kVerbose)
00089       << "Recover CandStripListHandle." << endl;
00090    const CandStripListHandle *chlh =
00091                dynamic_cast<const CandStripListHandle*>(cx.GetDataIn());
00092 
00093 // General setup.
00094    // Get singleton instance of AlgFactory.
00095    MSG("BubAlg", Msg::kVerbose)
00096       << "AlgFactory &af = AlgFactory::GetInstance();" << endl;
00097    AlgFactory &af = AlgFactory::GetInstance();
00098 
00099    // Get an AlgHandle to AlgSuperSlice with "default" AlgConfig.
00100    MSG("BubAlg", Msg:: kVerbose) <<
00101      "AlgHandle ah = af.GetAlgHandle(\"AlgSuperSlice\", \"default\");"
00102                                                             << endl;
00103    AlgHandle ah = af.GetAlgHandle("AlgSuperSlice", "default");
00104 
00105    MSG("BubAlg", Msg::kVerbose)
00106       << "Create CandContext instance." << endl;
00107    CandContext cxx(this, cx.GetMom());
00108    cxx.SetCandRecord(cx.GetCandRecord());
00109 
00110 // Create a new CandSlice using all CandStrips in CandStripList.
00111    cxx.SetDataIn(const_cast<CandStripListHandle *>(chlh));
00112    CandSliceHandle csh = CandSlice::MakeCandidate(ah, cxx);
00113    ch.AddDaughterLink(csh);
00114 }

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

Reimplemented from AlgBase.

Definition at line 118 of file AlgSuperSliceList.cxx.

References MSG.

00119 {
00120 //
00121 //  Purpose:  Trace the AlgSuperSliceList.
00122 //
00123 //  Arguments:
00124 //    c          in    String tag for the trace.
00125 //
00126 //  Return:   n/a
00127 //
00128 
00129   MSG("BubCand", Msg::kDebug)
00130   << "**********Begin AlgSuperSliceList::Trace(\"" << c << "\")" << endl
00131   << "**********End AlgSuperSliceList::Trace(\"" << c << "\")" << endl;
00132 }


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