CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
TotemT1Organization Class Reference

#include <SimG4CMS/Forward/interface/TotemT1Organization.h>

Inheritance diagram for TotemT1Organization:
TotemVDetectorOrganization TotemT1NumberingScheme

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
 

Detailed Description

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.

Member Enumeration Documentation

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.

Constructor & Destructor Documentation

TotemT1Organization::TotemT1Organization ( )

Definition at line 26 of file TotemT1Organization.cc.

TotemT1Organization::~TotemT1Organization ( )
virtual

Definition at line 37 of file TotemT1Organization.cc.

Member Function Documentation

void TotemT1Organization::_checkDataUpdate ( void  ) const
private

Definition at line 235 of file TotemT1Organization.cc.

void TotemT1Organization::_checkUnitIDUpdate ( void  ) const
private

Definition at line 222 of file TotemT1Organization.cc.

void TotemT1Organization::_FromDataToUnitID ( void  )
private

Definition at line 299 of file TotemT1Organization.cc.

void TotemT1Organization::_FromUnitIDToData ( void  )
private

Definition at line 249 of file TotemT1Organization.cc.

int TotemT1Organization::FromObjectTypeToInt ( ObjectType  objectType)

Definition at line 202 of file TotemT1Organization.cc.

int TotemT1Organization::FromObjectTypeToInt ( ObjectType  objectType,
int  layer 
)

Definition at line 213 of file TotemT1Organization.cc.

int TotemT1Organization::GetCurrentCSC ( void  ) const

Definition at line 148 of file TotemT1Organization.cc.

int TotemT1Organization::GetCurrentDetectorPosition ( void  ) const

Definition at line 110 of file TotemT1Organization.cc.

int TotemT1Organization::GetCurrentLayer ( void  ) const

Definition at line 166 of file TotemT1Organization.cc.

TotemT1Organization::ObjectType TotemT1Organization::GetCurrentObjectType ( void  ) const

Definition at line 184 of file TotemT1Organization.cc.

int TotemT1Organization::GetCurrentPlane ( void  ) const

Definition at line 129 of file TotemT1Organization.cc.

int TotemT1Organization::GetCurrentUnitID ( void  ) const

Definition at line 91 of file TotemT1Organization.cc.

uint32_t TotemT1Organization::GetUnitID ( const G4Step *  aStep)

Definition at line 49 of file TotemT1Organization.cc.

uint32_t TotemT1Organization::GetUnitID ( const G4Step *  aStep) const
virtual

Implements TotemVDetectorOrganization.

Definition at line 44 of file TotemT1Organization.cc.

void TotemT1Organization::SetCurrentCSC ( int  currentCSC)

Definition at line 157 of file TotemT1Organization.cc.

void TotemT1Organization::SetCurrentDetectorPosition ( int  currentDetectorPosition)
void TotemT1Organization::SetCurrentLayer ( int  currentLayer)

Definition at line 175 of file TotemT1Organization.cc.

void TotemT1Organization::SetCurrentObjectType ( ObjectType  currentObjectType)
inline

Definition at line 193 of file TotemT1Organization.cc.

void TotemT1Organization::SetCurrentPlane ( int  currentPlane)

Definition at line 139 of file TotemT1Organization.cc.

void TotemT1Organization::SetCurrentUnitID ( int  currentUnitID)

Definition at line 101 of file TotemT1Organization.cc.

Member Data Documentation

int TotemT1Organization::_currentCSC
private

Definition at line 108 of file TotemT1Organization.h.

int TotemT1Organization::_currentDetectorPosition
private

Definition at line 106 of file TotemT1Organization.h.

int TotemT1Organization::_currentLayer
private

Definition at line 109 of file TotemT1Organization.h.

ObjectType TotemT1Organization::_currentObjectType
private

Definition at line 110 of file TotemT1Organization.h.

int TotemT1Organization::_currentPlane
private

Definition at line 107 of file TotemT1Organization.h.

int TotemT1Organization::_currentUnitID
private

Definition at line 105 of file TotemT1Organization.h.

bool TotemT1Organization::_needUpdateData
private

Definition at line 104 of file TotemT1Organization.h.

bool TotemT1Organization::_needUpdateUnitID
private

Definition at line 103 of file TotemT1Organization.h.