![]() |
AliRoot Core
d69033e (d69033e)
|
Read trigger slat ASCII files. More...
#include <AliMpTriggerReader.h>
Public Member Functions | |
AliMpTriggerReader (AliMpSlatMotifMap *motifMap) | |
virtual | ~AliMpTriggerReader () |
AliMpTrigger * | ReadSlat (const AliMpDataStreams &dataStreams, const char *slatType, AliMp::PlaneType planeType) |
AliMpPCB * | ReadPCB (const AliMpDataStreams &dataStreams, const char *pcbType) |
Private Member Functions | |
AliMpSlat * | BuildSlat (const AliMpDataStreams &dataStreams, const char *slatName, AliMp::PlaneType planeType, const TList &descriptionLines, Double_t scale=1.0) |
Int_t | DecodeFlipLine (const TString &sline, TString &slatType2, Bool_t &flipX, Bool_t &flipY) |
Int_t | DecodeScaleLine (const TString &sline, Double_t &scale, TString &slatType) |
void | FlipLines (const AliMpDataStreams &dataStreams, TList &lines, Bool_t flipX, Bool_t flipY, Int_t srcLine, Int_t destLine) |
TString | GetBoardNameFromPCBLine (const TString &sline) |
Int_t | GetLine (const TString &slatType) |
Int_t | IsLayerLine (const TString &sline) const |
int | LocalBoardNumber (const AliMpDataStreams &dataStreams, const char *localBoardName) |
void | ReadLines (const AliMpDataStreams &dataStreams, const char *slatType, AliMp::PlaneType planeType, TList &lines, Double_t &scale, Bool_t &flipX, Bool_t &flipY, Int_t &srcLine, Int_t &destLine) |
void | ReadLocalBoardMapping (const AliMpDataStreams &dataStreams) |
AliMpTriggerReader (const AliMpTriggerReader &rhs) | |
Not implemented. More... | |
AliMpTriggerReader & | operator= (const AliMpTriggerReader &rhs) |
Not implemented. More... | |
Static Private Member Functions | |
static const TString & | GetKeywordLayer () |
static const TString & | GetKeywordScale () |
static const TString & | GetKeywordPcb () |
static const TString & | GetKeywordFlipX () |
static const TString & | GetKeywordFlipY () |
Private Attributes | |
AliMpSlatMotifMap * | fMotifMap |
! storage for motifTypes and motifs... More... | |
TMap | fLocalBoardMap |
! map of TObjString to TObjString More... | |
Read trigger slat ASCII files.
Read trigger slat ASCII files Basically provides two methods:
Definition at line 40 of file AliMpTriggerReader.h.
AliMpTriggerReader::AliMpTriggerReader | ( | AliMpSlatMotifMap * | motifMap | ) |
Default ctor.
Definition at line 109 of file AliMpTriggerReader.cxx.
|
virtual |
Dtor.
Definition at line 121 of file AliMpTriggerReader.cxx.
|
private |
Not implemented.
|
private |
Construct a slat from the list of lines, taking into account the scale factor. The returned pointer must be deleted by the client
Definition at line 131 of file AliMpTriggerReader.cxx.
Referenced by ReadSlat().
|
private |
Decode a line containing FLIP_X and/or FLIP_Y keywords
Definition at line 400 of file AliMpTriggerReader.cxx.
Referenced by ReadLines().
|
private |
Decode sline containing SCALE keyword
Definition at line 429 of file AliMpTriggerReader.cxx.
Referenced by ReadLines().
|
private |
Change the local board names contained in lines, to go from right to left, and/or from top to bottom
Definition at line 261 of file AliMpTriggerReader.cxx.
Referenced by ReadSlat().
|
private |
Decode the string to get the board name
Definition at line 239 of file AliMpTriggerReader.cxx.
Referenced by FlipLines().
|
staticprivate |
Keyword : FLIPX
Definition at line 89 of file AliMpTriggerReader.cxx.
Referenced by DecodeFlipLine(), and ReadLines().
|
staticprivate |
Keyword : FLIPY
Definition at line 97 of file AliMpTriggerReader.cxx.
Referenced by DecodeFlipLine(), and ReadLines().
|
staticprivate |
Keyword: LAYER
Definition at line 65 of file AliMpTriggerReader.cxx.
Referenced by IsLayerLine(), ReadLines(), and ReadSlat().
|
staticprivate |
Keyword : PCB
Definition at line 81 of file AliMpTriggerReader.cxx.
Referenced by BuildSlat(), FlipLines(), GetBoardNameFromPCBLine(), and ReadLines().
|
staticprivate |
Keyword: SCALE
Definition at line 73 of file AliMpTriggerReader.cxx.
Referenced by DecodeScaleLine(), and ReadLines().
|
private |
Assuming slatType is a 4 character string of the form XSLN where X=1,2,3 or 4 S = R or L N is the line number returns N
Definition at line 458 of file AliMpTriggerReader.cxx.
Referenced by ReadLines().
|
private |
Whether sline contains LAYER keyword
Definition at line 384 of file AliMpTriggerReader.cxx.
Referenced by ReadSlat().
|
private |
From local board name to local board number
Definition at line 478 of file AliMpTriggerReader.cxx.
Referenced by BuildSlat(), and FlipLines().
|
private |
Not implemented.
|
private |
Reads in lines from file for a given slat Returns the list of lines (lines), together with some global information as the scale, whether to flip the lines, etc...
Definition at line 499 of file AliMpTriggerReader.cxx.
Referenced by ReadSlat().
|
private |
Reads the file that contains the mapping local board name <-> number
Definition at line 588 of file AliMpTriggerReader.cxx.
Referenced by LocalBoardNumber().
AliMpPCB * AliMpTriggerReader::ReadPCB | ( | const AliMpDataStreams & | dataStreams, |
const char * | pcbType | ||
) |
Create a new AliMpPCB object, by reading it from file. Returned pointer must be deleted by client.
Definition at line 641 of file AliMpTriggerReader.cxx.
Referenced by BuildSlat().
AliMpTrigger * AliMpTriggerReader::ReadSlat | ( | const AliMpDataStreams & | dataStreams, |
const char * | slatType, | ||
AliMp::PlaneType | planeType | ||
) |
Create a new AliMpTrigger object, by reading it from file. Returned object must be deleted by client.
Definition at line 784 of file AliMpTriggerReader.cxx.
Referenced by AliMpSegmentation::CreateMpSegmentation().
|
private |
! map of TObjString to TObjString
Definition at line 106 of file AliMpTriggerReader.h.
Referenced by AliMpTriggerReader(), LocalBoardNumber(), ReadLocalBoardMapping(), and ~AliMpTriggerReader().
|
private |
! storage for motifTypes and motifs...
Definition at line 104 of file AliMpTriggerReader.h.
Referenced by ReadPCB(), and ReadSlat().