AlgClusterSR Class Reference

#include <AlgClusterSR.h>

Inheritance diagram for AlgClusterSR:
AlgBase

List of all members.

Public Member Functions

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

Detailed Description

Definition at line 17 of file AlgClusterSR.h.


Constructor & Destructor Documentation

AlgClusterSR::AlgClusterSR (  ) 

Definition at line 32 of file AlgClusterSR.cxx.

00033 {
00034 }

AlgClusterSR::~AlgClusterSR (  )  [virtual]

Definition at line 37 of file AlgClusterSR.cxx.

00038 {
00039 }


Member Function Documentation

void AlgClusterSR::RunAlg ( AlgConfig ac,
CandHandle ch,
CandContext cx 
) [virtual]

Implements AlgBase.

Definition at line 43 of file AlgClusterSR.cxx.

References CandContext::GetDataIn().

00044 {
00045   assert(ch.InheritsFrom("CandClusterHandle"));
00046   CandClusterHandle &cch = dynamic_cast<CandClusterHandle &>(ch);
00047   assert(cx.GetDataIn());
00048   assert(cx.GetDataIn()->InheritsFrom("TObjArray"));
00049   const TObjArray *tary =
00050      dynamic_cast<const TObjArray*>(cx.GetDataIn());
00051   for (Int_t i=0; i<=tary->GetLast(); i++) {
00052      TObject *tobj = tary->At(i);
00053      assert(tobj->InheritsFrom("CandStripHandle"));
00054      CandStripHandle *striphandle = dynamic_cast<CandStripHandle*>(tobj);
00055      cch.AddDaughterLink(*striphandle);
00056   }
00057 }

void AlgClusterSR::Trace ( const char *  c  )  const [virtual]

Reimplemented from AlgBase.

Definition at line 61 of file AlgClusterSR.cxx.

00062 {
00063 }


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1