Belle II Software development
TRGCDCSegment Class Reference

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

#include <Segment.h>

Inheritance diagram for TRGCDCSegment:
TRGCDCCell

Public Member Functions

 TRGCDCSegment (unsigned id, const TRGCDCLayer &layer, const TRGCDCWire &w, const TRGClock &clock, const std::string &TSLUTFile, const std::vector< const TRGCDCWire * > &wires)
 Constructor.
 
virtual ~TRGCDCSegment ()
 Destructor.
 
const std::vector< const TRGCDCWire * > & wires (void) const
 returns a vector containing pointers to a wire.
 
std::string name (void) const override
 returns name.
 
const TRGCDCWireoperator[] (unsigned id) const
 returns a wire.
 
const TRGCDCWirecenter (void) const
 returns a center wire.
 
const TRGCDCWirepriority (void) const
 returns priority wire.
 
const TRGSignalsignal (void) const override
 returns trigger output. Null will returned if no signal.
 
const TRGSignalsignal_adc (void) const override
 returns trigger output. Null will returned if no signal.
 
const TRGCDCSegmentHithit (void) const
 returns a pointer to a TRGCDCSegmentHit.
 
const std::vector< const CDCTriggerSegmentHit * > storeHits (void) const
 returns a pointer to a CDCTriggerSegmentHit.
 
unsigned hitPattern (void) const
 returns hit pattern.
 
unsigned hitPattern_adc (void) const
 returns hit pattern with adc cut.
 
unsigned hitPattern (int clk0, int clk1) const
 returns hit pattern for hits in given time window.
 
unsigned lutPattern (void) const
 hit pattern containing bit for priority position
 
unsigned lutPattern (int clk0, int clk1) const
 hit pattern containing bit for priority position for hits in given time window.
 
float fastestTime (void) const
 return fastest time in TSHit.
 
float fastestTime (int clk0) const
 fastest time in TSHit that is larger of equal to clk0.
 
float foundTime (void) const
 return found time in TSHit.
 
float priorityTime (void) const
 return priority time in TSHit.
 
int priorityPosition (void) const
 return priority cell position in TSHit. 0: no hit, 3: 1st priority, 1: 2nd right, 2: 2nd left
 
int priorityPosition (int clk0, int clk1) const
 return priority cell position in TSHit for given time window.
 
const TRGCDCLUTLUT (void) const
 returns LUT
 
void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const override
 dumps debug information.
 
void initialize (void)
 initilize variables.
 
void initialize (bool fevtTime)
 initilize variables.
 
virtual bool hasMember (const std::string &a) const override
 returns true this has member named a.
 
void clear (void) override
 clears information.
 
void simulate (bool clockSimulation, bool logicLUTFlag, const std::string &cdcCollectionName=std::string(""), const std::string &tsCollectionName=std::string(""))
 simulates TF hit using wire information.
 
const TRGCDCSegmentHithit (const TRGCDCSegmentHit *)
 sets a pointer to a TRGCDCSegmentHit.
 
void addStoreHit (const CDCTriggerSegmentHit *)
 sets a pointer to a CDCTriggerSegmentHit.
 
void simulateWithoutClock (bool logicLUTFlag)
 simulates time-indegrated TF hit
 
void simulateWithClock (std::string cdcCollectionName, std::string tsCollectionName)
 simulates TF hit time-dependently
 
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.
 
unsigned state (unsigned newState)
 sets 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.
 
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.
 
const TRGCDCCellHithit (const TRGCDCCellHit *)
 sets a pointer to TRGCDCWireHit.
 
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.
 

Static Public Member Functions

static unsigned nStereo (const std::vector< const TRGCDCSegment * > &list)
 returns axial segments.
 

Private Attributes

TRGCDCLUTm_TSLUT = nullptr
 LookUp Table. 0: no hit, 1: right, 2: left, 3: not determined.
 
std::vector< const TRGCDCWire * > _wires
 LookUp Table.
 
const TRGCDCWire_center
 Center wire.
 
TRGSignal _signal
 Trigger signal.
 
TRGSignal _signal_adc
 Trigger signal.
 
std::vector< const TRGCDCWireHit * > _hits
 Wire hits.
 
std::vector< const CDCTriggerSegmentHit * > _storeHits
 list of DataStore hits.
 
std::string m_TSLUTFileName
 TS LUT file name.
 
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
 

Detailed Description

A class to represent a wire in CDC.

Definition at line 39 of file Segment.h.

Member Function Documentation

◆ nStereo()

static unsigned nStereo ( const std::vector< const TRGCDCSegment * > &  list)
static

returns axial segments.

returns # of stereo segments.

Friends And Related Function Documentation

◆ TRGCDC

friend class TRGCDC
friend

Definition at line 191 of file Segment.h.

Member Data Documentation

◆ _backwardPosition

const HepGeom::Point3D<double> _backwardPosition
privateinherited

Wire backward position.

Definition at line 181 of file Cell.h.

◆ _center

const TRGCDCWire* _center
private

Center wire.

Definition at line 173 of file Segment.h.

◆ _direction

const Vector3D _direction
privateinherited

Direction vector.

Definition at line 184 of file Cell.h.

◆ _forwardPosition

const HepGeom::Point3D<double> _forwardPosition
privateinherited

Wire forward position.

Definition at line 178 of file Cell.h.

◆ _hit

const TRGCDCCellHit* _hit
privateinherited

Cell hit.

Definition at line 190 of file Cell.h.

◆ _hits

std::vector<const TRGCDCWireHit*> _hits
private

Wire hits.

Definition at line 182 of file Segment.h.

◆ _id

const unsigned _id
privateinherited

ID.

Definition at line 166 of file Cell.h.

◆ _layer

const TRGCDCLayer& _layer
privateinherited

Layer.

Definition at line 172 of file Cell.h.

◆ _localId

const unsigned _localId
privateinherited

Local ID.

Definition at line 169 of file Cell.h.

◆ _signal

TRGSignal _signal
private

Trigger signal.

Definition at line 176 of file Segment.h.

◆ _signal_adc

TRGSignal _signal_adc
private

Trigger signal.

Definition at line 179 of file Segment.h.

◆ _state

unsigned _state
privateinherited

Status in this event.

Definition at line 187 of file Cell.h.

◆ _storeHits

std::vector<const CDCTriggerSegmentHit*> _storeHits
private

list of DataStore hits.

Definition at line 185 of file Segment.h.

◆ _wires

std::vector<const TRGCDCWire*> _wires
private

LookUp Table.

Wires.

Definition at line 170 of file Segment.h.

◆ _xyPosition

const HepGeom::Point3D<double> _xyPosition
privateinherited

Wire center(?) position.

Definition at line 175 of file Cell.h.

◆ m_TSLUT

TRGCDCLUT* m_TSLUT = nullptr
private

LookUp Table. 0: no hit, 1: right, 2: left, 3: not determined.

Definition at line 164 of file Segment.h.

◆ m_TSLUTFileName

std::string m_TSLUTFileName
private

TS LUT file name.

Definition at line 188 of file Segment.h.


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