#include <SimG4CMS/Forward/interface/TotemT1Organization.h>
Public Types | |
enum | ObjectType { Undefined =0, Upper =1, Lower =2, InternalUpper =3, InternalLower =4, Frame1 =5, Frame2Left =6, Frame2Right =7, Frame3Left =8, Frame3Right =9, Frame4Left =10, Frame4Right =11, Frame5 =12, Triangle6Left =13, Triangle6Right =14, MaxObjectTypes =15 } |
Public Member Functions | |
int | FromObjectTypeToInt (ObjectType objectType) |
int | FromObjectTypeToInt (ObjectType objectType, int layer) |
int | GetCurrentCSC (void) const |
int | GetCurrentDetectorPosition (void) const |
int | GetCurrentLayer (void) const |
ObjectType | GetCurrentObjectType (void) const |
int | GetCurrentPlane (void) const |
int | GetCurrentUnitID (void) const |
uint32_t | GetUnitID (const G4Step *aStep) |
uint32_t | GetUnitID (const G4Step *aStep) const |
void | SetCurrentCSC (int currentCSC) |
void | SetCurrentDetectorPosition (int currentDetectorPosition) |
void | SetCurrentLayer (int currentLayer) |
void | SetCurrentObjectType (ObjectType currentObjectType) |
void | SetCurrentPlane (int currentPlane) |
void | SetCurrentUnitID (int currentUnitID) |
TotemT1Organization () | |
virtual | ~TotemT1Organization () |
Public Member Functions inherited from TotemVDetectorOrganization | |
TotemVDetectorOrganization () | |
virtual | ~TotemVDetectorOrganization () |
Private Member Functions | |
void | _checkDataUpdate (void) const |
void | _checkUnitIDUpdate (void) const |
void | _FromDataToUnitID (void) |
void | _FromUnitIDToData (void) |
Private Attributes | |
int | _currentCSC |
int | _currentDetectorPosition |
int | _currentLayer |
ObjectType | _currentObjectType |
int | _currentPlane |
int | _currentUnitID |
bool | _needUpdateData |
bool | _needUpdateUnitID |
Description: This class manages the UnitID that labels TotemT1 sensitive volumes
Usage: Used in TotemSD to get unique ID of sensitive detector element
Definition at line 29 of file TotemT1Organization.h.
Enumerator | |
---|---|
Undefined | |
Upper | |
Lower | |
InternalUpper | |
InternalLower | |
Frame1 | |
Frame2Left | |
Frame2Right | |
Frame3Left | |
Frame3Right | |
Frame4Left | |
Frame4Right | |
Frame5 | |
Triangle6Left | |
Triangle6Right | |
MaxObjectTypes |
Definition at line 35 of file TotemT1Organization.h.
TotemT1Organization::TotemT1Organization | ( | ) |
Definition at line 26 of file TotemT1Organization.cc.
|
virtual |
Definition at line 37 of file TotemT1Organization.cc.
|
private |
Definition at line 235 of file TotemT1Organization.cc.
References _FromUnitIDToData(), _needUpdateData, and LogDebug.
Referenced by GetCurrentCSC(), GetCurrentDetectorPosition(), GetCurrentLayer(), GetCurrentObjectType(), and GetCurrentPlane().
|
private |
Definition at line 222 of file TotemT1Organization.cc.
References _FromDataToUnitID(), _needUpdateUnitID, and LogDebug.
Referenced by GetCurrentUnitID().
|
private |
Definition at line 299 of file TotemT1Organization.cc.
References _currentCSC, _currentDetectorPosition, _currentLayer, _currentObjectType, _currentPlane, _currentUnitID, _needUpdateUnitID, FromObjectTypeToInt(), LogDebug, MaxObjectTypes, and TotemNumberMerger::Merge().
Referenced by _checkUnitIDUpdate().
|
private |
Definition at line 249 of file TotemT1Organization.cc.
References _currentCSC, _currentDetectorPosition, _currentLayer, _currentObjectType, _currentPlane, _currentUnitID, _needUpdateData, LogDebug, MaxObjectTypes, TotemNumberMerger::Split(), and confdb::splitter().
Referenced by _checkDataUpdate().
int TotemT1Organization::FromObjectTypeToInt | ( | ObjectType | objectType | ) |
Definition at line 202 of file TotemT1Organization.cc.
References MaxObjectTypes, and mps_fire::result.
Referenced by _FromDataToUnitID(), and FromObjectTypeToInt().
int TotemT1Organization::FromObjectTypeToInt | ( | ObjectType | objectType, |
int | layer | ||
) |
Definition at line 213 of file TotemT1Organization.cc.
References FromObjectTypeToInt(), and MaxObjectTypes.
int TotemT1Organization::GetCurrentCSC | ( | void | ) | const |
Definition at line 148 of file TotemT1Organization.cc.
References _checkDataUpdate(), _currentCSC, and LogDebug.
int TotemT1Organization::GetCurrentDetectorPosition | ( | void | ) | const |
Definition at line 110 of file TotemT1Organization.cc.
References _checkDataUpdate(), _currentDetectorPosition, and LogDebug.
int TotemT1Organization::GetCurrentLayer | ( | void | ) | const |
Definition at line 166 of file TotemT1Organization.cc.
References _checkDataUpdate(), _currentLayer, and LogDebug.
TotemT1Organization::ObjectType TotemT1Organization::GetCurrentObjectType | ( | void | ) | const |
Definition at line 184 of file TotemT1Organization.cc.
References _checkDataUpdate(), _currentObjectType, and LogDebug.
int TotemT1Organization::GetCurrentPlane | ( | void | ) | const |
Definition at line 129 of file TotemT1Organization.cc.
References _checkDataUpdate(), _currentPlane, and LogDebug.
int TotemT1Organization::GetCurrentUnitID | ( | void | ) | const |
Definition at line 91 of file TotemT1Organization.cc.
References _checkUnitIDUpdate(), _currentUnitID, and LogDebug.
Referenced by GetUnitID().
uint32_t TotemT1Organization::GetUnitID | ( | const G4Step * | aStep | ) |
Definition at line 49 of file TotemT1Organization.cc.
References _currentCSC, _currentDetectorPosition, _currentLayer, _currentObjectType, _currentPlane, _needUpdateUnitID, GetCurrentUnitID(), cuy::ii, LogDebug, and MaxObjectTypes.
Referenced by GetUnitID().
|
virtual |
Implements TotemVDetectorOrganization.
Definition at line 44 of file TotemT1Organization.cc.
References GetUnitID().
void TotemT1Organization::SetCurrentCSC | ( | int | currentCSC | ) |
Definition at line 157 of file TotemT1Organization.cc.
References _currentCSC, _needUpdateUnitID, and LogDebug.
void TotemT1Organization::SetCurrentDetectorPosition | ( | int | currentDetectorPosition | ) |
Definition at line 120 of file TotemT1Organization.cc.
References _currentDetectorPosition, _needUpdateUnitID, and LogDebug.
Referenced by TotemT1NumberingScheme::TotemT1NumberingScheme().
void TotemT1Organization::SetCurrentLayer | ( | int | currentLayer | ) |
Definition at line 175 of file TotemT1Organization.cc.
References _currentLayer, _needUpdateUnitID, and LogDebug.
|
inline |
Definition at line 193 of file TotemT1Organization.cc.
References _currentObjectType, _needUpdateUnitID, and LogDebug.
void TotemT1Organization::SetCurrentPlane | ( | int | currentPlane | ) |
Definition at line 139 of file TotemT1Organization.cc.
References _currentPlane, _needUpdateUnitID, and LogDebug.
void TotemT1Organization::SetCurrentUnitID | ( | int | currentUnitID | ) |
Definition at line 101 of file TotemT1Organization.cc.
References _currentUnitID, _needUpdateData, and LogDebug.
|
private |
Definition at line 108 of file TotemT1Organization.h.
Referenced by _FromDataToUnitID(), _FromUnitIDToData(), GetCurrentCSC(), GetUnitID(), and SetCurrentCSC().
|
private |
Definition at line 106 of file TotemT1Organization.h.
Referenced by _FromDataToUnitID(), _FromUnitIDToData(), GetCurrentDetectorPosition(), GetUnitID(), and SetCurrentDetectorPosition().
|
private |
Definition at line 109 of file TotemT1Organization.h.
Referenced by _FromDataToUnitID(), _FromUnitIDToData(), GetCurrentLayer(), GetUnitID(), and SetCurrentLayer().
|
private |
Definition at line 110 of file TotemT1Organization.h.
Referenced by _FromDataToUnitID(), _FromUnitIDToData(), GetCurrentObjectType(), GetUnitID(), and SetCurrentObjectType().
|
private |
Definition at line 107 of file TotemT1Organization.h.
Referenced by _FromDataToUnitID(), _FromUnitIDToData(), GetCurrentPlane(), GetUnitID(), and SetCurrentPlane().
|
private |
Definition at line 105 of file TotemT1Organization.h.
Referenced by _FromDataToUnitID(), _FromUnitIDToData(), GetCurrentUnitID(), and SetCurrentUnitID().
|
private |
Definition at line 104 of file TotemT1Organization.h.
Referenced by _checkDataUpdate(), _FromUnitIDToData(), and SetCurrentUnitID().
|
private |
Definition at line 103 of file TotemT1Organization.h.
Referenced by _checkUnitIDUpdate(), _FromDataToUnitID(), GetUnitID(), SetCurrentCSC(), SetCurrentDetectorPosition(), SetCurrentLayer(), SetCurrentObjectType(), and SetCurrentPlane().