![]() |
AliRoot Core
v5-06-30 (35d6c57)
|
Global (string-eable) ID of a tracker channel. More...
#include <AliMpUID.h>
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... | |
Global (string-eable) ID of a tracker channel.
Definition at line 25 of file AliMpUID.h.
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.
|
inlinevirtual |
dtor
Definition at line 36 of file AliMpUID.h.
TString AliMpUID::BaseName | ( | ) | const |
Get the basename
Definition at line 145 of file AliMpUID.cxx.
|
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().
|
inline |
|
private |
Check a name against a template
Definition at line 161 of file AliMpUID.cxx.
Referenced by AliMpUID().
|
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().
|
inline |
TString AliMpUID::Name | ( | ) | const |
TString AliMpUID::PathName | ( | ) | const |
Get our pathname
Definition at line 287 of file AliMpUID.cxx.
Referenced by BaseName(), DirName(), and Print().
|
inline |
|
virtual |
Printout
Definition at line 332 of file AliMpUID.cxx.
|
inline |
|
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.
|
private |
Bus patch id.
Definition at line 80 of file AliMpUID.h.
Referenced by AliMpUID(), BusPatchId(), IsBusPatch(), IsDetectionElement(), and IsManu().
|
private |
Cathode number.
Definition at line 76 of file AliMpUID.h.
Referenced by CathodeId(), CheckTemplate(), IsBusPatch(), IsChamber(), IsDetectionElement(), IsManu(), IsPCB(), IsStation(), and StripCathode().
|
private |
Chamber id.
Definition at line 78 of file AliMpUID.h.
Referenced by ChamberId(), CheckTemplate(), IsBusPatch(), IsChamber(), IsDetectionElement(), IsManu(), and IsStation().
|
private |
Detection element id.
Definition at line 79 of file AliMpUID.h.
Referenced by CheckTemplate(), DetElemId(), IsBusPatch(), IsChamber(), IsDetectionElement(), and IsManu().
|
private |
Manu id.
Definition at line 81 of file AliMpUID.h.
Referenced by CheckTemplate(), IsBusPatch(), IsManu(), IsPCB(), and ManuId().
|
private |
PCB id.
Definition at line 82 of file AliMpUID.h.
Referenced by AliMpUID(), IsDetectionElement(), IsManu(), IsPCB(), PathName(), and PCBId().
|
private |
Station id.
Definition at line 77 of file AliMpUID.h.
Referenced by CheckTemplate(), IsBusPatch(), IsChamber(), IsDetectionElement(), IsManu(), IsStation(), and StationId().