AliRoot Core  edcc906 (edcc906)
AliMpTriggerSegmentation Class Reference

Implementation of AliMpVSegmentation for trigger slats. More...

#include <AliMpTriggerSegmentation.h>

Inheritance diagram for AliMpTriggerSegmentation:

Public Member Functions

 AliMpTriggerSegmentation ()
 
 AliMpTriggerSegmentation (const AliMpTrigger *slat, Bool_t own=false)
 
virtual ~AliMpTriggerSegmentation ()
 
virtual AliMpVPadIteratorCreateIterator (const AliMpArea &area) const
 Create iterator over pads in the given area. More...
 
virtual AliMpVPadIteratorCreateIterator () const
 Create a pad iterator over the whole area. More...
 
virtual Int_t GetNeighbours (const AliMpPad &pad, TObjArray &neighbours, Bool_t includeSelf=kFALSE, Bool_t includeVoid=kFALSE) const
 
const char * GetName () const
 
Int_t MaxPadIndexX () const
 Return maximum pad index in X direction. More...
 
Int_t MaxPadIndexY () const
 Return maximum pad index in Y direction. More...
 
Int_t NofPads () const
 Return the number of pads in the detection element. More...
 
virtual AliMpPad PadByLocation (Int_t manuId, Int_t manuChannel, Bool_t warning) const
 Find pad by location. More...
 
virtual AliMpPad PadByIndices (Int_t ix, Int_t iy, Bool_t warning) const
 Find pad by indices. More...
 
virtual AliMpPad PadByPosition (Double_t x, Double_t y, Bool_t warning) const
 Find pad by position. More...
 
const AliMpTriggerSlat () const
 
virtual void GetAllElectronicCardIDs (TArrayI &ecn) const
 Fill the given array with the electronic card IDs. More...
 
virtual AliMp::PlaneType PlaneType () const
 Return the plane type. More...
 
virtual AliMp::StationType StationType () const
 Return station type. More...
 
virtual Double_t GetDimensionX () const
 Return the x half-sizes of the detection element. More...
 
virtual Double_t GetDimensionY () const
 Return the y half-sizes of the detection element. More...
 
virtual Int_t GetNofElectronicCards () const
 Get the number of electronic card IDs. More...
 
virtual Double_t GetPositionX () const
 Return the x position of the origin of the detection element. More...
 
virtual Double_t GetPositionY () const
 Return the y position of the origin of the detection element. More...
 
virtual Bool_t HasMotifPosition (Int_t manuId) const
 Whether or not we have a given manu. More...
 
virtual AliMpMotifPositionMotifPosition (Int_t manuId) const
 Return the position of a given manu (aka motifPosition) More...
 
- Public Member Functions inherited from AliMpVSegmentation
 AliMpVSegmentation ()
 
virtual ~AliMpVSegmentation ()
 
virtual Bool_t HasPadByIndices (Int_t ix, Int_t iy) const
 
virtual Bool_t HasPadByLocation (Int_t manuId, Int_t manuChannel) const
 Return true if the pad with given location exists. More...
 

Private Member Functions

 AliMpTriggerSegmentation (const AliMpTriggerSegmentation &right)
 Not implemented. More...
 
AliMpTriggerSegmentationoperator= (const AliMpTriggerSegmentation &right)
 Not implemented. More...
 

Private Attributes

const AliMpTriggerfkSlat
 Slat. More...
 
Bool_t fIsOwner
 Trigger slat ownership. More...
 
Int_t fNofStrips
 Number of strips in this slat. More...
 

Detailed Description

Implementation of AliMpVSegmentation for trigger slats.

Implementation of AliMpVSegmentation for trigger slats.

Todo:
Implement CreateIterator method, if needed.
Author
Laurent Aphecetche

Definition at line 31 of file AliMpTriggerSegmentation.h.

Constructor & Destructor Documentation

AliMpTriggerSegmentation::AliMpTriggerSegmentation ( )

Default ctor. Not to be used really.

Definition at line 46 of file AliMpTriggerSegmentation.cxx.

Referenced by NofPads().

AliMpTriggerSegmentation::AliMpTriggerSegmentation ( const AliMpTrigger slat,
Bool_t  own = false 
)

Normal ctor.

