Belle II Software development
|
a class of TrackSegmentFinder in TRGCDC More...
#include <TrackSegmentFinder.h>
Public Types | |
enum | boardType { innerType = 0 , outerType = 1 , unknown = 999 } |
enum of boardType of TrackSegmentFinder More... | |
Public Member Functions | |
TRGCDCTrackSegmentFinder (const TRGCDC &, bool makeRootFile, bool logicLUTFlag) | |
Constructor. | |
TRGCDCTrackSegmentFinder (const TRGCDC &, const std::string &name, boardType type, const TRGClock &systemClock, const TRGClock &dataClock, const TRGClock &userClockInput, const TRGClock &userClockOutput, const std::vector< TRGCDCSegment * > &tsSL) | |
Constructor. | |
~TRGCDCTrackSegmentFinder () | |
Destructor. | |
void | doit (std::vector< TRGCDCSegment * > &tss, const bool trackSegmentClockSimulation, std::vector< TRGCDCSegmentHit * > &segmentHits, std::vector< TRGCDCSegmentHit * > *segmentHitsSL) |
Member functions of doing TSF. | |
void | terminate (void) |
terminate | |
void | saveTSInformation (std::vector< TRGCDCSegment * > &tss) |
save the TS info | |
void | saveTSFResults (std::vector< TRGCDCSegmentHit * > *segmentHitsSL) |
save result of TSF | |
void | saveNNTSInformation (std::vector< TRGCDCSegment * > &tss) |
Saves NNTS information. Only when ts is hit. | |
vector< TRGSignalVector * > | findTSHit (TRGSignalVector *eachInput, int) |
Use LUT for find TSHit. | |
TRGSignalVector * | packerOuterTracker (vector< TRGSignalVector * > &, vector< int > &, const unsigned) |
Packing output for tracker. | |
TRGSignalVector * | packerOuterEvt (vector< TRGSignalVector * >, vector< int >, int) |
Packing output for evtTime & Low pT. | |
boardType | type (void) const |
board type of TSF | |
TRGSignalBundle * | outputE (void) |
signal bundle of outputE | |
TRGSignalBundle * | outputT (void) |
signal bundle of outputT | |
void | push_back (const TRGCDCMerger *) |
push back the Mergers of this TSF | |
void | simulateBoard (void) |
firmware simulation. | |
void | simulate (void) |
Firmware simulation. yi. | |
void | simulate2 (void) |
Firmware simulation. Unified version of inner and outer : yi. | |
void | hitMapInner (void) |
Creates the hit maps for the inner. | |
void | hitMapOuter (void) |
Creates the hit maps for the outer. | |
void | inputInner (const unsigned id, const unsigned nTSF, TRGSignalVector *s) |
Creates input signals to TSF for the inner. | |
void | inputOuter (const unsigned id, const unsigned nTSF, TRGSignalVector *s) |
Creates input signals to TSF for the outer. | |
vector< TRGSignalVector * > | simulateInner (const TRGSignalVector &in, unsigned id) |
Simulate TSF response for the inner. | |
vector< TRGSignalVector * > | simulateOuter (TRGSignalVector *in, unsigned id) |
Simulate TSF response for the inner. | |
vector< TRGSignalVector * > | simulateTSFOld (TRGSignalVector *in, unsigned id) |
Simulate TSF response (unified version) | |
vector< TRGSignalVector * > | simulateTSF (TRGSignalVector *in, unsigned id) |
Simulate TSF response (unified version, 2016/07/12) | |
vector< TRGSignalVector * > | simulateTSF2 (TRGSignalVector *in, unsigned id) |
Simulate TSF response (unified version, state machine) | |
TRGSignalVector * | packerForTracker (vector< TRGSignalVector * > &, vector< int > &, const unsigned) |
Output packer for tracker. | |
TRGSignalVector * | packerForETF (vector< TRGSignalVector * > &, vector< int > &, const unsigned) |
Output packer for ETF. | |
double | mkint (TRGState) |
tranformatoin into integer | |
vector< bool > | mkbool (int, int) |
tranformatoin into bool | |
const std::string & | name (void) const |
returns name. | |
const TRGClock & | clockSystem (void) const |
returns system clock. | |
const TRGClock & | clockData (void) const |
returns data clock. | |
const TRGClock & | clockUserInput (void) const |
returns Aurora user clock for input. | |
const TRGClock & | clockUserOutput (void) const |
returns Aurora user clock for output. | |
unsigned | nInput (void) const |
returns input channels. | |
const TRGChannel * | input (unsigned i) const |
returns input channel i. | |
unsigned | nOutput (void) const |
returns output channels. | |
TRGChannel * | output (unsigned i) const |
returns output channel i. | |
void | dump (const std::string &message="", const std::string &pre="") const |
dumps contents. | |
void | appendInput (const TRGChannel *) |
appends an input Aurora channel. | |
void | appendOutput (TRGChannel *) |
appends an output Aurora channel. | |
Static Public Member Functions | |
static std::string | version (void) |
return version | |
Public Attributes | |
const TRGCDC & | _cdc |
Members. | |
bool | m_logicLUTFlag |
0 is Logic. 1 is LUT. | |
std::string | m_rootTSFFilename |
ROOT file name string. | |
TFile * | m_fileTSF |
ROOT file. | |
TTree * | m_treeInputTSF = nullptr |
ROOT TTree for input. | |
TClonesArray * | m_hitPatternInformation = nullptr |
Stores hitpattern information. | |
TTree * | m_treeOutputTSF = nullptr |
ROOT TTree for output. | |
TClonesArray * | m_particleEfficiency = nullptr |
[Efficiency, Pt, # MC TS] Efficiency = -1 means that # MC TS is 0. | |
TClonesArray * | m_tsInformation = nullptr |
[SuperLayer Id, Wire Id, Priority Timing] | |
TTree * | m_treeNNTSF = nullptr |
ROOT Tree for NNTSF. | |
TClonesArray * | m_nnPatternInformation = nullptr |
[superlayer id, lrDriftTime, timeWire0, timeWire1, ..., ...] | |
bool | m_makeRootFile = false |
make ROOT file or not | |
T | elements |
STL member. | |
Private Member Functions | |
void | simulateInner (void) |
Firmware simulation for the outers. yi. | |
void | simulateOuter (void) |
Firmware simulation for the outers. yi. | |
void | priorityTiming (unsigned tsfID, const unsigned nTSF, TRGSignalVector &s, const TRGSignal ¢er, const TRGSignal &right, const TRGSignal &left) const |
Make TRGSignals for the priority timing bits. | |
void | fastestTimingInner (unsigned tsfID, const unsigned nTSF, TRGSignalVector &s) const |
Make TRGSignals for the fastest timing bits. | |
void | fastestTimingOuter (unsigned tsfID, const unsigned nTSF, TRGSignalVector &s) const |
Make TRGSignals for the fastest timing bits. | |
Static Private Member Functions | |
static void | addID (TRGSignalVector &s, unsigned id) |
Add TSF ID to timing signal vector for the output. | |
Private Attributes | |
boardType | _type |
Unit type. | |
TRGSignalBundle * | _tosbE |
Input signal bundle. | |
TRGSignalBundle * | _tosbT |
Output signal bundle. | |
std::vector< TCSegment * > | _tsSL |
list of TSF | |
std::vector< TRGSignalVector * > | _tsfIn |
TSF input storage. | |
std::vector< TRGSignalVector * > | _tsfOut |
TSF response storeage. | |
std::vector< TRGSignalVector * > | _toBeDeleted |
One time info. to be deleted in next event;. | |
std::vector< TRGSignal * > | _hitMap [5] |
Internal data of wire hit map. | |
std::vector< TRGSignal * > | _priMap |
Internal data of the priority hit timing. | |
std::vector< TRGSignal * > | _fasMap |
Internal data of the fastest hit timing. | |
std::vector< TRGSignal * > | _secMap |
Internal data of the priority cell hit position flag. | |
std::vector< TRGSignal * > | _edg0Map |
Internal data of the edge timing information. | |
std::vector< TRGSignal * > | _edg1Map |
Internal data of the edge timing information. | |
std::vector< TRGSignal * > | _edg2Map |
Internal data of the edge timing information. | |
std::vector< TRGSignal * > | _edg3Map |
Internal data of the edge timing information. | |
std::vector< TRGSignal * > | _edg4Map |
Internal data of the edge timing information. | |
const std::string | _name |
Name of a board. | |
const TRGClock * | _clockSystem |
System clock. | |
const TRGClock * | _clockData |
Data clock. | |
const TRGClock * | _clockUserInput |
User clock. | |
const TRGClock * | _clockUserOutput |
User clock. | |
std::vector< const TRGChannel * > | _inputChannels |
Input Aurora channel. | |
std::vector< TRGChannel * > | _outputChannels |
Output Aurora channel. | |
a class of TrackSegmentFinder in TRGCDC
Definition at line 40 of file TrackSegmentFinder.h.
enum boardType |
enum of boardType of TrackSegmentFinder
Definition at line 46 of file TrackSegmentFinder.h.
|
inline |
signal bundle of outputE
Definition at line 150 of file TrackSegmentFinder.h.
|
inline |
signal bundle of outputT
Definition at line 152 of file TrackSegmentFinder.h.
const TRGCDC& _cdc |
Members.
Definition at line 85 of file TrackSegmentFinder.h.
|
privateinherited |
|
private |
Internal data of the edge timing information.
Definition at line 283 of file TrackSegmentFinder.h.
|
private |
Internal data of the edge timing information.
Definition at line 286 of file TrackSegmentFinder.h.
|
private |
Internal data of the edge timing information.
Definition at line 289 of file TrackSegmentFinder.h.
|
private |
Internal data of the edge timing information.
Definition at line 292 of file TrackSegmentFinder.h.
|
private |
Internal data of the edge timing information.
Definition at line 295 of file TrackSegmentFinder.h.
|
private |
Internal data of the fastest hit timing.
Definition at line 277 of file TrackSegmentFinder.h.
|
private |
Internal data of wire hit map.
Definition at line 271 of file TrackSegmentFinder.h.
|
privateinherited |
|
privateinherited |
|
private |
Internal data of the priority hit timing.
Definition at line 274 of file TrackSegmentFinder.h.
|
private |
Internal data of the priority cell hit position flag.
Definition at line 280 of file TrackSegmentFinder.h.
|
private |
One time info. to be deleted in next event;.
Definition at line 268 of file TrackSegmentFinder.h.
|
private |
|
private |
Output signal bundle.
Definition at line 257 of file TrackSegmentFinder.h.
|
private |
TSF input storage.
Definition at line 262 of file TrackSegmentFinder.h.
|
private |
TSF response storeage.
Definition at line 265 of file TrackSegmentFinder.h.
|
private |
list of TSF
Definition at line 259 of file TrackSegmentFinder.h.
|
private |
Unit type.
Definition at line 249 of file TrackSegmentFinder.h.
TFile* m_fileTSF |
ROOT file.
Definition at line 92 of file TrackSegmentFinder.h.
TClonesArray* m_hitPatternInformation = nullptr |
Stores hitpattern information.
Definition at line 101 of file TrackSegmentFinder.h.
bool m_logicLUTFlag |
0 is Logic. 1 is LUT.
Definition at line 87 of file TrackSegmentFinder.h.
bool m_makeRootFile = false |
make ROOT file or not
Definition at line 117 of file TrackSegmentFinder.h.
TClonesArray* m_nnPatternInformation = nullptr |
[superlayer id, lrDriftTime, timeWire0, timeWire1, ..., ...]
Definition at line 114 of file TrackSegmentFinder.h.
TClonesArray* m_particleEfficiency = nullptr |
[Efficiency, Pt, # MC TS] Efficiency = -1 means that # MC TS is 0.
Definition at line 107 of file TrackSegmentFinder.h.
std::string m_rootTSFFilename |
ROOT file name string.
Definition at line 90 of file TrackSegmentFinder.h.
TTree* m_treeInputTSF = nullptr |
ROOT TTree for input.
Definition at line 95 of file TrackSegmentFinder.h.
TTree* m_treeNNTSF = nullptr |
ROOT Tree for NNTSF.
Definition at line 112 of file TrackSegmentFinder.h.
TTree* m_treeOutputTSF = nullptr |
ROOT TTree for output.
Definition at line 104 of file TrackSegmentFinder.h.
TClonesArray* m_tsInformation = nullptr |
[SuperLayer Id, Wire Id, Priority Timing]
Definition at line 109 of file TrackSegmentFinder.h.