![]() |
AliRoot Core
d69033e (d69033e)
|
A rectangle area positioned in plane.. More...
#include <AliMpArea.h>
Public Member Functions | |
AliMpArea (Double_t x, Double_t y, Double_t dx, Double_t dy) | |
AliMpArea (const AliMpArea &rhs) | |
AliMpArea () | |
virtual | ~AliMpArea () |
AliMpArea & | operator= (const AliMpArea &right) |
Double_t | LeftBorder () const |
Double_t | RightBorder () const |
Double_t | UpBorder () const |
Double_t | DownBorder () const |
void | LeftDownCorner (Double_t &x, Double_t &y) const |
void | LeftUpCorner (Double_t &x, Double_t &y) const |
void | RightDownCorner (Double_t &x, Double_t &y) const |
void | RightUpCorner (Double_t &x, Double_t &y) const |
AliMpArea | Intersect (const AliMpArea &area) const |
Bool_t | Overlap (const AliMpArea &area) const |
Bool_t | Contains (const AliMpArea &area) const |
void | Print (Option_t *opt="") const |
void | GetParameters (Double_t &x, Double_t &y, Double_t &dx, Double_t &dy) const |
Double_t | GetPositionX () const |
Return x position. More... | |
Double_t | GetPositionY () const |
Return y position. More... | |
Double_t | GetDimensionX () const |
Return x dimensions. More... | |
Double_t | GetDimensionY () const |
Return y dimensions. More... | |
Bool_t | IsValid () const |
Return validity. More... | |
Private Attributes | |
Double_t | fPositionX |
x position More... | |
Double_t | fPositionY |
y position More... | |
Double_t | fDimensionX |
x dimension (half lengths) More... | |
Double_t | fDimensionY |
y dimension (half lengths) More... | |
Bool_t | fValidity |
validity More... | |
A rectangle area positioned in plane..
Definition at line 20 of file AliMpArea.h.
AliMpArea::AliMpArea | ( | Double_t | x, |
Double_t | y, | ||
Double_t | dx, | ||
Double_t | dy | ||
) |
Standard constructor
Definition at line 42 of file AliMpArea.cxx.
AliMpArea::AliMpArea | ( | const AliMpArea & | rhs | ) |
Copy constructor
Definition at line 78 of file AliMpArea.cxx.
AliMpArea::AliMpArea | ( | ) |
|
virtual |
Destructor
Definition at line 90 of file AliMpArea.cxx.
Bool_t AliMpArea::Contains | ( | const AliMpArea & | area | ) | const |
Whether area is contained within this
Definition at line 193 of file AliMpArea.cxx.
Referenced by AliMUONTrackHitPattern::DetElemIdFromPos(), AliMUONTrackHitPattern::GetTrackParamAtChamber(), and AliMUONTrackHitPattern::IsCloseToAccEdge().
Double_t AliMpArea::DownBorder | ( | ) | const |
Return the position of the down edge.
Definition at line 148 of file AliMpArea.cxx.
Referenced by AliMpSlatPadIterator::AliMpSlatPadIterator(), AliMUONBusPatchPainter::AliMUONBusPatchPainter(), AliMUONChamberPainter::AliMUONChamberPainter(), Contains(), AliMpSlatSegmentation::CreateIterator(), AliMpPCBPadIterator::CropArea(), AliMpSectorAreaHPadIterator::First(), AliMUONVPainter::GetBoundingBox(), Intersect(), AliMpSlatPadIterator::Intersect(), LeftDownCorner(), AliMpSectorAreaVPadIterator::MoveRight(), Overlap(), AliMUONCluster::Paint(), Print(), and RightDownCorner().
|
inline |
Return x dimensions.
Definition at line 79 of file AliMpArea.h.
Referenced by AliMUONContour::AliMUONContour(), AliMpSlatSegmentation::CreateIterator(), AliMUONResponseV0::DisIntegrate(), AliMUONSimpleClusterServer::Global2Local(), and operator<<().
|
inline |
Return y dimensions.
Definition at line 81 of file AliMpArea.h.
Referenced by AliMUONContour::AliMUONContour(), AliMpSlatSegmentation::CreateIterator(), AliMUONResponseV0::DisIntegrate(), AliMUONSimpleClusterServer::Global2Local(), and operator<<().
void AliMpArea::GetParameters | ( | Double_t & | x, |
Double_t & | y, | ||
Double_t & | dx, | ||
Double_t & | dy | ||
) | const |
Fill the parameters: x, y position and dimensions
Definition at line 274 of file AliMpArea.cxx.
|
inline |
Return x position.
Definition at line 75 of file AliMpArea.h.
Referenced by AliMUONContour::AliMUONContour(), AliMpSlatSegmentation::CreateIterator(), AliMUONResponseV0::DisIntegrate(), AliMUONSimpleClusterServer::Global2Local(), and operator<<().
|
inline |
Return y position.
Definition at line 77 of file AliMpArea.h.
Referenced by AliMUONContour::AliMUONContour(), AliMpSlatSegmentation::CreateIterator(), AliMUONResponseV0::DisIntegrate(), AliMUONSimpleClusterServer::Global2Local(), and operator<<().
Return the common part of area and this
Definition at line 217 of file AliMpArea.cxx.
Referenced by AliMUONSimpleClusterServer::Overlap().
|
inline |
Return validity.
Definition at line 83 of file AliMpArea.h.
Referenced by AliMUONPad::AreOverlapping(), AliMUONSimpleClusterServer::Clusterize(), AliMUONManuContourMaker::CreateMotifContour(), AliMUONContourHandler::GenerateAllContours(), AliMUONPreClusterFinder::GetNextPad(), AliMUONContour::IsValid(), operator<<(), AliMpDEVisu::PopUpZoom(), AliMUONPreClusterFinderV2::Prepare(), and AliMUONPreClusterFinderV3::Prepare().
Double_t AliMpArea::LeftBorder | ( | ) | const |
Return the position of the left edge.
Definition at line 124 of file AliMpArea.cxx.
Referenced by AliMpSlatPadIterator::AliMpSlatPadIterator(), AliMUONBusPatchPainter::AliMUONBusPatchPainter(), AliMUONChamberPainter::AliMUONChamberPainter(), Contains(), AliMpSlatSegmentation::CreateIterator(), AliMpPCBPadIterator::CropArea(), AliMpSectorAreaVPadIterator::First(), AliMUONVPainter::GetBoundingBox(), Intersect(), AliMpSlatPadIterator::Intersect(), LeftDownCorner(), LeftUpCorner(), AliMpSectorAreaHPadIterator::MoveUp(), Overlap(), AliMUONCluster::Paint(), and Print().
void AliMpArea::LeftDownCorner | ( | Double_t & | x, |
Double_t & | y | ||
) | const |
Return position of the left down corner.
Definition at line 156 of file AliMpArea.cxx.
Referenced by AliMUONClusterFinderPeakCOG::BuildPixArrayOneCathode(), AliMUONClusterFinderPeakFit::BuildPixArrayOneCathode(), AliMUONClusterFinderMLEM::BuildPixArrayOneCathode(), AliMpSectorAreaHPadIterator::First(), and AliMpSectorAreaVPadIterator::First().
void AliMpArea::LeftUpCorner | ( | Double_t & | x, |
Double_t & | y | ||
) | const |
Return position of the left up corner.
Definition at line 165 of file AliMpArea.cxx.
Assignment operator
Definition at line 100 of file AliMpArea.cxx.
Bool_t AliMpArea::Overlap | ( | const AliMpArea & | area | ) | const |
Return true if this overlaps with given area
Definition at line 231 of file AliMpArea.cxx.
Referenced by AliMUONTriggerTrackToTrackerClusters::DetElemId(), AliMUONPreClusterFinder::GetNextPad(), and AliMUONSimpleClusterServer::Overlap().
void AliMpArea::Print | ( | Option_t * | opt = "" | ) | const |
Printing When option is set to B (borders), the area boreders will be printed instead of default parameters
Definition at line 252 of file AliMpArea.cxx.
Referenced by AliMUONManuContourMaker::CreateMotifContour(), and AliMUONContour::Print().
Double_t AliMpArea::RightBorder | ( | ) | const |
Return the position of right edge.
Definition at line 132 of file AliMpArea.cxx.
Referenced by AliMpSlatPadIterator::AliMpSlatPadIterator(), AliMUONBusPatchPainter::AliMUONBusPatchPainter(), AliMUONChamberPainter::AliMUONChamberPainter(), Contains(), AliMpSlatSegmentation::CreateIterator(), AliMpPCBPadIterator::CropArea(), AliMpSectorAreaHPadIterator::First(), AliMUONVPainter::GetBoundingBox(), AliMpSlatPadIterator::Intersect(), Intersect(), AliMpSectorAreaVPadIterator::MoveRight(), AliMpSectorAreaHPadIterator::MoveUp(), AliMpSectorAreaHPadIterator::Next(), Overlap(), AliMUONCluster::Paint(), Print(), RightDownCorner(), and RightUpCorner().
void AliMpArea::RightDownCorner | ( | Double_t & | x, |
Double_t & | y | ||
) | const |
Return position of the right down corner.
Definition at line 174 of file AliMpArea.cxx.
void AliMpArea::RightUpCorner | ( | Double_t & | x, |
Double_t & | y | ||
) | const |
Return position of the right up corner.
Definition at line 184 of file AliMpArea.cxx.
Referenced by AliMUONClusterFinderPeakCOG::BuildPixArrayOneCathode(), AliMUONClusterFinderPeakFit::BuildPixArrayOneCathode(), and AliMUONClusterFinderMLEM::BuildPixArrayOneCathode().
Double_t AliMpArea::UpBorder | ( | ) | const |
Return the position of the up edge.
Definition at line 140 of file AliMpArea.cxx.
Referenced by AliMpSlatPadIterator::AliMpSlatPadIterator(), AliMUONBusPatchPainter::AliMUONBusPatchPainter(), AliMUONChamberPainter::AliMUONChamberPainter(), Contains(), AliMpSlatSegmentation::CreateIterator(), AliMpPCBPadIterator::CropArea(), AliMpSectorAreaVPadIterator::First(), AliMUONVPainter::GetBoundingBox(), AliMpSlatPadIterator::Intersect(), Intersect(), LeftUpCorner(), AliMpSectorAreaVPadIterator::MoveRight(), AliMpSectorAreaHPadIterator::MoveUp(), AliMpSectorAreaVPadIterator::Next(), Overlap(), AliMUONCluster::Paint(), Print(), and RightUpCorner().
|
private |
x dimension (half lengths)
Definition at line 63 of file AliMpArea.h.
Referenced by GetDimensionX(), GetParameters(), LeftBorder(), operator=(), and RightBorder().
|
private |
y dimension (half lengths)
Definition at line 64 of file AliMpArea.h.
Referenced by DownBorder(), GetDimensionY(), GetParameters(), operator=(), and UpBorder().
|
private |
x position
Definition at line 61 of file AliMpArea.h.
Referenced by GetParameters(), GetPositionX(), LeftBorder(), operator=(), and RightBorder().
|
private |
y position
Definition at line 62 of file AliMpArea.h.
Referenced by DownBorder(), GetParameters(), GetPositionY(), operator=(), and UpBorder().
|
private |