![]() |
AliRoot Core
a565103 (a565103)
|
Singleton container class for mapping segmentations. More...
#include <AliMpSegmentation.h>
Public Member Functions | |
AliMpSegmentation (TRootIOCtor *ioCtor) | |
virtual | ~AliMpSegmentation () |
const AliMpVSegmentation * | GetMpSegmentation (Int_t detElemId, AliMp::CathodType cath, Bool_t warn=true) const |
const AliMpVSegmentation * | GetMpSegmentationByElectronics (Int_t detElemId, Int_t elCardID, Bool_t warn=true) const |
const AliMpSector * | GetSector (const AliMpVSegmentation *kSegmentation, Bool_t warn=true) const |
const AliMpSector * | GetSector (Int_t detElemId, AliMp::CathodType cath, Bool_t warn=true) const |
const AliMpSector * | GetSectorByElectronics (Int_t detElemId, Int_t elCardID, Bool_t warn=true) const |
const AliMpSlat * | GetSlat (const AliMpVSegmentation *kSegmentation, Bool_t warn=true) const |
const AliMpSlat * | GetSlat (Int_t detElemId, AliMp::CathodType cath, Bool_t warn=true) const |
const AliMpSlat * | GetSlatByElectronics (Int_t detElemId, Int_t elCardID, Bool_t warn=true) const |
const AliMpTrigger * | GetTrigger (const AliMpVSegmentation *kSegmentation, Bool_t warn=true) const |
const AliMpTrigger * | GetTrigger (Int_t detElemId, AliMp::CathodType cath, Bool_t warn=true) const |
const AliMpTrigger * | GetTriggerByElectronics (Int_t detElemId, Int_t elCardID, Bool_t warn=true) const |
Static Public Member Functions | |
static AliMpSegmentation * | Instance (Bool_t warn=true) |
static AliMpSegmentation * | ReadData (const AliMpDataStreams &dataStreams, Bool_t warn=true) |
Private Member Functions | |
AliMpSegmentation (const AliMpDataStreams &dataStreams) | |
AliMpSegmentation (const AliMpSegmentation &rhs) | |
Not implemented. More... | |
AliMpSegmentation & | operator= (const AliMpSegmentation &rhs) |
Not implemented. More... | |
AliMpVSegmentation * | CreateMpSegmentation (const AliMpDataStreams &dataStreams, Int_t detElemId, AliMp::CathodType cath) |
AliMpExMap * | FillElCardsMap (Int_t detElemId) |
Private Attributes | |
AliMpDEStore * | fDetElements |
Detection element store. More... | |
AliMpStringObjMap | fMpSegmentations |
Map of mapping segmentations to DE seg names. More... | |
AliMpExMap | fElCardsMap |
Map of el. cards IDs to segmentations. More... | |
AliMpSlatMotifMap * | fSlatMotifMap |
Map of motif, motifTypes to avoid duplications and allow proper deletion. More... | |
Static Private Attributes | |
static AliMpSegmentation * | fgInstance = 0 |
Singleton instance. More... | |
Singleton container class for mapping segmentations.
It provides access to mapping segmentations based on the AliMpVSegmentation interface and to segmentations underlying detectors (sector, slat, trigger).
Mapping segmentations for all detection elements are created at the first call to AliMpSegmentation::Instance(). The class is a singleton, it has all constructors private, except for the special constructor for Root I/O.
Definition at line 52 of file AliMpSegmentation.h.
AliMpSegmentation::AliMpSegmentation | ( | TRootIOCtor * | ioCtor | ) |
|
virtual |
Destructor
Definition at line 164 of file AliMpSegmentation.cxx.
|
private |
Standard constructor - segmentation is loaded from ASCII data files
Definition at line 108 of file AliMpSegmentation.cxx.
|
private |
Not implemented.
|
private |
Create mapping segmentation for given detElemId and cath or return it if it was already built
Definition at line 186 of file AliMpSegmentation.cxx.
Referenced by AliMpSegmentation().
|
private |
Fill the map of electronic cards IDs to segmentations for given detElemId
Definition at line 242 of file AliMpSegmentation.cxx.
Referenced by AliMpSegmentation().
const AliMpVSegmentation * AliMpSegmentation::GetMpSegmentation | ( | Int_t | detElemId, |
AliMp::CathodType | cath, | ||
Bool_t | warn = true |
||
) | const |
Return mapping segmentation for given detElemId and cath
Definition at line 278 of file AliMpSegmentation.cxx.
Referenced by AliMpDetElement::AddManu(), AliMpDEVisu::AliMpDEVisu(), AliMUONVTrackReconstructor::ChangeMonoCathodClusterRes(), AliMUONCheck::CheckOccupancy(), AliMUONSimpleClusterServer::Clusterize(), AliMUONAlignmentCompareDialog::CompareAlignment(), AliMUONGeometryTransformer::CreateDEAreas(), AliMUONTriggerGUI::CreateDigitStore(), AliMUONResponseTrigger::DisIntegrate(), AliMUONResponseTriggerV1::DisIntegrate(), AliMUONResponseV0::DisIntegrate(), AliMUONTriggerGUIbdmap::DrawDigits(), AliMUONTriggerGUIdimap::DrawMaps(), AliMUONTriggerGUIbdmap::DrawStrips(), AliMUONTriggerElectronics::Feed(), FillElCardsMap(), AliMUONTrackHitPattern::FindMatchingPads(), AliMUONTrackHitPattern::FindPadMatchingTrack(), AliMUONTrackHitPattern::FindPadMatchingTrig(), AliMUONDigitizerV3::GenerateNoisyDigitsForOneCathode(), AliMUONDigitizerV3::GenerateNoisyDigitsForTrigger(), AliMUONQAMappingCheck::GetClusterLocation(), GetSector(), GetSlat(), AliMUONTrackHitPattern::GetTrackParamAtChamber(), GetTrigger(), AliMUONTriggerUtilities::Init(), AliMUONTriggerGUI::InitBoards(), AliMUONTriggerDisplay::InitOrDisplayTriggerInfo(), AliMUONRecoCheck::IsHitInFrontOfPad(), AliMUONTrackHitPattern::IsMasked(), AliMUONTriggerCircuit::LoadXPos(), AliMUONTriggerCircuit::LoadYPos(), AliMUONTriggerQADataMakerRec::MakeRaws(), AliMUONRecoCheck::MakeTriggerableTracks(), AliMUONTrackHitPattern::PadsFromPos(), AliMUONTriggerGUI::PrintDigitStore(), AliMpDEVisu::ProcessMessage(), AliMpDDLStore::SetManus(), AliMUONRejectList::SetPCBProbability(), AliMUONTriggerGUI::SetStripBoxes(), AliMUONDigitMaker::TriggerDigits(), AliMpDEVisu::UpdateComboCH(), and AliMpDEVisu::UpdateNameView().
const AliMpVSegmentation * AliMpSegmentation::GetMpSegmentationByElectronics | ( | Int_t | detElemId, |
Int_t | elCardID, | ||
Bool_t | warn = true |
||
) | const |
Return mapping segmentation for given detElemId and electronic card Id (motif position Id)
Definition at line 311 of file AliMpSegmentation.cxx.
Referenced by AliMpDetElement::AddManu(), AliMUONManuPadPainter::ComputeDataRange(), AliMUONManuContourMaker::CreateManuContour(), AliMUONESDInterface::ESDToMUON(), AliMUONPainterHelper::GetMotifPosition(), AliMUONTrackerData::GetParts(), GetSectorByElectronics(), GetSlatByElectronics(), GetTriggerByElectronics(), AliMUONManuPadPainter::PadByPosition(), AliMUONManuPadPainter::PaintArea(), AliMUONManuPadPainter::PaintOutline(), AliMUONCDB::Plot(), and AliMUONDigitMaker::ReadTrackerDDL().
const AliMpSector * AliMpSegmentation::GetSector | ( | const AliMpVSegmentation * | kSegmentation, |
Bool_t | warn = true |
||
) | const |
Return sector for given mapping segmentation. If segmentation is not of sector type, zero is returned and an Error is issued if warn is set true (default).
Definition at line 341 of file AliMpSegmentation.cxx.
Referenced by AliMUONSt1GeometryBuilderV2::CreateQuadrant(), GetSector(), AliMUONPainterHelper::GetSector(), and GetSectorByElectronics().
const AliMpSector * AliMpSegmentation::GetSector | ( | Int_t | detElemId, |
AliMp::CathodType | cath, | ||
Bool_t | warn = true |
||
) | const |
Return sector for given detElemId and cath. If segmentation is not of sector type, zero is returned and an Error is issued if warn is set true (default).
Definition at line 389 of file AliMpSegmentation.cxx.
const AliMpSector * AliMpSegmentation::GetSectorByElectronics | ( | Int_t | detElemId, |
Int_t | elCardID, | ||
Bool_t | warn = true |
||
) | const |
Return sector for given detElemId and elCardID. If segmentation is not of sector type, zero is returned and an Error is issued if warn is set true (default).
Definition at line 401 of file AliMpSegmentation.cxx.
Referenced by AliMpDCSNamer::ManuId2Sector().
const AliMpSlat * AliMpSegmentation::GetSlat | ( | const AliMpVSegmentation * | kSegmentation, |
Bool_t | warn = true |
||
) | const |
Return slat for given mapping segmentation. If segmentation is not of slat type, zero is returned and an Error is issued if warn is set true (default).
Definition at line 413 of file AliMpSegmentation.cxx.
Referenced by AliMpVPainter::CreatePainter(), GetSlat(), AliMUONPainterHelper::GetSlat(), GetSlatByElectronics(), AliMpDCSNamer::NumberOfPCBs(), AliMpBusPatch::SetNofManusPerModule(), and AliMUONRejectList::SetPCBProbability().
const AliMpSlat * AliMpSegmentation::GetSlat | ( | Int_t | detElemId, |
AliMp::CathodType | cath, | ||
Bool_t | warn = true |
||
) | const |
Return slat for given detElemId and cath. If segmentation is not of slat type, zero is returned and an Error is issued if warn is set true (default).
Definition at line 462 of file AliMpSegmentation.cxx.
const AliMpSlat * AliMpSegmentation::GetSlatByElectronics | ( | Int_t | detElemId, |
Int_t | elCardID, | ||
Bool_t | warn = true |
||
) | const |
Return slat for given detElemId and elCardID. If segmentation is not of slat type, zero is returned and an Error is issued if warn is set true (default).
Definition at line 474 of file AliMpSegmentation.cxx.
Referenced by AliMUONPainterHelper::GetSlat(), and AliMpDCSNamer::ManuId2PCBIndex().
const AliMpTrigger * AliMpSegmentation::GetTrigger | ( | const AliMpVSegmentation * | kSegmentation, |
Bool_t | warn = true |
||
) | const |
Return trigger for given mapping segmentation. If segmentation is not of trigger type, zero is returned and an Error is issued if warn is set true (default).
Definition at line 486 of file AliMpSegmentation.cxx.
Referenced by GetTrigger(), GetTriggerByElectronics(), AliMUONTriggerCircuit::LoadXPos(), and AliMUONTriggerCircuit::LoadYPos().
const AliMpTrigger * AliMpSegmentation::GetTrigger | ( | Int_t | detElemId, |
AliMp::CathodType | cath, | ||
Bool_t | warn = true |
||
) | const |
Return trigger for given detElemId and cath. If segmentation is not of trigger type, zero is returned and an Error is issued if warn is set true (default).
Definition at line 537 of file AliMpSegmentation.cxx.
const AliMpTrigger * AliMpSegmentation::GetTriggerByElectronics | ( | Int_t | detElemId, |
Int_t | elCardID, | ||
Bool_t | warn = true |
||
) | const |
Return trigger for given detElemId and elCardID. If segmentation is not of trigger type, zero is returned and an Error is issued if warn is set true (default).
Definition at line 549 of file AliMpSegmentation.cxx.
|
static |
Return its instance
Definition at line 72 of file AliMpSegmentation.cxx.
Referenced by AliMpDetElement::AddManu(), AliMpDDLStore::AliMpDDLStore(), AliMpDEVisu::AliMpDEVisu(), AliMUONVTrackReconstructor::ChangeMonoCathodClusterRes(), AliMUONCDB::CheckMapping(), AliMUONCheck::CheckOccupancy(), AliMUONSimpleClusterServer::Clusterize(), AliMUONAlignmentCompareDialog::CompareAlignment(), AliMUONManuPadPainter::ComputeDataRange(), AliMUONGeometryTransformer::CreateDEAreas(), AliMUONTriggerGUI::CreateDigitStore(), AliMUONManuContourMaker::CreateManuContour(), AliMpVPainter::CreatePainter(), AliMUONSt1GeometryBuilderV2::CreateQuadrant(), AliMUONResponseTrigger::DisIntegrate(), AliMUONResponseTriggerV1::DisIntegrate(), AliMUONResponseV0::DisIntegrate(), AliMUONTriggerGUIbdmap::DrawDigits(), AliMUONTriggerGUIdimap::DrawMaps(), AliMUONTriggerGUIbdmap::DrawStrips(), AliMUONESDInterface::ESDToMUON(), AliMUONChamberCalibrationTask::Exec(), AliMUONTriggerElectronics::Feed(), AliMUONTrackHitPattern::FindMatchingPads(), AliMUONTrackHitPattern::FindPadMatchingTrack(), AliMUONTrackHitPattern::FindPadMatchingTrig(), AliMUONDigitizerV3::GenerateNoisyDigitsForOneCathode(), AliMUONDigitizerV3::GenerateNoisyDigitsForTrigger(), AliMUONQAMappingCheck::GetClusterLocation(), AliMUONPainterHelper::GetMotifPosition(), AliMUONTrackerData::GetParts(), AliMUONPainterHelper::GetSector(), AliMUONPainterHelper::GetSlat(), AliMUONTrackHitPattern::GetTrackParamAtChamber(), AliMUONTriggerUtilities::Init(), AliMUONTriggerGUI::InitBoards(), AliMUONTriggerDisplay::InitOrDisplayTriggerInfo(), AliMUONRecoCheck::IsHitInFrontOfPad(), AliMUONTrackHitPattern::IsMasked(), AliMpCDB::LoadManuStore(), AliMpCDB::LoadMpSegmentation(), AliMpCDB::LoadMpSegmentation2(), AliMUONTriggerCircuit::LoadXPos(), AliMUONTriggerCircuit::LoadYPos(), AliMUONTriggerQADataMakerRec::MakeRaws(), AliMUONRecoCheck::MakeReconstructibleTracks(), AliMUONRecoCheck::MakeTriggerableTracks(), AliMpDCSNamer::ManuId2PCBIndex(), AliMpDCSNamer::ManuId2Sector(), MUONClusterInfo(), AliMpDCSNamer::NumberOfPCBs(), AliMUONManuPadPainter::PadByPosition(), AliMUONTrackHitPattern::PadsFromPos(), AliMUONManuPadPainter::PaintArea(), AliMUONManuPadPainter::PaintOutline(), AliMUONCDB::Plot(), AliMUONTriggerGUI::PrintDigitStore(), AliMpDEVisu::ProcessMessage(), AliMUONDigitMaker::ReadTrackerDDL(), AliMpDDLStore::SetManus(), AliMpBusPatch::SetNofManusPerModule(), AliMUONRejectList::SetPCBProbability(), AliMUONTriggerGUI::SetStripBoxes(), AliMUONDigitMaker::TriggerDigits(), AliMpCDB::UnloadAll(), AliMpDEVisu::UpdateComboCH(), AliMpDEVisu::UpdateNameView(), AliMUONSimpleClusterServer::UseDigits(), and AliMpCDB::WriteMpSegmentation().
|
private |
Not implemented.
|
static |
Load the sementation from ASCII data files and return its instance
Definition at line 84 of file AliMpSegmentation.cxx.
Referenced by AliMpDDLStore::AliMpDDLStore(), AliMpCDB::LoadMpSegmentation(), AliMpCDB::LoadMpSegmentation2(), AliMpCDB::WriteDDLStore(), AliMpCDB::WriteManuStore(), and AliMpCDB::WriteMpSegmentation().
|
private |
Detection element store.
Definition at line 119 of file AliMpSegmentation.h.
Referenced by AliMpSegmentation(), and ~AliMpSegmentation().
|
private |
Map of el. cards IDs to segmentations.
Definition at line 121 of file AliMpSegmentation.h.
Referenced by AliMpSegmentation(), FillElCardsMap(), and GetMpSegmentationByElectronics().
|
staticprivate |
Singleton instance.
Definition at line 116 of file AliMpSegmentation.h.
Referenced by AliMpSegmentation(), ReadData(), and ~AliMpSegmentation().
|
private |
Map of mapping segmentations to DE seg names.
Definition at line 120 of file AliMpSegmentation.h.
Referenced by CreateMpSegmentation(), and GetMpSegmentation().
|
private |
Map of motif, motifTypes to avoid duplications and allow proper deletion.
Definition at line 122 of file AliMpSegmentation.h.
Referenced by CreateMpSegmentation(), and ~AliMpSegmentation().