ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
VP1RawDataHandle_BCM_RDO::Imp::ModuleInfo Class Reference
Collaboration diagram for VP1RawDataHandle_BCM_RDO::Imp::ModuleInfo:

Public Member Functions

 ModuleInfo (int moduleID)
 
 ~ModuleInfo ()
 
void addBox (const Amg::Transform3D &t, const GeoBox *b)
 
int moduleID () const
 
SoTransform * getTransform ()
 
SoGroup * get3DObjects ()
 

Private Member Functions

void init ()
 

Private Attributes

int m_moduleID
 
SoGroup * m_group
 
SoTransform * m_transform
 
QList< QPair< Amg::Transform3D, const GeoBox * > > m_transformsAndBoxes
 

Detailed Description

Definition at line 66 of file VP1RawDataHandle_BCM_RDO.cxx.

Constructor & Destructor Documentation

◆ ModuleInfo()

VP1RawDataHandle_BCM_RDO::Imp::ModuleInfo::ModuleInfo ( int  moduleID)
inline

Definition at line 68 of file VP1RawDataHandle_BCM_RDO.cxx.

◆ ~ModuleInfo()

VP1RawDataHandle_BCM_RDO::Imp::ModuleInfo::~ModuleInfo ( )
inline

Definition at line 69 of file VP1RawDataHandle_BCM_RDO.cxx.

69 { if (m_group) m_group->unref();if (m_transform) m_transform->unref(); }

Member Function Documentation

◆ addBox()

void VP1RawDataHandle_BCM_RDO::Imp::ModuleInfo::addBox ( const Amg::Transform3D t,
const GeoBox *  b 
)
inline

Definition at line 70 of file VP1RawDataHandle_BCM_RDO.cxx.

72  {
73  m_transformsAndBoxes << QPair< Amg::Transform3D,const GeoBox *>(t,b);
74  }

◆ get3DObjects()

SoGroup* VP1RawDataHandle_BCM_RDO::Imp::ModuleInfo::get3DObjects ( )
inline

Definition at line 81 of file VP1RawDataHandle_BCM_RDO.cxx.

81  {
82  if (!m_group)
83  init();
84  return m_group;
85  }

◆ getTransform()

SoTransform* VP1RawDataHandle_BCM_RDO::Imp::ModuleInfo::getTransform ( )
inline

Definition at line 76 of file VP1RawDataHandle_BCM_RDO.cxx.

76  {
77  if (!m_transform)
78  init();
79  return m_transform;
80  }

◆ init()

void VP1RawDataHandle_BCM_RDO::Imp::ModuleInfo::init ( )
inlineprivate

Definition at line 87 of file VP1RawDataHandle_BCM_RDO.cxx.

87  {
89  m_group = new SoGroup;
90  m_group->ref();
91  Amg::Transform3D accumTransf;
92  for(QPair< Amg::Transform3D,const GeoBox *> p : m_transformsAndBoxes) {
93  if (!m_transform) {
95  m_transform->ref();
96  accumTransf = p.first;
97  } else {
98  m_group->addChild(VP1LinAlgUtils::toSoTransform(accumTransf.inverse()*p.first));
99  accumTransf = (accumTransf*p.first);
100  }
101  a.handleBox(p.second);
102  if (a.getShape())
103  m_group->addChild(a.getShape());
104  }
105  m_transformsAndBoxes.clear();
106  if (!m_transform) {
107  m_transform = new SoTransform;
108  m_transform->ref();
109  }
110  }

◆ moduleID()

int VP1RawDataHandle_BCM_RDO::Imp::ModuleInfo::moduleID ( ) const
inline

Definition at line 75 of file VP1RawDataHandle_BCM_RDO.cxx.

75 { return m_moduleID; }

Member Data Documentation

◆ m_group

SoGroup* VP1RawDataHandle_BCM_RDO::Imp::ModuleInfo::m_group
private

Definition at line 112 of file VP1RawDataHandle_BCM_RDO.cxx.

◆ m_moduleID

int VP1RawDataHandle_BCM_RDO::Imp::ModuleInfo::m_moduleID
private

Definition at line 111 of file VP1RawDataHandle_BCM_RDO.cxx.

◆ m_transform

SoTransform* VP1RawDataHandle_BCM_RDO::Imp::ModuleInfo::m_transform
private

Definition at line 113 of file VP1RawDataHandle_BCM_RDO.cxx.

◆ m_transformsAndBoxes

QList<QPair< Amg::Transform3D,const GeoBox *> > VP1RawDataHandle_BCM_RDO::Imp::ModuleInfo::m_transformsAndBoxes
private

Definition at line 114 of file VP1RawDataHandle_BCM_RDO.cxx.


The documentation for this class was generated from the following file:
VP1RawDataHandle_BCM_RDO::Imp::ModuleInfo::moduleID
int moduleID() const
Definition: VP1RawDataHandle_BCM_RDO.cxx:75
VP1RawDataHandle_BCM_RDO::Imp::ModuleInfo::m_group
SoGroup * m_group
Definition: VP1RawDataHandle_BCM_RDO.cxx:112
VP1RawDataHandle_BCM_RDO::Imp::ModuleInfo::m_transformsAndBoxes
QList< QPair< Amg::Transform3D, const GeoBox * > > m_transformsAndBoxes
Definition: VP1RawDataHandle_BCM_RDO.cxx:114
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
VP1RawDataHandle_BCM_RDO::Imp::ModuleInfo::m_transform
SoTransform * m_transform
Definition: VP1RawDataHandle_BCM_RDO.cxx:113
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
SoVisualizeAction
Definition: SoVisualizeAction.h:19
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
a
TList * a
Definition: liststreamerinfos.cxx:10
VP1LinAlgUtils::toSoTransform
static SoTransform * toSoTransform(const HepGeom::Transform3D &, SoTransform *t=0)
Definition: VP1LinAlgUtils.cxx:40
VP1RawDataHandle_BCM_RDO::Imp::ModuleInfo::init
void init()
Definition: VP1RawDataHandle_BCM_RDO.cxx:87
VP1RawDataHandle_BCM_RDO::Imp::ModuleInfo::m_moduleID
int m_moduleID
Definition: VP1RawDataHandle_BCM_RDO.cxx:111