Definition at line 59 of file AliMpTriggerSegmentation.cxx.

AliMpTriggerSegmentation::~AliMpTriggerSegmentation ( )
virtual

Dtor (empty).

Definition at line 90 of file AliMpTriggerSegmentation.cxx.

AliMpTriggerSegmentation::AliMpTriggerSegmentation ( const AliMpTriggerSegmentation right)
private

Not implemented.

Member Function Documentation

AliMpVPadIterator * AliMpTriggerSegmentation::CreateIterator ( const AliMpArea area) const
virtual

Create iterator over pads in the given area.

Returns an iterator to loop over the pad contained within given area. Not implemented for trigger.

Implements AliMpVSegmentation.

Definition at line 103 of file AliMpTriggerSegmentation.cxx.

AliMpVPadIterator * AliMpTriggerSegmentation::CreateIterator ( ) const
virtual

Create a pad iterator over the whole area.

Returns an iterator to loop over all the pads

Implements AliMpVSegmentation.

Definition at line 114 of file AliMpTriggerSegmentation.cxx.

void AliMpTriggerSegmentation::GetAllElectronicCardIDs ( TArrayI &  ecn) const
virtual

Fill the given array with the electronic card IDs.

Fill the array ecn with all manuIds

Implements AliMpVSegmentation.

Definition at line 151 of file AliMpTriggerSegmentation.cxx.

Referenced by NofPads().

Double_t AliMpTriggerSegmentation::GetDimensionX ( ) const
virtual

Return the x half-sizes of the detection element.

Return slat x dimensions

Implements AliMpVSegmentation.

Definition at line 135 of file AliMpTriggerSegmentation.cxx.

Referenced by NofPads().

Double_t AliMpTriggerSegmentation::GetDimensionY ( ) const
virtual

Return the y half-sizes of the detection element.

Return slat y dimensions

Implements AliMpVSegmentation.

Definition at line 143 of file AliMpTriggerSegmentation.cxx.

Referenced by NofPads().

const char * AliMpTriggerSegmentation::GetName ( void  ) const

Name of that segmentation = TriggerSegmentation + slatName

Definition at line 160 of file AliMpTriggerSegmentation.cxx.

Int_t AliMpTriggerSegmentation::GetNeighbours ( const AliMpPad pad,
TObjArray neighbours,
Bool_t  includeSelf = kFALSE,
Bool_t  includeVoid = kFALSE 
) const
virtual

Fill the array with the pads that are neighbours of pad. Returns the number of neighbours.

not implemented.

Returns the list of neighbours of pad testPositions are the positions (L,T,R,B) relative to pad's center (O) were we'll try to get a neighbouring pad, by getting a little bit outside the pad itself. The pad density can only decrease when going from left to right except for round slates where it is the opposite. The pad density can only decrease when going from bottom to top but to be symmetric we also consider the opposite. The order in which we actually test the positions has some importance, i.e. when using this information to compute status map later on. Here's the sequence :

4- 5- 6-7
|       |
3       8
|   0   |
2       9
|       |
1-12-11-10

Implements AliMpVSegmentation.

Definition at line 123 of file AliMpTriggerSegmentation.cxx.

Int_t AliMpTriggerSegmentation::GetNofElectronicCards ( ) const
virtual

Get the number of electronic card IDs.

Get the number of local board numbers

Implements AliMpVSegmentation.

Definition at line 337 of file AliMpTriggerSegmentation.cxx.

Referenced by NofPads().

Double_t AliMpTriggerSegmentation::GetPositionX ( ) const
virtual

Return the x position of the origin of the detection element.

Return x position of origin

Implements AliMpVSegmentation.

Definition at line 348 of file AliMpTriggerSegmentation.cxx.

Referenced by NofPads().

Double_t AliMpTriggerSegmentation::GetPositionY ( ) const
virtual

Return the y position of the origin of the detection element.

Return y position of origin

Implements AliMpVSegmentation.

Definition at line 356 of file AliMpTriggerSegmentation.cxx.

Referenced by NofPads().

Bool_t AliMpTriggerSegmentation::HasMotifPosition ( Int_t  manuId) const
virtual

Whether or not we have a given manu.

Uses default implementation

Default implementation to know if we hold a given manu

Implements AliMpVSegmentation.

