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

AlgClusterSR.cxx

Go to the documentation of this file.
00001 
00002 // $Id: AlgClusterSR.cxx,v 1.7 2004/08/19 15:01:36 musser Exp $
00003 //
00004 // AlgClusterSR.cxx
00005 //
00006 // Begin_Html<img src="../../pedestrians.gif" align=center>
00007 // <a href="../source_warning.html">Warning for beginners</a>.<br> 
00008 //
00009 // AlgClusterSR is a concrete ClusterSR Algorithm class.
00010 //
00011 // Author:  R. Lee 2001.02.13
00012 //
00013 // Also see <a href="../../root_crib/index.html">The ROOT Crib</a> and 
00014 // <a href="../CandClusterSR.html"> CandClusterSR Classes</a> (part of
00015 // <a href="../index.html">The MINOS Class User Guide</a>)End_Html
00017 
00018 #include <cassert>
00019 
00020 #include "Candidate/CandContext.h"
00021 #include "CandClusterSR/AlgClusterSR.h"
00022 #include "RecoBase/CandClusterHandle.h"
00023 #include "MessageService/MsgService.h"
00024 #include "MinosObjectMap/MomNavigator.h"
00025 #include "RecoBase/CandStripHandle.h"
00026 #include "RecoBase/CandSliceHandle.h"
00027 #include "Validity/VldContext.h"
00028 
00029 ClassImp(AlgClusterSR)
00030 
00031 //______________________________________________________________________
00032 AlgClusterSR::AlgClusterSR()
00033 {
00034 }
00035 
00036 //______________________________________________________________________
00037 AlgClusterSR::~AlgClusterSR()
00038 {
00039 }
00040 
00041 //______________________________________________________________________
00042 
00043 void AlgClusterSR::RunAlg(AlgConfig & /* ac */, CandHandle &ch, CandContext &cx)
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 }
00058 
00059 //______________________________________________________________________
00060 
00061 void AlgClusterSR::Trace(const char * /* c */) const
00062 {
00063 }

Generated on Mon Feb 15 11:06:17 2010 for loon by  doxygen 1.3.9.1