Belle II Software development
TRGCDCCell Class Referenceabstract

A class to represent a wire in CDC. More...

#include <Cell.h>

Inheritance diagram for TRGCDCCell:
TRGCDCSegment TRGCDCWire

Public Member Functions

 TRGCDCCell (unsigned id, unsigned localId, const TRGCDCLayer &layer, const HepGeom::Point3D< double > &forwardPosition, const HepGeom::Point3D< double > &backwardPosition)
 Constructor.
 
virtual ~TRGCDCCell ()
 Destructor.
 
unsigned id (void) const
 returns id.
 
unsigned localId (void) const
 returns local id in a layer.
 
unsigned layerId (void) const
 returns layer id.
 
unsigned localLayerId (void) const
 returns local layer id in a super layer.
 
unsigned superLayerId (void) const
 returns super layer id.
 
unsigned axialStereoLayerId (void) const
 returns id of axial or stereo layer id.
 
unsigned axialStereoSuperLayerId (void) const
 returns id of axial or stereo super layer id.
 
const TRGCDCLayerlayer (void) const
 returns a pointer to a layer.
 
unsigned state (void) const
 returns state.
 
bool axial (void) const
 returns true if this wire is in an axial layer.
 
bool stereo (void) const
 returns true if this wire is in a stereo layer.
 
int localIdDifference (const TRGCDCCell &) const
 returns local id difference.
 
virtual std::string name (void) const =0
 returns name.
 
virtual void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
 
virtual const TRGSignalsignal (void) const =0
 returns trigger output. Null will returned if no signal.
 
virtual const TRGSignalsignal_adc (void) const =0
 returns trigger output. Null will returned if no signal.
 
const HepGeom::Point3D< double > & forwardPosition (void) const
 returns position in forward endplate.
 
const HepGeom::Point3D< double > & backwardPosition (void) const
 returns position in backward endplate.
 
double * backwardPosition (double p[3]) const
 position in backward endplate.
 
const HepGeom::Point3D< double > & xyPosition (void) const
 returns middle position of a wire. z componet is 0.
 
double * xyPosition (double p[3]) const
 middle position of a wire. z componet is 0.
 
const Vector3Ddirection (void) const
 returns direction vector of the wire.
 
float cellSize (void) const
 calculates position and direction vector with sag correction.
 
virtual bool hasMember (const std::string &a) const
 returns true this has member named a.
 
const TRGCDCCellHithit (void) const
 returns a pointer to a TRGCDCCellHit.
 
bool innerPart (void) const
 returns true if this wire is in the inner part.
 
bool mainPart (void) const
 returns true if this wire is in the main part.
 
unsigned state (unsigned newState)
 sets state.
 
virtual void clear (void)
 clears information.
 
const TRGCDCCellHithit (const TRGCDCCellHit *)
 sets a pointer to TRGCDCWireHit.
 

Private Attributes

const unsigned _id
 ID.
 
const unsigned _localId
 Local ID.
 
const TRGCDCLayer_layer
 Layer.
 
const HepGeom::Point3D< double > _xyPosition
 Wire center(?) position.
 
const HepGeom::Point3D< double > _forwardPosition
 Wire forward position.
 
const HepGeom::Point3D< double > _backwardPosition
 Wire backward position.
 
const Vector3D _direction
 Direction vector.
 
unsigned _state
 Status in this event.
 
const TRGCDCCellHit_hit
 Cell hit.
 

Friends

class TRGCDC
 Complete access from TRGCDC.
 

Detailed Description

A class to represent a wire in CDC.

Definition at line 40 of file Cell.h.

Member Function Documentation

◆ name()

virtual std::string name ( void  ) const
pure virtual

returns name.

Implemented in TRGCDCSegment, and TRGCDCWire.

◆ signal()

virtual const TRGSignal & signal ( void  ) const
pure virtual

returns trigger output. Null will returned if no signal.

Implemented in TRGCDCSegment, and TRGCDCWire.

◆ signal_adc()

virtual const TRGSignal & signal_adc ( void  ) const
pure virtual

returns trigger output. Null will returned if no signal.

Implemented in TRGCDCSegment, and TRGCDCWire.

Friends And Related Function Documentation

◆ TRGCDC

friend class TRGCDC
friend

Complete access from TRGCDC.

Definition at line 193 of file Cell.h.

Member Data Documentation

◆ _backwardPosition

const HepGeom::Point3D<double> _backwardPosition
private

Wire backward position.

Definition at line 181 of file Cell.h.

◆ _direction

const Vector3D _direction
private

Direction vector.

Definition at line 184 of file Cell.h.

◆ _forwardPosition

const HepGeom::Point3D<double> _forwardPosition
private

Wire forward position.

Definition at line 178 of file Cell.h.

◆ _hit

const TRGCDCCellHit* _hit
private

Cell hit.

Definition at line 190 of file Cell.h.

◆ _id

const unsigned _id
private

ID.

Definition at line 166 of file Cell.h.

◆ _layer

const TRGCDCLayer& _layer
private

Layer.

Definition at line 172 of file Cell.h.

◆ _localId

const unsigned _localId
private

Local ID.

Definition at line 169 of file Cell.h.

◆ _state

unsigned _state
private

Status in this event.

Definition at line 187 of file Cell.h.

◆ _xyPosition

const HepGeom::Point3D<double> _xyPosition
private

Wire center(?) position.

Definition at line 175 of file Cell.h.


The documentation for this class was generated from the following files: