|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #include <Inventor/nodes/SoSeparator.h>
12 #include <Inventor/nodes/SoTranslation.h>
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;
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()));
double StripLength(bool measphi) const
returns the strip length for the phi or eta plane
Eigen::Matrix< double, 2, 1 > Vector2D
virtual const Amg::Vector3D & globalPosition() const override
Returns the global position.
PRDCollHandleBase * collHandle() const
bool measuresPhi(const Identifier &id) const override
const std::vector< Identifier > & rdoList() const
return the List of rdo identifiers (pointers)
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
HitsSoNodeManager * nodeManager() const
float time() const
Returns the time.
int getPhiIndex() const
a la AMDB
Class to represent RPC measurements.
virtual const MuonGM::RpcReadoutElement * detectorElement() const override final
Returns the detector element corresponding to this PRD.
QStringList clicked() const
const MuonStation * parentMuonStation() const
SoNode * getShapeNode_Strip(double length, double width=0, double depth=0)
static const RpcIdHelper * rpcIDHelper()
int triggerInfo() const
Returns the trigger coincidence - usually false, unless ijk>5 or highpt&&ijk==0.
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
Amg::Vector3D stripPos(const Identifier &id) const
const Amg::Vector2D & localPosition() const
return the local position reference
Eigen::Matrix< double, 3, 1 > Vector3D
void buildShapes(SoNode *&shape_simple, SoNode *&shape_detailed)
T_ResultType project(ParameterMapping::type< N > parameter_map, const T_Matrix &matrix)
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
PRDHandle_RPC(PRDCollHandle_RPC *, const Muon::RpcPrepData *)
int ambiguityFlag() const
Returns the number of ambiguities associated with this RpcPrepData.