Belle II Software  release-08-01-10
TRGCDCSegment Class Reference

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

#include <Segment.h>

Inheritance diagram for TRGCDCSegment:
Collaboration diagram for TRGCDCSegment:

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 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 (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. More...
 
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. More...
 

Private Attributes

TRGCDCLUTm_TSLUT = nullptr
 LookUp Table. 0: no hit, 1: right, 2: left, 3: not determined.
 
std::vector< const TRGCDCWire * > _wires
 LookUp Table. More...
 
const TRGCDCWire_center
 Center wire.
 
TRGSignal _signal
 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.

Member Data Documentation

◆ _wires

std::vector<const TRGCDCWire*> _wires
private

LookUp Table.

Wires.

Definition at line 165 of file Segment.h.


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