ATLAS Offline Software
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
VP1RawDataHandle_LUCID Class Referenceabstract

#include <VP1RawDataHandle_LUCID.h>

Inheritance diagram for VP1RawDataHandle_LUCID:
Collaboration diagram for VP1RawDataHandle_LUCID:

Classes

class  Imp
 

Public Member Functions

 VP1RawDataHandle_LUCID (VP1RawDataCollBase *)
 
virtual ~VP1RawDataHandle_LUCID ()
 
virtual unsigned short getTubeID () const =0
 
virtual unsigned short getQDC () const =0
 
virtual unsigned short getTDC () const =0
 
virtual bool isSideA () const =0
 
virtual bool isSideC () const =0
 
QStringList commonClicked (const QString &prefix="") const
 
VP1RawDataCollBasecoll () const
 
VP1RawDataCommonDatacommon () const
 
void setVisible (bool)
 
bool visible () const
 
void update3DObjects ()
 
virtual QStringList clicked (bool verbose) const =0
 
virtual Amg::Vector3D center ()
 
virtual VP1RawDataFlags::InDetPartsFlags inInDetParts () const
 
void updateShownOutlines ()
 

Static Public Member Functions

static QString unsignedToHex (unsigned)
 

Protected Member Functions

SoNode * buildShape ()
 
SoTransform * buildTransform ()
 

Private Attributes

Impm_d
 
VP1RawDataCollBasem_coll
 
bool m_visible
 

Detailed Description

Definition at line 23 of file VP1RawDataHandle_LUCID.h.

Constructor & Destructor Documentation

◆ VP1RawDataHandle_LUCID()

VP1RawDataHandle_LUCID::VP1RawDataHandle_LUCID ( VP1RawDataCollBase coll)

Definition at line 165 of file VP1RawDataHandle_LUCID.cxx.

167 {
169 }

◆ ~VP1RawDataHandle_LUCID()

VP1RawDataHandle_LUCID::~VP1RawDataHandle_LUCID ( )
virtual

Definition at line 172 of file VP1RawDataHandle_LUCID.cxx.

173 {
174 }

Member Function Documentation

◆ buildShape()

SoNode * VP1RawDataHandle_LUCID::buildShape ( )
protectedvirtual

Implements VP1RawDataHandleBase.

Definition at line 177 of file VP1RawDataHandle_LUCID.cxx.

178 {
180  SoNode * n = (it==Imp::tubeID2TubeInfo->end() ? 0 : it->second->get3DObjects());
181  if (!n)
182  return common()->nodeManager()->getShapeNode_Point();//fixme: warn
183  return n;
184 }

◆ buildTransform()

SoTransform * VP1RawDataHandle_LUCID::buildTransform ( )
protectedvirtual

Implements VP1RawDataHandleBase.

Definition at line 187 of file VP1RawDataHandle_LUCID.cxx.

188 {
190  SoTransform * t = (it==Imp::tubeID2TubeInfo->end() ? 0 : it->second->getTransform());
191  if (!t)
192  return common()->nodeManager()->getUnitTransform();//fixme: warn
193  return t;
194 }

◆ center()

Amg::Vector3D VP1RawDataHandleBase::center ( )
virtualinherited

Definition at line 166 of file VP1RawDataHandleBase.cxx.

167 {
169  assert(m_d->sep
170  && m_d->sep->getNumChildren()>0
171  && m_d->sep->getChild(0)->getTypeId().isDerivedFrom(SoTransform::getClassTypeId()));
172 
173  float x,y,z;
174  static_cast<SoTransform*>(m_d->sep->getChild(0))->translation.getValue().getValue(x,y,z);
175  //NB: We assume that the center part of the transform is zero
176  return Amg::Vector3D(x,y,z);
177 }

◆ clicked()

virtual QStringList VP1RawDataHandleBase::clicked ( bool  verbose) const
pure virtualinherited

◆ coll()

VP1RawDataCollBase* VP1RawDataHandleBase::coll ( ) const
inlineinherited

Definition at line 40 of file VP1RawDataHandleBase.h.

40 { return m_coll; }

