AliRoot Core  d69033e (d69033e)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpTriggerReader Class Reference

Read trigger slat ASCII files. More...

#include <AliMpTriggerReader.h>

Inheritance diagram for AliMpTriggerReader:

Public Member Functions

 AliMpTriggerReader (AliMpSlatMotifMap *motifMap)
 
virtual ~AliMpTriggerReader ()
 
AliMpTriggerReadSlat (const AliMpDataStreams &dataStreams, const char *slatType, AliMp::PlaneType planeType)
 
AliMpPCBReadPCB (const AliMpDataStreams &dataStreams, const char *pcbType)
 

Private Member Functions

AliMpSlatBuildSlat (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...
 
AliMpTriggerReaderoperator= (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

AliMpSlatMotifMapfMotifMap
 ! storage for motifTypes and motifs... More...
 
TMap fLocalBoardMap
 ! map of TObjString to TObjString More...
 

Detailed Description

Read trigger slat ASCII files.

Read trigger slat ASCII files Basically provides two methods:

Author
Laurent Aphecetche

Definition at line 40 of file AliMpTriggerReader.h.

Constructor & Destructor Documentation

AliMpTriggerReader::AliMpTriggerReader ( AliMpSlatMotifMap motifMap)

Default ctor.

Definition at line 109 of file AliMpTriggerReader.cxx.

AliMpTriggerReader::~AliMpTriggerReader ( )
virtual

Dtor.

Definition at line 121 of file AliMpTriggerReader.cxx.

AliMpTriggerReader::AliMpTriggerReader ( const AliMpTriggerReader rhs)
private

Not implemented.

Member Function Documentation

AliMpSlat * AliMpTriggerReader::BuildSlat ( const AliMpDataStreams dataStreams,
const char *  slatName,
AliMp::PlaneType  planeType,
const TList &  descriptionLines,
Double_t  scale = 1.0 
)
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().

Int_t AliMpTriggerReader::DecodeFlipLine ( const TString &  sline,
TString &  slatType2,
Bool_t &  flipX,
Bool_t &  flipY 
)
private

Decode a line containing FLIP_X and/or FLIP_Y keywords

Definition at line 400 of file AliMpTriggerReader.cxx.

Referenced by ReadLines().

Int_t AliMpTriggerReader::DecodeScaleLine ( const TString &  sline,
Double_t &  scale,
TString &  slatType 
)
private

Decode sline containing SCALE keyword

Definition at line 429 of file AliMpTriggerReader.cxx.

Referenced by ReadLines().

void AliMpTriggerReader::FlipLines ( const AliMpDataStreams dataStreams,
TList &  lines,
Bool_t  flipX,
Bool_t  flipY,
Int_t  srcLine,
Int_t  destLine 
)
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().

TString AliMpTriggerReader::GetBoardNameFromPCBLine ( const TString &  sline)
private

Decode the string to get the board name

Definition at line 239 of file AliMpTriggerReader.cxx.

Referenced by FlipLines().

const TString & AliMpTriggerReader::GetKeywordFlipX ( )
staticprivate

Keyword : FLIPX

Definition at line 89 of file AliMpTriggerReader.cxx.

Referenced by DecodeFlipLine(), and ReadLines().

const TString & AliMpTriggerReader::GetKeywordFlipY ( )
staticprivate

Keyword : FLIPY

Definition at line 97 of file AliMpTriggerReader.cxx.

Referenced by DecodeFlipLine(), and ReadLines().

const TString & AliMpTriggerReader::GetKeywordLayer ( )
staticprivate

Keyword: LAYER

Definition at line 65 of file AliMpTriggerReader.cxx.

Referenced by IsLayerLine(), ReadLines(), and ReadSlat().

const TString & AliMpTriggerReader::GetKeywordPcb ( )
staticprivate

Keyword : PCB

Definition at line 81 of file AliMpTriggerReader.cxx.

Referenced by BuildSlat(), FlipLines(), GetBoardNameFromPCBLine(), and ReadLines().

const TString & AliMpTriggerReader::GetKeywordScale ( )
staticprivate

Keyword: SCALE

Definition at line 73 of file AliMpTriggerReader.cxx.

Referenced by DecodeScaleLine(), and ReadLines().

Int_t AliMpTriggerReader::GetLine ( const TString &  slatType)
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().

Int_t AliMpTriggerReader::IsLayerLine ( const TString &  sline) const
private

Whether sline contains LAYER keyword

Definition at line 384 of file AliMpTriggerReader.cxx.

Referenced by ReadSlat().

int AliMpTriggerReader::LocalBoardNumber ( const AliMpDataStreams dataStreams,
const char *  localBoardName 
)
private

From local board name to local board number

Definition at line 478 of file AliMpTriggerReader.cxx.

Referenced by BuildSlat(), and FlipLines().

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

Not implemented.

void AliMpTriggerReader::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 
)
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().

void AliMpTriggerReader::ReadLocalBoardMapping ( const AliMpDataStreams dataStreams)
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().

Member Data Documentation

TMap AliMpTriggerReader::fLocalBoardMap
private

! map of TObjString to TObjString

Definition at line 106 of file AliMpTriggerReader.h.

Referenced by AliMpTriggerReader(), LocalBoardNumber(), ReadLocalBoardMapping(), and ~AliMpTriggerReader().

AliMpSlatMotifMap* AliMpTriggerReader::fMotifMap
private

! storage for motifTypes and motifs...

Definition at line 104 of file AliMpTriggerReader.h.

Referenced by ReadPCB(), and ReadSlat().


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