AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 32 of file AliMpTriggerSegmentation.h.

Constructor & Destructor Documentation

AliMpTriggerSegmentation::AliMpTriggerSegmentation ( )

Default ctor. Not to be used really.

Definition at line 45 of file AliMpTriggerSegmentation.cxx.

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

Normal ctor.

Definition at line 58 of file AliMpTriggerSegmentation.cxx.

AliMpTriggerSegmentation::~AliMpTriggerSegmentation ( )
virtual

Dtor (empty).

Definition at line 89 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 102 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 Not implemented for trigger.

Implements AliMpVSegmentation.

Definition at line 113 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 153 of file AliMpTriggerSegmentation.cxx.

Double_t AliMpTriggerSegmentation::GetDimensionX ( ) const
virtual

Return the x half-sizes of the detection element.

Return slat x dimensions

Implements AliMpVSegmentation.

Definition at line 137 of file AliMpTriggerSegmentation.cxx.

Double_t AliMpTriggerSegmentation::GetDimensionY ( ) const
virtual

Return the y half-sizes of the detection element.

Return slat y dimensions

Implements AliMpVSegmentation.

Definition at line 145 of file AliMpTriggerSegmentation.cxx.

const char * AliMpTriggerSegmentation::GetName ( ) const

Name of that segmentation = TriggerSegmentation + slatName

Definition at line 162 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 125 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 339 of file AliMpTriggerSegmentation.cxx.

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 350 of file AliMpTriggerSegmentation.cxx.

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 358 of file AliMpTriggerSegmentation.cxx.

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 375 of file AliMpTriggerSegmentation.cxx.

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 176 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 187 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 366 of file AliMpTriggerSegmentation.cxx.

Int_t AliMpTriggerSegmentation::NofPads ( ) const
inlinevirtual

Return the number of pads in the detection element.

Implements AliMpVSegmentation.

Definition at line 48 of file AliMpTriggerSegmentation.h.

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

Not implemented.

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 233 of file AliMpTriggerSegmentation.cxx.

Referenced by 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 198 of file AliMpTriggerSegmentation.cxx.

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 277 of file AliMpTriggerSegmentation.cxx.

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

Return the plane type.

Return plane type

Implements AliMpVSegmentation.

Definition at line 319 of file AliMpTriggerSegmentation.cxx.

const AliMpTrigger * AliMpTriggerSegmentation::Slat ( ) const

Returns the pointer to the referenced slat.

Definition at line 328 of file AliMpTriggerSegmentation.cxx.

Referenced by GetAllElectronicCardIDs(), GetDimensionX(), GetDimensionY(), GetPositionX(), GetPositionY(), AliMpSegmentation::GetTrigger(), and PlaneType().

AliMp::StationType AliMpTriggerSegmentation::StationType ( ) const
inlinevirtual

Return station type.

Implements AliMpVSegmentation.

Definition at line 93 of file AliMpTriggerSegmentation.h.

Member Data Documentation

Bool_t AliMpTriggerSegmentation::fIsOwner
private

Trigger slat ownership.

Definition at line 86 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 87 of file AliMpTriggerSegmentation.h.

Referenced by AliMpTriggerSegmentation(), and NofPads().


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