AliRoot Core  v5-06-15 (45dab64)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpPad Class Reference

Class which encapsuate all information about a pad. More...

#include <AliMpPad.h>

Inheritance diagram for AliMpPad:

Public Member Functions

 AliMpPad (Int_t manuId, Int_t channel, Int_t ix, Int_t iy, Double_t x, Double_t y, Double_t dx, Double_t dy, Bool_t validity=true)
 
 AliMpPad (Int_t manuId, Int_t channel, MpPair_t indices, Double_t positionX, Double_t positionY, Double_t dx, Double_t dy, Bool_t validity=true)
 
 AliMpPad ()
 
 AliMpPad (const AliMpPad &src)
 
 ~AliMpPad ()
 
Bool_t operator== (const AliMpPad &pos2) const
 
Bool_t operator!= (const AliMpPad &pos2) const
 
AliMpPadoperator= (const AliMpPad &src)
 
void PrintOn (ostream &out) const
 
void Print (const char *="") const
 
Bool_t AddLocation (Int_t localBoardId, Int_t localBoardChannel, Bool_t warn=true)
 
MpPair_t GetLocation () const
 Return pad location as encoded pair (manuId, manuChannel) More...
 
Int_t GetManuId () const
 
Int_t GetManuChannel () const
 
MpPair_t GetIndices () const
 Return pad indices as encoded pair (ix, iy) More...
 
Int_t GetIx () const
 
Int_t GetIy () const
 
Double_t GetPositionX () const
 Return the pad x position (in cm) More...
 
Double_t GetPositionY () const
 Return the pad x position (in cm) More...
 
Double_t GetDimensionX () const
 Return the x pad dimension - half length (in cm) More...
 
Double_t GetDimensionY () const
 Return the y pad dimension - half length (in cm) More...
 
Bool_t IsValid () const
 Return validity. More...
 
Int_t GetNofLocations () const
 
MpPair_t GetLocation (Int_t i) const
 
Int_t GetLocalBoardId (Int_t i) const
 
Int_t GetLocalBoardChannel (Int_t i) const
 
Bool_t HasLocation (Int_t localBoardId, Int_t localBoardChannel) const
 

Static Public Member Functions

static AliMpPad Invalid ()
 Return invalid pad. More...
 

Private Attributes

UInt_t fNofLocations
 
MpPair_tfLLocations
 Collection of pad locations - encoded pair (localBoardId, localBoardChannel) More...
 
MpPair_t fLLocation
 pad location as encoded pair (manuId, manuChannel) More...
 
MpPair_t fLIndices
 pad indices as encoded pair (ix, iy) More...
 
Double_t fPositionX
 the pad x position (in cm) More...
 
Double_t fPositionY
 the pad y position (in cm) More...
 
Double_t fDimensionX
 the pad x dimension - half length (in cm) More...
 
Double_t fDimensionY
 the pad y dimension - half length(in cm) More...
 
Bool_t fValidity
 validity More...
 

Static Private Attributes

static const Int_t fgkMaxNofLocations = 6
 maximum number of pad locations in the collection More...
 

Detailed Description

Class which encapsuate all information about a pad.

Author
David Guez, Ivana Hrivnacova; IPN Orsay

Definition at line 22 of file AliMpPad.h.

Constructor & Destructor Documentation

AliMpPad::AliMpPad ( Int_t  manuId,
Int_t  channel,
Int_t  ix,
Int_t  iy,
Double_t  x,
Double_t  y,
Double_t  dx,
Double_t  dy,
Bool_t  validity = true 
)

Standard constructor
Be carefull : this constructor doesn't check the validity of the correspondance between location and indices. By default, validity is set true. It is aimed to be used by MSegmentation methods, and never from outside....

Definition at line 46 of file AliMpPad.cxx.

AliMpPad::AliMpPad ( Int_t  manuId,
Int_t  channel,
MpPair_t  indices,
Double_t  positionX,
Double_t  positionY,
Double_t  dx,
Double_t  dy,
Bool_t  validity = true 
)

