AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpUID Class Reference

Global (string-eable) ID of a tracker channel. More...

#include <AliMpUID.h>

Inheritance diagram for AliMpUID:

Public Member Functions

 AliMpUID ()
 
 AliMpUID (AliMp::CathodType cathodeType, Int_t station, Int_t chamber=-1, Int_t de=-1, Int_t bp=-1, Int_t manu=-1, Int_t pcb=-1)
 
 AliMpUID (AliMp::CathodType cathodeType, const AliMpUID &b)
 
 AliMpUID (AliMp::CathodType cathodeType, const char *pathname)
 
 AliMpUID (const char *pathname)
 
virtual ~AliMpUID ()
 dtor More...
 
TString Name () const
 
TString PathName () const
 
TString BaseName () const
 
TString DirName () const
 
Bool_t IsStation () const
 
Bool_t IsChamber () const
 
Bool_t IsDetectionElement () const
 
Bool_t IsBusPatch () const
 
Bool_t IsManu () const
 
Bool_t IsPCB () const
 
Bool_t IsValid () const
 
AliMp::CathodType CathodeId () const
 
Int_t StationId () const
 Return station Id. More...
 
Int_t ChamberId () const
 Return chamber Id. More...
 
Int_t DetElemId () const
 Return detection element Id. More...
 
Int_t BusPatchId () const
 Return bus patch Id. More...
 
Int_t ManuId () const
 Return manu Id. More...
 
Int_t PCBId () const
 Return PCB Id. More...
 
virtual void Print (Option_t *opt="") const
 
TString Type () const
 Return our type (e.g. PCB, Chamber, DE, MANU, etc...) More...
 

Private Member Functions

Bool_t CheckTemplate (const char *name, const char *templateName, Int_t &value)
 
TString StripCathode (const char *name) const
 

Private Attributes

Int_t fCathodeId
 Cathode number. More...
 
Int_t fStationId
 Station id. More...
 
Int_t fChamberId
 Chamber id. More...
 
Int_t fDetElemId
 Detection element id. More...
 
Int_t fBusPatchId
 Bus patch id. More...
 
Int_t fManuId
 Manu id. More...
 
Int_t fPCBId
 PCB id. More...
 

Detailed Description

Global (string-eable) ID of a tracker channel.

Definition at line 25 of file AliMpUID.h.

Constructor & Destructor Documentation

AliMpUID::AliMpUID ( )

empty ctor

Definition at line 55 of file AliMpUID.cxx.

AliMpUID::AliMpUID ( AliMp::CathodType  cathodeType,
Int_t  station,
Int_t  chamber = -1,
Int_t  de = -1,
Int_t  bp = -1,
Int_t  manu = -1,
Int_t  pcb = -1 
)

default ctor

Definition at line 69 of file AliMpUID.cxx.

AliMpUID::AliMpUID ( AliMp::CathodType  cathodeType,
const AliMpUID b 
)

build the id from b, but using the given cathodeType

Definition at line 83 of file AliMpUID.cxx.

AliMpUID::AliMpUID ( AliMp::CathodType  cathodeType,
const char *  pathname 
)

build id from path, but using the given cathodeType

Definition at line 97 of file AliMpUID.cxx.

AliMpUID::AliMpUID ( const char *  pathname)

Build id from path

Definition at line 121 of file AliMpUID.cxx.

virtual AliMpUID::~AliMpUID ( )
inlinevirtual

dtor

Definition at line 36 of file AliMpUID.h.

Member Function Documentation

TString AliMpUID::BaseName ( ) const

Get the basename

Definition at line 145 of file AliMpUID.cxx.

Int_t AliMpUID::BusPatchId ( ) const
inline

Return bus patch Id.

Definition at line 59 of file AliMpUID.h.

Referenced by Name(), and PathName().

AliMp::CathodType AliMpUID::CathodeId ( ) const

return cathode id (not always valid)

Definition at line 153 of file AliMpUID.cxx.

Referenced by PathName().

Int_t AliMpUID::ChamberId ( ) const
inline

Return chamber Id.

Definition at line 55 of file AliMpUID.h.

Referenced by Name(), and PathName().

Bool_t AliMpUID::CheckTemplate ( const char *  name,
const char *  templateName,
Int_t &  value 
)
private

Check a name against a template

Definition at line 161 of file AliMpUID.cxx.

Referenced by AliMpUID().

Int_t AliMpUID::DetElemId ( ) const
inline

Return detection element Id.

Definition at line 57 of file AliMpUID.h.

Referenced by Name(), and PathName().

