ATLAS Offline Software
Classes | Public Types | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
VolumeTreeModel::Imp Class Reference
Collaboration diagram for VolumeTreeModel::Imp:

Classes

class  SectionInfo
 
class  SubSystem
 

Public Types

enum  SECTION {
  UNKNOWN, INDET, CALO, MUON,
  MISC
}
 

Static Public Member Functions

static void defineSubSystem (VP1GeoFlags::SubSystemFlag, QString, SECTION)
 
static VolumeHandlehandlePointer (const QModelIndex &idx)
 
static bool isSectionInfoPointer (VolumeHandle *handle)
 
static bool isSubSystemPointer (VolumeHandle *handle)
 
static bool isRegularVolumeHandle (VolumeHandle *handle)
 
static SectionInfosectionInfoPointer (VolumeHandle *handle)
 
static SubSystemsubSystemPointer (VolumeHandle *handle)
 

Public Attributes

std::map< VP1GeoFlags::SubSystemFlag, SubSystem * > flag2subsystems
 
std::map< VolumeHandle *, SubSystem * > volhandle2subsystem
 
QList< SectionInfo * > allSections
 
QList< SectionInfo * > activeSections
 

Static Public Attributes

static std::map< SECTION, QString > section2string
 
static std::map< VP1GeoFlags::SubSystemFlag, SECTIONsubsysflag2section
 
static std::map< VP1GeoFlags::SubSystemFlag, QString > subsysflag2string
 

Detailed Description

Definition at line 32 of file VolumeTreeModel.cxx.

Member Enumeration Documentation

◆ SECTION

Enumerator
UNKNOWN 
INDET 
CALO 
MUON 
MISC 

Definition at line 35 of file VolumeTreeModel.cxx.

35 { UNKNOWN, INDET, CALO, MUON, MISC};

Member Function Documentation

◆ defineSubSystem()

void VolumeTreeModel::Imp::defineSubSystem ( VP1GeoFlags::SubSystemFlag  subsysflag,
QString  subsysname,
SECTION  section 
)
static

Definition at line 96 of file VolumeTreeModel.cxx.

97 {
98  Imp::subsysflag2section[subsysflag] = section;
99  Imp::subsysflag2string[subsysflag] = std::move(subsysname);
100 }

◆ handlePointer()

static VolumeHandle* VolumeTreeModel::Imp::handlePointer ( const QModelIndex &  idx)
inlinestatic

Definition at line 79 of file VolumeTreeModel.cxx.

79 { return static_cast<VolumeHandle*>(idx.internalPointer()); }

◆ isRegularVolumeHandle()

static bool VolumeTreeModel::Imp::isRegularVolumeHandle ( VolumeHandle handle)
inlinestatic

Definition at line 82 of file VolumeTreeModel.cxx.

82 { return handle->childNumber()>=0; }

◆ isSectionInfoPointer()

static bool VolumeTreeModel::Imp::isSectionInfoPointer ( VolumeHandle handle)
inlinestatic

Definition at line 80 of file VolumeTreeModel.cxx.

80 { return handle->childNumber()==-2; }

◆ isSubSystemPointer()

static bool VolumeTreeModel::Imp::isSubSystemPointer ( VolumeHandle handle)
inlinestatic

Definition at line 81 of file VolumeTreeModel.cxx.

81 { return handle->childNumber()==-1; }

◆ sectionInfoPointer()

static SectionInfo* VolumeTreeModel::Imp::sectionInfoPointer ( VolumeHandle handle)
inlinestatic

Definition at line 83 of file VolumeTreeModel.cxx.

83 { return handle->childNumber()==-2 ? static_cast<SectionInfo*>(handle) : 0; }

◆ subSystemPointer()

static SubSystem* VolumeTreeModel::Imp::subSystemPointer ( VolumeHandle handle)
inlinestatic

Definition at line 84 of file VolumeTreeModel.cxx.

84 { return handle->childNumber()==-1 ? static_cast<SubSystem*>(handle) : 0; }

Member Data Documentation

◆ activeSections

QList<SectionInfo*> VolumeTreeModel::Imp::activeSections

Definition at line 76 of file VolumeTreeModel.cxx.

◆ allSections

QList<SectionInfo*> VolumeTreeModel::Imp::allSections

Definition at line 75 of file VolumeTreeModel.cxx.

◆ flag2subsystems

std::map<VP1GeoFlags::SubSystemFlag,SubSystem*> VolumeTreeModel::Imp::flag2subsystems

Definition at line 60 of file VolumeTreeModel.cxx.

◆ section2string

std::map< VolumeTreeModel::Imp::SECTION, QString > VolumeTreeModel::Imp::section2string
static

Definition at line 36 of file VolumeTreeModel.cxx.

◆ subsysflag2section

std::map< VP1GeoFlags::SubSystemFlag, VolumeTreeModel::Imp::SECTION > VolumeTreeModel::Imp::subsysflag2section
static

Definition at line 37 of file VolumeTreeModel.cxx.

◆ subsysflag2string

std::map< VP1GeoFlags::SubSystemFlag, QString > VolumeTreeModel::Imp::subsysflag2string
static

Definition at line 38 of file VolumeTreeModel.cxx.

◆ volhandle2subsystem

std::map<VolumeHandle*,SubSystem*> VolumeTreeModel::Imp::volhandle2subsystem

Definition at line 62 of file VolumeTreeModel.cxx.


The documentation for this class was generated from the following file:
VolumeTreeModel::Imp::INDET
@ INDET
Definition: VolumeTreeModel.cxx:35
VolumeTreeModel::Imp::CALO
@ CALO
Definition: VolumeTreeModel.cxx:35
VolumeTreeModel::Imp::UNKNOWN
@ UNKNOWN
Definition: VolumeTreeModel.cxx:35
VolumeTreeModel::Imp::MISC
@ MISC
Definition: VolumeTreeModel.cxx:35
VolumeHandle
Definition: VolumeHandle.h:21
VolumeHandle::childNumber
int childNumber() const
Definition: VolumeHandle.h:151
VolumeTreeModel::Imp::subsysflag2string
static std::map< VP1GeoFlags::SubSystemFlag, QString > subsysflag2string
Definition: VolumeTreeModel.cxx:38
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
VolumeTreeModel::Imp::MUON
@ MUON
Definition: VolumeTreeModel.cxx:35
VolumeTreeModel::Imp::subsysflag2section
static std::map< VP1GeoFlags::SubSystemFlag, SECTION > subsysflag2section
Definition: VolumeTreeModel.cxx:37
section
void section(const std::string &sec)
Definition: TestTriggerMenuAccess.cxx:22