|
ATLAS Offline Software
|
#include <PRDHandle_sTGC.h>
Definition at line 12 of file PRDHandle_sTGC.h.
◆ PRDHandle_sTGC()
◆ ~PRDHandle_sTGC()
virtual PRDHandle_sTGC::~PRDHandle_sTGC |
( |
| ) |
|
|
inlinevirtual |
◆ buildShapes()
void PRDHandle_sTGC::buildShapes |
( |
SoNode *& |
shape_simple, |
|
|
SoNode *& |
shape_detailed |
|
) |
| |
|
virtual |
Implements PRDHandleBase.
Definition at line 60 of file PRDHandle_sTGC.cxx.
90 if (!pad_design)
return;
96 double etaWidth = padEdges[padCorners::topRight].x() - padEdges[padCorners::botRight].x();
97 double phiMinWidth = padEdges[padCorners::botLeft].y();
98 double phiMaxWidth = padEdges[padCorners::topLeft].y();
103 SoSeparator * errDetailed =
new SoSeparator;
104 errDetailed->addChild(
common()->nodeManager()->getShapeNode_Pad(etaWidth,phiMinWidth,phiMaxWidth,0.01));
106 shape_detailed = errDetailed;
129 SoSeparator * errDetailed =
new SoSeparator;
130 errDetailed->addChild(
common()->nodeManager()->getShapeNode_Wire(etaWidth,phiMinWidth,phiMaxWidth,0.01));
132 shape_detailed = errDetailed;
153 SoSeparator * errDetailed =
new SoSeparator;
154 errDetailed->addChild(
common()->nodeManager()->getShapeNode_Strip(striplength,
std::min(10.0,stripWidth),0.01));
156 shape_detailed = errDetailed;
◆ center()
◆ clicked()
QStringList PRDHandleBase::clicked |
( |
| ) |
const |
|
virtualinherited |
◆ collHandle()
◆ common()
◆ createTransform()
SoTransform * PRDHandle_sTGC::createTransform |
( |
| ) |
const |
|
virtual |
Reimplemented from PRDHandleBase.
Definition at line 29 of file PRDHandle_sTGC.cxx.
31 std::cout<<
"creating sTGC transform:"<< std::endl;
35 if (!prd || !idhelper)
return new SoTransform;
40 if (!detEl)
return new SoTransform;
50 return theHitTransform;
55 return theHitTransform;
◆ getPRD()
◆ getSecondPRD()
◆ getTransform_CLHEP()
Definition at line 322 of file PRDHandleBase.cxx.
330 transform->translation.getValue().getValue(
tx,ty,tz);
333 transform->rotation.getValue().getValue(so_rotaxis, so_rotangle);
335 so_rotaxis.getValue(rx,ry,rz);
343 std::cout<<
"VP1 PRDHandleBase Warning: getTransform_CLHEP called at inopportune moment!!"<<std::endl;
349 return Amg::Transform3D::Identity();
◆ highLight()
virtual bool PRDHandleBase::highLight |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ inMuonChamber()
bool PRDHandle_sTGC::inMuonChamber |
( |
| ) |
const |
|
inlinevirtual |
◆ isSane()
virtual bool PRDHandleBase::isSane |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ parentMuonChamberPV()
GeoPVConstLink PRDHandle_sTGC::parentMuonChamberPV |
( |
| ) |
const |
|
inlinevirtual |
◆ positionPRD()
◆ positionSecondPRD()
◆ regionIndex()
int PRDHandle_sTGC::regionIndex |
( |
| ) |
|
|
virtual |
◆ sepDetailed()
SoSeparator * PRDHandleBase::sepDetailed |
( |
| ) |
const |
|
inherited |
◆ sepSimple()
SoSeparator * PRDHandleBase::sepSimple |
( |
| ) |
const |
|
inherited |
◆ setVisible()
void PRDHandleBase::setVisible |
( |
bool |
vis | ) |
|
|
inherited |
◆ stgc()
◆ transformUsesSurfacePositionOnly()
virtual bool PRDHandleBase::transformUsesSurfacePositionOnly |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ update3DObjects()
void PRDHandleBase::update3DObjects |
( |
| ) |
|
|
inherited |
◆ updateMaterial()
void PRDHandleBase::updateMaterial |
( |
| ) |
|
|
inherited |
◆ visible()
bool PRDHandleBase::visible |
( |
| ) |
const |
|
inlineinherited |
◆ m_common
◆ m_d
◆ m_stgc
◆ m_visible
bool PRDHandleBase::m_visible |
|
privateinherited |
The documentation for this class was generated from the following files:
void rebuild3DObjects(PRDHandleBase *)
Parameters defining the design of the readout sTGC pads.
virtual const Amg::Transform3D & transform() const override
Return local to global transform.
std::array< Amg::Vector2D, 4 > CornerArray
calculate local channel corners for a given channel number
Eigen::Quaternion< double > Rotation3D
static Amg::Vector3D positionPRD(const Trk::PrepRawData *prd)
void incrementNumberOfObjectsForPV(const GeoPVConstLink &chamberPV)
TouchedMuonChamberHelper * touchedMuonChamberHelper() const
SoSeparator * sepDetailed
Eigen::Matrix< double, 2, 1 > Vector2D
MuonGM::MuonPadDesign::CornerArray CornerArray
Amg::Vector3D positionPRD() const
const MuonChannelDesign * getDesign(const Identifier &id) const
returns the MuonChannelDesign class for the given identifier
static const sTgcIdHelper * stgcIDHelper()
const Amg::Vector3D & center() const
Returns the center position of the Surface.
void attach3DObjects(PRDHandleBase *)
PRDSysCommonData * common() const
SoMaterial * currentmaterial
virtual bool stripPosition(const Identifier &id, Amg::Vector2D &pos) const override final
strip position - should be renamed to channel position If the strip number is outside the range of va...
void decrementNShownHandles()
HitsSoNodeManager * nodeManager() const
int getPhiIndex() const
a la AMDB
int channel(const Identifier &id) const override
Amg::Vector3D getTranslationVectorFromTransform(const Amg::Transform3D &tr)
Get the Translation vector out of a Transformation.
Amg::Rotation3D getRotation3DfromAngleAxis(double angle, Amg::Vector3D &axis)
get a AngleAxis from an angle and an axis.
virtual const Trk::PrepRawData * getSecondPRD() const
PRDCollHandleBase * colhandle
virtual GeoPVConstLink parentMuonChamberPV() const
const MuonStation * parentMuonStation() const
An sTgcReadoutElement corresponds to a single STGC module; therefore typicaly a barrel muon station c...
Eigen::Affine3d Transform3D
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
SoNode * getShapeNode_Strip(double length, double width=0, double depth=0)
virtual const Surface & surface() const =0
Return surface associated with this detector element.
virtual bool transformUsesSurfacePositionOnly() const
const Muon::sTgcPrepData * stgc() const
const Muon::sTgcPrepData * m_stgc
Identifier identify() const
return the identifier
virtual const Trk::PrepRawData * getPRD() const =0
const Amg::Vector2D & localPosition() const
return the local position reference
SoNode * getShapeNode_Pad(double length, double minWidth=0, double maxWidth=0, double depth=0)
Eigen::Matrix< double, 3, 1 > Vector3D
double channelLength(int channel) const
STRIPS ONLY: calculate channel length for a given strip number.
void decrementNumberOfObjectsForPV(const GeoPVConstLink &chamberPV)
virtual const MuonGM::sTgcReadoutElement * detectorElement() const override final
Returns the detector element corresponding to this PRD.
static void messageDebug(const QString &)
bool channelCorners(const std::pair< int, int > &pad, CornerArray &corners) const
static void message(const QString &, IVP1System *sys=0)
int getEtaIndex() const
a la AMDB
Eigen::Translation< double, 3 > Translation3D
SoMaterial * determineMaterial(PRDHandleBase *)
void incrementNShownHandles()
const MuonPadDesign * getPadDesign(const Identifier &id) const
returns the MuonChannelDesign class for the given identifier
virtual bool inMuonChamber() const
Class to represent sTgc measurements.
int channelType(const Identifier &id) const
const Amg::Transform3D & transform() const
Returns HepGeom::Transform3D by reference.
static SoTransform * toSoTransform(const HepGeom::Transform3D &, SoTransform *t=0)
PRDSysCommonData * m_common
PVConstLink parentStationPV() const
PRDHandleBase(PRDCollHandleBase *)
virtual void localToGlobal(const Amg::Vector2D &locp, const Amg::Vector3D &mom, Amg::Vector3D &glob) const =0
Specified by each surface type: LocalToGlobal method without dynamic memory allocation.
SoNode * getShapeNode_Wire(double length, double minWidth=0, double maxWidth=0, double depth=0)
virtual const TrkDetElementBase * detectorElement() const =0
return the detector element corresponding to this PRD The pointer will be zero if the det el is not d...