|
ATLAS Offline Software
|
#include <PRDHandle_MDT.h>
Definition at line 12 of file PRDHandle_MDT.h.
◆ PRDHandle_MDT()
◆ ~PRDHandle_MDT()
virtual PRDHandle_MDT::~PRDHandle_MDT |
( |
| ) |
|
|
inlinevirtual |
◆ ADC()
int PRDHandle_MDT::ADC |
( |
| ) |
const |
|
inline |
◆ buildShapes()
void PRDHandle_MDT::buildShapes |
( |
SoNode *& |
shape_simple, |
|
|
SoNode *& |
shape_detailed |
|
) |
| |
|
virtual |
Implements PRDHandleBase.
Definition at line 25 of file PRDHandle_MDT.cxx.
33 double halflength(ccbo->halflengthZ());
36 const double epsilon = 0.15;
38 double distanceToFirstEndPlane, distanceToSecondEndPlane;
42 if (
common()->muonChamberProjectionHelper()
45 distanceToFirstEndPlane, distanceToSecondEndPlane,
radius )) {
46 if (fabs(distanceToFirstEndPlane-distanceToSecondEndPlane)>0.1*epsilon)
47 std::cout <<
"PRDHandle_MDT: Warning tube is not centered in chamber! We should translate the prd object appropriately (todo)."<<std::endl;
48 halflength =
std::max(distanceToFirstEndPlane,distanceToSecondEndPlane)+epsilon;
50 std::cout <<
"PRDHandle_MDT: Couldn't retrieve data for projections to chamber end planes."<<std::endl;
56 halflength += 56.0 + epsilon;
63 shape_detailed = shape_simple;
68 VP1Msg::message(
"Warning: MDT has additional elements in rdoList: NOT IMPLEMENTED");
◆ center()
◆ clicked()
QStringList PRDHandle_MDT::clicked |
( |
| ) |
const |
|
virtual |
Reimplemented from PRDHandleBase.
Definition at line 80 of file PRDHandle_MDT.cxx.
84 return QStringList(
"Null PRD");
87 return QStringList(
"Null PRD");
89 std::ostringstream
os;
92 os <<
"MdtPrepData with Identifier ["<<
id.get_compact() ;
98 std::string
status(
"Status: ");
◆ 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;
◆ driftCircle()
◆ driftCircleStatus()
QString PRDHandle_MDT::driftCircleStatus |
( |
| ) |
const |
◆ 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()
bool PRDHandle_MDT::highLight |
( |
| ) |
const |
|
inlinevirtual |
◆ inMuonChamber()
bool PRDHandle_MDT::inMuonChamber |
( |
| ) |
const |
|
inlinevirtual |
◆ isSane()
virtual bool PRDHandleBase::isSane |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ masked()
bool PRDHandle_MDT::masked |
( |
| ) |
const |
|
inline |
◆ parentMuonChamberPV()
GeoPVConstLink PRDHandle_MDT::parentMuonChamberPV |
( |
| ) |
const |
|
inlinevirtual |
◆ positionPRD()
◆ positionSecondPRD()
◆ regionIndex()
int PRDHandle_MDT::regionIndex |
( |
| ) |
|
|
virtual |
◆ sepDetailed()
SoSeparator * PRDHandleBase::sepDetailed |
( |
| ) |
const |
|
inherited |
◆ sepSimple()
SoSeparator * PRDHandleBase::sepSimple |
( |
| ) |
const |
|
inherited |
◆ setVisible()
void PRDHandleBase::setVisible |
( |
bool |
vis | ) |
|
|
inherited |
◆ transformUsesSurfacePositionOnly()
bool PRDHandle_MDT::transformUsesSurfacePositionOnly |
( |
| ) |
const |
|
inlinevirtual |
◆ update3DObjects()
void PRDHandleBase::update3DObjects |
( |
| ) |
|
|
inherited |
◆ updateMaterial()
void PRDHandleBase::updateMaterial |
( |
| ) |
|
|
inherited |
◆ visible()
bool PRDHandleBase::visible |
( |
| ) |
const |
|
inlineinherited |
◆ m_common
◆ m_d
◆ m_driftcircle
◆ m_visible
bool PRDHandleBase::m_visible |
|
privateinherited |
The documentation for this class was generated from the following files:
QString driftCircleStatus() const
void rebuild3DObjects(PRDHandleBase *)
const Muon::MdtPrepData * m_driftcircle
Eigen::Quaternion< double > Rotation3D
Amg::Transform3D getTransform_CLHEP() const
static Amg::Vector3D positionPRD(const Trk::PrepRawData *prd)
void incrementNumberOfObjectsForPV(const GeoPVConstLink &chamberPV)
TouchedMuonChamberHelper * touchedMuonChamberHelper() const
SoSeparator * sepDetailed
PRDCollHandleBase * collHandle() const
GeoPVConstLink parentMuonChamberPV() const
Amg::Vector3D positionPRD() const
@ MdtStatusAfterSpectrum
The tube produced a hit that is inconsistent with the drift time spectrum, the drift time is larger t...
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 *)
int adc() const
Returns the ADC (typically range is 0 to 250)
PRDSysCommonData * common() const
@ MdtStatusDriftTime
The tube produced a vaild measurement.
@ MdtStatusMasked
A hit during a previous bunch crossing occured which rendered the tube dead for this bunch crossing.
SoMaterial * currentmaterial
void decrementNShownHandles()
HitsSoNodeManager * nodeManager() const
int getPhiIndex() const
a la AMDB
Amg::Vector3D getTranslationVectorFromTransform(const Amg::Transform3D &tr)
Get the Translation vector out of a Transformation.
@ MdtStatusBeforeSpectrum
The tube produced a hit that is inconsistent with the drift time spectrum, the drift time is smaller ...
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
Eigen::Affine3d Transform3D
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
virtual const Surface & surface() const =0
Return surface associated with this detector element.
virtual const Amg::Vector3D & globalPosition() const
Returns the global position of the CENTER of the drift tube (i.e.
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
int tdc() const
Returns the TDC (typically range is 0 to 2500).
virtual const SurfaceBounds & bounds() const =0
Surface Bounds method.
std::string to_string(const DetectorType &type)
const Amg::Vector2D & localPosition() const
return the local position reference
Eigen::Matrix< double, 3, 1 > Vector3D
void decrementNumberOfObjectsForPV(const GeoPVConstLink &chamberPV)
static const MdtIdHelper * mdtIDHelper()
static void message(const QString &, IVP1System *sys=0)
int getEtaIndex() const
a la AMDB
Eigen::Translation< double, 3 > Translation3D
virtual const Trk::Surface & surface() const override final
Return surface associated with this detector element.
SoMaterial * determineMaterial(PRDHandleBase *)
void incrementNShownHandles()
SoNode * getShapeNode_DriftTube(double halfLength, double radius)
MdtDriftCircleStatus status() const
Returns the status of the measurement.
virtual bool inMuonChamber() const
const Amg::Transform3D & transform() const
Returns HepGeom::Transform3D by reference.
static SoTransform * toSoTransform(const HepGeom::Transform3D &, SoTransform *t=0)
virtual const MuonGM::MdtReadoutElement * detectorElement() const override
Returns the detector element corresponding to this PRD.
PRDSysCommonData * m_common
PVConstLink parentStationPV() const
static Amg::Vector3D & applyTransformToVector(const Amg::Transform3D &m, Amg::Vector3D &v)
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...