Definition at line 373 of file AliMpTriggerSegmentation.cxx.

Referenced by NofPads().

Int_t AliMpTriggerSegmentation::MaxPadIndexX ( ) const
virtual

Return maximum pad index in X direction.

Returns the value of the largest pad index in x-direction.

Implements AliMpVSegmentation.

Definition at line 174 of file AliMpTriggerSegmentation.cxx.

Referenced by AliMpTriggerSegmentation().

Int_t AliMpTriggerSegmentation::MaxPadIndexY ( ) const
virtual

Return maximum pad index in Y direction.

Returns the value of the largest pad index in y-direction.

Implements AliMpVSegmentation.

Definition at line 185 of file AliMpTriggerSegmentation.cxx.

Referenced by AliMpTriggerSegmentation().

AliMpMotifPosition * AliMpTriggerSegmentation::MotifPosition ( Int_t  manuId) const
virtual

Return the position of a given manu (aka motifPosition)

No implemented (yet ?)

Implements AliMpVSegmentation.

Definition at line 364 of file AliMpTriggerSegmentation.cxx.

Referenced by NofPads().

Int_t AliMpTriggerSegmentation::NofPads ( ) const
inlinevirtual

Return the number of pads in the detection element.

Implements AliMpVSegmentation.

Definition at line 47 of file AliMpTriggerSegmentation.h.

AliMpTriggerSegmentation& AliMpTriggerSegmentation::operator= ( const AliMpTriggerSegmentation right)
private

Not implemented.

Referenced by NofPads().

AliMpPad AliMpTriggerSegmentation::PadByIndices ( Int_t  ix,
Int_t  iy,
Bool_t  warning 
) const
virtual

Find pad by indices.

Returns the pad specified by its integer indices. If warning=kTRUE and the pad does not exist, a warning message is printed.

AliMpPad::Invalid() is returned if there's no pad at the given location.

Implements AliMpVSegmentation.

Definition at line 231 of file AliMpTriggerSegmentation.cxx.

Referenced by NofPads(), and PadByLocation().

AliMpPad AliMpTriggerSegmentation::PadByLocation ( Int_t  manuId,
Int_t  manuChannel,
Bool_t  warning 
) const
virtual

Find pad by location.

Returns the pad specified by its location, where location is the pair (ManuID,ManuChannel). If warning=kTRUE and the pad does not exist, a warning message is printed.

AliMpPad::Invalid() is returned if there's no pad at the given location.

Implements AliMpVSegmentation.

Definition at line 196 of file AliMpTriggerSegmentation.cxx.

Referenced by NofPads().

AliMpPad AliMpTriggerSegmentation::PadByPosition ( Double_t  x,
Double_t  y,
Bool_t  warning 
) const
virtual

Find pad by position.

Returns the pad specified by its (floating point) position. If warning=kTRUE and the pad does not exist, a warning message is printed.

AliMpPad::Invalid() is returned if there's no pad at the given location.

Implements AliMpVSegmentation.

Definition at line 275 of file AliMpTriggerSegmentation.cxx.

Referenced by NofPads().

AliMp::PlaneType AliMpTriggerSegmentation::PlaneType ( ) const
virtual

Return the plane type.

Return plane type

Implements AliMpVSegmentation.

Definition at line 317 of file AliMpTriggerSegmentation.cxx.

Referenced by NofPads().

const AliMpTrigger * AliMpTriggerSegmentation::Slat ( ) const
AliMp::StationType AliMpTriggerSegmentation::StationType ( ) const
inlinevirtual

Return station type.

Implements AliMpVSegmentation.

Definition at line 92 of file AliMpTriggerSegmentation.h.

Referenced by NofPads().

Member Data Documentation

Bool_t AliMpTriggerSegmentation::fIsOwner
private

Trigger slat ownership.

Definition at line 85 of file AliMpTriggerSegmentation.h.

Referenced by ~AliMpTriggerSegmentation().

const AliMpTrigger* AliMpTriggerSegmentation::fkSlat
private
Int_t AliMpTriggerSegmentation::fNofStrips
private

Number of strips in this slat.

Definition at line 86 of file AliMpTriggerSegmentation.h.

Referenced by AliMpTriggerSegmentation(), and NofPads().


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