![]() |
AliRoot Core
a565103 (a565103)
|
Implementation of AliMpVSegmentation for trigger slats. More...
#include <AliMpTriggerSegmentation.h>
Public Member Functions | |
AliMpTriggerSegmentation () | |
AliMpTriggerSegmentation (const AliMpTrigger *slat, Bool_t own=false) | |
virtual | ~AliMpTriggerSegmentation () |
virtual AliMpVPadIterator * | CreateIterator (const AliMpArea &area) const |
Create iterator over pads in the given area. More... | |
virtual AliMpVPadIterator * | CreateIterator () 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 AliMpTrigger * | Slat () 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 AliMpMotifPosition * | MotifPosition (Int_t manuId) const |
Return the position of a given manu (aka motifPosition) More... | |
![]() | |
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... | |
AliMpTriggerSegmentation & | operator= (const AliMpTriggerSegmentation &right) |
Not implemented. More... | |
Private Attributes | |
const AliMpTrigger * | fkSlat |
Slat. More... | |
Bool_t | fIsOwner |
Trigger slat ownership. More... | |
Int_t | fNofStrips |
Number of strips in this slat. More... | |
Implementation of AliMpVSegmentation for trigger slats.
Implementation of AliMpVSegmentation for trigger slats.
Definition at line 32 of file AliMpTriggerSegmentation.h.
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.
|
virtual |
Dtor (empty).
Definition at line 89 of file AliMpTriggerSegmentation.cxx.
|
private |
Not implemented.
|
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.
|
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.
|
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.
|
virtual |
Return the x half-sizes of the detection element.
Return slat x dimensions
Implements AliMpVSegmentation.
Definition at line 137 of file AliMpTriggerSegmentation.cxx.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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().
|
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().
|
virtual |
Return the position of a given manu (aka motifPosition)
No implemented (yet ?)
Implements AliMpVSegmentation.
Definition at line 366 of file AliMpTriggerSegmentation.cxx.
|
inlinevirtual |
Return the number of pads in the detection element.
Implements AliMpVSegmentation.
Definition at line 48 of file AliMpTriggerSegmentation.h.
|
private |
Not implemented.
|
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().
|
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.
|
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.
|
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().
|
inlinevirtual |
Return station type.
Implements AliMpVSegmentation.
Definition at line 93 of file AliMpTriggerSegmentation.h.
|
private |
Trigger slat ownership.
Definition at line 86 of file AliMpTriggerSegmentation.h.
Referenced by ~AliMpTriggerSegmentation().
|
private |
Slat.
Definition at line 85 of file AliMpTriggerSegmentation.h.
Referenced by GetName(), GetNofElectronicCards(), MaxPadIndexX(), MaxPadIndexY(), PadByIndices(), PadByLocation(), PadByPosition(), Slat(), and ~AliMpTriggerSegmentation().
|
private |
Number of strips in this slat.
Definition at line 87 of file AliMpTriggerSegmentation.h.
Referenced by AliMpTriggerSegmentation(), and NofPads().