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

Motif map containers. More...

#include <AliMpMotifMap.h>

Inheritance diagram for AliMpMotifMap:

Public Member Functions

 AliMpMotifMap ()
 
 AliMpMotifMap (TRootIOCtor *ioCtor)
 
virtual ~AliMpMotifMap ()
 
Bool_t AddMotif (AliMpVMotif *motif, Bool_t warn=true)
 
Bool_t AddMotifType (AliMpMotifType *motifType, Bool_t warn=true)
 
Bool_t AddMotifPosition (AliMpMotifPosition *motifType, Bool_t warn=true)
 
void FillMotifPositionMap2 ()
 
virtual void Print (const char *option="ALL") const
 
void PrintGlobalIndices (const char *fileName) const
 
void UpdateGlobalIndices (const char *fileName)
 
AliMpVMotifFindMotif (const TString &motifID) const
 
AliMpVMotifFindMotif (const TString &motifID, const TString &motifTypeID, Double_t padDimensionX, Double_t padDimensionY) const
 
AliMpMotifTypeFindMotifType (const TString &motifTypeID) const
 
AliMpMotifPositionFindMotifPosition (Int_t motifPositionID) const
 
void GetAllMotifPositionsIDs (TArrayI &enc) const
 Find all motifPositionsIDs (=electronicCardNumbers) handled by this map. More...
 
UInt_t GetNofMotifPositions () const
 
AliMpMotifPositionGetMotifPosition (UInt_t index) const
 
Int_t CalculateNofPads () const
 Calculate total number of pads defined in the map. More...
 

Private Member Functions

 AliMpMotifMap (const AliMpMotifMap &rhs)
 Not implemented. More...
 
AliMpMotifMapoperator= (const AliMpMotifMap &rhs)
 Not implemented. More...
 
void PrintMotif (const AliMpVMotif *motif) const
 
void PrintMotifType (const AliMpMotifType *motifType) const
 
void PrintMotifPosition (const AliMpMotifPosition *motifPosition) const
 
void PrintMotifPosition2 (const AliMpMotifPosition *motifPosition) const
 
void PrintMotifs () const
 
void PrintMotifTypes () const
 
void PrintMotifPositions () const
 
void PrintMotifPositions2 () const
 

Private Attributes

AliMpExMap fMotifs
 motifs map More...
 
AliMpExMap fMotifTypes
 motifs types map More...
 
AliMpExMap fMotifPositions
 motifs positions map More...
 
AliMpExMap fMotifPositions2
 motifs positions map More...
 

Detailed Description

Motif map containers.

The class defines:

  • map of motif objects to their string IDs
  • map of motif type objects to their string IDs
  • map of motif position objects to their string IDs
  • map of motif position objects to their global indices
Author
David Guez, Ivana Hrivnacova; IPN Orsay

Definition at line 34 of file AliMpMotifMap.h.

Constructor & Destructor Documentation

AliMpMotifMap::AliMpMotifMap ( )

Standard constructor

Definition at line 56 of file AliMpMotifMap.cxx.

AliMpMotifMap::AliMpMotifMap ( TRootIOCtor *  ioCtor)

Root IO constructor

Definition at line 69 of file AliMpMotifMap.cxx.

AliMpMotifMap::~AliMpMotifMap ( )
virtual

Destructor

Definition at line 82 of file AliMpMotifMap.cxx.

AliMpMotifMap::AliMpMotifMap ( const AliMpMotifMap rhs)
private

Not implemented.

Member Function Documentation

Bool_t AliMpMotifMap::AddMotif ( AliMpVMotif motif,
Bool_t  warn = true 
)

Add the specified motif if the motif with this ID is not yet present.

Definition at line 303 of file AliMpMotifMap.cxx.

Referenced by AliMpSectorReader::ReadMotifData().

Bool_t AliMpMotifMap::AddMotifPosition ( AliMpMotifPosition motifType,
Bool_t  warn = true 
)

Add the specified motif position if this position is not yet present.

Definition at line 349 of file AliMpMotifMap.cxx.

Referenced by AliMpRow::SetMotifPositions().

Bool_t AliMpMotifMap::AddMotifType ( AliMpMotifType motifType,
Bool_t  warn = true 
)

Add the specified motif type if the motif with this ID is not yet present.

Definition at line 326 of file AliMpMotifMap.cxx.

Referenced by AliMpSectorReader::ReadMotifData().

Int_t AliMpMotifMap::CalculateNofPads ( ) const

Calculate total number of pads defined in the map.

Calculate total number of pads in the map

Definition at line 237 of file AliMpMotifMap.cxx.

Referenced by AliMpSector::SetNofPads().

void AliMpMotifMap::FillMotifPositionMap2 ( )

Fill the second map (by global indices) of motif positions.

Definition at line 382 of file AliMpMotifMap.cxx.

Referenced by UpdateGlobalIndices().

AliMpVMotif * AliMpMotifMap::FindMotif ( const TString &  motifID) const

Find the motif with the specified ID.

