|
ATLAS Offline Software
|
Go to the documentation of this file.
12 #include <Inventor/nodes/SoSeparator.h>
13 #include <Inventor/nodes/SoTranslation.h>
14 #include <Inventor/nodes/SoTransform.h>
35 if (!prd || !idhelper) {
36 return new SoTransform;
40 SoTransform * theHitTransform =0;
52 shift * Amg::Vector3D::UnitY();
53 const double angle = (lposTGC - lposTgcShifted).
phi();
76 localRot*=theSurface.
transform().rotation ();
92 theHitTransform->translation.setValue((theHitGPos)[0], (theHitGPos)[1], (theHitGPos)[2]);
93 return theHitTransform;
105 int plane = idhelper->
gasGap(
id );
109 double striplength =0.0, stripWidth = 0.0;
120 striplength += 300.0;
124 const bool settingsShowRDOs =
true;
125 SoSeparator * errDetailed =
new SoSeparator;
126 const std::vector<Identifier> rdolist =
m_tgc->
rdoList();
127 if (rdolist.size() == 1 || !settingsShowRDOs)
129 errDetailed->addChild(
common()->nodeManager()->getShapeNode_Strip(striplength,
134 VP1Msg::message(
"Warning: TGC has additional elements in rdoList: THIS HAS NEVER BEEN TESTED");
135 SoSeparator * rdos =
new SoSeparator;
144 localposHIT.emplace();
145 localposHIT->setZero();
149 rdos->addChild(
common()->nodeManager()->getShapeNode_Strip(striplength,
155 rdos->addChild( transparent );
169 SoTranslation * localtrans =
new SoTranslation;
171 rdos->addChild(localtrans);
173 rdos->addChild(
common()->nodeManager()->getShapeNode_Strip(striplength,
177 localposOLD = *localposRDO;
179 errDetailed->addChild(rdos);
181 shape_detailed = errDetailed;
Scalar phi() const
phi method
int gasGap(const Identifier &id) const override
get the hashes
Eigen::Matrix< double, 2, 1 > Vector2D
PRDCollHandleBase * collHandle() const
double stripCenterLocX(int gasGap, int strip, double radialPos) const
Returns the local X of the strip center at a given local radial position.
const std::vector< Identifier > & rdoList() const
return the List of rdo identifiers (pointers)
double stripLength() const
Returns the length of each strip which is equal to the height of the chamber.
virtual const MuonGM::TgcReadoutElement * detectorElement() const override final
Returns the detector element corresponding to this PRD The pointer will be zero if the det el is not ...
PRDSysCommonData * common() const
virtual const Trk::PlaneSurface & surface() const override
access to chamber surface (phi orientation), uses the first gas gap
Amg::RotationMatrix3D setPhi(Amg::RotationMatrix3D mat, double angle, int convention=0)
Amg::Vector3D channelPos(const Identifier &id) const
Returns the position of the active channel (wireGang or strip)
int channel(const Identifier &id) const override
HitsSoNodeManager * nodeManager() const
const Muon::TgcPrepData * tgc() const
static const TgcIdHelper * tgcIDHelper()
int getPhiIndex() const
a la AMDB
double stripWidth(int gasGap, int strip) const
Returns the width of a given strip in the gasGap i.
double angle(const GeoTrf::Vector2D &a, const GeoTrf::Vector2D &b)
double gangShortWidth(int gasGap, int gang) const
Returns the length of the most bottom wire in the gang.
const MuonStation * parentMuonStation() const
Eigen::Affine3d Transform3D
A TgcReadoutElement corresponds to a single TGC chamber; therefore typically a TGC station contains s...
SoNode * getShapeNode_Strip(double length, double width=0, double depth=0)
double gangRadialLength(int gasGap, int gang) const
Returns the length of the wire gang along the radial direction [pitch x N_{wire}^{gang}].
int isStrip(const Identifier &id) const
isStrip corresponds to measuresPhi
Identifier identify() const
return the identifier
const Muon::TgcPrepData * m_tgc
SoTransform * createTransform() const
const Amg::Vector2D & localPosition() const
return the local position reference
PRDHandle_TGC(PRDCollHandle_TGC *, const Muon::TgcPrepData *)
Eigen::Matrix< double, 3, 1 > Vector3D
T_ResultType project(ParameterMapping::type< N > parameter_map, const T_Matrix &matrix)
static void message(const QString &, IVP1System *sys=0)
Eigen::Matrix< double, 3, 3 > RotationMatrix3D
int getEtaIndex() const
a la AMDB
Class to represent TGC measurements.
const Amg::Transform3D & transform() const
Returns HepGeom::Transform3D by reference.
static SoTransform * toSoTransform(const HepGeom::Transform3D &, SoTransform *t=0)
void buildShapes(SoNode *&shape_simple, SoNode *&shape_detailed)
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.
int getStationEta() const