◆ common()

VP1RawDataCommonData* VP1RawDataHandleBase::common ( ) const
inlineinherited

Definition at line 41 of file VP1RawDataHandleBase.h.

41 { return m_coll->common(); }

◆ commonClicked()

QStringList VP1RawDataHandle_LUCID::commonClicked ( const QString &  prefix = "") const

Definition at line 197 of file VP1RawDataHandle_LUCID.cxx.

198 {
199  QStringList l;
200  l << prefix+"TubeID: "+QString::number(getTubeID());
201  l << prefix+"QDC: "+QString::number(getQDC());
202  l << prefix+"TDC: "+QString::number(getTDC());
203  l << prefix+"SideA: "+(isSideA()?"Yes":"No");
204  l << prefix+"SideC: "+(isSideC()?"Yes":"No");
205  return l;
206 }

◆ getQDC()

virtual unsigned short VP1RawDataHandle_LUCID::getQDC ( ) const
pure virtual

◆ getTDC()

virtual unsigned short VP1RawDataHandle_LUCID::getTDC ( ) const
pure virtual

◆ getTubeID()

virtual unsigned short VP1RawDataHandle_LUCID::getTubeID ( ) const
pure virtual

◆ inInDetParts()

virtual VP1RawDataFlags::InDetPartsFlags VP1RawDataHandleBase::inInDetParts ( ) const
inlinevirtualinherited

Reimplemented in VP1RawDataHandle_PixelRDO, VP1RawDataHandle_SCT_RDO, and VP1RawDataHandle_TRT_RDO.

Definition at line 51 of file VP1RawDataHandleBase.h.

51 { return VP1RawDataFlags::None; }//Override if InDet

◆ isSideA()

virtual bool VP1RawDataHandle_LUCID::isSideA ( ) const
pure virtual

◆ isSideC()

virtual bool VP1RawDataHandle_LUCID::isSideC ( ) const
pure virtual

◆ setVisible()

void VP1RawDataHandleBase::setVisible ( bool  vis)
inherited

Definition at line 68 of file VP1RawDataHandleBase.cxx.

69 {
70  if (vis==m_visible)
71  return;
72  m_visible=vis;
73  if (vis) {
74  if (!m_d->hasShape())
75  m_d->rebuild3DObjects(this);
77  } else {
79  }
80 }

◆ unsignedToHex()

QString VP1RawDataHandleBase::unsignedToHex ( unsigned  i)
staticinherited

Definition at line 158 of file VP1RawDataHandleBase.cxx.

159 {
160  std::ostringstream s;
161  s << "0x" << std::hex << i;
162  return QString(s.str().c_str()).toUpper();
163 }

◆ update3DObjects()

void VP1RawDataHandleBase::update3DObjects ( )
inherited

Definition at line 83 of file VP1RawDataHandleBase.cxx.

84 {
85  if (m_visible) {
86  m_d->rebuild3DObjects(this);
87  } else {
88  //Simply clear the present 3D objects. They will only be recreated if/when the handle becomes visible again.
89  m_d->clearShape();
90  }
91 }

◆ updateShownOutlines()

void VP1RawDataHandleBase::updateShownOutlines ( )
inherited

Definition at line 180 of file VP1RawDataHandleBase.cxx.

181 {
182  if (!m_d->sep)
183  return;
185 }

◆ visible()

bool VP1RawDataHandleBase::visible ( ) const
inlineinherited

Definition at line 44 of file VP1RawDataHandleBase.h.

44 { return m_visible; }

Member Data Documentation

◆ m_coll

VP1RawDataCollBase* VP1RawDataHandleBase::m_coll
privateinherited

Definition at line 70 of file VP1RawDataHandleBase.h.

◆ m_d

Imp* VP1RawDataHandleBase::m_d
privateinherited

Definition at line 68 of file VP1RawDataHandleBase.h.

◆ m_visible

bool VP1RawDataHandleBase::m_visible
privateinherited

Definition at line 71 of file VP1RawDataHandleBase.h.


