![]() |
AliRoot Core
3abf5b4 (3abf5b4)
|
Motif map containers. More...
#include <AliMpMotifMap.h>
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) |
AliMpVMotif * | FindMotif (const TString &motifID) const |
AliMpVMotif * | FindMotif (const TString &motifID, const TString &motifTypeID, Double_t padDimensionX, Double_t padDimensionY) const |
AliMpMotifType * | FindMotifType (const TString &motifTypeID) const |
AliMpMotifPosition * | FindMotifPosition (Int_t motifPositionID) const |
void | GetAllMotifPositionsIDs (TArrayI &enc) const |
Find all motifPositionsIDs (=electronicCardNumbers) handled by this map. More... | |
UInt_t | GetNofMotifPositions () const |
AliMpMotifPosition * | GetMotifPosition (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... | |
AliMpMotifMap & | operator= (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... | |
Motif map containers.
The class defines:
Definition at line 34 of file AliMpMotifMap.h.
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.
|
virtual |
Destructor
Definition at line 82 of file AliMpMotifMap.cxx.
|
private |
Not implemented.
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.
AliMpMotifPosition * AliMpMotifMap::FindMotifPosition | ( | Int_t | motifPositionID | ) | const |
Find the motif position with the specified motif position ID.
Definition at line 546 of file AliMpMotifMap.cxx.
Referenced by AddMotifPosition(), AliMpRowSegmentPainter::Draw(), AliMpRow::FindMotifPosition(), AliMpSectorSegmentation::FindMotifPosition(), AliMpSectorSegmentation::HasPadByLocation(), AliMpDCSNamer::ManuId2Sector(), AliMpVRowSegmentSpecial::MotifCenter(), AliMpSectorSegmentation::MotifPosition(), AliMpSectorSegmentation::PadByLocation(), AliMpSectorSegmentation::PadByPosition(), AliMUONSt1GeometryBuilderV2::PlaceSector(), AliMpDEVisu::PopUpManuMotif(), AliMpRowSegmentRSpecial::SetGlobalIndices(), AliMpRowSegment::SetGlobalIndices(), AliMpRow::SetHighIndicesLimits(), AliMpRowSegmentLSpecial::SetIndicesToMotifPosition(), AliMpRowSegmentRSpecial::SetIndicesToMotifPosition(), AliMpRowSegment::SetIndicesToMotifPosition(), and UpdateGlobalIndices().
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().
|
private |
Not implemented.
|
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.
|
private |
|
private |
Print the motif position.
Definition at line 115 of file AliMpMotifMap.cxx.
Referenced by PrintMotifPositions().
|
private |
Print the motif position.
Definition at line 127 of file AliMpMotifMap.cxx.
Referenced by PrintMotifPositions2().
|
private |
|
private |
Print all motif positions from the second map (by global indices)
Definition at line 276 of file AliMpMotifMap.cxx.
Referenced by Print().
|
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().
|
private |
Print the motif type.
Definition at line 105 of file AliMpMotifMap.cxx.
Referenced by PrintMotifTypes().
|
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.
|
private |
motifs positions map
Definition at line 84 of file AliMpMotifMap.h.
Referenced by AddMotifPosition(), CalculateNofPads(), FillMotifPositionMap2(), FindMotifPosition(), GetAllMotifPositionsIDs(), GetMotifPosition(), GetNofMotifPositions(), PrintGlobalIndices(), and PrintMotifPositions().
|
private |
motifs positions map
Definition at line 85 of file AliMpMotifMap.h.
Referenced by AliMpMotifMap(), FillMotifPositionMap2(), and PrintMotifPositions2().
|
private |
motifs map
Definition at line 82 of file AliMpMotifMap.h.
Referenced by AddMotif(), FindMotif(), and PrintMotifs().
|
private |
motifs types map
Definition at line 83 of file AliMpMotifMap.h.
Referenced by AddMotifType(), FindMotifType(), and PrintMotifTypes().