TString AliMpUID::DirName ( ) const

Get dirname

Definition at line 181 of file AliMpUID.cxx.

Bool_t AliMpUID::IsBusPatch ( ) const

whether we identify a bus patch

Definition at line 214 of file AliMpUID.cxx.

Referenced by IsValid(), Name(), and PathName().

Bool_t AliMpUID::IsChamber ( ) const

Whether we identify a chamber

Definition at line 197 of file AliMpUID.cxx.

Referenced by IsValid(), Name(), and PathName().

Bool_t AliMpUID::IsDetectionElement ( ) const

whether we identify a detection element

Definition at line 206 of file AliMpUID.cxx.

Referenced by IsValid(), Name(), and PathName().

Bool_t AliMpUID::IsManu ( ) const

whether we identify a manu

Definition at line 221 of file AliMpUID.cxx.

Referenced by IsValid(), Name(), and PathName().

Bool_t AliMpUID::IsPCB ( ) const

Whether we identify a PCB

Definition at line 234 of file AliMpUID.cxx.

Referenced by IsValid(), Name(), and PathName().

Bool_t AliMpUID::IsStation ( ) const

Whether we identify a station

Definition at line 189 of file AliMpUID.cxx.

Referenced by IsValid(), Name(), and PathName().

Bool_t AliMpUID::IsValid ( ) const

Whether we're a valid UID...

Definition at line 241 of file AliMpUID.cxx.

Referenced by CheckTemplate().

Int_t AliMpUID::ManuId ( ) const
inline

Return manu Id.

Definition at line 61 of file AliMpUID.h.

Referenced by Name(), and PathName().

TString AliMpUID::Name ( ) const

Get our name

Definition at line 249 of file AliMpUID.cxx.

Referenced by Print(), and Type().

TString AliMpUID::PathName ( ) const

Get our pathname

Definition at line 287 of file AliMpUID.cxx.

Referenced by BaseName(), DirName(), and Print().

Int_t AliMpUID::PCBId ( ) const
inline

Return PCB Id.

Definition at line 63 of file AliMpUID.h.

Referenced by Name(), and PathName().

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

Printout

Definition at line 332 of file AliMpUID.cxx.

Int_t AliMpUID::StationId ( ) const
inline

Return station Id.

Definition at line 53 of file AliMpUID.h.

Referenced by Name(), and PathName().

TString AliMpUID::StripCathode ( const char *  name) const
private

Remove cathode information if both cathodes are present

Definition at line 340 of file AliMpUID.cxx.

Referenced by PathName().

TString AliMpUID::Type ( ) const

Return our type (e.g. PCB, Chamber, DE, MANU, etc...)

Remove cathode information if both cathodes are present

Definition at line 356 of file AliMpUID.cxx.

Member Data Documentation

Int_t AliMpUID::fBusPatchId
private

Bus patch id.

Definition at line 80 of file AliMpUID.h.

Referenced by AliMpUID(), BusPatchId(), IsBusPatch(), IsDetectionElement(), and IsManu().

Int_t AliMpUID::fCathodeId
private

Cathode number.

Definition at line 76 of file AliMpUID.h.

Referenced by CathodeId(), CheckTemplate(), IsBusPatch(), IsChamber(), IsDetectionElement(), IsManu(), IsPCB(), IsStation(), and StripCathode().

Int_t AliMpUID::fChamberId
private

Chamber id.

Definition at line 78 of file AliMpUID.h.

Referenced by ChamberId(), CheckTemplate(), IsBusPatch(), IsChamber(), IsDetectionElement(), IsManu(), and IsStation().

Int_t AliMpUID::fDetElemId
private

Detection element id.

Definition at line 79 of file AliMpUID.h.

Referenced by CheckTemplate(), DetElemId(), IsBusPatch(), IsChamber(), IsDetectionElement(), and IsManu().

Int_t AliMpUID::fManuId
private

Manu id.

Definition at line 81 of file AliMpUID.h.

Referenced by CheckTemplate(), IsBusPatch(), IsManu(), IsPCB(), and ManuId().

Int_t AliMpUID::fPCBId
private

PCB id.

Definition at line 82 of file AliMpUID.h.

Referenced by AliMpUID(), IsDetectionElement(), IsManu(), IsPCB(), PathName(), and PCBId().

Int_t AliMpUID::fStationId
private

Station id.

Definition at line 77 of file AliMpUID.h.

Referenced by CheckTemplate(), IsBusPatch(), IsChamber(), IsDetectionElement(), IsManu(), IsStation(), and StationId().


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