AlgSliceSR Class Reference

#include <AlgSliceSR.h>

Inheritance diagram for AlgSliceSR:
AlgBase

List of all members.

Public Member Functions

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

Detailed Description

Definition at line 17 of file AlgSliceSR.h.


Constructor & Destructor Documentation

AlgSliceSR::AlgSliceSR (  ) 

Definition at line 33 of file AlgSliceSR.cxx.

00034 {
00035 }

AlgSliceSR::~AlgSliceSR (  )  [virtual]

Definition at line 38 of file AlgSliceSR.cxx.

00039 {
00040 }


Member Function Documentation

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

Implements AlgBase.

Definition at line 43 of file AlgSliceSR.cxx.

References CandContext::GetDataIn().

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

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

Reimplemented from AlgBase.

Definition at line 66 of file AlgSliceSR.cxx.

00067 {
00068 }


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1