AliRoot Core  3dc7879 (3dc7879)
AliMpBusPatch Class Reference

The class defines the properties of BusPatch. More...

#include <AliMpBusPatch.h>

Inheritance diagram for AliMpBusPatch:

Public Member Functions

 AliMpBusPatch (Int_t id, Int_t deId, Int_t ddlId)
 
 AliMpBusPatch (TRootIOCtor *)
 
virtual ~AliMpBusPatch ()
 
Bool_t AddManu (Int_t manuId)
 
Bool_t SetNofManusPerModule (Int_t manuNumber=0)
 
void SetTranslatorLabel (TString label)
 Set label of translator. More...
 
void SetCableLabel (TString label)
 Set label of buspatch. More...
 
void SetCableLength (Float_t length)
 Set length of buspatch. More...
 
void SetFrtId (Int_t id)
 Set FRT id for buspatch. More...
 
void RevertReadout ()
 
void ResetReadout ()
 
Int_t GetId () const
 Return the unique Id. More...
 
Int_t GetDEId () const
 Return the Detection element Id. More...
 
Int_t GetDdlId () const
 Return the Ddl Id. More...
 
Int_t GetFrtId () const
 Return the FRT Id. More...
 
Int_t GetNofManus () const
 
Int_t GetManuId (Int_t index) const
 
Bool_t HasManu (Int_t manuId) const
 
Int_t GetNofPatchModules () const
 
Int_t GetNofManusPerModule (Int_t patchModule) const
 
Float_t GetCableLength () const
 Return length of buspatch. More...
 
TString GetCableLabel () const
 Return label of buspatch. More...
 
TString GetTranslatorLabel () const
 Return label of translator. More...
 
TString GetFRTPosition () const
 
virtual void Print (Option_t *opt="") const
 

Static Public Member Functions

static Int_t GetGlobalBusID (Int_t localID, Int_t ddlID)
 
static Int_t GetLocalBusID (Int_t globalID, Int_t ddlID)
 

Private Member Functions

 AliMpBusPatch ()
 Not implemented. More...
 
 AliMpBusPatch (const AliMpBusPatch &rhs)
 Not implemented. More...
 
AliMpBusPatchoperator= (const AliMpBusPatch &rhs)
 Not implemented. More...
 

Private Attributes

Int_t fId
 Identifier (unique) More...
 
Int_t fDEId
 Detection element to which this bus patch is connected. More...
 
Int_t fDdlId
 DDL to which this bus patch is connected. More...
 
AliMpArrayI fManus
 Manu Ids connected to this bus patch. More...
 
AliMpArrayI fNofManusPerModule
 Nof Manus per patch modules (PCBs) More...
 
Float_t fCableLength
 length of the buspatch cable More...
 
TString fCableLabel
 label of the buspatch cable More...
 
TString fTranslatorLabel
 label of the translator board More...
 
Int_t fFrtId
 FRT Ids connected to this bus patch. More...
 

Static Private Attributes

static const Int_t fgkOffset = 100
 Offset for conversion global/local ID. More...
 

Detailed Description

The class defines the properties of BusPatch.

Author
Ivana Hrivnacova, IPN Orsay

Definition at line 21 of file AliMpBusPatch.h.

Constructor & Destructor Documentation

AliMpBusPatch::AliMpBusPatch ( Int_t  id,
Int_t  deId,
Int_t  ddlId 
)

Standard constructor

Definition at line 69 of file AliMpBusPatch.cxx.

AliMpBusPatch::AliMpBusPatch ( TRootIOCtor *  )

Root IO constructor

Definition at line 85 of file AliMpBusPatch.cxx.

AliMpBusPatch::~AliMpBusPatch ( )
virtual

Destructor

Definition at line 101 of file AliMpBusPatch.cxx.

AliMpBusPatch::AliMpBusPatch ( )
private

Not implemented.

AliMpBusPatch::AliMpBusPatch ( const AliMpBusPatch rhs)
private

Not implemented.

Member Function Documentation

Bool_t AliMpBusPatch::AddManu ( Int_t  manuId)

Add detection element with given detElemId. Return true if the detection element was added

Definition at line 111 of file AliMpBusPatch.cxx.

Referenced by AliMpDDLStore::SetManus().

TString AliMpBusPatch::GetCableLabel ( ) const
inline

Return label of buspatch.

Definition at line 117 of file AliMpBusPatch.h.

Float_t AliMpBusPatch::GetCableLength ( ) const
inline

Return length of buspatch.

Definition at line 105 of file AliMpBusPatch.h.

Int_t AliMpBusPatch::GetDEId ( ) const
inline
Int_t AliMpBusPatch::GetFrtId ( ) const
inline

Return the FRT Id.

Definition at line 101 of file AliMpBusPatch.h.

Referenced by AliMUONTrackerQADataMakerRec::FillReadoutStatus().

TString AliMpBusPatch::GetFRTPosition ( ) const

Return CRXX-Y-Z where XX is the Crocus number, Y the FRT number and Z the local bus patch number.

Definition at line 266 of file AliMpBusPatch.cxx.

Referenced by Print().

Int_t AliMpBusPatch::GetGlobalBusID ( Int_t  localID,
Int_t  ddlID 
)
static

return global bus id from local bus and ddl id

Definition at line 52 of file AliMpBusPatch.cxx.

Referenced by MUONGenerateBusPatch(), and AliMpDDLStore::ReadBusPatchSpecial().

