ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
VP1RawDataHandle_LUCID_Digit Class Reference

#include <VP1RawDataHandle_LUCID_Digit.h>

Inheritance diagram for VP1RawDataHandle_LUCID_Digit:
Collaboration diagram for VP1RawDataHandle_LUCID_Digit:

Public Member Functions

 VP1RawDataHandle_LUCID_Digit (VP1RawDataCollBase *, const LUCID_Digit *)
 
virtual ~VP1RawDataHandle_LUCID_Digit ()
 
QStringList clicked (bool verbose) const
 
unsigned short getTubeID () const
 
unsigned short getQDC () const
 
unsigned short getTDC () const
 
bool isSideA () const
 
bool isSideC () const
 
QStringList commonClicked (const QString &prefix="") const
 
VP1RawDataCollBasecoll () const
 
VP1RawDataCommonDatacommon () const
 
void setVisible (bool)
 
bool visible () const
 
void update3DObjects ()
 
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

const LUCID_Digitm_data
 
Impm_d
 
VP1RawDataCollBasem_coll
 
bool m_visible
 

Detailed Description

Definition at line 23 of file VP1RawDataHandle_LUCID_Digit.h.

Constructor & Destructor Documentation

◆ VP1RawDataHandle_LUCID_Digit()

VP1RawDataHandle_LUCID_Digit::VP1RawDataHandle_LUCID_Digit ( VP1RawDataCollBase coll,
const LUCID_Digit data 
)

Definition at line 23 of file VP1RawDataHandle_LUCID_Digit.cxx.

25 {
26 }

◆ ~VP1RawDataHandle_LUCID_Digit()

VP1RawDataHandle_LUCID_Digit::~VP1RawDataHandle_LUCID_Digit ( )
virtual

Definition at line 29 of file VP1RawDataHandle_LUCID_Digit.cxx.

30 {
31 }

Member Function Documentation

◆ buildShape()

SoNode * VP1RawDataHandle_LUCID::buildShape ( )
protectedvirtualinherited

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 ( )
protectedvirtualinherited

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()

QStringList VP1RawDataHandle_LUCID_Digit::clicked ( bool  verbose) const
virtual

Implements VP1RawDataHandleBase.

Definition at line 34 of file VP1RawDataHandle_LUCID_Digit.cxx.

35 {
36  QStringList l;
37  l <<" ====> LUCID_Digit:";
38  l += commonClicked(" ");
39  if (verbose)
40  l << " (no extra verbose information available)";
41  return l;
42 }

◆ 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
inherited

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()

unsigned short VP1RawDataHandle_LUCID_Digit::getQDC ( ) const
virtual

Implements VP1RawDataHandle_LUCID.

Definition at line 45 of file VP1RawDataHandle_LUCID_Digit.cxx.

45 { return m_data->getQDC(); }

◆ getTDC()

unsigned short VP1RawDataHandle_LUCID_Digit::getTDC ( ) const
virtual

Implements VP1RawDataHandle_LUCID.

Definition at line 46 of file VP1RawDataHandle_LUCID_Digit.cxx.

46 { return m_data->getTDC(); }

◆ getTubeID()

unsigned short VP1RawDataHandle_LUCID_Digit::getTubeID ( ) const
virtual

Implements VP1RawDataHandle_LUCID.

Definition at line 44 of file VP1RawDataHandle_LUCID_Digit.cxx.

44 { return m_data->getTubeID(); }

◆ 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()

bool VP1RawDataHandle_LUCID_Digit::isSideA ( ) const
virtual

Implements VP1RawDataHandle_LUCID.

Definition at line 47 of file VP1RawDataHandle_LUCID_Digit.cxx.

47 { return const_cast<LUCID_Digit *>(m_data)->isSideA(); }//const_cast due to const-incorrectness in LUCID_Digit.h

◆ isSideC()

bool VP1RawDataHandle_LUCID_Digit::isSideC ( ) const
virtual

Implements VP1RawDataHandle_LUCID.

Definition at line 48 of file VP1RawDataHandle_LUCID_Digit.cxx.

48 { return const_cast<LUCID_Digit *>(m_data)->isSideC(); }//const_cast due to const-incorrectness in LUCID_Digit.h

◆ 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_data

const LUCID_Digit* VP1RawDataHandle_LUCID_Digit::m_data
private

Definition at line 37 of file VP1RawDataHandle_LUCID_Digit.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
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
VP1RawDataHandleBase::m_coll
VP1RawDataCollBase * m_coll
Definition: VP1RawDataHandleBase.h:70
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
LUCID_Digit::getTDC
unsigned short getTDC() const
Definition: LUCID_Digit.h:26
VP1RawDataHandleBase::Imp::ensureInitSepAndTransform
void ensureInitSepAndTransform(VP1RawDataHandleBase *theclass)
Definition: VP1RawDataHandleBase.cxx:94
VP1RawDataHandle_LUCID::commonClicked
QStringList commonClicked(const QString &prefix="") const
Definition: VP1RawDataHandle_LUCID.cxx:197
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
VP1RawDataHandle_LUCID_Digit::isSideC
bool isSideC() const
Definition: VP1RawDataHandle_LUCID_Digit.cxx:48
VP1RawDataHandleBase::Imp::hasShape
bool hasShape() const
Definition: VP1RawDataHandleBase.cxx:36
LUCID_Digit::getQDC
unsigned short getQDC() const
Definition: LUCID_Digit.h:25
VP1RawDataFlags::None
@ None
Definition: VP1RawDataFlags.h:24
LUCID_Digit
Definition: LUCID_Digit.h:8
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
VP1RawDataHandle_LUCID::VP1RawDataHandle_LUCID
VP1RawDataHandle_LUCID(VP1RawDataCollBase *)
Definition: VP1RawDataHandle_LUCID.cxx:165
python.selection.number
number
Definition: selection.py:20
LUCID_Digit::getTubeID
unsigned short getTubeID() const
Definition: LUCID_Digit.h:21
VP1RawDataHandle_LUCID::isSideC
virtual bool isSideC() const =0
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
VP1RawDataHandle_LUCID_Digit::m_data
const LUCID_Digit * m_data
Definition: VP1RawDataHandle_LUCID_Digit.h:37
y
#define y
VP1RawDataHandle_LUCID_Digit::isSideA
bool isSideA() const
Definition: VP1RawDataHandle_LUCID_Digit.cxx:47
VP1RawDataHandleBase::m_d
Imp * m_d
Definition: VP1RawDataHandleBase.h:67
HitsSoNodeManager::getShapeNode_Point
SoNode * getShapeNode_Point()
Definition: HitsSoNodeManager.cxx:412
python.TriggerHandler.verbose
verbose
Definition: TriggerHandler.py:297
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