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

|
|
Definition at line 28 of file CandSubShowerSRHandle.cxx. Referenced by DupHandle(). 00029 {
00030 }
|
|
|
Definition at line 33 of file CandSubShowerSRHandle.cxx. 00033 : 00034 CandRecoHandle(cdh) 00035 { 00036 }
|
|
|
Definition at line 39 of file CandSubShowerSRHandle.cxx. 00039 : 00040 CandRecoHandle(cd) 00041 { 00042 }
|
|
|
Definition at line 45 of file CandSubShowerSRHandle.cxx. 00046 {
00047 }
|
|
|
Reimplemented from CandRecoHandle. Definition at line 50 of file CandSubShowerSRHandle.cxx. References CandSubShowerSRHandle(). Referenced by AlgEventSSList::AddStripToEvent(), CandShowerSRHandle::AddSubShower(), and AlgEventSSList::ReConstructShowers(). 00051 {
00052 return (new CandSubShowerSRHandle(*this));
00053 }
|
|
|
Definition at line 273 of file CandSubShowerSRHandle.cxx. References CandHandle::GetDaughterIterator(), and CandStripHandle::GetTime(). Referenced by AlgSubShowerSRList::CleanUp(), and AlgShowerSSList::RunAlg(). 00274 {
00275 Double_t AveTime = 0.;
00276 Double_t Tot = 0.;
00277 TIter stripItr(GetDaughterIterator());
00278 while (CandStripHandle *strip =
00279 dynamic_cast<CandStripHandle*>(stripItr())) {
00280 Tot += 1.;
00281 AveTime += strip->GetTime();
00282 }
00283 if(Tot<=0) return 0;
00284 return AveTime/Tot;
00285 }
|
|
|
Definition at line 92 of file CandSubShowerSRHandle.cxx. References CandHandle::GetCandBase(). Referenced by AlgEventSSList::AddStripToEvent(), AlgSubShowerSRList::CleanUp(), NtpSRModule::FillNtpCluster(), AlgSubShowerSRList::FormHalo(), and AlgShowerSSList::RunAlg(). 00093 {
00094 return dynamic_cast<const CandSubShowerSR *>(GetCandBase())->AvgDev;
00095 }
|
|
|
Definition at line 104 of file CandSubShowerSRHandle.cxx. References CandHandle::GetCandBase(). Referenced by CandShowerSRHandle::BelongsWithTrack(), CandShowerSRHandle::BuriedTrack(), NtpSRModule::FillNtpCluster(), NtpSRModule::FillNtpSubShowerSummary(), AlgSubShowerSRList::FormHalo(), CandShowerSRHandle::GetMaxPhysU(), CandShowerSRHandle::GetMaxPhysV(), CandShowerSRHandle::GetMinPhysU(), CandShowerSRHandle::GetMinPhysV(), CandShowerSRHandle::GetNPhysStrips(), CandShowerSRHandle::IsUnphysical(), AlgShowerSSList::RunAlg(), and AlgSubShowerSRList::TestOverLap(). 00105 {
00106 return dynamic_cast<const CandSubShowerSR *>(GetCandBase())->ClusterID;
00107 }
|
|
|
Definition at line 56 of file CandSubShowerSRHandle.cxx. References CandHandle::GetCandBase(). Referenced by AlgEventSSList::AddStripToEvent(), AlgSubShowerSRList::CleanUp(), NtpSRModule::FillNtpCluster(), NtpSRModule::FillNtpSubShowerSummary(), AlgSubShowerSRList::FormHalo(), KeyFromReverseViewEnergy(), KeyFromViewEnergy(), AlgShowerSSList::RunAlg(), AlgShowerSS::RunAlg(), and AlgSubShowerSR::SubShowerID(). 00057 {
00058 return dynamic_cast<const CandSubShowerSR *>(GetCandBase())->Energy;
00059 }
|
|
|
Definition at line 303 of file CandSubShowerSRHandle.cxx. References CandHandle::GetDaughterIterator(), and CandStripHandle::GetTime(). Referenced by AlgShowerSSList::RunAlg(). 00304 {
00305 Double_t maxTime = 0;
00306 TIter stripItr(GetDaughterIterator());
00307 while (CandStripHandle *strip =
00308 dynamic_cast<CandStripHandle*>(stripItr())) {
00309 if(strip->GetTime()>maxTime) maxTime = strip->GetTime();
00310 }
00311 return maxTime;
00312 }
|
|
|
Definition at line 207 of file CandSubShowerSRHandle.cxx. References CandHandle::GetDaughterIterator(), VldContext::GetDetector(), CandRecoHandle::GetEndPlane(), GetPlaneView(), CandStripHandle::GetTPos(), and CandHandle::GetVldContext(). Referenced by CandShowerSRHandle::GetMaxPhysU(), and AlgShowerSSList::RunAlg(). 00207 {
00208 if(this->GetPlaneView()!=PlaneView::kU) return -999;
00209 CandStripHandleItr sItr(GetDaughterIterator());
00210 CandStripHandle * begstrip = sItr();
00211 if(!begstrip) return -999;
00212 const VldContext * vld = begstrip->GetVldContext();
00213 if(!vld) return -999;
00214 PlexPlaneId plnid(vld->GetDetector(),iplane,false);
00215 if(plnid.GetPlaneView()!=PlaneView::kU) return -999;
00216 if(iplane<GetBegPlane() || iplane>GetEndPlane()) return -999;
00217
00218 CandStripHandleItr stripItr(GetDaughterIterator());
00219 CandStripHandleKeyFunc *stripKf = stripItr.CreateKeyFunc();
00220 stripKf->SetFun(CandStripHandle::KeyFromPlane);
00221 stripItr.GetSet()->AdoptSortKeyFunc(stripKf);
00222 stripKf = 0;
00223 stripItr.GetSet()->Slice(iplane);
00224
00225 Float_t maxU=-999;
00226 while (const CandStripHandle *strip =
00227 dynamic_cast<const CandStripHandle*>(stripItr())) {
00228 if(strip->GetTPos()>maxU) maxU = strip->GetTPos();
00229 }
00230 return maxU;
00231 }
|
|
|
Definition at line 235 of file CandSubShowerSRHandle.cxx. References CandHandle::GetDaughterIterator(), VldContext::GetDetector(), CandRecoHandle::GetEndPlane(), GetPlaneView(), CandStripHandle::GetTPos(), and CandHandle::GetVldContext(). Referenced by CandShowerSRHandle::GetMaxPhysV(), and AlgShowerSSList::RunAlg(). 00235 {
00236 if(this->GetPlaneView()!=PlaneView::kV) return -999;
00237 CandStripHandleItr sItr(GetDaughterIterator());
00238 CandStripHandle * begstrip = sItr();
00239 if(!begstrip)return -999;
00240 const VldContext * vld = begstrip->GetVldContext();
00241 if(!vld)return -999;
00242 PlexPlaneId plnid(vld->GetDetector(),iplane,false);
00243 if(plnid.GetPlaneView()!=PlaneView::kV)return -999.;
00244 if(iplane<GetBegPlane() || iplane>GetEndPlane()) return -999;
00245
00246 CandStripHandleItr stripItr(GetDaughterIterator());
00247 CandStripHandleKeyFunc *stripKf = stripItr.CreateKeyFunc();
00248 stripKf->SetFun(CandStripHandle::KeyFromPlane);
00249 stripItr.GetSet()->AdoptSortKeyFunc(stripKf);
00250 stripKf = 0;
00251 stripItr.GetSet()->Slice(iplane);
00252
00253 Float_t maxV=-999.;
00254 while (const CandStripHandle *strip =
00255 dynamic_cast<const CandStripHandle*>(stripItr())) {
00256 if(strip->GetTPos()>maxV) maxV=strip->GetTPos();
00257 }
00258 return maxV;
00259 }
|
|
|
Definition at line 289 of file CandSubShowerSRHandle.cxx. References CandHandle::GetDaughterIterator(), and CandStripHandle::GetTime(). Referenced by AlgShowerSSList::RunAlg(). 00290 {
00291 Double_t minTime = -1;
00292 TIter stripItr(GetDaughterIterator());
00293 while (CandStripHandle *strip =
00294 dynamic_cast<CandStripHandle*>(stripItr())) {
00295 if(minTime<0) minTime = strip->GetTime();
00296 else if(strip->GetTime()<minTime) minTime = strip->GetTime();
00297 }
00298 return minTime;
00299 }
|
|
|
Definition at line 128 of file CandSubShowerSRHandle.cxx. References CandHandle::GetCandBase(). 00129 {
00130 return dynamic_cast<const CandSubShowerSR *>(GetCandBase())->MinStripPE;
00131 }
|
|
|
Definition at line 152 of file CandSubShowerSRHandle.cxx. References CandHandle::GetDaughterIterator(), VldContext::GetDetector(), CandRecoHandle::GetEndPlane(), GetPlaneView(), CandStripHandle::GetTPos(), and CandHandle::GetVldContext(). Referenced by CandShowerSRHandle::GetMinPhysU(), and AlgShowerSSList::RunAlg(). 00152 {
00153 if(this->GetPlaneView()!=PlaneView::kU) return 999;
00154 CandStripHandleItr sItr(GetDaughterIterator());
00155 CandStripHandle * begstrip = sItr();
00156 if(!begstrip) return 999;
00157 const VldContext * vld = begstrip->GetVldContext();
00158 if(!vld) return 999;
00159 PlexPlaneId plnid(vld->GetDetector(),iplane,false);
00160 if(plnid.GetPlaneView()!=PlaneView::kU) return 999.;
00161 if(iplane<GetBegPlane() || iplane>GetEndPlane()) return 999;
00162
00163 CandStripHandleItr stripItr(GetDaughterIterator());
00164 CandStripHandleKeyFunc *stripKf = stripItr.CreateKeyFunc();
00165 stripKf->SetFun(CandStripHandle::KeyFromPlane);
00166 stripItr.GetSet()->AdoptSortKeyFunc(stripKf);
00167 stripKf = 0;
00168 stripItr.GetSet()->Slice(iplane);
00169
00170 Float_t minU=999.;
00171 while (const CandStripHandle *strip =
00172 dynamic_cast<const CandStripHandle*>(stripItr())) {
00173 if(strip->GetTPos()<minU) minU = strip->GetTPos();
00174 }
00175 return minU;
00176 }
|
|
|
Definition at line 179 of file CandSubShowerSRHandle.cxx. References CandHandle::GetDaughterIterator(), VldContext::GetDetector(), CandRecoHandle::GetEndPlane(), GetPlaneView(), CandStripHandle::GetTPos(), and CandHandle::GetVldContext(). Referenced by CandShowerSRHandle::GetMinPhysV(), and AlgShowerSSList::RunAlg(). 00179 {
00180 if(this->GetPlaneView()!=PlaneView::kV) return 999;
00181 CandStripHandleItr sItr(GetDaughterIterator());
00182 CandStripHandle * begstrip = sItr();
00183 if(!begstrip) return 999;
00184 const VldContext * vld = begstrip->GetVldContext();
00185 if(!vld) return 999;
00186 PlexPlaneId plnid(vld->GetDetector(),iplane,false);
00187 if(plnid.GetPlaneView()!=PlaneView::kV) return 999;
00188 if(iplane<GetBegPlane() || iplane>GetEndPlane()) return 999;
00189
00190 CandStripHandleItr stripItr(GetDaughterIterator());
00191 CandStripHandleKeyFunc *stripKf = stripItr.CreateKeyFunc();
00192 stripKf->SetFun(CandStripHandle::KeyFromPlane);
00193 stripItr.GetSet()->AdoptSortKeyFunc(stripKf);
00194 stripKf = 0;
00195 stripItr.GetSet()->Slice(iplane);
00196
00197 Float_t minV=999.;
00198 while (const CandStripHandle *strip =
00199 dynamic_cast<const CandStripHandle*>(stripItr())) {
00200 if(strip->GetTPos()<minV) minV = strip->GetTPos();
00201 }
00202 return minV;
00203 }
|
|
|
Definition at line 262 of file CandSubShowerSRHandle.cxx. References CandHandle::GetDaughterIterator(), and CandStripHandle::GetPlane(). Referenced by CandShowerSRHandle::GetNPhysStrips(). 00262 {
00263 Int_t nstrips=0;
00264 CandStripHandleItr stripItr(GetDaughterIterator());
00265 while (const CandStripHandle *strip =
00266 dynamic_cast<const CandStripHandle*>(stripItr())) {
00267 if(strip->GetPlane()==iplane)nstrips++;
00268 }
00269 return nstrips;
00270 }
|
|
|
Definition at line 68 of file CandSubShowerSRHandle.cxx. References CandHandle::GetCandBase(). Referenced by AlgEventSSList::AddStripToEvent(), CandShowerSRHandle::AddSubShower(), CandShowerSRHandle::BelongsWithTrack(), CandShowerSRHandle::BuriedTrack(), AlgSubShowerSR::CalculateEnergyVertexAngle(), AlgSubShowerSRList::CleanUp(), AlgEventSSList::CreatePrimaryShower(), NtpSRModule::FillNtpCluster(), NtpSRModule::FillNtpSubShowerSummary(), AlgSubShowerSRList::FormHalo(), CandShowerSRHandle::GetMaxPhysU(), CandShowerSRHandle::GetMaxPhysV(), GetMaxU(), GetMaxV(), CandShowerSRHandle::GetMinPhysU(), CandShowerSRHandle::GetMinPhysV(), GetMinU(), GetMinV(), KeyFromReverseViewEnergy(), KeyFromViewEnergy(), CandShowerSRHandle::RemoveSubShower(), AlgSubShowerSR::RunAlg(), AlgShowerSSList::RunAlg(), AlgShowerSS::RunAlg(), and AlgSubShowerSRList::TestOverLap(). 00069 {
00070 return dynamic_cast<const CandSubShowerSR *>(GetCandBase())->planeView;
00071 }
|
|
|
Definition at line 116 of file CandSubShowerSRHandle.cxx. References CandHandle::GetCandBase(). Referenced by NtpSRModule::FillNtpCluster(), and NtpSRModule::FillNtpSubShowerSummary(). 00117 {
00118 return dynamic_cast<const CandSubShowerSR *>(GetCandBase())->ProbEM;
00119 }
|
|
|
Definition at line 80 of file CandSubShowerSRHandle.cxx. References CandHandle::GetCandBase(). Referenced by AlgEventSSList::AddStripToEvent(), AlgSubShowerSRList::CleanUp(), NtpSRModule::FillNtpCluster(), AlgSubShowerSRList::FormHalo(), AlgShowerSSList::RunAlg(), AlgShowerSS::RunAlg(), and AlgSubShowerSRList::TestOverLap(). 00081 {
00082 return dynamic_cast<const CandSubShowerSR *>(GetCandBase())->Slope;
00083 }
|
|
|
Definition at line 335 of file CandSubShowerSRHandle.cxx. References GetEnergy(), and GetPlaneView(). 00336 {
00337 PlaneView::PlaneView_t view = subshower->GetPlaneView();
00338 Double_t eng = subshower->GetEnergy();
00339 if (view==PlaneView::kU||view==PlaneView::kX) return ((view+1)*2000+eng);
00340 if (view==PlaneView::kV||view==PlaneView::kY) return (view*1000+eng);
00341 else return (view*100+eng);
00342 }
|
|
|
Definition at line 318 of file CandSubShowerSRHandle.cxx. References CandRecoHandle::GetCandSlice(), and CandHandle::GetUidInt(). 00319 {
00320 if (subshower->GetCandSlice()) {
00321 return static_cast<Int_t>(subshower->GetCandSlice()->GetUidInt());
00322 }
00323 return 0;
00324 }
|
|
|
Definition at line 326 of file CandSubShowerSRHandle.cxx. References GetEnergy(), and GetPlaneView(). 00327 {
00328 PlaneView::PlaneView_t view = subshower->GetPlaneView();
00329 Double_t eng = subshower->GetEnergy();
00330 if (view==PlaneView::kU||view==PlaneView::kX) return ((view+1)*2000+eng)*(-1.);
00331 if (view==PlaneView::kV||view==PlaneView::kY) return (view*1000+eng)*(-1.);
00332 else return (view*100+eng)*(-1.);
00333 }
|
|
|
Definition at line 98 of file CandSubShowerSRHandle.cxx. References CandHandle::GetOwnedCandBase(). Referenced by AlgSubShowerSR::CalculateEnergyVertexAngle(). 00099 {
00100 dynamic_cast<CandSubShowerSR *>(GetOwnedCandBase())->AvgDev=avgdev;
00101 }
|
|
|
Definition at line 110 of file CandSubShowerSRHandle.cxx. References CandHandle::GetOwnedCandBase(). Referenced by AlgEventSSList::BuildEventFromUnassoc(), AlgEventSSList::CreatePrimaryShower(), AlgSubShowerSRList::FormHalo(), and AlgSubShowerSR::SubShowerID(). 00111 {
00112 dynamic_cast<CandSubShowerSR *>(GetOwnedCandBase())->ClusterID = ss;
00113 }
|
|
|
Definition at line 62 of file CandSubShowerSRHandle.cxx. References CandHandle::GetOwnedCandBase(). Referenced by AlgEventSSList::AddStripToEvent(), AlgSubShowerSR::CalculateEnergyVertexAngle(), and AlgSubShowerSRList::CleanUp(). 00063 {
00064 dynamic_cast<CandSubShowerSR *>(GetOwnedCandBase())->Energy = en;
00065 }
|
|
|
Definition at line 134 of file CandSubShowerSRHandle.cxx. References CandHandle::GetOwnedCandBase(). Referenced by AlgSubShowerSRList::FormHalo(), and AlgSubShowerSRList::RunAlg(). 00135 {
00136 dynamic_cast<CandSubShowerSR *>(GetOwnedCandBase())->MinStripPE = minstrippe;
00137 }
|
|
|
Definition at line 74 of file CandSubShowerSRHandle.cxx. References CandHandle::GetOwnedCandBase(). Referenced by AlgSubShowerSR::RunAlg(). 00075 {
00076 dynamic_cast<CandSubShowerSR *>(GetOwnedCandBase())->planeView = pv;
00077 }
|
|
|
Definition at line 122 of file CandSubShowerSRHandle.cxx. References CandHandle::GetOwnedCandBase(). Referenced by AlgSubShowerSR::SubShowerID(). 00123 {
00124 dynamic_cast<CandSubShowerSR *>(GetOwnedCandBase())->ProbEM = probem;
00125 }
|
|
|
Definition at line 86 of file CandSubShowerSRHandle.cxx. References CandHandle::GetOwnedCandBase(). Referenced by AlgSubShowerSR::CalculateEnergyVertexAngle(). 00087 {
00088 dynamic_cast<CandSubShowerSR *>(GetOwnedCandBase())->Slope=slope;
00089 }
|
|
|
Reimplemented from CandRecoHandle. Definition at line 140 of file CandSubShowerSRHandle.cxx. References MSG, and CandHandle::Trace(). 00141 {
00142 MSG("Cand", Msg::kDebug)
00143 << "*******Begin CandSubShowerSRHandle::Trace(\"" << c << "\")" << endl
00144 << "Information from CandSubShowerSRHandle's CandHandle: " << endl;
00145 CandHandle::Trace(c);
00146 MSG("Cand", Msg::kDebug)
00147 << "*******End CandSubShowerSRHandle::Trace(\"" << c << "\")" << endl;
00148 }
|
1.3.9.1