Standard constructor
Be carefull : this constructor doesn't check the validity of the correspondance between location and indices. By default, validity is set true. It is aimed to be used by MSegmentation methods, and never from outside....

Definition at line 70 of file AliMpPad.cxx.

AliMpPad::AliMpPad ( )

Default constructor - creates pad in invalid state

Definition at line 94 of file AliMpPad.cxx.

Referenced by Invalid().

AliMpPad::AliMpPad ( const AliMpPad src)

Copy constructor

Definition at line 110 of file AliMpPad.cxx.

AliMpPad::~AliMpPad ( )

Destructor

Definition at line 128 of file AliMpPad.cxx.

Member Function Documentation

Bool_t AliMpPad::AddLocation ( Int_t  localBoardId,
Int_t  localBoardChannel,
Bool_t  warn = true 
)

Add location to the collection if not yet present and if collection is not yet full
Return false and optionally give a warning if location is not added.

Definition at line 217 of file AliMpPad.cxx.

Referenced by AliMpTriggerSegmentation::PadByIndices(), and AliMpTriggerSegmentation::PadByPosition().

MpPair_t AliMpPad::GetIndices ( ) const
inline
MpPair_t AliMpPad::GetLocation ( ) const
inline

Return pad location as encoded pair (manuId, manuChannel)

Definition at line 69 of file AliMpPad.h.

Referenced by HasLocation(), operator==(), and PrintOn().

MpPair_t AliMpPad::GetLocation ( Int_t  i) const

Return i-th other location associated with this pad

Definition at line 336 of file AliMpPad.cxx.

Bool_t AliMpPad::HasLocation ( Int_t  localBoardId,
Int_t  localBoardChannel 
) const

Return true if given location is present either as fLLocation or in the collectio

Definition at line 369 of file AliMpPad.cxx.

Referenced by AddLocation().

Bool_t AliMpPad::IsValid ( ) const
inline

Return validity.

Definition at line 89 of file AliMpPad.h.

Referenced by AliMpDetElement::AddManu(), AliMUONClusterFinderMLEM::AddVirtualPad(), AliMUONVTrackReconstructor::ChangeMonoCathodClusterRes(), AliMUONClusterFinderPeakCOG::CheckPreclusterTwoCathodes(), AliMUONClusterFinderPeakFit::CheckPreclusterTwoCathodes(), AliMUONClusterFinderMLEM::CheckPreclusterTwoCathodes(), AliMUONManuPadPainter::Describe(), AliMUONResponseTrigger::DisIntegrate(), AliMUONResponseTriggerV1::DisIntegrate(), AliMUONResponseV0::DisIntegrate(), AliMUONTriggerGUIbdmap::DrawStrips(), AliMUONTriggerCircuit::FillXstrips(), AliMUONTriggerCircuit::FillYstrips(), AliMUONSimpleClusterServer::FindMCLabel(), AliMpPCBPadIterator::First(), AliMpSectorAreaHPadIterator::First(), AliMpSectorAreaVPadIterator::First(), AliMUONDigitizerV3::GenerateNoisyDigitsForOneCathode(), AliMpVSegmentation::GetNeighbours(), AliMUONTrackHitPattern::GetTrackParamAtChamber(), AliMpDEVisu::HandleMovement(), AliMUONTriggerGUI::InitBoards(), AliMUONTriggerDisplay::InitOrDisplayTriggerInfo(), AliMUONRecoCheck::IsHitInFrontOfPad(), AliMUONTrackHitPattern::IsMasked(), AliMpSectorAreaVPadIterator::IsValid(), AliMpSectorAreaHPadIterator::IsValid(), AliMUONTriggerCircuit::LoadYPos(), AliMUONTriggerQADataMakerRec::MakeRaws(), AliMUONRecoCheck::MakeTriggerableTracks(), AliMpSectorAreaVPadIterator::MoveRight(), AliMpSectorAreaHPadIterator::MoveUp(), AliMUONManuPadPainter::NameAtPosition(), AliMpPCBPadIterator::Next(), AliMpSectorAreaVPadIterator::Next(), AliMpSectorAreaHPadIterator::Next(), AliMpTriggerSegmentation::PadByIndices(), AliMpTriggerSegmentation::PadByLocation(), AliMpTriggerSegmentation::PadByPosition(), AliMpSectorSegmentation::PadByXDirection(), AliMpSectorSegmentation::PadByYDirection(), AliMUONTrackHitPattern::PadsFromPos(), AliMUONManuPadPainter::PaintArea(), AliMUONManuPadPainter::PaintOutline(), AliMUONCDB::Plot(), AliMUONDigitMaker::ReadTrackerDDL(), AliMpPCBPadIterator::SetPad(), AliMUONTriggerGUI::SetStripBoxes(), and AliMUONDigitMaker::TriggerDigits().

