|
ATLAS Offline Software
|
#include <PRDHandle_RPC.h>
Definition at line 12 of file PRDHandle_RPC.h.
◆ PRDHandle_RPC()
◆ ~PRDHandle_RPC()
virtual PRDHandle_RPC::~PRDHandle_RPC |
( |
| ) |
|
|
inlinevirtual |
◆ buildShapes()
void PRDHandle_RPC::buildShapes |
( |
SoNode *& |
shape_simple, |
|
|
SoNode *& |
shape_detailed |
|
) |
| |
|
virtual |
Implements PRDHandleBase.
Definition at line 29 of file PRDHandle_RPC.cxx.
36 SoSeparator * errDetailed =
new SoSeparator;
53 localposHIT.emplace();
54 localposHIT->setZero();
57 SoTranslation * localtrans0 =
new SoTranslation;
62 const std::vector<Identifier> rdolist =
m_rpc->
rdoList();
63 if (rdolist.size() == 1 || !
collHandle()->drawRDOs())
65 errDetailed->addChild(localtrans0);
66 errDetailed->addChild(
common()->nodeManager()->getShapeNode_Strip(
project ? striplength+0.2 : striplength,
70 SoTranslation * localtransBack =
new SoTranslation;
71 localtransBack->translation.setValue(-(localtrans0->translation.getValue()));
72 errDetailed->addChild(localtransBack);
74 VP1Msg::message(
"Warning: RPC has additional elements in rdoList: THIS HAS NEVER BEEN TESTED");
75 SoSeparator * rdos =
new SoSeparator;
76 rdos->addChild(localtrans0);
78 rdos->addChild(
common()->nodeManager()->getShapeNode_Strip(
project ? striplength+0.2 : striplength,
84 rdos->addChild( transparent );
98 SoTranslation * localtrans =
new SoTranslation;
100 rdos->addChild(localtrans);
102 rdos->addChild(
common()->nodeManager()->getShapeNode_Strip(
project ? striplength+0.2 : striplength,
104 project ? 2*(6.85+0.1) : 0.8));
106 localposOLD = *localposRDO;
108 errDetailed->addChild(rdos);
110 shape_detailed = errDetailed;
◆ center()
◆ clicked()
QStringList PRDHandle_RPC::clicked |
( |
| ) |
const |
|
virtual |
Reimplemented from PRDHandleBase.
Definition at line 122 of file PRDHandle_RPC.cxx.
125 return QStringList(
"Null PRD");
128 return QStringList(
"Null PRD");
129 std::ostringstream
os;
132 os <<
"RpcPrepData with Identifier ["<<
id.get_compact() ;
138 os <<
". Rdo list= [";
141 QStringList
l(QString(
os.str().c_str()));
◆ collHandle()
◆ common()
◆ createTransform()
SoTransform * PRDHandleBase::createTransform |
( |
| ) |
const |
|
virtualinherited |
Reimplemented in PRDHandle_sTGC, and PRDHandle_TGC.
Definition at line 371 of file PRDHandleBase.cxx.
376 std::cerr<<
"PRDHandleBase::createTransform() No prd!"<<std::endl;
377 return new SoTransform;
390 if ((theHitGPos)[0]!=(theHitGPos)[0] || (theHitGPos)[1]!=(theHitGPos)[1] || (theHitGPos)[2]!=(theHitGPos)[2]){
391 std::cerr<<
"PRDHandleBase::createTransform() NaN in globalposition"<<std::endl;
393 theHitTransform->translation.setValue((theHitGPos)[0], (theHitGPos)[1], (theHitGPos)[2]);
394 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_RPC::inMuonChamber |
( |
| ) |
const |
|
inlinevirtual |
◆ isSane()
virtual bool PRDHandleBase::isSane |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ parentMuonChamberPV()
GeoPVConstLink PRDHandle_RPC::parentMuonChamberPV |
( |
| ) |
const |
|
inlinevirtual |
◆ positionPRD()
◆ positionSecondPRD()
◆ regionIndex()
int PRDHandle_RPC::regionIndex |
( |
| ) |
|
|
virtual |
◆ rpc()
◆ sepDetailed()
SoSeparator * PRDHandleBase::sepDetailed |
( |
| ) |
const |
|
inherited |
◆ sepSimple()
SoSeparator * PRDHandleBase::sepSimple |
( |
| ) |
const |
|
inherited |
◆ setVisible()
void PRDHandleBase::setVisible |
( |
bool |
vis | ) |
|
|
inherited |
◆ 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_rpc
◆ m_visible
bool PRDHandleBase::m_visible |
|
privateinherited |
The documentation for this class was generated from the following files:
const Muon::RpcPrepData * rpc() const
void rebuild3DObjects(PRDHandleBase *)
Eigen::Quaternion< double > Rotation3D
static Amg::Vector3D positionPRD(const Trk::PrepRawData *prd)
double StripLength(bool measphi) const
returns the strip length for the phi or eta plane
void incrementNumberOfObjectsForPV(const GeoPVConstLink &chamberPV)
TouchedMuonChamberHelper * touchedMuonChamberHelper() const
SoSeparator * sepDetailed
Eigen::Matrix< double, 2, 1 > Vector2D
virtual const Amg::Vector3D & globalPosition() const override
Returns the global position.
PRDCollHandleBase * collHandle() const
Amg::Vector3D positionPRD() const
bool measuresPhi(const Identifier &id) const override
const std::vector< Identifier > & rdoList() const
return the List of rdo identifiers (pointers)
const Amg::Vector3D & center() const
Returns the center position of the Surface.
void attach3DObjects(PRDHandleBase *)
PRDSysCommonData * common() const
virtual const Trk::PlaneSurface & surface() const override
access to chamber surface (phi orientation), uses the first gas gap
const Muon::RpcPrepData * m_rpc
SoMaterial * currentmaterial
void decrementNShownHandles()
HitsSoNodeManager * nodeManager() const
float time() const
Returns the time.
int getPhiIndex() const
a la AMDB
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 MuonGM::RpcReadoutElement * detectorElement() const override final
Returns the detector element corresponding to this PRD.
virtual const Trk::PrepRawData * getSecondPRD() const
PRDCollHandleBase * colhandle
virtual GeoPVConstLink parentMuonChamberPV() const
const MuonStation * parentMuonStation() const
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.
static const RpcIdHelper * rpcIDHelper()
int triggerInfo() const
Returns the trigger coincidence - usually false, unless ijk>5 or highpt&&ijk==0.
virtual bool transformUsesSurfacePositionOnly() const
Identifier identify() const
return the identifier
std::string print_to_string(Identifier id, const IdContext *context=0) const
or provide the printout in string form
virtual const Trk::PrepRawData * getPRD() const =0
Amg::Vector3D stripPos(const Identifier &id) const
const Amg::Vector2D & localPosition() const
return the local position reference
Eigen::Matrix< double, 3, 1 > Vector3D
T_ResultType project(ParameterMapping::type< N > parameter_map, const T_Matrix &matrix)
void decrementNumberOfObjectsForPV(const GeoPVConstLink &chamberPV)
double StripWidth(bool measphi) const
returns the strip width for the phi or eta plane
static void message(const QString &, IVP1System *sys=0)
int getEtaIndex() const
a la AMDB
Eigen::Translation< double, 3 > Translation3D
SoMaterial * determineMaterial(PRDHandleBase *)
void incrementNShownHandles()
virtual bool inMuonChamber() const
int ambiguityFlag() const
Returns the number of ambiguities associated with this RpcPrepData.
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.
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...