ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
GeoGetIds Class Reference

Visitor to traverse a GeoModel graph and make a callback for each identifier found. More...

#include <GeoGetIds.h>

Inheritance diagram for GeoGetIds:
Collaboration diagram for GeoGetIds:

Public Member Functions

 GeoGetIds (IGeoGetIdsAction &action, int depthLimit=1)
 
virtual void handleSerialTransformer (const GeoSerialTransformer *sT) override
 
virtual void handleIdentifierTag (const GeoIdentifierTag *idTag) override
 
virtual void handleSerialIdentifier (const GeoSerialIdentifier *sI) override
 

Private Attributes

IGeoGetIdsActionm_action
 
const GeoSerialIdentifier * m_serialIdentifier = nullptr
 

Detailed Description

Visitor to traverse a GeoModel graph and make a callback for each identifier found.

Definition at line 39 of file GeoGetIds.h.

Constructor & Destructor Documentation

◆ GeoGetIds()

GeoGetIds::GeoGetIds ( IGeoGetIdsAction action,
int  depthLimit = 1 
)

Definition at line 15 of file GeoGetIds.cxx.

17  : m_action (action)
18 {
19  setDepthLimit (depthLimit);
20 }

Member Function Documentation

◆ handleIdentifierTag()

void GeoGetIds::handleIdentifierTag ( const GeoIdentifierTag *  idTag)
overridevirtual

Definition at line 34 of file GeoGetIds.cxx.

35 {
36  m_serialIdentifier = nullptr;
37  m_action (idTag->getIdentifier());
38 }

◆ handleSerialIdentifier()

void GeoGetIds::handleSerialIdentifier ( const GeoSerialIdentifier *  sI)
overridevirtual

Definition at line 41 of file GeoGetIds.cxx.

42 {
43  m_serialIdentifier = sI;
44 }

◆ handleSerialTransformer()

void GeoGetIds::handleSerialTransformer ( const GeoSerialTransformer *  sT)
overridevirtual

Definition at line 23 of file GeoGetIds.cxx.

24 {
25  if (m_serialIdentifier) {
26  int idbase = m_serialIdentifier->getBaseId();
27  for (unsigned int i=0; i < sT->getNCopies(); i++) {
28  m_action (idbase + i);
29  }
30  }
31 }

Member Data Documentation

◆ m_action

IGeoGetIdsAction& GeoGetIds::m_action
private

Definition at line 50 of file GeoGetIds.h.

◆ m_serialIdentifier

const GeoSerialIdentifier* GeoGetIds::m_serialIdentifier = nullptr
private

Definition at line 51 of file GeoGetIds.h.


The documentation for this class was generated from the following files:
lumiFormat.i
int i
Definition: lumiFormat.py:85
GeoGetIds::m_serialIdentifier
const GeoSerialIdentifier * m_serialIdentifier
Definition: GeoGetIds.h:51
GeoGetIds::m_action
IGeoGetIdsAction & m_action
Definition: GeoGetIds.h:50
python.CaloScaleNoiseConfig.action
action
Definition: CaloScaleNoiseConfig.py:77