#include <AlgDigiPair.h>
Inheritance diagram for AlgDigiPair:

Public Member Functions | |
| AlgDigiPair () | |
| virtual | ~AlgDigiPair () |
| virtual void | Trace (const char *c) const |
| virtual void | RunAlg (AlgConfig &ac, CandHandle &ch, CandContext &cx) |
|
|
Definition at line 38 of file AlgDigiPair.cxx. 00039 {
00040 //
00041 // Purpose: Default constructor.
00042 //
00043 // Arguments: n/a
00044 //
00045 // Return: n/a
00046 //
00047 }
|
|
|
Definition at line 51 of file AlgDigiPair.cxx. 00052 {
00053 //
00054 // Purpose: Default destructor to delete all static members.
00055 //
00056 // Arguments: n/a
00057 //
00058 // Return: n/a
00059 //
00060 }
|
|
||||||||||||||||
|
Implements AlgBase. Definition at line 64 of file AlgDigiPair.cxx. References CandHandle::AddDaughterLink(), PlexSEIdAltL::GetBestSEId(), CandContext::GetCandRecord(), CandContext::GetDataIn(), CandDigitHandle::GetPlexSEIdAltL(), UgliStripHandle::GetScintPlnHandle(), CandStripHandle::GetStripEndId(), UgliGeomHandle::GetStripHandle(), UgliStripHandle::GetTPos(), RecMinos::GetVldContext(), UgliPlnHandle::GetZ0(), UgliStripHandle::IsValid(), MSG, CandStripHandle::SetBestStripEndId(), CandStripHandle::SetTPos(), and CandStripHandle::SetZPos(). 00065 {
00066 //
00067 // Purpose: Fills the CandDigiPair using the CandDigit(s) supplied.
00068 //
00069 // Argument:
00070 // ac in AlgConfig (not used).
00071 // ch in Handle to the CandDigiPair to fill.
00072 // cx in CandContext containing a TObjArray of
00073 // CandDigitHandles.
00074 //
00075 // Return: n/a
00076 //
00077
00078 MSG("BubAlg", Msg::kVerbose)
00079 << "Starting AlgDigiPair::RunAlg()" << endl;
00080
00081 assert( ch.InheritsFrom("CandDigiPairHandle") );
00082 CandDigiPairHandle &chh = dynamic_cast<CandDigiPairHandle &>(ch);
00083
00084 assert(cx.GetDataIn());
00085
00086 // Check for correct input.
00087 assert(cx.GetDataIn()->InheritsFrom("TObjArray"));
00088 const TObjArray *tary =
00089 dynamic_cast<const TObjArray*>(cx.GetDataIn());
00090
00091 // Loop over all CandDigitHandles.
00092 TIter cdhItr(tary);
00093 while (CandDigitHandle *cdh =
00094 dynamic_cast<CandDigitHandle *>(cdhItr())) {
00095 chh.AddDaughterLink(*cdh);
00096 }
00097
00098 // Set best StripEndId.
00099 cdhItr.Reset();
00100 const CandDigitHandle *cdh =
00101 dynamic_cast<const CandDigitHandle *>(cdhItr());
00102 assert(cdh);
00103 chh.SetBestStripEndId(cdh->GetPlexSEIdAltL().GetBestSEId());
00104
00105 // Set TPos and ZPos.
00106 const CandRecord *candrec = cx.GetCandRecord();
00107 assert(candrec);
00108 const VldContext *vld = candrec->GetVldContext();
00109 assert(vld);
00110 UgliGeomHandle ugh(*vld);
00111 UgliStripHandle ush = ugh.GetStripHandle(chh.GetStripEndId());
00112 if (ush.IsValid()) {
00113 chh.SetTPos(ush.GetTPos());
00114 chh.SetZPos(ush.GetScintPlnHandle().GetZ0());
00115 }
00116 }
|
|
|
Reimplemented from AlgBase. Definition at line 120 of file AlgDigiPair.cxx. References MSG. 00121 {
00122 //
00123 // Purpose: Trace the AlgDigiPair.
00124 //
00125 // Arguments:
00126 // c in String tag for the trace.
00127 //
00128 // Return: n/a
00129 //
00130
00131 MSG("BubCand", Msg::kDebug)
00132 << "**********Begin AlgDigiPair::Trace(\"" << c << "\")" << endl
00133 << "**********End AlgDigiPair::Trace(\"" << c << "\")" << endl;
00134 }
|
1.3.9.1