|
| 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 TRGCDCWire * | operator[] (unsigned id) const |
| returns a wire.
|
|
const TRGCDCWire & | center (void) const |
| returns a center wire.
|
|
const TRGCDCWire & | priority (void) const |
| returns priority wire.
|
|
const TRGSignal & | signal (void) const override |
| returns trigger output. Null will returned if no signal.
|
|
const TRGSignal & | signal_adc (void) const override |
| returns trigger output. Null will returned if no signal.
|
|
const TRGCDCSegmentHit * | hit (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 TRGCDCLUT * | LUT (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 TRGCDCSegmentHit * | hit (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 TRGCDCLayer & | layer (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 Vector3D & | direction (void) const |
| returns direction vector of the wire.
|
|
float | cellSize (void) const |
| calculates position and direction vector with sag correction.
|
|
const TRGCDCCellHit * | hit (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.
|
|
A class to represent a wire in CDC.
Definition at line 39 of file Segment.h.