#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) const override |
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 () | |
~TotemT1Organization () override | |
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) |
uint32_t | getUnitID (const G4Step *aStep) |
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 28 of file TotemT1Organization.h.
Enumerator | |
---|---|
Undefined | |
Upper | |
Lower | |
InternalUpper | |
InternalLower | |
Frame1 | |
Frame2Left | |
Frame2Right | |
Frame3Left | |
Frame3Right | |
Frame4Left | |
Frame4Right | |
Frame5 | |
Triangle6Left | |
Triangle6Right | |
MaxObjectTypes |
Definition at line 32 of file TotemT1Organization.h.
TotemT1Organization::TotemT1Organization | ( | ) |
Definition at line 28 of file TotemT1Organization.cc.
|
override |
Definition at line 39 of file TotemT1Organization.cc.
|
private |
Definition at line 221 of file TotemT1Organization.cc.
References _FromUnitIDToData(), _needUpdateData, and LogDebug.
Referenced by getCurrentCSC(), getCurrentDetectorPosition(), getCurrentLayer(), getCurrentObjectType(), and getCurrentPlane().
|
private |
Definition at line 208 of file TotemT1Organization.cc.
References _FromDataToUnitID(), _needUpdateUnitID, and LogDebug.
Referenced by getCurrentUnitID().
|
private |
Definition at line 282 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 234 of file TotemT1Organization.cc.
References _currentCSC, _currentDetectorPosition, _currentLayer, _currentObjectType, _currentPlane, _currentUnitID, _needUpdateData, LogDebug, MaxObjectTypes, and confdb::splitter().
Referenced by _checkDataUpdate().
int TotemT1Organization::fromObjectTypeToInt | ( | ObjectType | objectType | ) |
Definition at line 191 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 200 of file TotemT1Organization.cc.
References fromObjectTypeToInt(), phase1PixelTopology::layer, and MaxObjectTypes.
int TotemT1Organization::getCurrentCSC | ( | void | ) | const |
Definition at line 143 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 159 of file TotemT1Organization.cc.
References _checkDataUpdate(), _currentLayer, and LogDebug.
TotemT1Organization::ObjectType TotemT1Organization::getCurrentObjectType | ( | void | ) | const |
Definition at line 175 of file TotemT1Organization.cc.
References _checkDataUpdate(), _currentObjectType, and LogDebug.
int TotemT1Organization::getCurrentPlane | ( | void | ) | const |
Definition at line 126 of file TotemT1Organization.cc.
References _checkDataUpdate(), _currentPlane, and LogDebug.
int TotemT1Organization::getCurrentUnitID | ( | void | ) | const |
Definition at line 93 of file TotemT1Organization.cc.
References _checkUnitIDUpdate(), _currentUnitID, and LogDebug.
Referenced by getUnitID().
|
overridevirtual |
Implements TotemVDetectorOrganization.
Definition at line 45 of file TotemT1Organization.cc.
|
private |
Definition at line 49 of file TotemT1Organization.cc.
References _currentCSC, _currentDetectorPosition, _currentLayer, _currentObjectType, _currentPlane, _needUpdateUnitID, getCurrentUnitID(), ForwardName::getName(), cuy::ii, LogDebug, MaxObjectTypes, and AlCaHLTBitMon_QueryRunRegistry::string.
void TotemT1Organization::setCurrentCSC | ( | int | currentCSC | ) |
Definition at line 151 of file TotemT1Organization.cc.
References _currentCSC, _needUpdateUnitID, and LogDebug.
void TotemT1Organization::setCurrentDetectorPosition | ( | int | currentDetectorPosition | ) |
Definition at line 118 of file TotemT1Organization.cc.
References _currentDetectorPosition, _needUpdateUnitID, and LogDebug.
Referenced by TotemT1NumberingScheme::TotemT1NumberingScheme().
void TotemT1Organization::setCurrentLayer | ( | int | currentLayer | ) |
Definition at line 167 of file TotemT1Organization.cc.
References _currentLayer, _needUpdateUnitID, and LogDebug.
void TotemT1Organization::setCurrentObjectType | ( | ObjectType | currentObjectType | ) |
Definition at line 183 of file TotemT1Organization.cc.
References _currentObjectType, _needUpdateUnitID, and LogDebug.
void TotemT1Organization::setCurrentPlane | ( | int | currentPlane | ) |
Definition at line 135 of file TotemT1Organization.cc.
References _currentPlane, _needUpdateUnitID, and LogDebug.
void TotemT1Organization::setCurrentUnitID | ( | int | currentUnitID | ) |
Definition at line 102 of file TotemT1Organization.cc.
References _currentUnitID, _needUpdateData, and LogDebug.
|
private |
Definition at line 104 of file TotemT1Organization.h.
Referenced by _FromDataToUnitID(), _FromUnitIDToData(), getCurrentCSC(), getUnitID(), and setCurrentCSC().
|
private |
Definition at line 102 of file TotemT1Organization.h.
Referenced by _FromDataToUnitID(), _FromUnitIDToData(), getCurrentDetectorPosition(), getUnitID(), and setCurrentDetectorPosition().
|
private |
Definition at line 105 of file TotemT1Organization.h.
Referenced by _FromDataToUnitID(), _FromUnitIDToData(), getCurrentLayer(), getUnitID(), and setCurrentLayer().
|
private |
Definition at line 106 of file TotemT1Organization.h.
Referenced by _FromDataToUnitID(), _FromUnitIDToData(), getCurrentObjectType(), getUnitID(), and setCurrentObjectType().
|
private |
Definition at line 103 of file TotemT1Organization.h.
Referenced by _FromDataToUnitID(), _FromUnitIDToData(), getCurrentPlane(), getUnitID(), and setCurrentPlane().
|
private |
Definition at line 101 of file TotemT1Organization.h.
Referenced by _FromDataToUnitID(), _FromUnitIDToData(), getCurrentUnitID(), and setCurrentUnitID().
|
private |
Definition at line 100 of file TotemT1Organization.h.
Referenced by _checkDataUpdate(), _FromUnitIDToData(), and setCurrentUnitID().
|
private |
Definition at line 99 of file TotemT1Organization.h.
Referenced by _checkUnitIDUpdate(), _FromDataToUnitID(), getUnitID(), setCurrentCSC(), setCurrentDetectorPosition(), setCurrentLayer(), setCurrentObjectType(), and setCurrentPlane().