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

Contact: bv@bnl.gov
Created on: Wed Oct 2 15:40:07 2002
Definition at line 29 of file EventDisplay/GfxTrackList.h.
|
|
Definition at line 53 of file Midad/MultiPage/GfxTrackList.h. |
|
|
Definition at line 66 of file EventDisplay/GfxTrackList.h. |
|
|
Definition at line 28 of file EventDisplay/GfxTrackList.cxx. References fCfg, fTracksCA, RecArrayAllocator::GetArray(), RecArrayAllocator::Instance(), GfxCfg::modified_signal, and ReConfigure(). 00029 :fCfg(0) 00030 ,fHideTracks(false) 00031 { 00032 fCfg = new GfxTrackListCfg(); 00033 fCfg->modified_signal.connect 00034 (SigC::slot_class(*this,&GfxTrackList::ReConfigure)); 00035 RecArrayAllocator& a = RecArrayAllocator::Instance(); 00036 fTracksCA = a.GetArray("GfxTrack"); 00037 }
|
|
|
Definition at line 39 of file EventDisplay/GfxTrackList.cxx. References fTracksCA, RecArrayAllocator::Instance(), and RecArrayAllocator::ReleaseArray(). 00040 {
00041 RecArrayAllocator& a = RecArrayAllocator::Instance();
00042 if (fTracksCA) { a.ReleaseArray(fTracksCA); fTracksCA = 0; }
00043 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 121 of file EventDisplay/GfxTrackList.cxx. References fTracks, and fTracksCA. Referenced by Configure().
|
|
|
This is called every time the Mint object changes. The Gfx object should pull data from Mint to configure itself. Mint will exist for the lifetime of the Gfx object. Reimplemented from GfxBase. |
|
|
This is called every time the Mint object changes. The Gfx object should pull data from Mint to configure itself. Mint will exist for the lifetime of the Gfx object. Reimplemented from GfxBase. Definition at line 55 of file EventDisplay/GfxTrackList.cxx. References ClearTrackList(), fPageDisplay, fTracks, fTracksCA, EVD::GetCandEvent(), CandRecoHandle::GetCandSlice(), EVD::GetCandSlice(), CandHandle::GetDaughterIterator(), GetEVD(), CandFitTrackHandle::GetFinderTrack(), MomNavigator::GetFragment(), Mint::GetJobC(), CandEventHandle::GetLastTrack(), EVD::GetNumSlices(), RangeControl< TYPE >::GetRange(), GuiSlider::GetRangeCtrl(), PageDisplay::GetTimeSlider(), CandEventHandle::GetTrack(), Mint::GetTracks(), CandRecoHandle::GetVtxT(), Range< TYPE >::InRange(), CandHandle::IsCloneOf(), JobC::Mom, RangeDouble, ReConfigure(), and time_range(). 00056 {
00057 this->ClearTrackList();
00058 CandRecord* crec = dynamic_cast<CandRecord*>
00059 (mint.GetJobC().Mom.GetFragment("CandRecord", "PrimaryCandidateRecord"));
00060 if (!crec) return;
00061
00062
00063
00064 // const CandTrackListHandle* ctlh = dynamic_cast<CandTrackListHandle*>(crec->FindCandHandle("CandFitTrackCamListHandle","CandFitTrackCamList"));
00065 CandTrackListHandle * ctlh = mint.GetTracks();
00066 if (!ctlh) return;
00067 RangeDouble& time_range =
00068 fPageDisplay->GetTimeSlider().GetRangeCtrl().GetRange();
00069 TIter trackItr(ctlh->GetDaughterIterator());
00070 while (CandTrackHandle *cth = dynamic_cast<CandTrackHandle*>
00071 (trackItr())) {
00072
00073 CandTrackHandle * findtrack=0;
00074 bool addtrack=true;
00075 if(GetEVD()->GetCandSlice()){
00076 CandSliceHandle slc1 = *(GetEVD()->GetCandSlice());
00077 CandSliceHandle slc2;
00078 if(cth->GetCandSlice()) slc2=*(cth->GetCandSlice());
00079 if(slc1!=slc2 && !slc1.IsCloneOf(slc2)){
00080 addtrack=false;
00081 }
00082 }
00083 else if(GetEVD()->GetCandEvent()){
00084 addtrack=false;
00085 for( Int_t itrack=0;itrack<=GetEVD()->GetCandEvent()->GetLastTrack();itrack++){
00086 const CandFitTrackHandle *evtrack = dynamic_cast<const CandFitTrackHandle *>(GetEVD()->GetCandEvent()->GetTrack(itrack));
00087 findtrack=evtrack->GetFinderTrack();
00088 if(findtrack){
00089 if (*findtrack==*cth){
00090 addtrack=true;
00091 break;
00092 }
00093 }
00094 const CandTrackHandle *evtrackbase = dynamic_cast<const CandTrackHandle *>(evtrack);
00095 if(*evtrackbase==*cth){
00096 addtrack=true;
00097 break;
00098 }
00099 }
00100 }
00101
00102 int last = fTracksCA->GetLast()+1;
00103 if(addtrack && (time_range.InRange(cth->GetVtxT()) || GetEVD()->GetNumSlices()<2) ){
00104 new ((*fTracksCA)[last]) GfxTrack(*cth,*this);
00105 GfxTrack* gs = dynamic_cast<GfxTrack*>(fTracksCA->UncheckedAt(last));
00106 fTracks.push_back(gs);
00107 }
00108 }
00109 this->ReConfigure();
00110
00111 }
|
|
|
|
|
|
Definition at line 127 of file EventDisplay/GfxTrackList.cxx. References fTracks, EVD::GetDrawAll(), EVD::GetDrawGhosts(), GetEVD(), EVD::GetGhostColor(), and option. 00128 {
00129 // cerr << "GfxTrackList::Draw("<<option<<")\n";
00130 for (TrackList_t::iterator it=fTracks.begin(); it != fTracks.end(); ++it) {
00131
00132 if(GetEVD()->GetDrawAll() || ((*it)->GetColor()==GetEVD()->GetGhostColor() && GetEVD()->GetDrawGhosts()) || ((*it)->GetColor()!=GetEVD()->GetGhostColor() && GetEVD()->GetDrawGhosts())){
00133 (*it)->Draw(option);
00134 }
00135
00136 }
00137 }
|
|
||||||||||||||||
|
Definition at line 43 of file EventDisplay/GfxTrackList.h. 00043 {;}
|
|
||||||||||||||||||||
|
Definition at line 139 of file EventDisplay/GfxTrackList.cxx. References Form(), CandTrackHandle::GetMomentum(), CandHandle::GetNDaughters(), and GfxTrack::GetTrack(). Referenced by GfxTrack::ExecuteEvent(). 00140 {
00141 switch (event) {
00142 case kMouseEnter: {
00143 const CandTrackHandle& cth = track->GetTrack();
00144 text_info.emit(Form("%s: %d strips, P=%.1f",
00145 "track", cth.GetNDaughters(),
00146 cth.GetMomentum()));
00147 break;
00148 }
00149 default: // nothing
00150 break;
00151 }
00152
00153 }
|
|
||||||||||||||||||||
|
Definition at line 79 of file Midad/MultiPage/GfxTrackList.cxx. References Form(), CandTrackHandle::GetMomentum(), CandHandle::GetNDaughters(), and GfxTrack::GetTrack(). 00081 {
00082 switch (event) {
00083 case kMouseEnter: {
00084 const CandTrackHandle& cth = track->GetTrack();
00085 text_info.emit(Form("%s: %d strips, P=%.1f",
00086 "track", cth.GetNDaughters(),
00087 cth.GetMomentum()));
00088 break;
00089 }
00090 default: // nothing
00091 break;
00092 }
00093
00094 }
|
|
|
Return the configurable associated with this Gfx. Some things may be set which are meaningless for a particular Gfx. The sub class MUST implement this because there is no way to create the base class CfgConfigurable. Implements GfxBase. Definition at line 36 of file Midad/MultiPage/GfxTrackList.h. 00036 { return *fCfg; }
|
|
|
Return the configurable associated with this Gfx. Some things may be set which are meaningless for a particular Gfx. The sub class MUST implement this because there is no way to create the base class CfgConfigurable. Implements GfxBase. Definition at line 39 of file EventDisplay/GfxTrackList.h. 00039 { return *fCfg; }
|
|
|
Definition at line 47 of file EventDisplay/GfxTrackList.h. Referenced by GfxTrack::BuildDiscreteImp(), GfxTrack::BuildRealImp(), Configure(), Draw(), and GfxTrack::Paint(). 00047 {return fEVD;}
|
|
|
Definition at line 155 of file EventDisplay/GfxTrackList.cxx. References fEVD, fHideTracks, GfxBase::GetGraphicsView(), ReConfigure(), and EVD::UpdateCanvas(). 00156 {
00157 fHideTracks = hide;
00158 this->ReConfigure();
00159 if(GetGraphicsView()==GraphicsView::kXY)fEVD->UpdateCanvas();
00160
00161 }
|
|
||||||||||||
|
Reimplemented from GfxBase. Definition at line 37 of file Midad/MultiPage/GfxTrackList.cxx. References GfxBase::GetViewState(), ReConfigure(), and ViewState::spatial_metric. 00038 {
00039 ViewState* vs = this->GetViewState();
00040 vs->spatial_metric.connect(slot_class(*this,&GfxTrackList::ReConfigure));
00041 }
|
|
||||||||||||
|
Reimplemented from GfxBase. Definition at line 46 of file EventDisplay/GfxTrackList.cxx. References fEVD, fPageDisplay, GfxBase::GetViewState(), ReConfigure(), and ViewState::spatial_metric. 00047 {
00048
00049 fEVD= ∓
00050 fPageDisplay= &pd;
00051 ViewState* vs = this->GetViewState();
00052 vs->spatial_metric.connect(slot_class(*this,&GfxTrackList::ReConfigure));
00053 }
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 112 of file EventDisplay/GfxTrackList.cxx. References fTracks. Referenced by Configure(), GfxTrackList(), HideTracks(), and Init(). 00113 {
00114 if (fHideTracks) return;
00115
00116 for (TrackList_t::iterator it=fTracks.begin(); it != fTracks.end(); ++it) {
00117 (*it)->Configure();
00118 }
00119 }
|
|
|
Definition at line 46 of file EventDisplay/GfxTrackList.h. 00046 { return fHideTracks; }
|
|
|
Definition at line 50 of file Midad/MultiPage/GfxTrackList.h. |
|
|
Definition at line 58 of file EventDisplay/GfxTrackList.h. Referenced by GfxTrackList(). |
|
|
Definition at line 51 of file Midad/MultiPage/GfxTrackList.h. |
|
|
Definition at line 63 of file EventDisplay/GfxTrackList.h. Referenced by HideTracks(), and Init(). |
|
|
Definition at line 61 of file EventDisplay/GfxTrackList.h. Referenced by HideTracks(). |
|
|
Definition at line 64 of file EventDisplay/GfxTrackList.h. Referenced by Configure(), and Init(). |
|
|
Definition at line 54 of file Midad/MultiPage/GfxTrackList.h. Referenced by ClearTrackList(), Configure(), Draw(), and ReConfigure(). |
|
|
Definition at line 65 of file EventDisplay/GfxTrackList.h. Referenced by ClearTrackList(), Configure(), GfxTrackList(), and ~GfxTrackList(). |
1.3.9.1