#include <PMT.h>
Public Member Functions | |
| PMT (int id) | |
| PMT () | |
| ~PMT () | |
| int | GetId () |
| Pixel * | GetPixel (int id, int create=1) |
| std::vector< int > | GetPixelVector () |
| void | Dump () |
| int | GetNStrips () |
| void | IncStripCount () |
| int | GetStatus () |
| void | SetStatus (int s) |
Static Public Attributes | |
| static int | printit = -1 |
Private Member Functions | |
| void | Init (int id) |
Private Attributes | |
| int | id |
| int | nstrips |
| std::vector< Pixel > | pixels |
| int | status |
Definition at line 9 of file PMT.h.
| PMT::PMT | ( | int | id | ) | [inline] |
| void PMT::Dump | ( | ) |
| int PMT::GetId | ( | ) | [inline] |
| int PMT::GetNStrips | ( | ) | [inline] |
| Pixel * PMT::GetPixel | ( | int | id, | |
| int | create = 1 | |||
| ) |
Definition at line 34 of file PMT.cxx.
References GetId(), pixels, and Pixel::SetPMT().
Referenced by XTalkFilter::DoTrueFilter(), and XTalkFilter::GetHops().
00035 { 00036 for(unsigned int i=0;i<pixels.size();i++) 00037 { 00038 pixels[i].SetPMT(this); 00039 if(pixels[i].GetId()==id)return &(pixels[i]); 00040 } 00041 00042 if(!create)return 0; 00043 //if its not there... create it 00044 Pixel newpixel(id); 00045 newpixel.SetPMT(this); 00046 pixels.push_back(newpixel); 00047 return & (pixels[pixels.size()-1]); 00048 }
| std::vector< int > PMT::GetPixelVector | ( | ) |
| int PMT::GetStatus | ( | ) | [inline] |
| void PMT::IncStripCount | ( | ) | [inline] |
Definition at line 26 of file PMT.h.
References nstrips.
Referenced by PixelSpot::AddStrip().
00026 {nstrips++;};
| void PMT::Init | ( | int | id | ) | [private] |
Definition at line 9 of file PMT.cxx.
References MsgService::Instance(), Msg::kDebug, nstrips, pixels, printit, and status.
Referenced by PMT().
00010 { 00011 if(printit<0) 00012 { 00013 if(MsgService::Instance()->IsActive("XTalkFilter", 00014 Msg::kDebug))printit=1; 00015 else printit=0; 00016 } 00017 00018 this->id=id; 00019 pixels.clear(); 00020 nstrips=0; 00021 status=0; 00022 }
| void PMT::SetStatus | ( | int | s | ) | [inline] |
Definition at line 29 of file PMT.h.
References status.
Referenced by PixelSpot::AddE(), and PixelSpot::TakeE().
int PMT::nstrips [private] |
Definition at line 37 of file PMT.h.
Referenced by Dump(), GetNStrips(), IncStripCount(), and Init().
std::vector<Pixel> PMT::pixels [private] |
Definition at line 39 of file PMT.h.
Referenced by Dump(), GetPixel(), GetPixelVector(), and Init().
int PMT::printit = -1 [static] |
int PMT::status [private] |
1.4.7