12#include "MucRecEvent/MucRecHit.h"
13#include "MucGeomSvc/MucGeoGeneral.h"
22 if ( m_pMucGeoGap && m_pMucGeoStrip )
24 float x, y, z, sx, sy, sz;
26 m_pMucGeoStrip->GetCenterPos( x, y, z );
27 m_pMucGeoStrip->GetCenterSigma( sx, sy, sz );
30 m_CenterPos = m_pMucGeoGap->TransformToGlobal( pos );
31 m_CenterSigma = m_pMucGeoGap->RotateToGlobal( sigma );
34 { cout <<
"MucRecHit::MucRecHit(const Identifier&), gap or strip pointer lost" << endl; }
47 if ( m_pMucGeoGap && m_pMucGeoStrip )
49 float x, y, z, sx, sy, sz;
51 m_pMucGeoStrip->GetCenterPos( x, y, z );
52 m_pMucGeoStrip->GetCenterSigma( sx, sy, sz );
55 m_CenterPos = m_pMucGeoGap->TransformToGlobal( pos );
57 m_CenterSigma = sigma;
59 else { cout <<
"MucRecHit::MucRecHit(), gap or strip pointer lost" << endl; }
64 : m_MucID( source.m_MucID )
65 , m_pMucGeoGap( source.m_pMucGeoGap )
66 , m_pMucGeoStrip( source.m_pMucGeoStrip )
67 , m_CenterPos( source.m_CenterPos )
68 , m_CenterSigma( source.m_CenterSigma ) {}
75 m_MucID = orig.m_MucID;
76 m_pMucGeoGap = orig.m_pMucGeoGap;
77 m_pMucGeoStrip = orig.m_pMucGeoStrip;
78 m_CenterPos = orig.m_CenterPos;
79 m_CenterSigma = orig.m_CenterSigma;
94 Hep3Vector
x( m_CenterPos.x(), m_CenterPos.y(), m_CenterPos.z() );
100 Hep3Vector
s( m_CenterSigma.x(), m_CenterSigma.y(), m_CenterSigma.z() );
HepGeom::Point3D< double > HepPoint3D
MucGeoStrip * GetStrip(const int part, const int seg, const int gap, const int strip) const
Get a pointer to the strip identified by (part,seg,gap,strip).
MucGeoGap * GetGap(const int part, const int seg, const int gap) const
Get a pointer to the gap identified by (part,seg,gap).
static MucGeoGeneral * Instance()
Get a pointer to the single instance of MucGeoGeneral.
static Identifier channel_id(int barrel_ec, int segment, int layer, int channel)
For a single crystal.
MucRecHit & operator=(const MucRecHit &orig)
Assignment operator.
Hep3Vector GetCenterPos() const
Get Center position of the strip (global coords).
Hep3Vector GetCenterSigma() const
Get Center position uncertainty of the strip (global coords).