The documentation for this class was generated from the following files:
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
VP1RawDataHandleBase::m_coll
VP1RawDataCollBase * m_coll
Definition: VP1RawDataHandleBase.h:70
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
VP1RawDataHandleBase::Imp::ensureInitSepAndTransform
void ensureInitSepAndTransform(VP1RawDataHandleBase *theclass)
Definition: VP1RawDataHandleBase.cxx:94
VP1RawDataCommonData::nodeManager
HitsSoNodeManager * nodeManager() const
Definition: VP1RawDataCommonData.h:42
skel.it
it
Definition: skel.GENtoEVGEN.py:396
VP1RawDataHandleBase::Imp::ensureAttach3DObjects
void ensureAttach3DObjects(VP1RawDataHandleBase *theclass)
Definition: VP1RawDataHandleBase.cxx:134
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
x
#define x
VP1RawDataHandleBase::VP1RawDataHandleBase
VP1RawDataHandleBase(VP1RawDataCollBase *)
Definition: VP1RawDataHandleBase.cxx:50
VP1RawDataHandleBase::Imp::hasShape
bool hasShape() const
Definition: VP1RawDataHandleBase.cxx:36
VP1RawDataFlags::None
@ None
Definition: VP1RawDataFlags.h:24
VP1RawDataHandle_LUCID::Imp::ensureInitTubeInfo
static void ensureInitTubeInfo()
Definition: VP1RawDataHandle_LUCID.cxx:105
lumiFormat.i
int i
Definition: lumiFormat.py:85
VP1RawDataHandle_LUCID::getTubeID
virtual unsigned short getTubeID() const =0
z
#define z
beamspotman.n
n
Definition: beamspotman.py:731
VP1RawDataCommonData::updateVolumeOutlines
void updateVolumeOutlines(SoGroup *)
Definition: VP1RawDataCommonData.cxx:91
VP1RawDataHandle_LUCID::getTDC
virtual unsigned short getTDC() const =0
checkCorrelInHIST.prefix
dictionary prefix
Definition: checkCorrelInHIST.py:391
VP1RawDataHandleBase::Imp::sep
SoSeparator * sep
Definition: VP1RawDataHandleBase.cxx:33
VP1RawDataHandle_LUCID::isSideA
virtual bool isSideA() const =0
VP1RawDataHandleBase::Imp::rebuild3DObjects
void rebuild3DObjects(VP1RawDataHandleBase *)
Definition: VP1RawDataHandleBase.cxx:107
python.selection.number
number
Definition: selection.py:20
VP1RawDataHandle_LUCID::isSideC
virtual bool isSideC() const =0
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
y
#define y
VP1RawDataHandleBase::m_d
Imp * m_d
Definition: VP1RawDataHandleBase.h:67
HitsSoNodeManager::getShapeNode_Point
SoNode * getShapeNode_Point()
Definition: HitsSoNodeManager.cxx:412
VP1RawDataHandleBase::coll
VP1RawDataCollBase * coll() const
Definition: VP1RawDataHandleBase.h:40
VP1RawDataHandleBase::Imp::ensureDetach3DObjects
void ensureDetach3DObjects(VP1RawDataHandleBase *theclass)
Definition: VP1RawDataHandleBase.cxx:146
VP1RawDataHandle_LUCID::Imp::tubeID2TubeInfo
static std::map< int, TubeInfo * > * tubeID2TubeInfo
Definition: VP1RawDataHandle_LUCID.cxx:98
VP1RawDataHandle_LUCID::getQDC
virtual unsigned short getQDC() const =0
VP1RawDataHandleBase::m_visible
bool m_visible
Definition: VP1RawDataHandleBase.h:71
VP1RawDataHandleBase::Imp::clearShape
void clearShape()
Definition: VP1RawDataHandleBase.cxx:41
VP1RawDataHandleBase::common
VP1RawDataCommonData * common() const
Definition: VP1RawDataHandleBase.h:41
HitsSoNodeManager::getUnitTransform
SoTransform * getUnitTransform()
Definition: HitsSoNodeManager.cxx:456
VP1RawDataCollBase::common
VP1RawDataCommonData * common() const
Definition: VP1RawDataCollBase.h:39