Int_t AliMpBusPatch::GetLocalBusID ( Int_t  globalID,
Int_t  ddlID 
)
static

return local bus id from local bus id

Definition at line 60 of file AliMpBusPatch.cxx.

Referenced by GetFRTPosition(), and AliMpDDLStore::GetLinkPortId().

Int_t AliMpBusPatch::GetNofManusPerModule ( Int_t  patchModule) const

Return the number of manus per patch module (PCB)

Definition at line 274 of file AliMpBusPatch.cxx.

Int_t AliMpBusPatch::GetNofPatchModules ( ) const

Return the number of patch modules (PCB) connected to this bus patch.

Definition at line 257 of file AliMpBusPatch.cxx.

Referenced by GetNofManusPerModule().

TString AliMpBusPatch::GetTranslatorLabel ( ) const
inline

Return label of translator.

Definition at line 125 of file AliMpBusPatch.h.

Bool_t AliMpBusPatch::HasManu ( Int_t  manuId) const

Return true if bus patch has manu with given manuId

Definition at line 249 of file AliMpBusPatch.cxx.

Referenced by AddManu().

AliMpBusPatch& AliMpBusPatch::operator= ( const AliMpBusPatch rhs)
private

Not implemented.

void AliMpBusPatch::Print ( Option_t *  opt = "") const
virtual

Printout

Definition at line 288 of file AliMpBusPatch.cxx.

Referenced by AliMUONCDB::ShowConfig().

void AliMpBusPatch::ResetReadout ( )

Revert order of manus

Definition at line 225 of file AliMpBusPatch.cxx.

void AliMpBusPatch::RevertReadout ( )

Revert order of manus

Definition at line 217 of file AliMpBusPatch.cxx.

void AliMpBusPatch::SetCableLabel ( TString  label)
inline

Set label of buspatch.

Definition at line 121 of file AliMpBusPatch.h.

Referenced by AliMpDDLStore::ReadBusPatchInfo().

void AliMpBusPatch::SetCableLength ( Float_t  length)
inline

Set length of buspatch.

Definition at line 113 of file AliMpBusPatch.h.

Referenced by AliMpDDLStore::ReadBusPatchInfo().

void AliMpBusPatch::SetFrtId ( Int_t  id)
inline

Set FRT id for buspatch.

Definition at line 109 of file AliMpBusPatch.h.

Referenced by AliMpDDLStore::ReadBusPatchInfo().

Bool_t AliMpBusPatch::SetNofManusPerModule ( Int_t  manuNumber = 0)

Set the number of manus per patch module (PCB):

  • for stations 1 all manus are connected to one PCB,
  • for stations 2 there maximum two PCBs per buspatch,
  • for slat stations there are maximum three PCBs per buspatch

Definition at line 128 of file AliMpBusPatch.cxx.

Referenced by AliMpDDLStore::SetPatchModules().

void AliMpBusPatch::SetTranslatorLabel ( TString  label)
inline

Set label of translator.

Definition at line 129 of file AliMpBusPatch.h.

Referenced by AliMpDDLStore::ReadBusPatchInfo().

Member Data Documentation

TString AliMpBusPatch::fCableLabel
private

label of the buspatch cable

Definition at line 79 of file AliMpBusPatch.h.

Referenced by GetCableLabel(), GetTranslatorLabel(), Print(), and SetCableLabel().

Float_t AliMpBusPatch::fCableLength
private

length of the buspatch cable

Definition at line 78 of file AliMpBusPatch.h.

Referenced by GetCableLength(), and SetCableLength().

Int_t AliMpBusPatch::fDdlId
private

DDL to which this bus patch is connected.

Definition at line 75 of file AliMpBusPatch.h.

Referenced by GetDdlId(), GetFRTPosition(), and Print().

Int_t AliMpBusPatch::fDEId
private

Detection element to which this bus patch is connected.

Definition at line 74 of file AliMpBusPatch.h.

Referenced by GetDEId(), and SetNofManusPerModule().

Int_t AliMpBusPatch::fFrtId
private

FRT Ids connected to this bus patch.

Definition at line 81 of file AliMpBusPatch.h.

Referenced by GetFrtId(), GetFRTPosition(), and SetFrtId().

const Int_t AliMpBusPatch::fgkOffset = 100
staticprivate

Offset for conversion global/local ID.

Definition at line 70 of file AliMpBusPatch.h.

Referenced by GetLocalBusID().

Int_t AliMpBusPatch::fId
private

Identifier (unique)

Definition at line 73 of file AliMpBusPatch.h.

Referenced by GetFRTPosition(), GetId(), and Print().

AliMpArrayI AliMpBusPatch::fManus
private

Manu Ids connected to this bus patch.

Definition at line 76 of file AliMpBusPatch.h.

Referenced by AddManu(), GetManuId(), GetNofManus(), HasManu(), Print(), ResetReadout(), and RevertReadout().

AliMpArrayI AliMpBusPatch::fNofManusPerModule
private

Nof Manus per patch modules (PCBs)

Definition at line 77 of file AliMpBusPatch.h.

Referenced by GetNofManusPerModule(), GetNofPatchModules(), Print(), and SetNofManusPerModule().

TString AliMpBusPatch::fTranslatorLabel
private

label of the translator board

Definition at line 80 of file AliMpBusPatch.h.

Referenced by Print(), and SetTranslatorLabel().


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