#include <PmtPixels.h>
Inheritance diagram for PmtPixels:
Public Member Functions | |
| PmtPixels () | |
| PmtPixels (double x1, double y1, double x2, double y2) | |
| virtual | ~PmtPixels () |
| virtual void | SetMint (Mint *mint) |
| virtual void | Refresh () |
Private Member Functions | |
| PmtPixels (const PmtPixels &rhs) | |
| PmtPixels & | operator= (const PmtPixels &rhs) |
| void | BuildImp () |
Private Attributes | |
| PmtPixelsMxx * | fImp |
| SigC::Connection | fCon |
Midad/Base
This has the following classes:
PmtPixels - A pmt which watches for changes in Mint and feeds a particular PmtPixelsMxx implementation
PmtPixelsMxx - implementation for generic base class. Acts like a fancy histogram PmtPixel - One pixel in a PMT = box + spots PmtSpot - One spot
Contact: bv@bnl.gov
Created on: Wed Oct 30 09:51:33 2002
Definition at line 46 of file PmtPixels.h.
|
|
Definition at line 17 of file PmtPixels.cxx. 00018 : TPad("PmtPixels","Signals in the PMT",0,0,1,1) 00019 , fImp(0) 00020 { 00021 cerr << "PmtPixels()\n"; 00022 }
|
|
||||||||||||||||||||
|
Definition at line 23 of file PmtPixels.cxx. 00024 : TPad("PmtPixels","Signals in the PMT",x1,y1,x2,y2) 00025 , fImp(0) 00026 { 00027 cerr << "PmtPixels()\n"; 00028 }
|
|
|
Definition at line 30 of file PmtPixels.cxx. 00031 {
00032 }
|
|
|
|
|
|
Definition at line 42 of file PmtPixels.cxx. References fImp, Mint::GetDetector(), and MintView::GetMint(). Referenced by Refresh(). 00043 {
00044 // This build the implementation. It is assumed that we only need
00045 // to build it once.
00046
00047
00048 Detector::Detector_t det_type = this->GetMint().GetDetector();
00049
00050 switch (det_type) {
00051 case Detector::kNear:
00052 this->cd();
00053 fImp = new PmtPixelsMxx(8);
00054 break;
00055 case Detector::kFar:
00056 this->cd();
00057 fImp = new PmtPixelsMxx(4);
00058 break;
00059 default:
00060 delete fImp;
00061 fImp = 0;
00062 cerr << "PmtPixels::BuildImp() unknown detector type: "
00063 << det_type << endl;
00064 break;
00065 }
00066 }
|
|
|
|
|
|
|
Reimplemented from MintView. Definition at line 34 of file PmtPixels.cxx. References Mint::digits_selected, fCon, Refresh(), and MintView::SetMint(). Referenced by PageDisplay::MakePmtPixels(). 00035 {
00036 fCon.disconnect();
00037 this->MintView::SetMint(mint);
00038 fCon = mint->digits_selected.connect
00039 (SigC::slot_class(*this,&PmtPixels::Refresh));
00040 }
|
|
|
Definition at line 67 of file PmtPixels.h. Referenced by SetMint(). |
|
|
Definition at line 66 of file PmtPixels.h. Referenced by BuildImp(), and Refresh(). |
1.3.9.1