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

AltCandStpProb.cxx

Go to the documentation of this file.
00001 
00002 // $Id: AltCandStpProb.cxx,v 1.1 2003/12/22 18:08:50 costas Exp $
00003 //
00004 // AltCandStpProb
00005 //
00006 //    -- A candidate object for keeping "CandStripHandle" --> "Neural Net
00007 //       Likelihood" associations
00008 //    -- It keeps this association for a collection of CandStripHandles
00009 //       belonging to a given "super"-set (eg. a slice, an event etc...)
00010 //
00011 // Costas Andreopoulos <C.V.Andreopoulos@rl.ac.uk>
00012 // CCLRC, Rutherford Appleton Laboratory
00013 // November 17, 2003
00015 
00016 #include "AltCandStpProb.h"
00017 #include "AltCandStpProbHandle.h"
00018 
00019 #include "Algorithm/AlgHandle.h"
00020 #include "LeakChecker/Lea.h"
00021 #include "MessageService/MsgService.h"
00022 
00023 ClassImp(AltCandStpProb)
00024 //__________________________________________________________________________
00025 CVSID("$Id: AltCandStpProb.cxx,v 1.1 2003/12/22 18:08:50 costas Exp $");
00026 //__________________________________________________________________________
00027 AltCandStpProb::AltCandStpProb()
00028 {
00029   MSG("AltCand",Msg::kVerbose)
00030       << "Begin of AltCandStpProb::AltCandStpProb()"
00031                                << " ctor: UidInt = " << GetUidInt() << endl;
00032 
00033   LEA_CTOR;
00034 }
00035 //__________________________________________________________________________
00036 AltCandStpProb::AltCandStpProb(AlgHandle &ah) :
00037 CandBase(ah)
00038 {
00039   MSG("AltCand",Msg::kVerbose)
00040     << "Begin of AltCandStpProb::AltCandStpProb("
00041           << "AlgHandle & ah) ctor: " << "UidInt = " << GetUidInt() << endl;
00042 
00043   LEA_CTOR;
00044 }
00045 //__________________________________________________________________________
00046 AltCandStpProb::AltCandStpProb(
00047                            AlgHandle &ah, CandHandle &ch, CandContext &cx) :
00048 CandBase(ah)
00049 {
00050   MSG("AltCand",Msg::kVerbose)
00051      << "Begin of AltCandStpProb::AltCandStpProb("
00052      << "AlgHandle & ah, CandHandle & ch, CandContext & cx) ctor: UidInt = "
00053      << GetUidInt() << endl;
00054 
00055   LEA_CTOR;
00056 
00057   CreateLocalHandle();
00058 
00059   AltCandStpProbHandle cshl(this);
00060   ch = cshl;
00061 
00062   ah.RunAlg(ch, cx);
00063 }
00064 //__________________________________________________________________________
00065 AltCandStpProb::AltCandStpProb(const AltCandStpProb &rhs) :
00066 CandBase(rhs)
00067 {
00068   MSG("AltCand",Msg::kVerbose)
00069       << "Begin of AltCandStpProb::AltCandStpProb("
00070       << "const AltCandStpProb & rhs) ctor: UidInt = "
00071       << GetUidInt() << endl;
00072 
00073   LEA_CTOR;
00074 }
00075 //__________________________________________________________________________
00076 AltCandStpProb::~AltCandStpProb()
00077 {
00078   MSG("AltCand",Msg::kVerbose)
00079      << "Begin of AltCandStpProb::~AltCandStpProb()"
00080      << " dtor: UidInt = "
00081      << GetUidInt() << endl;
00082 
00083   LEA_DTOR;
00084 }
00085 //__________________________________________________________________________
00086 void AltCandStpProb::CreateLocalHandle()
00087 {
00088   SetLocalHandle(new AltCandStpProbHandle(this));
00089 }
00090 //__________________________________________________________________________
00091 AltCandStpProb *AltCandStpProb::Dup() const
00092 {
00093   AltCandStpProb *cb = new AltCandStpProb(*this);
00094   cb->CreateLocalHandle();
00095   TIter daughter_iter = GetDaughterIterator();
00096   CandHandle * cdh;
00097   while ((cdh=(CandHandle *) daughter_iter())) cb->AddDaughterLink(*cdh);
00098   return cb;
00099 }
00100 //__________________________________________________________________________
00101 AltCandStpProbHandle AltCandStpProb::MakeCandidate(
00102                                              AlgHandle &ah, CandContext &cx)
00103 {
00104   AltCandStpProbHandle cshl;
00105   new AltCandStpProb(ah, cshl, cx); 
00106   return cshl;
00107 }
00108 //__________________________________________________________________________

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