20#include <Inventor/nodes/SoSeparator.h>
81 SoSeparator * errDetailed =
new SoSeparator;
82 errDetailed->addChild(
common()->nodeManager()->getShapeNode_Strip(striplength,std::min(10.0,stripWidth),0.01));
84 shape_detailed = errDetailed;
94 if (!station) {
VP1Msg::message(
"Warning - MM station gives null parent. Something is wrong with the geometry!");
return 0;}
103 return QStringList(
"Null PRD");
106 return QStringList(
"Null PRD");
108 std::ostringstream os;
111 os <<
"MMPrepData with Identifier ["<<
id.get_compact() ;
113 os <<
"]\n at global position = [" <<
m_prd->globalPosition()<<
"], local position = ["<<
m_prd->localPosition()<<
"].";
120 QStringList l(QString(os.str().c_str()));
std::string print_to_string(Identifier id, const IdContext *context=0) const
or provide the printout in string form
SoNode * getShapeNode_Strip(double length, double width=0, double depth=0)
int channel(const Identifier &id) const override
An MMReadoutElement corresponds to a single STGC module; therefore typicaly a barrel muon station con...
virtual bool stripPosition(const Identifier &id, Amg::Vector2D &pos) const override final
strip position – local or global If the strip number is outside the range of valid strips,...
const MuonChannelDesign * getDesign(const Identifier &id) const
returns the MuonChannelDesign class for the given identifier
int getEtaIndex() const
a la AMDB
int getPhiIndex() const
a la AMDB
Class to represent MM measurements.
virtual const MuonGM::MMReadoutElement * detectorElement() const override final
Returns the detector element corresponding to this PRD.
PRDHandleBase(PRDCollHandleBase *)
PRDSysCommonData * common() const
void buildShapes(SoNode *&shape_simple, SoNode *&shape_detailed)
PRDHandle_MM(PRDCollHandle_MM *, const Muon::MMPrepData *)
QStringList clicked() const
const Muon::MMPrepData * mm() const
const Muon::MMPrepData * m_prd
HitsSoNodeManager * nodeManager() const
Identifier identify() const
return the identifier
static const MdtIdHelper * mdtIDHelper()
static const MmIdHelper * mmIDHelper()
static void messageDebug(const QString &)
static void message(const QString &, IVP1System *sys=0)
Eigen::Matrix< double, 2, 1 > Vector2D
double channelLength(int channel) const
STRIPS ONLY: calculate channel length for a given strip number.