Definition at line 481 of file AliMpMotifMap.cxx.

Referenced by AddMotif(), FindMotif(), AliMpSectorReader::ReadMotifData(), and AliMpSectorReader::ReadRowSegmentSpecialData().

AliMpVMotif * AliMpMotifMap::FindMotif ( const TString &  motifID,
const TString &  motifTypeID,
Double_t  padDimensionX,
Double_t  padDimensionY 
) const

Find the motif with the specified ID and returns it only if its motif type and motif dimensions agree with the given motifTypeID and motifDimensions. Disagreement causes fatal error.

Definition at line 491 of file AliMpMotifMap.cxx.

AliMpMotifType * AliMpMotifMap::FindMotifType ( const TString &  motifTypeID) const

Find the motif type with the specified motif type ID.

Definition at line 535 of file AliMpMotifMap.cxx.

Referenced by AddMotifType(), and AliMpSectorReader::ReadMotifData().

void AliMpMotifMap::GetAllMotifPositionsIDs ( TArrayI &  enc) const

Find all motifPositionsIDs (=electronicCardNumbers) handled by this map.

Fill the given array with all motif positions IDs (electronic card numbers) defined in the map

Definition at line 195 of file AliMpMotifMap.cxx.

Referenced by AliMpSector::GetAllMotifPositionsIDs().

AliMpMotifPosition * AliMpMotifMap::GetMotifPosition ( UInt_t  index) const

Return the motif position which is in the map on the index-th position

Definition at line 220 of file AliMpMotifMap.cxx.

Referenced by AliMpSectorPadIterator::ResetToCurrentMotifPosition().

UInt_t AliMpMotifMap::GetNofMotifPositions ( ) const

Return the number of all motif positions IDs (electronic card numbers)

Definition at line 212 of file AliMpMotifMap.cxx.

Referenced by AliMpDEVisu::DrawQuadrant(), GetMotifPosition(), AliMpSector::GetNofMotifPositions(), and AliMpSectorPadIterator::ResetToCurrentMotifPosition().

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

Not implemented.

void AliMpMotifMap::Print ( const char *  option = "ALL") const
virtual

Print the motifs and motif types maps.

Definition at line 402 of file AliMpMotifMap.cxx.

Referenced by AliMpSector::Print().

void AliMpMotifMap::PrintGlobalIndices ( const char *  fileName) const

Print all motif positions and their global indices.

Definition at line 417 of file AliMpMotifMap.cxx.

void AliMpMotifMap::PrintMotif ( const AliMpVMotif motif) const
private

Print the motif.

Definition at line 94 of file AliMpMotifMap.cxx.

Referenced by PrintMotifs().

void AliMpMotifMap::PrintMotifPosition ( const AliMpMotifPosition motifPosition) const
private

Print the motif position.

Definition at line 115 of file AliMpMotifMap.cxx.

Referenced by PrintMotifPositions().

void AliMpMotifMap::PrintMotifPosition2 ( const AliMpMotifPosition motifPosition) const
private

Print the motif position.

Definition at line 127 of file AliMpMotifMap.cxx.

Referenced by PrintMotifPositions2().

void AliMpMotifMap::PrintMotifPositions ( ) const
private

Print all motif positions.

Definition at line 254 of file AliMpMotifMap.cxx.

Referenced by Print().

void AliMpMotifMap::PrintMotifPositions2 ( ) const
private

Print all motif positions from the second map (by global indices)

Definition at line 276 of file AliMpMotifMap.cxx.

Referenced by Print().

void AliMpMotifMap::PrintMotifs ( ) const
private

Print all the motifs and their motif types for all motifs in the motifs map.

Definition at line 140 of file AliMpMotifMap.cxx.

Referenced by Print().

void AliMpMotifMap::PrintMotifType ( const AliMpMotifType motifType) const
private

Print the motif type.

Definition at line 105 of file AliMpMotifMap.cxx.

Referenced by PrintMotifTypes().

void AliMpMotifMap::PrintMotifTypes ( ) const
private

Print all the the motifs types and their motif dimensions for all motif types in the motif types map.

Definition at line 167 of file AliMpMotifMap.cxx.

Referenced by Print().

void AliMpMotifMap::UpdateGlobalIndices ( const char *  fileName)

Update the motif positions global indices from the file.

Definition at line 438 of file AliMpMotifMap.cxx.

Member Data Documentation

AliMpExMap AliMpMotifMap::fMotifPositions2
private

motifs positions map

Definition at line 85 of file AliMpMotifMap.h.

Referenced by AliMpMotifMap(), FillMotifPositionMap2(), and PrintMotifPositions2().

AliMpExMap AliMpMotifMap::fMotifs
private

motifs map

Definition at line 82 of file AliMpMotifMap.h.

Referenced by AddMotif(), FindMotif(), and PrintMotifs().

AliMpExMap AliMpMotifMap::fMotifTypes
private

motifs types map

Definition at line 83 of file AliMpMotifMap.h.

Referenced by AddMotifType(), FindMotifType(), and PrintMotifTypes().


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