Bool_t AliMpPad::operator!= ( const AliMpPad pos2) const

Non-equality operator

Definition at line 197 of file AliMpPad.cxx.

AliMpPad & AliMpPad::operator= ( const AliMpPad src)

Assignment operator

Definition at line 136 of file AliMpPad.cxx.

Bool_t AliMpPad::operator== ( const AliMpPad pos2) const

Equality operator

Definition at line 168 of file AliMpPad.cxx.

void AliMpPad::Print ( const char *  = "") const

Prints all pad data.

Definition at line 316 of file AliMpPad.cxx.

Referenced by AliMpFastSegmentation::PadByLocation(), and AliMpPCBPadIterator::Print().

void AliMpPad::PrintOn ( ostream &  out) const

Prints all pad data.

Definition at line 288 of file AliMpPad.cxx.

Referenced by operator<<(), and Print().

Member Data Documentation

Double_t AliMpPad::fDimensionX
private

the pad x dimension - half length (in cm)

Definition at line 111 of file AliMpPad.h.

Referenced by GetDimensionX(), operator=(), operator==(), and PrintOn().

Double_t AliMpPad::fDimensionY
private

the pad y dimension - half length(in cm)

Definition at line 112 of file AliMpPad.h.

Referenced by GetDimensionY(), operator=(), and PrintOn().

const Int_t AliMpPad::fgkMaxNofLocations = 6
staticprivate

maximum number of pad locations in the collection

Definition at line 101 of file AliMpPad.h.

Referenced by AddLocation(), and operator=().

MpPair_t AliMpPad::fLIndices
private

pad indices as encoded pair (ix, iy)

Definition at line 108 of file AliMpPad.h.

Referenced by GetIndices(), GetIx(), GetIy(), operator=(), operator==(), and PrintOn().

MpPair_t AliMpPad::fLLocation
private

pad location as encoded pair (manuId, manuChannel)

Definition at line 107 of file AliMpPad.h.

Referenced by GetLocation(), GetManuChannel(), GetManuId(), HasLocation(), operator=(), operator==(), and PrintOn().

MpPair_t* AliMpPad::fLLocations
private

Collection of pad locations - encoded pair (localBoardId, localBoardChannel)

Definition at line 106 of file AliMpPad.h.

Referenced by AddLocation(), GetLocalBoardChannel(), GetLocalBoardId(), GetLocation(), GetNofLocations(), operator=(), and ~AliMpPad().

UInt_t AliMpPad::fNofLocations
private

number of locations in fLocations

Definition at line 104 of file AliMpPad.h.

Referenced by AddLocation(), GetNofLocations(), and operator=().

Double_t AliMpPad::fPositionX
private

the pad x position (in cm)

Definition at line 109 of file AliMpPad.h.

Referenced by GetPositionX(), operator=(), operator==(), and PrintOn().

Double_t AliMpPad::fPositionY
private

the pad y position (in cm)

Definition at line 110 of file AliMpPad.h.

Referenced by GetPositionY(), operator=(), operator==(), and PrintOn().

Bool_t AliMpPad::fValidity
private

validity

Definition at line 113 of file AliMpPad.h.

Referenced by IsValid(), operator=(), operator==(), and PrintOn().


The documentation for this class was generated from the following files: