Belle II Software  release-05-02-19
Collaboration diagram for trg:

Modules

 trg data objects
 
 trg modules
 

Namespaces

 Belle2::CDC
 

Classes

class  CDCTrigger2DConfig
 The payload class for delay of GDL input bit. More...
 
class  CDCTriggerNeuroConfig
 The payload class for all CDC Neurotrigger information. More...
 
class  TRGCDCCell
 A class to represent a wire in CDC. More...
 
class  TRGCDCCellHit
 A class to represent a wire hit in CDC. More...
 
class  TRGCDCCircle
 A class to represent a circle. More...
 
class  TRGCDCCircleFitter
 A class to fit a TTrackBase object to a circle. More...
 
class  TRGCDCEventTime
 A class of TRGCDC Event Time. More...
 
class  TRGCDCEventTimeFinder
 A class of TRGCDC Event Time Finder. More...
 
class  TRGCDCFitter
 A class to fit a TRGCDCTrackBase object. More...
 
class  TRGCDCFitter3D
 A class to fit tracks in 3D. More...
 
class  TRGCDCFrontEnd
 A class to represent a CDC front-end board. More...
 
class  TRGCDCHelix
 TRGCDCHelix parameter class. More...
 
class  TRGCDCHough3DFinder
 class of TRGCDCHough3DFinder More...
 
class  TRGCDCHoughFinder
 A class to find tracks using Hough algorithm. More...
 
class  TRGCDCHoughPlane
 A class to represent a Hough parameter plane. More...
 
class  TRGCDCHoughPlaneBase
 A class to represent a Hough parameter plane. More...
 
class  TRGCDCHoughPlaneBoolean
 A class to represent a Hough parameter plane. More...
 
class  TRGCDCHoughPlaneMulti
 A class to represent a Hough parameter plane. More...
 
class  TRGCDCHoughPlaneMulti2
 A class to represent a Hough parameter plane. More...
 
class  TRGCDCHoughTransformation
 An abstract class to represent a Hough transformation. More...
 
class  TRGCDCHoughTransformationCircle
 A class to represent circle Hough transformation. More...
 
class  TRGCDCJLUT
 A class to use LUTs for TRGCDC. More...
 
class  TRGCDCJSignal
 A class to use Signals for TRGCDC 3D tracker. More...
 
class  TRGCDCJSignalData
 A class to hold common data for JSignals. More...
 
class  TRGCDCLayer
 A class to represent a cell layer. More...
 
class  TRGCDCLink
 A class to relate TRGCDCCellHit and TRGCDCTrack objects. More...
 
class  TRGCDCLpar
 TRGCDCLpar class. More...
 
class  TRGCDCLpav
 TRGCDCLpav class. More...
 
class  TRGCDCLUT
 A class to use LUTs for TRGCDC. More...
 
class  TRGCDCMerger
 A class to represent a CDC merger board. More...
 
class  NeuroTrigger
 Class to represent the CDC Neurotrigger. More...
 
class  TRGOpticalLinkFrontEnd
 A class to represent a serial link between trigger modules. More...
 
class  TRGCDCPeakFinder
 A class to find peaks in Hough Plane. More...
 
class  TRGCDCPerfectFinder
 A class to find 2D tracks using MC information. More...
 
class  TRGCDCRelation
 A class to represent a wire in CDC. More...
 
class  TRGCDCSegment
 A class to represent a wire in CDC. More...
 
class  TRGCDCSegmentHit
 A class to represent a track segment hit in CDC. More...
 
class  TRGCDCSteppingAction
 A class to control a track in G4. More...
 
class  TRGCDCTrack
 A class to represent a reconstructed charged track in TRGCDC. More...
 
class  TRGCDCTrackBase
 A class to represent a track object in TRGCDC. More...
 
class  TRGCDCTracker2D
 A class to represent a CDC 2D tracker board. More...
 
class  TRGCDCTrackMC
 A class to represent a GEN_HEPEVT particle in tracking. More...
 
class  TRGCDCTrackSegmentFinder
 a class of TrackSegmentFinder in TRGCDC More...
 
class  TRGCDC
 The instance of TRGCDC is a singleton. More...
 
class  TRGCDCWire
 A class to represent a wire in CDC. More...
 
class  TRGCDCWireHit
 A class to represent a wire hit in CDC. More...
 
class  TRGCDCWireHitMC
 A class to represent a MC wire hit in CDC. More...
 
class  TRGECLBadRun
 Raw TC result nefor digitizing. More...
 
class  TrgEclDatabaseImporter
 Database importer of TRGECL. More...
 
class  TRGECLETMPara
 Raw TC result nefor digitizing. More...
 
class  TRGECLFAMPara
 Raw TC result nefor digitizing. More...
 
class  TRGECLTMMPara
 Raw TC result nefor digitizing. More...
 
class  TrgEclBeamBKG
 A Class of ECL Trigger clustering
More...
 
class  TrgEclBhabha
 A Class of ECL Trigger clustering
More...
 
class  TrgEclCluster
 A Class of ECL Trigger clustering
More...
 
class  TrgEclDataBase
 class TrgEclDataBase; More...
 
class  TrgEclDigitizer
 FAM module
More...
 
class  TrgEclFAMFit
 FAM module
More...
 
class  TrgEclMapping
 A class of TC Mapping. More...
 
class  TrgEclMaster
 ETM class. More...
 
class  TrgEclTiming
 A Class of ECL Trigger clustering
More...
 
class  TRGGDLDBAlgs
 The payload class for GDL algorithm. More...
 
class  TRGGDLDBDelay
 The payload class for delay of GDL input bit. More...
 
class  TRGGDLDBUnpacker
 The payload class for PXD cluster charge calibrations. More...
 
class  TrgBit
 A general interface to get a trigger response. More...
 
class  TRGGDL
 The instance of TRGGDL is a singleton. More...
 
class  GRLNeuro
 Class to represent the GRL Neuro. More...
 
class  TRGGRL
 a class for TRGGRL More...
 
class  TRGGRLMatch
 A class to represent a matching candidate in TRGGRL A matching candidate consists of a TRGCDCTrack and TRGECLCluster. More...
 
class  TRGArea2D
 A class to represent an 2D area. More...
 
class  TRGBitStream
 A class to represent a bit stream. More...
 
class  TRGBoard
 A class to represent a trigger board. More...
 
class  TRGChannel
 A class to represent a serial link between trigger hardware modules. More...
 
class  TRGClock
 A class to represent a digitized signal. Unit is nano second. More...
 
class  TRGDebug
 A class for debugging of TSIM. More...
 
class  TRGOpticalLink
 A class to represent a serial link between trigger modules. More...
 
class  TRGPoint2D
 A class to represent a point in 2D. More...
 
class  TRGSignal
 A class to represent a digitized signal. Unit is nano second. More...
 
class  TRGSignalBundle
 A class to represent a bundle of SignalVectors. More...
 
class  TRGSignalVector
 A class to represent a bundle of digitized signals. More...
 
class  TRGState
 A class to represent a state of multi bits. More...
 
class  TRGTime
 A class to represent a signal timing in the trigger system. More...
 
class  TRGUtilities
 A class to provide TRG utility functions. More...
 

Macros

#define TRGCDCFitAlreadyFitted   1;
 parameter to identify fit result
 
#define TRGCDCFitErrorFewHits   -1;
 parameter to identify fit result
 
#define TRGCDCFitFailed   -2;
 parameter to identify fit result
 
#define TRGCDCFitUnavailable   -3;
 parameter to identify fit result
 
#define TFITTER_INLINE_DEFINE_HERE
 
#define N_LAYERS   6
 number of layers
 
#define WireInnerLeft   0
 type of the wire
 
#define WireInnerRight   1
 type of the wire
 
#define WireLeft   2
 type of the wire
 
#define WireRight   3
 type of the wire
 
#define WireOuterLeft   4
 type of the wire
 
#define WireOuterRight   5
 type of the wire
 
#define MaxNeighbors   6
 Max number of neighbors.
 

Typedefs

typedef HepGeom::Point3D< double > Point3D
 3D point
 
typedef HepGeom::Vector3D< double > Vector3D
 3D Vector
 

Functions

int intersect (const TRGCDCLpar &lp1, const TRGCDCLpar &lp2, CLHEP::HepVector &v1, CLHEP::HepVector &v2)
 intersection
 
std::ostream & operator<< (std::ostream &o, TRGCDCLpar &s)
 ostream operator
 
float prob_ (float *, int *)
 prob function
 
static double err_dis_inv (double x, double y, double w, double a, double b)
 distance error
 
std::ostream & operator<< (std::ostream &o, const TRGCDCLpav &a)
 ostream operator
 
TRGCDCLpav operator+ (const TRGCDCLpav &la1, const TRGCDCLpav &la2)
 
bool rlrel (vector< unsigned > a, vector< unsigned > b)
 ...rlrel...
 
bool udrel (vector< unsigned > a, vector< unsigned > b)
 ...udrel...
 
bool mirel (vector< unsigned > a, vector< unsigned > b)
 ...mirel...
 
unsigned short FindCP1 (vector< unsigned > a)
 ...Find center Pattern1 from Pattern 2
 
unsigned FindP1C (vector< unsigned > a)
 ...Pattern1 Center...
 
void ftd_0_01 (bool *b, bool *i)
 
int doprescale (int f)
 select one event in number of prescale factor events
 
std::ostream & operator<< (std::ostream &, const TRGPoint2D &)
 ostrream operator
 
const HepGeom::Point3D< double > ORIGIN (0, 0, 0)
 Origin 3D point.
 
unsigned id (void) const
 returns id.
 
unsigned localId (void) const
 returns local id in a layer.
 
unsigned layerId (void) const
 returns layer id.
 
unsigned superLayerId (void) const
 returns super layer id.
 
unsigned localLayerId (void) const
 returns local layer id in a super layer.
 
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.
 
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.
 
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.
 
float cellSize (void) const
 calculates position and direction vector with sag correction. More...
 
virtual void clear (void)
 clears information.
 
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.
 
const TRGCDCCellHithit (void) const
 returns a pointer to a TRGCDCCellHit.
 
const TRGCDCCellHithit (const TRGCDCCellHit *)
 sets a pointer to TRGCDCWireHit.
 
virtual bool hasMember (const std::string &a) const
 returns true this has member named a.
 
int mcLR (void) const
 returns mc left/right information
 
virtual const TRGCDCCellcell (void) const
 returns a pointer to a TRGCDCWire.
 
unsigned state (void) const
 returns state.
 
float drift (unsigned) const
 returns drift distance.
 
float dDrift (unsigned) const
 returns drift distance error.
 
float drift (void) const
 returns drift distance.
 
float dDrift (void) const
 returns drift distance error.
 
const HepGeom::Point3D< double > & xyPosition (void) const
 returns position in the middle of wire. z is always zero, however.
 
unsigned state (unsigned newState)
 sets state. Meaning of bits are written below.
 
unsigned state (unsigned newState) const
 sets state. Meaning of bits are written below. (tmp)
 
const void * track (void) const
 assigns a pointer to a TTrack.
 
const void * track (const void *)
 assigns a pointer to a TTrack.
 
const void * track (const void *) const
 assigns a pointer to a TTrack. (tmp)
 
unsigned sequence (void) const
 returns sequential Length in one segment : this parameter is used in TCurlFinder now.
 
unsigned sequence (unsigned) const
 sets sequential length in one segment : this parameter is used in TCurlFinder now.
 
void setDriftTime (double driftTime, unsigned i)
 Sets drift time.
 
unsigned iCDCHit (void) const
 returns an index to CDCHit.
 
unsigned iCDCSimHit (void) const
 returns an index to CDCSimHit.
 
unsigned iMCParticle (void) const
 returns an index to MCParticle.
 
double pt (void) const override
 returns Pt.
 
const TRGPoint2Dcenter (void) const
 returns the circle center.
 
double radius (void) const
 returns radius.
 
virtual unsigned objectType (void) const override
 returns type.
 
void property (double charge, double radius, HepGeom::Point3D< double > center)
 sets circle properties.
 
const std::string & name (void) const
 returns name.
 
const HepGeom::Point3D< double > & center (void) const
 returns position of helix center(z = 0.);
 
const HepGeom::Point3D< double > & pivot (void) const
 returns pivot position.
 
double radius (void) const
 returns radious of helix.
 
CLHEP::Hep3Vector direction (double dPhi=0.) const
 returns direction vector after rotating angle dPhi in phi direction.
 
double dr (void) const
 returns dr.
 
double phi0 (void) const
 returns phi0.
 
double kappa (void) const
 returns kappa.
 
double dz (void) const
 returns dz.
 
double tanl (void) const
 returns tanl.
 
double curv (void) const
 returns curvurture.
 
const CLHEP::HepVector & a (void) const
 returns helix parameters.
 
const CLHEP::HepSymMatrix & Ea (void) const
 returns error matrix.
 
const CLHEP::HepVector & a (const CLHEP::HepVector &newA)
 sets helix parameters.
 
const CLHEP::HepSymMatrix & Ea (const CLHEP::HepSymMatrix &newdA)
 sets helix paramters and error matrix.
 
double bFieldZ (double)
 sets and returns z componet of the magnetic field.
 
double bFieldZ (void) const
 returns z componet of the magnetic field.
 
double sinPhi0 (void) const
 returns sin(phi0).
 
double cosPhi0 (void) const
 return cos(phi0).
 
std::string name (void) const
 returns name.
 
unsigned setEntry (unsigned serialId, unsigned n) override
 Sets entry.
 
void clear (void) override
 clear all entries.
 
void clearCells (void)
 Clears entires only.
 
unsigned entry (unsigned id) const override
 returns entry in a cell.
 
unsigned entry (unsigned x, unsigned y) const override
 returns entry in a cell.
 
int maxEntry (void) const override
 returns max. entry in a plane.
 
virtual unsigned nActiveCellsInPattern (void) const
 returns # of active cells in the pattern.
 
void add (unsigned cellId, int weight) override
 Add to a cell.
 
float charge (void) const
 returns charge for this plane.
 
float charge (float charge)
 sets and returns charge for this plane.
 
std::string name (void) const
 returns name.
 
unsigned nX (void) const
 returns # of x bins.
 
float xMin (void) const
 returns min. of x.
 
float xMin (float newXMin)
 sets and returns min. of x.
 
float xMax (void) const
 returns max. of x.
 
float xMax (float newXMax)
 sets and returns max. of x.
 
float xSize (void) const
 returns size of x bin.
 
unsigned nY (void) const
 return # of y bins.
 
float yMin (void) const
 returns min. of y.
 
float yMin (float newYMin)
 sets and returns min. of y.
 
float yMax (void) const
 returns max. of y.
 
float yMax (float newYMax)
 sets and returns max. of y.
 
float ySize (void) const
 returns size of y bin.
 
unsigned serialId (unsigned x, unsigned y) const
 returns serial ID for position (x, y).
 
unsigned serialId (const TRGPoint2D &p) const
 returns serial ID for position p.
 
TRGPoint2D position (unsigned x, unsigned y) const
 returns position in Hough plain for a cell (x, y)..
 
std::vector< unsigned > neighbors (unsigned serialID, unsigned windowSize=1) const
 returns neighbors.
 
void setRegion (std::vector< unsigned > *)
 Sets region.
 
const std::vector< std::vector< unsigned > * > & regions (void) const
 returns regions.
 
unsigned neighbor (unsigned serialID, unsigned direction) const
 returns neighbor cell.
 
void id (unsigned serialId, unsigned &x, unsigned &y) const
 returns x and y for serialID.
 
void clearRegions (void)
 Clears regions.
 
virtual void clear (void)=0
 Clears all entries.
 
virtual void vote (float rx, float ry, int weight=1)
 Voring.
 
virtual void vote (float xOffset, int weight=1)
 Votes using a pattern.
 
const TRGCDCHoughTransformationtransformation (void) const
 returns Hough transformation object.
 
unsigned setEntry (unsigned serialId, unsigned n) override
 Sets entry.
 
void clear (void) override
 clear all entries.
 
void vote (float rx, float ry, int weight=1) override
 Votes.
 
unsigned entry (unsigned id) const override
 returns entry in a cell.
 
unsigned entry (unsigned x, unsigned y) const override
 returns count of a cell.
 
int maxEntry (void) const override
 returns max. count in a plane.
 
void add (unsigned cellId, int weight) override
 Add to a cell.
 
const std::vector< unsigned > & patternId (unsigned cellId) const
 returns pattern ID which activates specified cell.
 
void clear (void) override
 Clears all entries.
 
void registerPattern (unsigned id) override
 registers a pattern..
 
virtual unsigned nActiveCellsInPattern (unsigned layerId) const
 
void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const override
 dump debug info
 
void clear (void) override
 Clears all entries and regions.
 
void clearCells (void)
 Clears entires only.
 
void clear (unsigned layerId)
 Clears only specified layer ID.
 
void vote (float rx, float ry, int charge, unsigned layerId, int weight=1)
 Voting.
 
void vote (float rx, float ry, unsigned layerId, int weight=1)
 Voting. More...
 
void dump (unsigned layerId) const
 Dumps debug information.
 
void vote (unsigned layerId, unsigned localId, int weight=1)
 Voting. More...
 
void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const override
 Dumps debug information.
 
void registerPattern (unsigned layerId, unsigned id)
 registers a pattern..
 
const std::vector< unsigned > & patternId (unsigned layer, unsigned cellId) const
 returns pattern ID in a layer which activates specified cell.
 
void preparePatterns (unsigned layerId, unsigned nPatterns)
 allocate memory for patterns.
 
unsigned nLayers (void) const
 returns # of Hough Boolean layers.
 
unsigned setEntry (unsigned serialId, unsigned layerId, unsigned n)
 Sets entry.
 
std::string name (void) const
 returns name.
 
std::string name (void) const
 Operators. More...
 
unsigned id (void) const
 returns id.
 
unsigned superLayerId (void) const
 returns super layer id.
 
unsigned localLayerId (void) const
 returns local layer id in a super layer.
 
float offset (void) const
 returns offset.
 
int nShifts (void) const
 returns shifts. (non-zero for stereo layers)
 
unsigned nCells (void) const
 returns # of cells.
 
bool axial (void) const
 returns true if this is an axial layer.
 
bool stereo (void) const
 returns true if this is a stereo layer.
 
unsigned axialStereoLayerId (void) const
 returns id of axial or stereo id.
 
unsigned axialStereoSuperLayerId (void) const
 returns id of axial or stereo super layer id.
 
float cellSize (void) const
 returns cell size.
 
const std::string stereoType (void) const
 returns "A" or "U" or "V" depending on stereo type.
 
float innerRadius (void) const
 sets and returns inner radius.
 
float outerRadius (void) const
 sets and returns outer radius.
 
const std::string & name (void) const
 return name.
 
const TRGCDCCellHithit (void) const
 returns a pointer to a hit.
 
TRGCDCTracktrack (void) const
 returns a pointer to a track.
 
const TRGCDCCellHithit (const TRGCDCCellHit *)
 sets a pointer to a hit.
 
TRGCDCTracktrack (TRGCDCTrack *)
 sets a pointer to a track.
 
void update (const HepGeom::Point3D< double > &onTrack, const HepGeom::Point3D< double > &onWire, unsigned leftRight, double pull)
 sets results of fitting.
 
double pull (void) const
 returns pull.
 
double pull (double)
 sets pull.
 
const HepGeom::Point3D< double > & positionOnWire (void) const
 returns the closest point on wire to a track.
 
const HepGeom::Point3D< double > & positionOnTrack (void) const
 returns the closest point on track to wire.
 
const HepGeom::Point3D< double > & positionOnWire (const HepGeom::Point3D< double > &)
 sets and returns the closest point on wire to a track.
 
const HepGeom::Point3D< double > & positionOnWire (double p[3])
 sets and returns the closest point on wire to a track.
 
const HepGeom::Point3D< double > & positionOnTrack (const HepGeom::Point3D< double > &)
 sets and returns the closest point on track to wire.
 
const HepGeom::Point3D< double > & positionOnTrack (double p[3])
 sets and returns the closest point on track to wire.
 
unsigned leftRight (void) const
 returns left-right. 0:left, 1:right, 2:wire
 
unsigned leftRight (unsigned)
 sets left-right. 0:left, 1:right, 2:wire
 
double dPhi (void) const
 returns dPhi to the closest point.
 
double dPhi (double)
 sets and returns dPhi to the closest point.
 
const HepGeom::Point3D< double > & position (void) const
 returns position.
 
const HepGeom::Point3D< double > & position (const HepGeom::Point3D< double > &)
 sets and returns position.
 
const HepGeom::Point3D< double > & conf (const HepGeom::Point3D< double > &conf)
 conf 3D point
 
TRGCDCLinklink (void) const
 returns a pointer to a TRGCDCLink.
 
TRGCDCLinklink (TRGCDCLink *)
 sets a pointer to a TRGCDCLink.
 
double distance (void) const
 returns distance between point on wire and on track.
 
const HepGeom::Point3D< double > & xyPosition (void) const
 returns middle position of a wire. z componet is 0.
 
float drift (unsigned) const
 returns drift distance of left or right.
 
float drift (float, unsigned)
 sets and returns drift distance of left or right.
 
float dDrift (unsigned) const
 returns drift distance error of left or right.
 
float dDrift (float, unsigned)
 sets and returns drift distance error of left or right.
 
float drift (void) const
 returns drift distance.
 
float dDrift (void) const
 returns drift distance error.
 
static void clearBufferSL (void)
 clear buffers
 
const TRGCDCCellcell (void) const
 returns a pointer to a cell.
 
 TRGCDCLpar ()
 Constructor.
 
 TRGCDCLpar (const TRGCDCLpar &)
 Constructors and destructor.
 
const TRGCDCLparoperator= (const TRGCDCLpar &)
 assignment operator(s)
 
void rotate (double c, double s)
 private member functions
 
void move (double x, double y)
 private member functions
 
double check () const
 private const member functions
 
void neg ()
 member functions
 
double d0 (double x, double y) const
 private const member functions
 
double d (double x, double y) const
 const member functions
 
double dr (double x, double y) const
 const member functions
 
double r_max () const
 private const member functions
 
double arcfun (double xh, double yh) const
 private const member functions
 
int sd (double r, double x, double y, double limit, double &s, double &d) const
 const member functions
 
CLHEP::HepVector Hpar (const HepGeom::Point3D< double > &pivot) const
 const member functions
 
const TRGCDCLpavoperator= (const TRGCDCLpav &)
 assignment operator(s) More...
 
 TRGCDCLpav (const TRGCDCLpav &)
 Constructors and destructor.
 
void clear ()
 member functions for clear
 
std::string name (void) const
 returns name.
 
std::string name (void) const
 returns name.
 
std::string name (void) const
 returns name.
 
const std::vector< int > & trackListMC (void) const
 returns MC track list which contributes to CDC hits.
 
const TRGCDCTrackBasetrack (void) const
 returns a track.
 
unsigned nContributors (void) const
 returns /# of contributors.
 
const std::vector< const TRGCDCWire * > & wires (void) const
 returns a vector containing pointers to a wire.
 
const TRGCDCWireoperator[] (unsigned id) const
 returns a wire.
 
const TRGSignalsignal (void) const override
 returns trigger output. Null will returned if no signal.
 
const TRGCDCSegmentHithit (const TRGCDCSegmentHit *)
 sets a pointer to a TRGCDCSegmentHit.
 
const TRGCDCSegmentHithit (void) const
 returns a pointer to a TRGCDCSegmentHit.
 
void addStoreHit (const CDCTriggerSegmentHit *)
 sets a pointer to a CDCTriggerSegmentHit.
 
const std::vector< const CDCTriggerSegmentHit * > storeHits (void) const
 returns a pointer to a CDCTriggerSegmentHit.
 
const TRGCDCLUTLUT (void) const
 returns LUT
 
const TRGCDCWirecenter (void) const
 returns a center wire.
 
const TRGSignalsignal (void) const
 returns trigger output. Null will returned if no signal.
 
const TRGCDCHelixhelix (void) const
 returns helix parameter.
 
void setHelix (TRGCDCHelix &helix)
 Set helix parameter.
 
virtual const CLHEP::Hep3Vector & p (void) const override
 returns momentum vector.
 
virtual double pt (void) const override
 returns Pt.
 
virtual const CLHEP::Hep3Vector & x (void) const override
 returns position vector.
 
void set2DFitChi2 (double)
 Set 2D fit chi2.
 
double get2DFitChi2 (void) const
 Returns 2D fit chi2.
 
void set3DFitChi2 (double)
 Set 3D fit chi2.
 
double get3DFitChi2 (void) const
 Returns 3D fit chi2.
 
void setDebugValue (EDebugValueType const &moduleName, bool flag)
 Set debug value.
 
int getDebugValue (EDebugValueType const &moduleName) const
 Get debug value.
 
std::string name (void) const
 returns name.
 
std::string name (const std::string &newName)
 sets and returns name.
 
int status (void) const
 returns status.
 
virtual const CLHEP::Hep3Vector & p (void) const
 returns momentum vector.
 
virtual const CLHEP::Hep3Vector & x (void) const
 returns position vector.
 
virtual double pt (void) const
 returns Pt.
 
bool fitted (void) const
 returns true if fitted.
 
void setFitted (bool fitted)
 set fit status
 
virtual unsigned objectType (void) const
 returns object type.
 
double charge (void) const
 returns charge.
 
double charge (double c)
 sets and returns charge.
 
const TRGCDCFitterfitter (void) const
 returns a pointer to a default fitter.
 
const TRGCDCFitterfitter (const TRGCDCFitter *)
 sets a default fitter.
 
void setTrackID (int trackID)
 set track ID.
 
int getTrackID ()
 get track ID.
 
unsigned id (void) const
 returns an id started from 0.
 
int status (void) const
 returns status.
 
int pType (void) const
 returns particle type.
 
const TRGCDCTrackMCmother (void) const
 returns a pointer to a mother.
 
const TRGCDCTrackMCchild (unsigned i) const
 returns a pointer to i'th child.
 
const CLHEP::HepLorentzVector & p (void) const
 returns momentum vector.
 
const CLHEP::Hep3Vector & v (void) const
 returns position vector.
 
std::string name (void) const
 returns name.
 
int debugLevel (void) const
 returns debug level.
 
int debugLevel (int) const
 sets and returns debug level.
 
unsigned nLocalLayers (unsigned superLayerId) const
 returns # of wire layers in a super layer. More...
 
const TRGCDCLayerlayer (unsigned id) const
 returns a pointer to a layer. 0 will be returned if 'id' is invalid.
 
const std::vector< TRGCDCLayer * > * superLayer (unsigned id) const
 returns a pointer to a super-layer. More...
 
float fudgeFactor (void) const
 returns fudge factor for drift time error.
 
float fudgeFactor (float)
 sets and returns fudge factor for drift time error.
 
std::string versionCDC (void) const
 returns CDC version.
 
unsigned nWires (void) const
 return # of wires.
 
unsigned nSuperLayers (void) const
 returns # of super layers.
 
unsigned nStereoLayers (void) const
 returns # of stereo layers.
 
unsigned nAxialLayers (void) const
 return # of axial layers.
 
unsigned nAxialSuperLayers (void) const
 return # of axial super layers.
 
unsigned nStereoSuperLayers (void) const
 returns # of stereo super layers.
 
unsigned nLayers (void) const
 return # of layers.
 
float cellWidth (unsigned superLayerId) const
 returns cell width in unit of radian.
 
float superLayerR (unsigned superLayerId) const
 returns inner radius of super layer.
 
float superLayerR2 (unsigned superLayerId) const
 returns (inner radius)^2 of super layer.
 
const TRGCDCSegmentsegment (unsigned id) const
 returns a track segment.
 
const TRGCDCSegmentaxialSegment (unsigned lyrId, unsigned id) const
 returns a track segment in axial layers. (lyrId is axial #)
 
const TRGCDCSegmentstereoSegment (unsigned lyrId, unsigned id) const
 returns a track segment in stereo layers. (lyrId is stereo #)
 
unsigned nSegments (void) const
 returns # of track segments.
 
const TRGClocksystemClock (void) const
 calculates corrected drift time. More...
 
const TRGClocksystemClockFE (void) const
 returns the system clock of the front-end
 
const TRGClockTDCClock (void) const
 returns the system clock of the trigger TDC after mergers (2 * front-end binwidth)
 
const TRGClockdataClock (void) const
 returns the data clock.
 
double systemOffsetMC (void) const
 returns the system offset in MC.
 
std::vector< const TRGCDCSegmentHit * > segmentHits (void) const
 returns a list of TRGCDCSegmentHit. More...
 
std::vector< const TRGCDCSegmentHit * > segmentHits (unsigned) const
 returns a list of TRGCDCSegmentHit in a super layer N. More...
 
std::vector< const TRGCDCSegmentHit * > axialSegmentHits (unsigned) const
 returns a list of TRGCDCSegmentHit in a axial super layer N. More...
 
std::vector< const TRGCDCSegmentHit * > stereoSegmentHits (unsigned) const
 returns a list of TRGCDCSegmentHit in a stereo super layer N. More...
 
const TRGCDCFrontEndfrontEnd (unsigned id) const
 returns a front-end board.
 
const TRGCDCMergermerger (unsigned id) const
 returns a merger board.
 
TRGCDCTrackSegmentFindertsfboard (unsigned id) const
 returns a TSF board.
 
const TRGCDCTracker2Dtracker2D (unsigned id) const
 returns a 2D tracker board.
 
const TRGCDCLayersegmentLayer (unsigned id) const
 returns a pointer to a track segment layer. More...
 
unsigned nSegmentLayers (void) const
 returns # of track segment layers.
 
unsigned mode (void) const
 sets simulation mode.
 
unsigned mode (unsigned)
 sets simulation mode.
 
unsigned firmwareSimulationMode (void) const
 returns firmware simulation mode.
 
int getReturnValue (void) const
 gets return value for trg cdc module.
 
void setReturnValue (int)
 sets return value for trg cdc module.
 
int firmwareSimulationStart (void) const
 returns start clock of the firmware simulation in FE clock.
 
int firmwareSimulationStop (void) const
 returns stop clock of the firmware simulation in FE clock.
 
int firmwareSimulationStartDataClock (void) const
 returns start clock of the firmware simulation in data clock.
 
int firmwareSimulationStopDataClock (void) const
 returns stop clock of the firmware simulation in data clock.
 
const TRGCDCWireHithit (const TRGCDCWireHit *)
 returns a pointer to a TRGCDCWireHit.
 
const TRGCDCWireHithit (void) const
 returns a pointer to a TRGCDCWireHit.
 
const TRGCDCWireHitMChit (TRGCDCWireHitMC *)
 appends a pointer to TRGCDCWireHitMC.
 
void addSignal (TRGSignal &newSignal)
 set signal |= newSignal
 
bool consective (const TRGCDCWire &) const
 returns true if a given wire is consective in a layer.
 
bool adjacent (const TRGCDCWire &) const
 returns true if a given wire is adjacent.
 
int localIdForPlus (void) const
 returns localId but if maxLocalId, return -1.
 
int localIdForMinus (void) const
 returns localId but if 0, return maxLocalId + 1.
 
const TRGSignalsignal (void) const override
 returns an input to the trigger. This is sync'ed to 1GHz clock.
 
const TRGCDCWireHitMCmc (void) const
 This will be removed.
 
const TRGCDCWireHitMCmc (TRGCDCWireHitMC *)
 This will be removed.
 
unsigned iCDCSimHit (void) const
 return index of CDCSimHit
 
float distance (void) const
 returns drift distance.
 
const HepGeom::Point3D< double > & hitPosition (void) const
 returns hit position.
 
const HepGeom::Point3D< double > & entrance (void) const
 returns an entrance point.
 
const HepGeom::Vector3D< double > & direction (void) const
 returns vector from entrance to exit point.
 
int leftRight (void) const
 returns left or right.
 
const TRGCDCWirewire (void) const
 returns a pointer to a TRGCDCWire.
 
const TRGCDCTrackMChep (void) const
 returns a pointer to a GEN_HEPEVT.
 
const TRGCDCWireHithit (void) const
 returns a pointer to a TRGCDCWireHit.
 
const CLHEP::Hep3Vector & momentum (void) const
 returns momentum vector at the entrance.
 
 TRGCDCCell (unsigned id, unsigned localId, const TRGCDCLayer &layer, const HepGeom::Point3D< double > &forwardPosition, const HepGeom::Point3D< double > &backwardPosition)
 Constructor.
 
virtual ~TRGCDCCell ()
 Destructor.
 
virtual void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
 
int localIdDifference (const TRGCDCCell &) const
 returns local id difference.
 
 TRGCDCCellHit (const TRGCDCCell &, unsigned indexCDCHit=0, unsigned indexCDCSimHit=0, unsigned indexMCParticle=0, float driftLeft=0, float driftLeftError=0, float driftRight=0, float driftRightError=0, int mcLRflag=0, float fudgeFacgtor=1)
 Constructor.
 
virtual ~TRGCDCCellHit ()
 Destructor.
 
virtual void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
 
HepGeom::Point3D< double > position (unsigned) const
 returns left position. z is always zero.
 
static int sortById (const TRGCDCCellHit **a, const TRGCDCCellHit **b)
 Sort function.
 
const CDCHithit (void) const
 Access to CDCHit.
 
const CDCSimHitsimHit (void) const
 Access to CDCSimHit.
 
const MCParticlemcParticle (void) const
 Access to MCParticle.
 
virtual ~TRGCDCCircle ()
 Destructor.
 
virtual void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const override
 dumps debug information.
 
int approach2D (TRGCDCLink &) const override
 calculate closest approach. Error was happened if return value is not zero.
 
 TRGCDCEventTime (const TRGCDC &, bool makeRootFile)
 constructor of TRGCDCEventTime class
 
virtual ~TRGCDCEventTime ()
 destructor of TRGCDCEventTime class
 
void initialize (void)
 initialize the class
 
void doit (int ver, bool print)
 Calculate T0 based on ver.
 
void hitcount (void)
 hit count of TS
 
void hist (void)
 making hostogram
 
void oldVer (void)
 old version of calculation function
 
void printFirm (void)
 Print info in firmware level.
 
int getT0 (void) const
 Calculate T0.
 
void terminate (void)
 terminate function
 
 TRGCDCEventTimeFinder (const std::string &name, const TRGClock &systemClock, const TRGClock &dataClock, const TRGClock &userClockInput, const TRGClock &userClockOutput)
 Constructor.
 
 ~TRGCDCEventTimeFinder ()
 Destructor.
 
void push_back (const TRGCDCTrackSegmentFinder *)
 push back the TRGCDCTrackSegmentFinder pointer
 
void simulate (void)
 Firmware simulation. yi.
 
 TRGCDCFitter (const std::string &name)
 Constructor.
 
virtual ~TRGCDCFitter ()
 Destructor.
 
void fitDone (TRGCDCTrackBase &) const
 sets the fitted flag. (Bad implementation)
 
void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dump debug info
 
 TRGCDCFitter3D (const std::string &name, const std::string &rootFitter3DFile, const TRGCDC &, const std::map< std::string, bool > &flags)
 Constructor.
 
virtual ~TRGCDCFitter3D ()
 Destructor.
 
void initialize ()
 Initialization.
 
int doit (std::vector< TRGCDCTrack * > &trackList)
 Does track fitting.
 
int doitComplex (std::vector< TRGCDCTrack * > &trackList)
 Does track fitting using JSignals.
 
static double calPhi (TRGCDCSegmentHit const *segmentHit, double eventTime)
 Utility functions.
 
void saveVhdlAndCoe ()
 Functions for saving. More...
 
void saveAllSignals ()
 Saves all signals for debugging.
 
void saveIoSignals ()
 Saves all I/O signals for debugging.
 
static void getMCValues (const TRGCDC &m_cdc_in, TRGCDCTrack *aTrack, std::map< std::string, double > &m_mConstD_in, std::map< std::string, double > &m_mDouble_in, std::map< std::string, std::vector< double > > &m_mVector_in)
 Function for mc debugging.
 
bool isAxialTrackFull (TRGCDCTrack &aTrack)
 Checks if axial track has 5 TSs. One per each superlayer.
 
bool isStereoTrackFull (TRGCDCTrack &aTrack)
 Checks if stereo track has 4 TSs. One per each superlayer.
 
static void findHitAxialSuperlayers (TRGCDCTrack &aTrack, std::vector< double > &useAxSL, bool printError)
 Finds which axial superlayers has TSs. useAxSL array indicating hit superlayers.
 
static void findHitStereoSuperlayers (TRGCDCTrack &aTrack, std::vector< double > &useStSL, bool printError)
 Finds which stereo superlayers has TSs. useStSL array indicating hit superlayers.
 
void removeImpossibleStereoSuperlayers (std::vector< double > &useStSL)
 Removes TSs that are not possible with track Pt.
 
static void selectAxialTSs (TRGCDCTrack &aTrack, std::vector< int > &bestTSIndex)
 Selects priority TSs when there are multiple candidate TSs for a superlayer.
 
static int do2DFit (TRGCDCTrack &aTrack, std::map< std::string, bool > &m_mBool_in, std::map< std::string, double > &m_mConstD_in, std::map< std::string, std::vector< double > > &m_mConstV_in, std::map< std::string, double > &m_mDouble_in, std::map< std::string, std::vector< double > > &m_mVector_in)
 Does 2D fit. Returns 0 if fit is done successfully. m_mBool should have fIsPrintError, fmcLR, fLRLUT, fmcLR, f2DFit, f2DFitDrift. m_mConstD should have Trg_PI. m_mConstV should have nWires, driftPhi2DError, wirePhi2DError, rr, rr2D.
 
void print3DInformation (int iTrack)
 Print's information for debugging 3D.
 
void terminate ()
 Termination.
 
std::string version (void) const
 Gets version of class.
 
std::string name (void) const
 Gets name of class.
 
static void getStereoGeometry (std::map< std::string, std::vector< double > > &stGeometry)
 Get stereo geometry.
 
static void getStereoXt (std::vector< double > const &stPriorityLayer, std::vector< std::vector< double > > &stXts, bool isSimple=0)
 Get stereo Xt.
 
static void getConstants (std::map< std::string, double > &mConstD, std::map< std::string, std::vector< double > > &mConstV, bool isXtSimple=0)
 Get constants for firmwareFit.
 
 TRGCDCFrontEnd (const std::string &name, boardType type, const TRGClock &systemClock, const TRGClock &dataClock, const TRGClock &userClock)
 Constructor.
 
virtual ~TRGCDCFrontEnd ()
 Destructor.
 
static std::string version (void)
 returns version.
 
boardType type (void) const
 returns type.
 
static int implementation (const boardType &type, std::ofstream &)
 make a VHDL component file. More...
 
static int implementationPort (const boardType &type, std::ofstream &)
 writes a port map.
 
void push_back (const TRGCDCWire *)
 push back TRGCDCWire for this Front-end
 
void dump (const std::string &message="", const std::string &pre="") const
 dumps contents. More...
 
void simulate (void)
 simulates firmware.
 
void dump_log (void) const
 Dump all the details of _mosb into a .log file, do it in the end of simulate()
 
void dump_log_innerInside (void) const
 Dump all the details of _mosb into a .log file, for innerInside FE.
 
void dump_log_innerOutside (void) const
 Dump all the details of _mosb into a .log file, for innerOutside FE.
 
void dump_log_outerInside (void) const
 Dump all the details of _mosb into a .log file, for outerInside FE.
 
void dump_log_outerOutside (void) const
 Dump all the details of _mosb into a .log file, for outerOutside FE.
 
static bool set_exception (bool)
 set to throw exception or not
 
static bool set_print (bool)
 set to print debug info or not
 
static void set_limits (const CLHEP::HepVector &a_min, const CLHEP::HepVector &a_max)
 set limits for helix parameters
 
 TRGCDCHelix (const HepGeom::Point3D< double > &pivot, const CLHEP::HepVector &a, const CLHEP::HepSymMatrix &Ea)
 Constructor with pivot, helix parameter a, and its error matrix.
 
 TRGCDCHelix (const HepGeom::Point3D< double > &pivot, const CLHEP::HepVector &a)
 Constructor without error matrix.
 
 TRGCDCHelix (const HepGeom::Point3D< double > &position, const CLHEP::Hep3Vector &momentum, double charge)
 Constructor with position, momentum, and charge.
 
virtual ~TRGCDCHelix ()
 Destructor.
 
HepGeom::Point3D< double > x (double dPhi=0.) const
 returns position after rotating angle dPhi in phi direction.
 
double * x (double dPhi, double p[3]) const
 returns position after rotating angle dPhi in phi direction.
 
HepGeom::Point3D< double > x (double dPhi, CLHEP::HepSymMatrix &Ex) const
 returns position and convariance matrix(Ex) after rotation.
 
CLHEP::Hep3Vector momentum (double dPhi=0.) const
 returns momentum vector after rotating angle dPhi in phi direction.
 
CLHEP::Hep3Vector momentum (double dPhi, CLHEP::HepSymMatrix &Em) const
 returns momentum vector after rotating angle dPhi in phi direction.
 
CLHEP::HepLorentzVector momentum (double dPhi, double mass) const
 returns 4momentum vector after rotating angle dPhi in phi direction.
 
CLHEP::HepLorentzVector momentum (double dPhi, double mass, CLHEP::HepSymMatrix &Em) const
 returns 4momentum vector after rotating angle dPhi in phi direction.
 
CLHEP::HepLorentzVector momentum (double dPhi, double mass, HepGeom::Point3D< double > &x, CLHEP::HepSymMatrix &Emx) const
 returns 4momentum vector after rotating angle dPhi in phi direction.
 
const HepGeom::Point3D< double > & pivot (const HepGeom::Point3D< double > &newPivot)
 sets pivot position.
 
void set (const HepGeom::Point3D< double > &pivot, const CLHEP::HepVector &a, const CLHEP::HepSymMatrix &Ea)
 sets helix pivot position, parameters, and error matrix.
 
TRGCDCHelixoperator= (const TRGCDCHelix &)
 Copy operator.
 
void updateCache (void)
 update Caches
 
CLHEP::HepMatrix delApDelA (const CLHEP::HepVector &ap) const
 Mathmatical functions.
 
CLHEP::HepMatrix delXDelA (double phi) const
 Mathmatical functions.
 
CLHEP::HepMatrix delMDelA (double phi) const
 Mathmatical functions.
 
CLHEP::HepMatrix del4MDelA (double phi, double mass) const
 Mathmatical functions.
 
CLHEP::HepMatrix del4MXDelA (double phi, double mass) const
 Mathmatical functions.
 
void ignoreErrorMatrix (void)
 unsets error matrix. Error calculations will be ignored after this function call until an error matrix be set again. 0 matrix will be return as a return value for error matrix when you call functions which returns an error matrix.
 
void debugPrint (void) const
 print debug info
 
void checkValid (void)
 check validity
 
 TRGCDCHough3DFinder (const TRGCDC &, bool makeRootFile, int finderMode)
 Contructor.
 
 ~TRGCDCHough3DFinder ()
 Destructor.
 
void terminate (void)
 Termination method.
 
void doitFind (std::vector< TRGCDCTrack * > &trackList)
 Finds tracks using tracklist.
 
void perfectFinder (std::vector< TRGCDCTrack * > &trackList, unsigned j, std::vector< const TRGCDCSegmentHit * > &mcTSList)
 Perfect 3D finder for a track.
 
void doitPerfectly (std::vector< TRGCDCTrack * > &trackList)
 Perfect 3D finder for a tracklist.
 
void findNumberOfHitSuperlayersForMcParticles (std::vector< std::vector< const TRGCDCSegmentHit * > > &p_stTSs, std::map< unsigned, unsigned > &numberTSsForParticle)
 Finds number of hit superlayers for each mc particle.
 
std::string version (void) const
 returns version.
 
 TRGCDCHoughFinder (const std::string &name, const TRGCDC &, unsigned peakMin, const std::string &mappingFilePlus, const std::string &mappingFileMinus, unsigned doit)
 Contructor.
 
virtual ~TRGCDCHoughFinder ()
 Destructor.
 
int doFindingTrasan (std::vector< unsigned > peaks[], std::vector< TRGCDCTrack * > &trackList2D) const
 do track finding. (trasan version)
 
std::vector< TRGCDCLink * > selectBestHits (const std::vector< TRGCDCLink * > &links) const
 selects the best(fastest) hits in each super layer.
 
int doFittingTrasan (std::vector< unsigned > peaks[], std::vector< TRGCDCTrack * > &trackList2DFitted) const
 do track fitting. (old trasan version)
 
void terminate ()
 termination.
 
static double calPhi (TRGCDCSegmentHit const *segmentHit, double eventTime)
 Utility functions.
 
static void calCosPhi (std::map< std::string, Belle2::TRGCDCJSignal > &mSignalStorage, std::map< std::string, Belle2::TRGCDCJLUT * > &mLutStorage)
 Calculate Cos Sin ? More...
 
static void calSinPhi (std::map< std::string, Belle2::TRGCDCJSignal > &mSignalStorage, std::map< std::string, Belle2::TRGCDCJLUT * > &mLutStorage)
 Calculate Cos Sin ?
 
static void rPhi (std::map< std::string, Belle2::TRGCDCJSignal > &mSignalStorage, std::map< std::string, Belle2::TRGCDCJLUT * > &mLutStorage)
 Calculate r * phi ?
 
void mappingByFile (const std::string &mappingFilePlus, const std::string &mappingFileMinus)
 creates mappings by a file.
 
int FindAndFit (std::vector< TRGCDCTrack * > &trackList2D, std::vector< TRGCDCTrack * > &trackList2DFitted)
 do track finding and fitting (wrapper that can choose between different versions).
 
int doFindingAndFittingTrasan (std::vector< TRGCDCTrack * > &trackList2D, std::vector< TRGCDCTrack * > &trackList2DFitted)
 do track finding and fitting (Trasan version).
 
int doFindingAndFitting (std::vector< TRGCDCTrack * > &trackList2D, std::vector< TRGCDCTrack * > &trackList2DFitted)
 do track finding and fitting (Kaiyu version).
 
int doFinding (std::vector< std::vector< unsigned >> peaks[], std::vector< TRGCDCTrack * > &trackList2D)
 do track finding. (kaiyu version)
 
int doFitting (std::vector< TRGCDCTrack * > &trackList2D, std::vector< TRGCDCTrack * > &trackList2DFitted)
 do track fitting. (kaiyu original) More...
 
TRGCDCTrackmakeTrack (const unsigned serialID, const unsigned pm) const
 Make a track from serial ID in Hough plane. More...
 
 TRGCDCHoughPlane (const std::string &name, const TRGCDCHoughTransformation &transformation, unsigned nX, float xMin, float xMax, unsigned nY, float yMin, float yMax)
 Contructor.
 
virtual ~TRGCDCHoughPlane ()
 Destructor.
 
void registerPattern (unsigned id) override
 Registers a pattern on a Hough plane with (r, phi=0).
 
virtual void voteByPattern (float xOffset, int weight=1)
 Votes using a pattern.
 
 TRGCDCHoughPlaneBase (const std::string &name, const TRGCDCHoughTransformation &transformation, unsigned nX, float xMin, float xMax, unsigned nY, float yMin, float yMax)
 Contructor.
 
virtual ~TRGCDCHoughPlaneBase ()
 Destructor.
 
void locationInPlane (float x0, float y0, float x1, float y1, unsigned &nFound, unsigned &iX0, unsigned &iY0, unsigned &iX1, unsigned &iY1) const
 returns cell positions in the region.
 
int maxEntryInRegion (unsigned id) const
 returns max. count in region.
 
virtual void vote (float rx, float ry, int charge, int weight=1)
 Voring.
 
virtual void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
 
 TRGCDCHoughPlaneBoolean (const std::string &name, const TRGCDCHoughTransformation &transformation, unsigned nX, float xMin, float xMax, unsigned nY, float yMin, float yMax)
 Contructor.
 
virtual ~TRGCDCHoughPlaneBoolean ()
 Destructor.
 
void vote (float rx, float ry, float charge, int weight=1)
 Votes with charge decision.
 
void voteUsedInTrasan (float rx, float ry, float charge, int weight=1)
 Votes with charge decision.
 
void registerPattern (unsigned id) override
 registers a pattern..
 
void preparePatterns (unsigned nPatterns)
 allocate memory for patterns.
 
void vote (unsigned patternId, int weight)
 Votes using registered pattern.
 
 TRGCDCHoughPlaneMulti (const std::string &name, const TRGCDCHoughTransformation &transformation, unsigned nX, float xMin, float xMax, unsigned nY, float yMin, float yMax, unsigned nLayers)
 Contructor.
 
virtual ~TRGCDCHoughPlaneMulti ()
 Destructor.
 
void vote (float rx, float ry, float charge, const TRGCDCHoughTransformation &hough, unsigned weight, unsigned layerId)
 vote
 
void merge (void)
 merge function
 
void vote (float phi, unsigned layerId, int weight)
 vote
 
 TRGCDCHoughPlaneMulti2 (const std::string &name, const TRGCDCHoughTransformation &transformation, unsigned nX, float xMin, float xMax, unsigned nY, float yMin, float yMax, unsigned nLayers)
 Contructor.
 
virtual ~TRGCDCHoughPlaneMulti2 ()
 Destructor.
 
void merge (void)
 Merge layers into one.
 
void mergeOuters (void)
 Merge outer layers into one.
 
 TRGCDCHoughTransformation (const std::string &name)
 Contructor.
 
virtual ~TRGCDCHoughTransformation ()
 Destructor.
 
virtual TRGPoint2D convert (const TRGPoint2D &) const
 converts Point2D(r, phi) in real plane into Point2D(r, phi) in Hough plane.
 
 TRGCDCHoughTransformationCircle (const std::string &name)
 Contructor.
 
virtual ~TRGCDCHoughTransformationCircle ()
 Destructor.
 
virtual float y (float xReal, float yReal, float x) const override
 returns Y coordinate in a Hough parameter plane.
 
virtual TRGPoint2D circleCenter (const TRGPoint2D &) const
 returns Point2D(phi, r) of a circle in real plane.
 
virtual TRGPoint2D convert (const TRGPoint2D &) const override
 converts Point2D(phi, r) in real plane into Point2D(phi, r) in Hough plane.
 
virtual bool diverge (float xReal, float yReal, float x0, float x1) const override
 returns true if Y diverges in given region.
 
virtual bool positiveDiverge (float xReal, float yReal, float x0, float x1) const override
 returns true if Y diverges in given region.
 
virtual bool negativeDiverge (float xReal, float yReal, float x0, float x1) const override
 returns true if Y diverges in given region.
 
std::string version (void) const
 returns version.
 
 TRGCDCJLUT (const std::string &name="no_name")
 Contructor.
 
 TRGCDCJLUT (const TRGCDCJLUT &in)
 Copy constructor.
 
virtual ~TRGCDCJLUT ()
 Destructor.
 
void setData (int inputBitsize, int outputBitSize, const std::string &filename, bool twoscomplement=0)
 set LookUpTable(LUT) data.
 
void setFunction (std::function< int(int)> function)
 set LUT function directly using int values.
 
int setFloatFunction (std::function< double(double)> function, TRGCDCJSignal const &input, TRGCDCJSignal const &minInv, TRGCDCJSignal const &maxInv, double outputToReal, int lutInputBitwidth, int lutOutputBitwidth)
 set LUT function using JSignals.
 
void setBitsize (int inputBitsize, int outputBitsize)
 set input & output bitsize.
 
void setOutputFlag (int outputFlag)
 set output flag.
 
void setInputBitsize (int inputBitsize)
 set input bitsize.
 
void setOutputBitsize (int outputBitsize)
 set output bitsize.
 
std::string getFileName () const
 get LUT filename
 
int getInputBitsize () const
 get input bitsize
 
int getOutputBitsize () const
 get output bitsize
 
std::function< int(int)> getFunction ()
 get LUT function using int values.
 
std::function< double(double)> getFloatFunction ()
 get LUT function using float values.
 
int getOutputFlag () const
 get output type.
 
int getOutputType () const
 get output type.
 
int getOutput (int) const
 get output using int values.
 
double getFloatOutput (double) const
 get output using float values.
 
void dump ()
 Print variables for LUT.
 
void makeCOE (std::string="")
 make COE file.
 
std::string operate (std::string out, std::string in, std::map< std::string, std::map< std::string, double > * > &m_intStorage)
 Operate on LUT. (Will be deprecated.)
 
const TRGCDCJSignal operate (TRGCDCJSignal const &in, TRGCDCJSignal &out)
 Returns LUT value. Out is LUT value + offset. (LUT value + offset do not obey addition bitsize rules.)
 
const std::string lutVhdlCode (std::string const &shiftOffsetInput) const
 Creates vhdlCode for lut.
 
 TRGCDCJSignal ()
 Constructor.
 
 TRGCDCJSignal (TRGCDCJSignalData *)
 Copy constructor.
 
 TRGCDCJSignal (int const &bitwidth, double const &value, double const &min, double const &max, int const &clock, TRGCDCJSignalData *)
 Actual to integer constructor with clock.
 
 TRGCDCJSignal (int const &bitwidth, double const &value, double const &min, double const &max, TRGCDCJSignalData *)
 Actual to integer constructor with clock set to 0.
 
 TRGCDCJSignal (signed long long const &intValue, double const &toReal, signed long long const &minInt, signed long long const &maxInt, double const &actual, double const &minActual, double const &maxActual, int const &finishClock, TRGCDCJSignalData *, bool b_slv=0)
 Integer constructor.
 
 TRGCDCJSignal (double const &value, double const &toReal, TRGCDCJSignalData *)
 Constant constructor.
 
 TRGCDCJSignal (std::vector< bool > const &slvValue, int const &finishClock, TRGCDCJSignalData *)
 Slv constructor.
 
TRGCDCJSignalassignTo (TRGCDCJSignal const &rhs, int targetClock, std::string &finalCode)
 Assign operator with setting target clock with outputing final code.
 
TRGCDCJSignalassignTo (TRGCDCJSignal const &rhs, int targetClock)
 Assign operator with setting target clock.
 
TRGCDCJSignaloperator<= (TRGCDCJSignal const &rhs)
 Assign operator.
 
const TRGCDCJSignal operator- () const
 Unary operator.
 
const TRGCDCJSignal operator+ (TRGCDCJSignal const &rhs) const
 Arithmetic add operator. More...
 
const TRGCDCJSignal operator- (TRGCDCJSignal const &rhs) const
 Arithmetic minus operator.
 
const TRGCDCJSignal operator* (TRGCDCJSignal const &rhs) const
 Arithmetic multiply operator.
 
void dump () const
 Methods.
 
const TRGCDCJSignal shift (int nBits, int operate=1) const
 Shift signal. Shift direction is right. operate=0 to change m_toReal(unit).
 
const TRGCDCJSignal offset (TRGCDCJSignal const &valueMin) const
 Outputs an offset signal which is an unsigned signal.
 
const TRGCDCJSignal invOffset (TRGCDCJSignal const &valueMin) const
 Outputs a signal that is not offset.
 
static void choose (TRGCDCJSignal &target, TRGCDCJSignal const &targetMin, TRGCDCJSignal const &targetMax, TRGCDCJSignal const &reference, std::vector< std::vector< TRGCDCJSignal > > data, int targetClock)
 Case method. More...
 
static void choose (TRGCDCJSignal &target, TRGCDCJSignal const &targetMin, TRGCDCJSignal const &targetMax, TRGCDCJSignal const &reference, std::vector< std::vector< TRGCDCJSignal > > &data)
 Chooes method. Also has input for target min and target max signal.
 
static void choose (TRGCDCJSignal &target, TRGCDCJSignal const &reference, std::vector< std::vector< TRGCDCJSignal > > data, int targetClock)
 Choose with target clock.
 
static void choose (TRGCDCJSignal &target, TRGCDCJSignal const &reference, std::vector< std::vector< TRGCDCJSignal > > &data)
 Choose method.
 
static void ifElse (std::vector< std::pair< TRGCDCJSignal, std::vector< std::pair< TRGCDCJSignal *, TRGCDCJSignal > > > > &data, int targetClock)
 If else implementation with target clock.
 
static void ifElse (std::vector< std::pair< TRGCDCJSignal, std::vector< std::pair< TRGCDCJSignal *, TRGCDCJSignal > > > > &data)
 If else implementation.
 
const TRGCDCJSignal limit (signed long long minInt, signed long long maxInt, double minActual, double maxActual) const
 Limits min and max values using specific integers. Use only for ifElse. Doesn't check overflow, underflow to be used in ifElse.
 
const TRGCDCJSignal limit (TRGCDCJSignal const &min, TRGCDCJSignal const &max) const
 Limits min and max values using JSignal. Use only for ifElse. Doesn't check overflow, underflow to be used in ifElse.
 
const TRGCDCJSignal resize (int bitwidth) const
 Resizes signal.
 
static const TRGCDCJSignal slvToSigned (TRGCDCJSignal const &in, double const &toReal, signed long long const &minInt, signed long long const &maxInt, double const &actual, double const &minActual, double const &maxActual, int const &finishClock)
 Change slv to signed with target clock.
 
static const TRGCDCJSignal slvToSigned (TRGCDCJSignal const &in)
 Change slv to signed.
 
static const TRGCDCJSignal slvToUnsigned (TRGCDCJSignal const &in, double const &toReal, signed long long const &minInt, signed long long const &maxInt, double const &actual, double const &minActual, double const &maxActual, int const &finishClock)
 Change slv to unsigned with target clock.
 
static const TRGCDCJSignal slvToUnsigned (TRGCDCJSignal const &in)
 Change slv to unsigned with target clock.
 
static const TRGCDCJSignal toSlv (TRGCDCJSignal const &in, int test)
 Change signal to std_logic_vector using vector<bool>. (Will be deprecated.)
 
static const TRGCDCJSignal toSlv (TRGCDCJSignal const &)
 Change singal to std_logic_vector.
 
static TRGCDCJSignal comp (TRGCDCJSignal const &lhs, std::string operate, TRGCDCJSignal const &rhs)
 Compare two signals.
 
void swap (TRGCDCJSignal &first, TRGCDCJSignal &second) const
 Swaps the TRGCDCJSignals.
 
void matchUnit (TRGCDCJSignal &first, TRGCDCJSignal &second) const
 Utilities. More...
 
void setName (std::string name)
 Setters, Getters Sets name of signal.
 
void setInt (signed long long value)
 Sets integer value of signal.
 
void setActual (double value)
 Sets float value of signal.
 
void setToReal (double value)
 Sets toReal factor of signal.
 
void setType (int type)
 Sets type of signal.
 
void setBitsize (int bitsize)
 Sets bitwidth of signal.
 
void setFinishClock (int finishClock)
 Sets finish clock of signal.
 
void setDebug (bool debug)
 Sets debug flag for signal.
 
void setPrintVhdl (bool printVhdl)
 Sets print flag for signal.
 
void setVhdlOutputFile (std::string filename)
 Sets ouptut VHDL filename.
 
void setCommonData (TRGCDCJSignalData *)
 Sets JSignalData to signal.
 
std::string getName () const
 Get name of signal.
 
int getType () const
 Get type of signal.
 
double getBitsize () const
 Get bitwidth of signal.
 
signed long long getInt () const
 Get integer value of signal.
 
signed long long getMinInt () const
 Get minimum integer value of signal.
 
signed long long getMaxInt () const
 Get maximum integer value of signal.
 
double getActual () const
 Get float value of signal.
 
double getMinActual () const
 Get minimum float value of signal.
 
double getMaxActual () const
 Get maximum float value of signal.
 
double getRealInt () const
 Get converted float value of integer.
 
double getRealMinInt () const
 Get converted float value of minimum integer.
 
double getRealMaxInt () const
 Get converted float value of maximum integer.
 
double getToReal () const
 Get toReal value of signal.
 
int getFinishClock () const
 Gets clock tick where signal is make.
 
const std::vector< std::pair< std::string, std::vector< int > > > getArgumentSignals () const
 Gets the signal names and values that made this signal.
 
TRGCDCJSignalDatagetCommonData () const
 Get the sharged JSignalData.
 
int calType () const
 Calculated what type the signal is.
 
int calType (double minValue) const
 Calculated the type using the argument.
 
int calBitwidth () const
 Calculates the bit width.
 
int calBitwidth (int type, signed long long minInt, signed long long maxInt)
 Calculates the bit width using the arguments.
 
int calFinishClock () const
 Claculates the clock tick where the signal is valid.
 
std::string getVhdlCode () const
 Gets the vhdl code for the signal.
 
bool getPrintVhdl () const
 Gets the print vhdl flag from common JSignalData class.
 
std::string getVhdlOutputFile () const
 Gets the vhdl output file name.
 
bool orderLargestBitsize (TRGCDCJSignal &large, TRGCDCJSignal &small) const
 Orders the TRGCDCJSignals by bitsize. Next priority is unsigned, signed, minus unsigned. 1: was swapped. 0: was not swapped.
 
signed long long calMaxInteger () const
 Calculate max value for a binary number.
 
signed long long calMinInteger () const
 Calculate min value for a binary number.
 
static const TRGCDCJSignal absolute (TRGCDCJSignal const &first)
 Absolute TRGCDCJSignal. Removes 1 bit if signed or minus unsigned.
 
static signed long long calInt (double value, TRGCDCJSignal const &mother)
 Calculates integer value with unit of a TRGCDCJSignal.
 
static void calVhdlTypeBitwidth (TRGCDCJSignal const &first, std::string &operation, TRGCDCJSignal const &second, int &type, int &bitwidth)
 Calculates vhdl bitwidth and type for operation.
 
void initArgumentSignals ()
 Initializes the argument signals for the signal.
 
static void combineArguments (TRGCDCJSignal const &first, TRGCDCJSignal const &second, TRGCDCJSignal &result)
 Combines arguments of signals.
 
void initVhdlCode ()
 Initializes the vhdl code.
 
void toSignedVhdlCode ()
 Changes signal type to signed type in VHDL.
 
void toUnsignedVhdlCode ()
 Changes signal type to unsigned type in VHDL.
 
static void vhdlCode (TRGCDCJSignal const &first, std::string operation, TRGCDCJSignal const &second, TRGCDCJSignal const &result, std::string &targtVhdlCode)
 Writes vhdl code using two signals.
 
static void vhdlCode (std::string operation, TRGCDCJSignal const &first, TRGCDCJSignal const &result, std::string &targetVhdlCode)
 Writes vhdl code using one signal.
 
static std::string replaceWithSignalNames (std::string const &fromVhdlCode, std::vector< std::pair< std::string, std::vector< int > > > const &fromVhdlSignals, int const &finishClock, std::map< std::string, std::vector< int > > &buffers)
 Writes final vhdl code.
 
static std::string assignVhdlCode (TRGCDCJSignal const &target, TRGCDCJSignal const &from)
 Writes the assign vhdl code.
 
static std::string chooseVhdlCode (TRGCDCJSignal const &target, TRGCDCJSignal const &reference, std::vector< std::vector< TRGCDCJSignal > > const &data)
 Writes the choose vhdl code.
 
static std::string ifElseVhdlCode (std::vector< std::pair< TRGCDCJSignal, std::vector< std::pair< TRGCDCJSignal *, TRGCDCJSignal > > > > const &data)
 Writes the ifElse vhdl code.
 
void printVhdl (std::string &vhdlCode)
 Prints vhdl code.
 
void checkInt (std::string name) const
 Checks underflow or overflow for TRGCDCJSignal.
 
static bool isSameSignal (TRGCDCJSignal const &lhs, TRGCDCJSignal const &rhs)
 Checks if signal is same signal.
 
static void valuesToMapSignals (std::vector< std::tuple< std::string, double, int, double, double, int > > const &inValues, Belle2::TRGCDCJSignalData *inCommonData, std::map< std::string, Belle2::TRGCDCJSignal > &outMap)
 Values => [name, value, bitwidth, min, max, clock] Changes values to signals.
 
static void mapSignalsToValues (std::map< std::string, Belle2::TRGCDCJSignal >const &inMap, std::vector< std::pair< std::string, int > > const &inChoose, std::vector< std::tuple< std::string, double, int, double, double, int > > &outValues)
 Choose => [signalName, FpgaEffects(=1)/NoFpgaEffects(=0)] Values => [name, value, bitwidth, min, max, clock] Changes signals to values.
 
 TRGCDCJSignalData ()
 Constructor for class.
 
void setVhdlOutputFile (std::string)
 Sets the filename for VHDL output.
 
void setPrintVhdl (bool)
 Sets if to print VHDL output.
 
void setPrintedToFile (bool)
 Set to remember that file was printed.
 
void setVhdlInProcess (std::string)
 Set the VHDL code that are in a process statement.
 
void setVhdlOutProcess (std::string)
 Set the VHDL code that is outside a process statement.
 
std::string getVhdlOutputFile () const
 Get the VHDL output code.
 
bool getPrintVhdl () const
 Gets the status of m_printVhdl.
 
bool getPrintedToFile () const
 Gets the status of m_printedToFile.
 
std::string getVhdlInProcess () const
 Gets the VHDL code that are in a process statement.
 
std::string getVhdlOutProcess () const
 Gets the VHDL code that are outside a process statement.
 
std::string getVhdlDefine () const
 Gets the VHDL code for define statement.
 
std::map< std::string, std::vector< int > > const & getSignals () const
 Gets the signals that were saved for one line of VHDL.
 
void printToFile ()
 Utilities Function to print VHDL code.
 
void buffersVhdlCode ()
 Function to print buffer VHDL code.
 
void signalsVhdlCode ()
 Function to print definition of signal VHDL code.
 
void entryVhdlCode ()
 Function to print entry VHDL code.
 
 TRGCDCLayer (unsigned id, unsigned superLayerId, unsigned localLayerId, unsigned axialStereoLayerId, unsigned axialStereoSuperLayerId, float offset, int nShifts, float cellSize, unsigned nCells, float innerRadius, float outerRadius)
 Constructor.
 
 TRGCDCLayer (unsigned id, const TRGCDCCell &w)
 Constructor for track segments.
 
virtual ~TRGCDCLayer ()
 Destructor.
 
void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
 
const TRGCDCCellcell (int id) const
 returns a pointer to a cell. 'id' can be negative or 'id' can be greater than 'nCells()'.
 
 TRGCDCLink (const TRGCDCLink &)
 Copy constructor.
 
virtual ~TRGCDCLink ()
 Destructor.
 
static unsigned nLayers (const std::vector< TRGCDCLink * > &links)
 returns # of layers.
 
static void nHits (const std::vector< TRGCDCLink * > &links, unsigned *nHits)
 returns # of hits per layer.
 
static void nHitsSuperLayer (const std::vector< TRGCDCLink * > &links, unsigned *nHits)
 returns # of hits per super layer.
 
void dump_base (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
 
void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
 
static void dump (const std::vector< TRGCDCLink * > &links, const std::string &message=std::string(""), const std::string &prefix=std::string(""))
 dumps TRGCDCLinks.
 
static void dump (const std::vector< const TRGCDCLink * > &links, const std::string &message=std::string(""), const std::string &prefix=std::string(""))
 dumps TRGCDCLinks.
 
static void dump (const TRGCDCLink &link, const std::string &message=std::string(""), const std::string &prefix=std::string(""))
 dumps TRGCDCLinks.
 
static unsigned nStereoHits (const std::vector< TRGCDCLink * > &links)
 returns # of stereo hits.
 
static unsigned nAxialHits (const std::vector< TRGCDCLink * > &links)
 returns # of axial hits.
 
static std::vector< TRGCDCLink * > axialHits (const std::vector< TRGCDCLink * > &links)
 returns axial hits.
 
static std::vector< TRGCDCLink * > stereoHits (const std::vector< TRGCDCLink * > &links)
 returns stereo hits.
 
static TRGCDCLinkinnerMost (const std::vector< TRGCDCLink * > &links)
 returns the inner-most link.
 
static TRGCDCLinkouterMost (const std::vector< TRGCDCLink * > &links)
 returns the outer-most link.
 
static void separateCores (const std::vector< TRGCDCLink * > &input, std::vector< TRGCDCLink * > &cores, std::vector< TRGCDCLink * > &nonCores)
 separate cores and non-cores.
 
static std::vector< TRGCDCLink * > cores (const std::vector< TRGCDCLink * > &input)
 separate cores and non-cores.
 
static bool sortById (const TRGCDCLink *a, const TRGCDCLink *b)
 sorts by ID.
 
static int sortByX (const TRGCDCLink *a, const TRGCDCLink *b)
 sorts by X position.
 
static unsigned width (const std::vector< TRGCDCLink * > &)
 returns width(wire cell unit) of given std::vector<TRGCDCLink *>. More...
 
static std::vector< TRGCDCLink * > edges (const std::vector< TRGCDCLink * > &)
 returns links which are edges. More...
 
static std::vector< TRGCDCLink * > sameLayer (const std::vector< TRGCDCLink * > &list, const TRGCDCLink &a)
 returns links which are in the same layer as 'a' or 'id'.
 
static std::vector< TRGCDCLink * > sameSuperLayer (const std::vector< TRGCDCLink * > &list, const TRGCDCLink &a)
 returns links which are in the same super layer as 'a' or 'id'.
 
static std::vector< TRGCDCLink * > sameLayer (const std::vector< TRGCDCLink * > &list, unsigned id)
 returns links which are in the same layer as 'a' or 'id'.
 
static std::vector< TRGCDCLink * > sameSuperLayer (const std::vector< TRGCDCLink * > &list, unsigned id)
 returns links which are in the same super layer as 'a' or 'id'.
 
static std::vector< TRGCDCLink * > inOut (const std::vector< TRGCDCLink * > &)
 returns links which are in the inner most and outer most layer. More...
 
static unsigned superLayer (const std::vector< TRGCDCLink * > &list)
 returns super layer pattern.
 
static unsigned superLayer (const std::vector< TRGCDCLink * > &list, unsigned minNHits)
 returns super layer pattern.
 
static unsigned nSuperLayers (const std::vector< TRGCDCLink * > &links)
 returns # of layers.
 
static unsigned nSuperLayers (const std::vector< TRGCDCLink * > &links, unsigned minNHits)
 returns # of layers.
 
static unsigned nMissingAxialSuperLayers (const std::vector< TRGCDCLink * > &links)
 returns # of missing axial super layers. More...
 
static const TRGCDCTrackMClinks2HEP (const std::vector< TRGCDCLink * > &links)
 returns TRGCDCTrackMC
 
static void nHitsSuperLayer (const std::vector< TRGCDCLink * > &links, std::vector< TRGCDCLink * > *list)
 returns hits list per super layer.
 
static std::string layerUsage (const std::vector< TRGCDCLink * > &links)
 usage of each layer
 
static void remove (std::vector< TRGCDCLink * > &list, const std::vector< TRGCDCLink * > &links)
 removes links from list if wire is same
 
static void initializeBuffers (void)
 initialize the Buffers
 
static void separate (const std::vector< TRGCDCLink * > &links, unsigned nLayers, std::vector< TRGCDCLink * > *layers)
 separates into layers.
 
const TRGCDCWirewire (void) const
 returns a pointer to a wire.
 
static void removeAll (void)
 destructs all TRGCDCLink objects. (Called by TRGCDC)
 
static void * operator new (size_t)
 new operator.
 
static void operator delete (void *)
 delete operator.
 
 Cpar (const TRGCDCLpar &)
 constructor of Cpar class
 
virtual ~TRGCDCLpar ()
 Destructor.
 
void circle (double x1, double y1, double x2, double y2, double x3, double y3)
 circle
 
CLHEP::HepMatrix dldc () const
 private const member functions
 
bool xy (double, double &, double &, int dir=0) const
 private const member functions
 
double x (double r) const
 private const member functions
 
double y (double r) const
 private const member functions
 
double phi (double r, int dir=0) const
 const member functions
 
void xhyh (double x, double y, double &xh, double &yh) const
 private const member functions
 
double s (double x, double y) const
 const member functions
 
double s (double r, int dir=0) const
 const member functions
 
CLHEP::HepVector center () const
 const member functions
 
 TRGCDCLpav ()
 Constructor.
 
virtual ~TRGCDCLpav ()
 Destructor.
 
void calculate_average (double x, double y, double w=1)
 member functions for calculation
 
void calculate_average (void)
 member functions for calculation
 
void calculate_average_n (double xxav, double yyav, double xyav, double xrrav, double yrrav, double rrrrav)
 private member function calculate_average_n
 
void calculate_average3 (double x, double y, double w=1)
 member functions for calculation
 
void calculate_average3 (void)
 member functions for calculation
 
double solve_lambda (void)
 private member function solve_lambda
 
double solve_lambda3 (void)
 private member function solve_lambda3
 
double calculate_lpar (void)
 member functions for calculation
 
double calculate_lpar3 (void)
 member functions for calculation
 
double fit (double x, double y, double w=1)
 member functions for fit
 
double fit ()
 member functions for fit
 
CLHEP::HepSymMatrix cov (int=0) const
 const member function cov
 
CLHEP::HepSymMatrix cov_c (int=0) const
 const member function cov_c
 
int extrapolate (double, double &, double &) const
 const member function for extrapolation
 
double similarity (double, double) const
 const member function similarity
 
void add_point (double x, double y, double w=1)
 member functions to add point
 
void add_point_frac (double x, double y, double w, double f)
 member functions to add point
 
void sub (double x, double y, double w=1, double a=0, double b=0)
 private member functions More...
 
const TRGCDCLpavoperator+= (const TRGCDCLpav &)
 assignment operator(s)
 
double prob () const
 const member function prob
 
double chi_deg () const
 const member function chi_deg
 
double delta_chisq (double x, double y, double w=1) const
 const member function for delta chisq
 
std::string version (void) const
 returns version.
 
 TRGCDCLUT ()
 Contructor.
 
virtual ~TRGCDCLUT ()
 Destructor.
 
int getValue (unsigned) const
 get LUT Values
 
void setDataFile (const std::string &filename, int)
 set LUT data.
 
static TRGCDCLUTgetLUT (const std::string &filename, int)
 get LUT from dictionary, load new LUT if it doesn't exist
 
 TRGCDCMerger (const std::string &name, unitType type, const TRGClock &systemClock, const TRGClock &dataClock, const TRGClock &userClockInput, const TRGClock &userClockOutput)
 Constructor.
 
virtual ~TRGCDCMerger ()
 Destructor.
 
static std::string version (void)
 return version.
 
unitType type (void) const
 return type.
 
static int implementation (const unitType &type, std::ofstream &)
 make a VHDL component file. More...
 
static int implementationPort (const unitType &type, std::ofstream &)
 writes a port map.
 
void push_back (const TRGCDCFrontEnd *)
 push back TRGCDCFrontEnd of this Merger
 
void dump (const std::string &message="", const std::string &pre="") const
 dumps contents. "message" is to select information to dump. "pre" will be printed in head of each line.
 
void simulate (void)
 simulates firmware.
 
void dump_log (void) const
 Dump all the details of _mosb into a .log file, do it in the end of simulate()
 
void dump_log_inner (void) const
 dump_log for inner Merger
 
void dump_log_outer (void) const
 dump_log for outer Merger
 
std::string version (void) const
 returns version.
 
 TRGCDCPeakFinder (const std::string &name)
 Contructor.
 
virtual ~TRGCDCPeakFinder ()
 Destructor.
 
void regions (TRGCDCHoughPlane &hp, const unsigned threshold) const
 Makes regions.
 
void findPeaksTrasan (TRGCDCHoughPlaneMulti2 &hp, const unsigned threshold, const bool centerIsPeak, std::vector< unsigned > &peakSerialIds) const
 do peak finding. This is a copy from "trasan".
 
void findPeaks (TRGCDCHoughPlaneMulti2 &hp, const unsigned threshold, std::vector< std::vector< unsigned >> &peaks) const
 do peak finding. Kaiyu's version using p1p2Methode.
 
void p1p2Methode (TRGCDCHoughPlane &hp, const unsigned threshold, std::vector< std::vector< unsigned >> &peaks) const
 Kaiyu's logic. Finds peaks from nested patterns.
 
std::string version (void) const
 returns version.
 
 TRGCDCPerfectFinder (const std::string &name, const TRGCDC &)
 Contructor.
 
virtual ~TRGCDCPerfectFinder ()
 Destructor.
 
int doit (std::vector< TRGCDCTrack * > &trackListClone, std::vector< TRGCDCTrack * > &trackList)
 do track finding.
 
int doitPerfectly (std::vector< TRGCDCTrack * > &trackList)
 do perfect finding.
 
 TRGCDCRelation (const TRGCDCTrackBase &track, const std::map< unsigned, unsigned > &relation)
 Constructor.
 
virtual ~TRGCDCRelation ()
 Destructor.
 
unsigned contributor (unsigned i=0) const
 returns i'th contributor of MCParticle.
 
const MCParticlemcParticle (unsigned i=0) const
 returns i'th contributor.
 
float purity (unsigned i=0) const
 returns i'th purity.
 
float purity3D (unsigned trkID) const
 returns purity for 3D for trkID particle which should be from 2D.
 
float efficiency3D (unsigned trkID, std::map< unsigned, unsigned > &numTSsParticle) const
 returns efficiency of TS for 3D
 
void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 Dumps debug information.
 
 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.
 
void initialize (void)
 initilize variables.
 
void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const override
 dumps debug information.
 
void clear (void) override
 clears information.
 
std::string name (void) const override
 returns name.
 
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.
 
virtual bool hasMember (const std::string &a) const override
 returns true this has member named a.
 
 TRGCDCSegmentHit (const TRGCDCSegment &)
 Constructor.
 
virtual ~TRGCDCSegmentHit ()
 Destructor.
 
static int sortById (const TRGCDCSegmentHit **a, const TRGCDCSegmentHit **b)
 Sorting funnction.
 
virtual void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const override
 dumps debug information.
 
const TRGCDCSegmentsegment (void) const
 returns a pointer to a track segment.
 
static void removeAll (void)
 destructs all TRGCDCCellHit objects. (Called by TRGCDC)
 
static void * operator new (size_t)
 new operator.
 
static void operator delete (void *)
 delete operator.
 
 TRGCDCSteppingAction ()
 Constructor.
 
virtual ~TRGCDCSteppingAction ()
 Destructor.
 
virtual void UserSteppingAction (const G4Step *)
 Stepping action to control a step in G4.
 
 TRGCDCTrack ()
 Constructor.
 
virtual ~TRGCDCTrack ()
 Destructor.
 
static std::vector< const TRGCDCTrack * > list (void)
 returns a list of TRGCDCTrack's.
 
int approach (TRGCDCLink &, bool sagCorrection=false) const
 calculates the closest approach to a wire in real space. Results are stored in TLink. Return value is negative if error happened.
 
std::vector< HepGeom::Point3D< double > > perfectPosition (void) const
 returns perfect position from GEANT.
 
 TRGCDCTrackBase (const TRGCDCTrackBase &)
 Copy constructor.
 
 TRGCDCTrackBase (const std::string &name, double charge)
 Constructor.
 
virtual ~TRGCDCTrackBase ()
 Destructor.
 
virtual void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
 
virtual int fit (void)
 fits itself by a default fitter. Error was happened if return value is not zero.
 
const std::vector< TRGCDCLink * > & links (void) const
 returns a vector to track segments.
 
const std::vector< TRGCDCLink * > & links (unsigned layerId) const
 returns a vector to track segments.
 
virtual int approach2D (TRGCDCLink &) const
 calculate closest approach. Error was happened if return value is not zero.
 
const TRGCDCRelation relation (void) const
 returns MC information. More...
 
const TRGCDCRelation relation2D (void) const
 returns MC information for only axial layers.
 
const TRGCDCRelation relation3D (void) const
 returns MC information for only stereo layers.
 
 TRGCDCTracker2D (const std::string &name, const TRGClock &systemClock, const TRGClock &dataClock, const TRGClock &userClockInput, const TRGClock &userClockOutput)
 Constructor.
 
virtual ~TRGCDCTracker2D ()
 Destructor.
 
static std::string version (void)
 returns version.
 
void push_back (const TRGCDCTrackSegmentFinder *)
 Appends a TSF board.
 
void dump (const std::string &message="", const std::string &pre="") const
 dumps contents. More...
 
void simulate (void)
 simulates firmware.
 
static void update (void)
 updates information.
 
 TRGCDCTrackMC ()
 Constructor.
 
virtual ~TRGCDCTrackMC ()
 Destructor.
 
void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
 
static std::vector< const TRGCDCTrackMC * > list (void)
 returns a list of TRGCDCTrackMC's.
 
std::vector< const TRGCDCWireHitMC * > hits (void) const
 returns a list of TRGCDCWireHitMC.
 
 TRGCDCTrackSegmentFinder (const TRGCDC &, bool makeRootFile, bool logicLUTFlag)
 Constructor.
 
 ~TRGCDCTrackSegmentFinder ()
 Destructor.
 
boardType type (void) const
 board type of TSF
 
void terminate (void)
 terminate
 
void doit (std::vector< TRGCDCSegment * > &tss, const bool trackSegmentClockSimulation, std::vector< TRGCDCSegmentHit * > &segmentHits, std::vector< TRGCDCSegmentHit * > *segmentHitsSL)
 Member functions of doing TSF.
 
void simulateBoard (void)
 firmware simulation. More...
 
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.
 
void push_back (const TRGCDCMerger *)
 push back the Mergers of this TSF
 
void simulateOuter (void)
 Firmware simulation for the outers. yi.
 
void priorityTiming (unsigned tsfID, const unsigned nTSF, TRGSignalVector &s, const TRGSignal &center, const TRGSignal &right, const TRGSignal &left) const
 Make TRGSignals for the priority timing bits.
 
void fastestTimingOuter (unsigned tsfID, const unsigned nTSF, TRGSignalVector &s) const
 Make TRGSignals for the fastest timing bits.
 
void simulateInner (void)
 Firmware simulation for the outers. yi.
 
void fastestTimingInner (unsigned tsfID, const unsigned nTSF, TRGSignalVector &s) const
 Make TRGSignals for the fastest timing bits.
 
vector< TRGSignalVector * > simulateInner (TRGSignalVector &in, unsigned id)
 Simulate TSF response for the inner.
 
static void addID (TRGSignalVector &s, unsigned id)
 Add TSF ID to timing signal vector for the output.
 
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.
 
std::string name (void) const
 simulates track segment decisions. More...
 
std::string version (void) const
 returns version.
 
static TRGCDCgetTRGCDC (const std::string &configFile, unsigned simulationMode=0, unsigned fastSimulationMode=0, unsigned firmwareSimulationMode=0, int firmwareSimulationStart=0, int firmwareSimulationStop=32 *32 - 1, bool _makeRootFile=0, bool perfect2DFinder=false, bool perfect3DFinder=false, const std::string &innerTSLUTFile="?", const std::string &outerTSLUTFile="?", const std::string &rootTRGCDCFile="?", const std::string &rootFitter3DFile="?", unsigned houghFinderPeakMin=5, const std::string &houghMappingFilePlus="?", const std::string &houghMappingFileMinus="?", unsigned houghDoit=2, bool fLogicLUTTSF=0, bool fLRLUT=1, bool fFitter3Dsmclr=0, bool fFitter3Ds2DFit=1, bool fFitter3Ds2DFitDrift=0, double inefficiency=0, bool fileTSF=0, bool fileETF=0, int fverETF=0, bool fprintFirmETF=0, bool fileHough3D=0, int finder3DMode=0, bool fileFitter3D=0, bool fXtSimpleFitter3D=0, double TdcBinWidth=1., int trgCDCDataInputMode=0, const std::string &cdchitCollectionName="")
 returns TRGCDC object with specific configuration.
 
static TRGCDCgetTRGCDC (void)
 returns TRGCDC object. More...
 
std::vector< TRGCDCTrack * > getTrackList2D (void)
 returns 2D track list (no fit).
 
std::vector< TRGCDCTrack * > getTrackList2DFitted (void)
 returns 2D fitted track list.
 
std::vector< TRGCDCTrack * > getTrackList3D (void)
 returns 3D track list (fitted).
 
 TRGCDC (const std::string &configFile, unsigned simulationMode, unsigned fastSimulationMode, unsigned firmwareSimulationMode, int firmwareSimulationStart, int firmwareSimulationStop, bool makeRootFile, bool perfect2DFinder, bool perfect3DFinder, const std::string &innerTSLUTFile, const std::string &outerTSLUTFile, const std::string &rootTRGCDCFile, const std::string &rootFitter3DFile, unsigned houghFinderPeakMin, const std::string &houghMappingFilePlus, const std::string &houghMappingFileMinus, unsigned houghDoit, bool fLogicLUTTSF, bool fLRLUT, bool fFitter3Dsmclr, bool fFitter3Ds2DFit, bool fFitter3Ds2DFitDrift, double inefficiecny, bool fileTSF, bool fileETF, int fverETF, bool fprintFirmETF, bool fileHough3D, int finder3DMode, bool fileFitter3D, bool fXtSimpleFitter3D, double TdcBinWidth, int trgCDCDataInputMode, const std::string &cdchitCollectionName)
 Constructor.
 
void initialize (unsigned houghFinderPeakMin, const std::string &houghMappingFilePlus, const std::string &houghMappingFileMinus, unsigned houghDoit)
 initializes CDC geometry.
 
void terminate (void)
 terminates when run is finished
 
void dump (const std::string &message) const
 dumps debug information.
 
const TRGCDCWirewire (unsigned wireId) const
 returns a pointer to a wire. More...
 
const TRGCDCWirewire (unsigned layerId, int localId) const
 returns a pointer to a wire. More...
 
const TRGCDCWirewire (float r, float phi) const
 returns a pointer to a wire. More...
 
void clear (void)
 clears all TRGCDC hit information.
 
void fastClear (void)
 clears TRGCDC information.
 
void update ()
 updates TRGCDC wire information. clear() is called in this function.
 
void updateByData (int inputMode)
 updates TRGCDC wire information by Hardware data 0: From CDC FE ASCII file (Implementing) 1: From CDC FE-DAQ root file (Not implemented) 2: From TSIM root file (Not implemented)
 
void classification (void)
 classify hits.
 
std::vector< const TRGCDCWireHit * > axialHits (void) const
 returns a list of axial hits. More...
 
std::vector< const TRGCDCWireHit * > stereoHits (void) const
 returns a list of stereo hits. More...
 
std::vector< const TRGCDCWireHit * > hits (void) const
 returns a list of TRGCDCWireHit. More...
 
std::vector< const TRGCDCWireHitMC * > hitsMC (void) const
 returns a list of TRGCDCWireHitMC. More...
 
std::string wireName (unsigned wireId) const
 returns wire name.
 
unsigned localId (unsigned wireId) const
 returns local ID in a layer. This function is expensive.
 
unsigned layerId (unsigned wireId) const
 returns layer ID. This function is expensive.
 
unsigned layerId (unsigned axialStereoSwitch, unsigned axialStereoLayerId) const
 returns layer ID from axialStereoLayerId. This function is expensive.
 
unsigned superLayerId (unsigned wireId) const
 returns super layer ID. This function is expensive.
 
unsigned localLayerId (unsigned wireId) const
 returns local layer ID in a super layer. This function is expensive.
 
unsigned axialStereoSuperLayerId (unsigned axialStereo, unsigned axialStereoLayerId) const
 returns axialStereo super layer ID. This function is expensive.
 
virtual ~TRGCDC ()
 Destructor.
 
bool neighbor (const TRGCDCWire &w0, const TRGCDCWire &w1) const
 returns true if w0 and w1 are neighbor.
 
void simulate (void)
 fast trigger simulation.
 
void fastSimulation (void)
 Fast simulation.
 
void storeSimulationResults (std::string collection2Dfinder, std::string collection2Dfitter, std::string collection3Dfitter)
 Save results of fast simulation to data store (segment hits & tracks). More...
 
void firmwareSimulation (void)
 Firmware simulation.
 
void configure (void)
 configures trigger modules for firmware simulation.
 
const TRGCDCSegmentsegment (unsigned lyrId, unsigned id) const
 returns a track segment.
 
int getEventTime (void) const
 returns bad hits(finding invalid hits). More...
 
void setReturnValue (EReturnValueType const &moduleName, bool flag)
 sets return value for trg cdc module.
 
int getReturnValue (EReturnValueType const &moduleName) const
 gets return value for a module in trg cdc module.
 
void saveCDCHitInformation (std::vector< std::vector< unsigned > > &)
 Save functions for ROOT.
 
void saveTRGHitInformation (std::vector< std::vector< int > > &)
 Save functions for ROOT.
 
void saveTRGRawInformation (std::vector< std::string > &)
 Save functions for ROOT.
 
unsigned nSegments (unsigned id) const
 returns # of track segments in a layer.
 
 TRGCDCWire (unsigned id, unsigned localId, const TRGCDCLayer &, const HepGeom::Point3D< double > &forwardPosition, const HepGeom::Point3D< double > &backwardPosition, const TRGClock &clock)
 Constructor.
 
virtual ~TRGCDCWire ()
 Destructor.
 
void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const override
 dumps debug information.
 
const TRGCDCWireneighbor (unsigned) const
 returns a pointer to a neighbor wire. This function is expensive.
 
void clear (void) override
 clears information.
 
std::string name (void) const override
 returns name.
 
 TRGCDCWireHit (const TRGCDCWire &, unsigned indexCDCHit=0, unsigned indexCDCSimHit=0, unsigned indexMCParticle=0, float driftLeft=0, float driftLeftError=0, float driftRight=0, float driftRightError=0, int mcLRflag=1, float fudgeFacgtor=1)
 Constructor.
 
virtual ~TRGCDCWireHit ()
 Destructor.
 
const TRGCDCWirewire (void) const
 returns a pointer to a TRGCDCWire.
 
static int sortByWireId (const TRGCDCWireHit **a, const TRGCDCWireHit **b)
 Sort function. This will be removed.
 
static void removeAll (void)
 destructs all TRGCDCCellHit objects. (Called by TRGCDC)
 
static void * operator new (size_t)
 new operator.
 
static void operator delete (void *)
 delete operator.
 
 TRGCDCWireHitMC (const TRGCDCWire *, const TRGCDCWireHit *)
 Constructor.
 
virtual ~TRGCDCWireHitMC ()
 Destructor.
 
 TrgEclDatabaseImporter ()
 TrgEclDatabaseImporter Constructor.
 
void importFAMParameter (std::string, std::string, std::string)
 Import FAM Parameters.
 
void importTMMParameter (std::string)
 Import TMM Parameters.
 
void importETMParameter (std::string)
 Import ETM Parameters.
 
void importBadRunNumber (std::string)
 Import Bad Run Number.
 
void printTCThreshold ()
 Print TC energy Threshold.
 
int debugLevel (void) const
 returns debug level.
 
int debugLevel (int) const
 sets and returns debug level.
 
const TRGClocksystemClock (void) const
 returns the system clock.
 
double systemOffsetMC (void) const
 returns the system offset in MC.
 
unsigned firmwareSimulationMode (void) const
 returns firmware simulation mode.
 
std::string configFile (void) const
 returns configuration file name.
 
std::string name (void) const
 returns name.
 
std::string version (void) const
 returns version.
 
static TRGGDLgetTRGGDL (const std::string &configFile, unsigned simulationMode=0, unsigned fastSimulationMode=0, unsigned firmwareSimulationMode=0, const std::string &Phase="Phase", bool algFromDB=true, const std::string &algFilePath="ftd.alg", int debugLevel=0)
 returns TRGGDL object with specific configuration.
 
static TRGGDLgetTRGGDL (void)
 returns TRGGDL object. More...
 
 TRGGDL (const std::string &configFile, unsigned simulationMode, unsigned fastSimulationMode, unsigned firmwareSimulationMode, const std::string &Phase, bool algFromDB=true, const std::string &algFilePath="ftd.alg", int debugLevel=0)
 Constructor.
 
void initialize (void)
 initializes GDL.
 
void terminate (void)
 terminates when run is finished
 
void dump (const std::string &message) const
 dumps debug information.
 
void clear (void)
 clears all TRGGDL information.
 
void fastClear (void)
 clears TRGGDL information.
 
void update (bool mcAnalysis=true)
 updates TRGGDL information.
 
virtual ~TRGGDL ()
 Destructor.
 
void simulate (void)
 fast trigger simulation.
 
void fastSimulation (void)
 Fast simulation.
 
void dataSimulation (void)
 Data simulation.
 
bool isFiredFTDL (std::vector< bool > input, std::string alg)
 
bool doprescale (int f)
 
void firmwareSimulation (void)
 Firmware simulation.
 
void configure (void)
 configures trigger modules for firmware simulation.
 
void getInput (std::ifstream &ifs)
 Read input data definition.
 
void getOutput (std::ifstream &ifs)
 Read output data definition.
 
void getAlgorithm (std::ifstream &ifs)
 Read algorithm data definition.
 
static TRGState decision (const TRGState &input)
 Makes bit pattern(state) using input bit pattern(state).
 
static TRGState timingDecision (const TRGState &input, TRGState &registers, bool &logicStillActive)
 Makes timing decision.
 
void accumulateInp (TH1I *)
 Accumulate bit info in histogram.
 
void accumulateFtd (TH1I *)
 Accumulate bit info in histogram.
 
void accumulatePsn (TH1I *)
 Accumulate bit info in histogram.
 
int debugLevel (void) const
 returns debug level.
 
int debugLevel (int) const
 sets and returns debug level.
 
const TRGClocksystemClock (void) const
 returns the system clock.
 
unsigned firmwareSimulationMode (void) const
 returns firmware simulation mode.
 
std::string configFile (void) const
 returns configuration file name.
 
std::string name (void) const
 matching function More...
 
std::string version (void) const
 returns version.
 
static TRGGRLgetTRGGRL (const std::string &configFile, unsigned simulationMode=0, unsigned fastSimulationMode=0, unsigned firmwareSimulationMode=0)
 returns TRGGRL object with specific configuration.
 
static TRGGRLgetTRGGRL (void)
 returns TRGGRL object. More...
 
 TRGGRL (const std::string &configFile, unsigned simulationMode, unsigned fastSimulationMode, unsigned firmwareSimulationMode)
 Constructor.
 
void initialize (void)
 initializes GRL.
 
void terminate (void)
 terminates when run is finished
 
void dump (const std::string &message) const
 dumps debug information.
 
void clear (void)
 clears all TRGGRL information.
 
void fastClear (void)
 clears TRGGRL information.
 
void update (bool mcAnalysis=true)
 updates TRGGRL information.
 
virtual ~TRGGRL ()
 Destructor.
 
void simulate (void)
 fast trigger simulation.
 
void fastSimulation (void)
 Fast simulation.
 
void firmwareSimulation (void)
 Firmware simulation.
 
void configure (void)
 configures trigger modules for firmware simulation.
 
 TRGGRLMatch (TRGCDCTrack *track, TRGECLCluster *cluster, int flag)
 public member functions of TRGGRLMatch class Private variables can be called by the corresponding get function More...
 
virtual ~TRGGRLMatch ()
 Destructor.
 
void calculate (void)
 a function to execute calculation of matching
 
void dump (void)
 Unpacker of the TRGGRLMatch.
 
bool inArea (const TRGPoint2D &x) const
 returns true if give point is in the area.
 
const std::string & name (void) const
 returns name.
 
const std::string & name (const std::string &newName)
 sets and returns name.
 
void clear (void)
 clears contents.
 
unsigned size (void) const
 returns size of stream in unit of bit.
 
void append (int)
 appends a bit to a stream.
 
void append (unsigned)
 appends a bit to a stream.
 
unsigned sizeInChar (void) const
 returns size in char's.
 
char c (unsigned positionInChar) const
 returns a pointer to char's.
 
bool bit (unsigned positionInBit) const
 returns true if given position is active.
 
const std::string & name (void) const
 returns name.
 
const TRGClockclockSystem (void) const
 returns system clock.
 
const TRGClockclockData (void) const
 returns data clock.
 
const TRGClockclockUserInput (void) const
 returns Aurora user clock for input.
 
const TRGClockclockUserOutput (void) const
 returns Aurora user clock for output.
 
void appendInput (const TRGChannel *)
 appends an input Aurora channel.
 
void appendOutput (TRGChannel *)
 appends an output Aurora channel.
 
const TRGChannelinput (unsigned i) const
 returns input channel i.
 
TRGChanneloutput (unsigned i) const
 returns output channel i.
 
unsigned nInput (void) const
 returns input channels.
 
unsigned nOutput (void) const
 returns output channels.
 
const std::string & name (void) const
 returns name.
 
TRGSignalBundlesignal (TRGSignalBundle *)
 sets input data.
 
TRGSignalBundlesignal (void) const
 returns signal.
 
const TRGBoardsender (void) const
 sender TRG board
 
double offset (void) const
 returns offset of the clock zero position in nano second.
 
const std::string & name (void) const
 returns name.
 
double minTiming (void) const
 returns min. timing.
 
double maxTiming (void) const
 returns max. timing.
 
int unit (double period) const
 returns min # of clocks to cover given time period.
 
double frequency (void) const
 returns frequency in MHz.
 
int min (void) const
 returns min. clock point.
 
int max (void) const
 returns max. clock point.
 
int positionInSourceClock (double timing) const
 returns clock position in the source clock.
 
const std::string & name (void) const
 returns name.
 
const TRGClockclock (void) const
 returns clock.
 
void appendHeader (const TRGSignal *)
 appends a signal to header data.
 
void appendTrailer (const TRGSignal *)
 appends a signal to trailer data.
 
void append (const TRGSignal *)
 appends a signal to data.
 
double x (void) const
 x of the point
 
double y (void) const
 y of the point
 
double x (double)
 x of the point
 
double y (double)
 y of the point
 
double mag (void) const
 magnitude of the point
 
double mag2 (void) const
 magnitude square of the point
 
double phi (void) const
 phi of the point
 
double dot (const TRGPoint2D &) const
 inner product
 
double cross (const TRGPoint2D &) const
 outer product
 
TRGPoint2D operator+ (const TRGPoint2D &) const
 
TRGPoint2D operator- (const TRGPoint2D &) const
 
TRGPoint2D operator- () const
 
bool operator== (const TRGPoint2D &) const
 equal operator
 
TRGPoint2D unit (void) const
 unit vector
 
const std::string & name (void) const
 returns name.
 
const std::string & name (const std::string &newName)
 sets and returns name.
 
TRGSignal operator& (const TRGTime &) const
 returns AND result.
 
TRGSignaloperator&= (const TRGTime &)
 returns AND result.
 
TRGSignal operator| (const TRGTime &) const
 returns OR result.
 
TRGSignaloperator|= (const TRGTime &)
 returns OR result.
 
unsigned nSignals (void) const
 returns # of signals.
 
unsigned nEdges (void) const
 returns # of edges.
 
void clear (void)
 clears contents.
 
bool active (void) const
 returns true if there is a signal.
 
bool state (int clockPosition) const
 returns true if signal is active in given clock position.
 
bool riseEdge (int clockPosition) const
 returns true if signal is active and rising edge in give clock position.
 
const TRGTimeoperator[] (unsigned i) const
 returns timing of i'th edge.
 
const TRGClockclock (void) const
 returns clock.
 
bool operator!= (const TRGSignal &) const
 returns true if two are the same.
 
bool active (int clk0, int clk1) const
 returns true if there is a signal.
 
const std::string & name (void) const
 returns name.
 
const std::string & name (const std::string &newName)
 sets and returns name.
 
const TRGClockclock (void) const
 returns clock.
 
const std::string & name (void) const
 returns name.
 
const std::string & name (const std::string &newName)
 sets and returns name.
 
const TRGClockclock (void) const
 returns clock.
 
bool operator!= (const TRGSignalVector &) const
 compare two TRGSignalVectors.
 
unsigned size (void) const
 returns bit size.
 
bool active (void) const
 returns true if there are active bits.
 
bool active (unsigned bitPosition) const
 returns true if there are active bits.
 
bool operator[] (unsigned i) const
 returns state of i'th bit.
 
 operator unsigned () const
 Conversion to unsigned.
 
 operator unsigned long long () const
 Conversion to unsigned long long.
 
 operator std::string () const
 Conversion to string.
 
void copy2bool (bool *array) const
 returns a filled array.
 
const TRGStateset (unsigned position, unsigned size, const bool *const array)
 sets state.
 
const TRGStateset (unsigned position, unsigned size, unsigned value)
 sets state.
 
const TRGStateset (unsigned position, bool state=true)
 sets state at bit i.
 
const TRGStateset (unsigned position, const TRGState &)
 sets state.
 
static unsigned toUnsigned (unsigned n, const bool *array)
 Coverts from bool array to unsigned.
 
TRGStateshift (unsigned i)
 shifts bits.
 
void clear (void)
 clears state.
 
const std::string & name (void) const
 returns name.
 
const std::string & name (const std::string &newName)
 sets and returns name.
 
TRGTimereverse (void)
 reverse edge.
 
const TRGClockclock (void) const
 returns clock.
 
bool edge (void) const
 returns edge information.
 
TRGTimeshift (int unit)
 delays by clock unit.
 
int time (void) const
 returns timing in clock position.
 
int time (int newTime)
 sets and returns timing in clock position.
 
bool operator== (const TRGTime &) const
 returns true if two are the same.
 
bool operator!= (const TRGTime &) const
 returns false if two are the same.
 
 TRGArea2D (const TRGPoint2D &leftBottom, const TRGPoint2D &rightUpper)
 Contructor.
 
virtual ~TRGArea2D ()
 Destructor.
 
void cross (const TRGPoint2D &x0, const TRGPoint2D &x1, unsigned &nFound, TRGPoint2D crossPoint[2]) const
 returns cross-points.
 
 TRGBitStream ()
 Default constructor.
 
 TRGBitStream (int size, const std::string &name="unknown")
 Constructor of fixed size.
 
 TRGBitStream (const TRGBitStream &)
 Copy constructor.
 
 TRGBitStream (const char *const, unsigned sizeInBit)
 Constructor with char stream.
 
virtual ~TRGBitStream ()
 Destructor.
 
void dump (const std::string &message="", const std::string &pre="") const
 dumps contents. "message" is to select information to dump. "pre" will be printed in head of each line.
 
void append (bool)
 appends a bit to a stream.
 
static std::vector< TRGSignalTRGBitStream2TRGSignal (const TRGClock &clock, int initialClockPosition, std::vector< TRGBitStream * > stream)
 Make trigger signals from bit stream.
 
 TRGBoard (const std::string &name, const TRGClock &systemClock, const TRGClock &dataClock, const TRGClock &userClockInput, const TRGClock &userClockOutput)
 Constructor.
 
virtual ~TRGBoard ()
 Destructor.
 
void dump (const std::string &message="", const std::string &pre="") const
 dumps contents. More...
 
 TRGChannel (const std::string &name, const TRGBoard &sender, const TRGBoard &receiver)
 Constructor.
 
virtual ~TRGChannel ()
 Destructor.
 
 TRGClock (const std::string &name, double offset, double frequency)
 Constructor. "offset" is in unit of ns. "frequency" is in unit of MHz.
 
 TRGClock (const std::string &name, const TRGClock &, unsigned multiplicationFactor, unsigned divisionFactor=1)
 Constructor with clock source.
 
virtual ~TRGClock ()
 Destructor.
 
void dump (const std::string &message="", const std::string &pre="") const
 dumps contents. More...
 
int position (double timing) const
 returns clock position.
 
double absoluteTime (int clockPosition) const
 returns absolute time of clock position
 
double overShoot (double timing) const
 returns over shoot.
 
TRGTime minTRGTime (bool edge) const
 returns min. TRGtime with clock.
 
TRGTime maxTRGTime (bool edge) const
 returns max. TRGtime with clock.
 
double phase (double timing) const
 returns phase of given timing in degree (0 to 360).
 
const TRGSignalVectorclockCounter (void) const
 returns the clock counter.
 
static void enterStage (const std::string &stageName)
 Declare that you enter new stage.
 
static void leaveStage (const std::string &stageName)
 Declare that you leave a stage.
 
static std::string tab (void)
 returns tab spaces.
 
static std::string tab (int extra)
 returns tab spaces with extra spaces
 
static int level (void)
 returns the debug level.
 
static int level (int newLevel, bool thisStageOnly=false)
 sets and returns the debug level.
 
 TRGOpticalLink (const std::string &name, const TRGClock &)
 Constructor.
 
virtual ~TRGOpticalLink ()
 Destructor.
 
 TRGPoint2D ()
 Constructor.
 
 TRGPoint2D (double, double)
 Constructor.
 
 TRGPoint2D (const HepGeom::Point3D< double > &)
 Constructor.
 
 TRGPoint2D (const Vector3D &)
 Constructor.
 
 TRGPoint2D (const CLHEP::Hep3Vector &)
 Constructor.
 
virtual ~TRGPoint2D ()
 Destructor.
 
 TRGSignal (const TRGClock &=Belle2_GDL::GDLSystemClock)
 Constructor.
 
 TRGSignal (const TRGTime &t0, const TRGTime &t1)
 Constructor with clock and timing(t0 leading, t1 trailing).
 
 TRGSignal (const TRGClock &c, int t0, int t1)
 Constructor with clock and timing(t0 leading, t1 trailing).
 
 TRGSignal (const TRGClock &c, double t0, double t1)
 Constructor with clock and timing(t0 leading, t1 trailing). More...
 
 TRGSignal (const std::string &name, const TRGClock &=Belle2_GDL::GDLSystemClock)
 Constructor with name.
 
 TRGSignal (const TRGSignal &)
 Copy constructor.
 
 TRGSignal (const TRGTime &)
 Constructor.
 
virtual ~TRGSignal ()
 Destructor.
 
void dump (const std::string &message="", const std::string &pre="") const
 dumps contents. More...
 
TRGSignal operator& (const TRGSignal &) const
 returns AND result.
 
TRGSignaloperator&= (const TRGSignal &)
 returns AND result.
 
TRGSignal operator| (const TRGSignal &) const
 returns OR result.
 
TRGSignaloperator|= (const TRGSignal &)
 returns OR result.
 
static std::vector< TRGTimeorOperation (const std::vector< TRGTime > &)
 Or operation.
 
TRGSignalwiden (unsigned width)
 returns widen signals. Signals wider than "width" will be untouched.
 
std::vector< int > stateChanges (void) const
 returns a list of clock position of state change.
 
const TRGClockclock (const TRGClock &)
 changes clock.
 
unsigned width (unsigned i=0) const
 returns width of i'th signal (i=0,1,2,...).
 
const TRGSignalset (int t0, int t1, bool state=true)
 makes a pulse with leading edge at clock t0 and with trailing edge at clock t1.
 
const TRGSignalunset (int t0, int t1)
 clear(or unset) with leading edge at clock t0 and with trailing edge at clock t1.
 
void sort (void)
 Sort operation.
 
bool consistencyCheck (void) const
 Self-consitency check. True is return if something wrong.
 
const TRGSignalinvert (void)
 makes signal inverted.
 
bool operator== (const TRGSignal &) const
 returns true if two are the same.
 
 TRGSignalBundle (const TRGClock &)
 Default constructor.
 
 TRGSignalBundle (const std::string &name, const TRGClock &)
 Constructor with name.
 
 TRGSignalBundle (const std::string &name, const TRGClock &clock, const TRGSignalBundle &input, const unsigned outputBitSize, TRGState(*packer)(const TRGState &))
 Constructor with a packer.
 
virtual ~TRGSignalBundle ()
 Destructor.
 
void dump (const std::string &message="", const std::string &pre="") const
 dumps contents. More...
 
bool active (void) const
 returns true if there is a signal.
 
std::vector< int > stateChanges (void) const
 returns a list of clock position of state change.
 
TRGState state (int clockPosition) const
 returns state at given clock position.
 
const TRGClockclock (const TRGClock &)
 changes clock.
 
TRGSignal ored (void) const
 returns signal of all ORed.
 
void dumpCOE (const std::string &fileName="", int start=0, int stop=0) const
 makes coe output.
 
 TRGSignalVector (const std::string &name, const TRGClock &, unsigned size=0)
 Default constructor. More...
 
 TRGSignalVector (const TRGSignalVector &)
 Copy constructor.
 
 TRGSignalVector (const TRGSignal &)
 Constructor.
 
virtual ~TRGSignalVector ()
 Destructor.
 
void dump (const std::string &message="", const std::string &pre="") const
 dumps contents. More...
 
TRGSignalVectoroperator+= (const TRGSignal &)
 appends TRGSignal.
 
TRGSignalVectoroperator+= (const TRGSignalVector &)
 appends TRGSignalVector.
 
bool active (void) const
 returns true if there is a signal.
 
bool active (int clockPosition) const
 returns true if there is a signal at clock position.
 
std::vector< int > stateChanges (void) const
 returns a list of clock position of state change.
 
TRGState state (int clockPosition) const
 returns state at given clock position.
 
const TRGClockclock (const TRGClock &)
 changes clock.
 
const TRGSignalVectorset (const TRGState &, int clockPosition)
 sets state at given clock.
 
bool operator== (const TRGSignalVector &) const
 compare two TRGSignalVectors.
 
 TRGState (unsigned bitSize=0)
 Default constructor.
 
 TRGState (unsigned bitSize, unsigned value)
 Constructor with unsigned.
 
 TRGState (unsigned bitSize, const bool *const states)
 Constructor.
 
 TRGState (std::vector< bool > states)
 Constructor.
 
 TRGState (std::vector< unsigned > &states, unsigned order)
 Constructor. order: 0=>inVector[0] is lsb. 1=>inVector[0] is msb.
 
 TRGState (const char *, unsigned type)
 Constructor. type: 0-> binary, 1->hex.
 
virtual ~TRGState ()
 Destructor.
 
void dump (const std::string &message="", const std::string &pre="") const
 dumps contents. More...
 
TRGStateoperator+= (const TRGState &)
 appends TRGState (as MSB).
 
TRGState subset (unsigned i, unsigned n) const
 returns subset from i with n bits.
 
TRGStateoperator= (const TRGState &)
 Copy operator.
 
bool operator< (const TRGState &) const
 Copy operator.
 
 TRGTime (const TRGTime &)
 Copy constructor.
 
 TRGTime (double timing, bool edge, const TRGClock &clock, const std::string &name="signal")
 Constructor with clock. More...
 
 TRGTime (int clockPosition, bool edge, const TRGClock &clock, const std::string &name="signal")
 Constructor with clock. More...
 
virtual ~TRGTime ()
 Destructor.
 
TRGSignal operator& (const TRGTime &) const
 adding two TRGTime. A result is TRGSignal.
 
TRGSignal operator& (const TRGSignal &) const
 adding two TRGTime. A result is TRGSignal.
 
TRGSignal operator| (const TRGTime &) const
 oring two TRGTime. A result is TRGSignal.
 
TRGSignal operator| (const TRGSignal &) const
 oring two TRGTime. A result is TRGSignal.
 
void dump (const std::string &message="", const std::string &pre="") const
 dumps contents. More...
 
static bool sortByTime (const TRGTime &a, const TRGTime &b)
 returns true if a is older than b.
 
const TRGClockclock (const TRGClock &)
 changes clock.
 

Variables

const double M_PI2 = 2. * M_PI
 2*PI
 
const double M_PI4 = 4. * M_PI
 4*PI
 
const double M_PI8 = 8. * M_PI
 8*PI
 
const TRGCDCLayerTRGCDCUndefinedLayer
 TRGCDCUndefinedLayer declaration. More...
 
const int ntrgline = 18
 set the total number of trigger lines and prescalefactor
 
double scalef_phase2 [ntrgline] = {1, 1, 20, 1, 1, 1, 1, 1, 1, 1, 1, 10, 10, 1, 1, 1, 1, 1}
 prescale factor for phase2
 
double scalef_phase3 [ntrgline] = {1, 1, 20, 2, 1, 1, 1, 1, 2, 1, 1, 20, 20, 1, 5, 1, 3, 5}
 prescale factor for phase3
 
const HepGeom::Point3D< double > ORIGIN
 Origin 3D point.
 
static const TRGCDCCircleFitter _fitter = TRGCDCCircleFitter("TRGCDCCircle Default Fitter")
 Default fitter.
 
static const double ConstantAlpha = 222.376063
 Constant alpha for uniform field.
 
static const std::string invalidhelix
 string of invalid helix
 
static CLHEP::HepVector ms_amin
 limits for helix parameters
 
static CLHEP::HepVector ms_amax
 limits for helix parameters
 
static bool ms_check_range
 range in checked or not
 
static bool ms_throw_exception
 throw exception or not
 
static bool ms_print_debug
 print debug info or not
 
static bool ms_smallcell
 ms_smallcell
 
static bool ms_superb
 ms_superb
 
static unsigned _nL = 56
 ...Buffers...
 
static unsigned _nSL = 9
 ...Buffers...
 
static unsigned _nSLA = 5
 ...Buffers...
 
static unsigned * _nHitsSL = 0
 ...Buffers...
 
static std::vector< TRGCDCLink * > _all
 Keeps all TRGCDCLinks created by new().
 
static const double BELLE_ALPHA
 belle alpha
 
static std::map< std::string, TRGCDCLUTdictionary
 list of LUTs, to avoid reading LUT data 2336 times
 
static std::vector< TRGCDCSegmentHit * > _all
 Keeps all TRGCDCSegmentHit created by new().
 
static std::vector< const TRGCDCTrack * > _list = vector<const TRGCDCTrack*>()
 a vector to keep all TRGCDCTrack objects.
 
static unsigned _nTSF = 0
 # of TSFs.
 
static std::vector< unsigned > _n
 # of TSFs in super layer i.
 
static TRGState _ts
 Keeps TS hit info.
 
static TRGCDCTrackMC_undefined = new TRGCDCTrackMC()
 returns a pointer to gen_hepevt. More...
 
static std::vector< const TRGCDCTrackMC * > _list = std::vector<const TRGCDCTrackMC*>()
 vector of pointers to TRGCDCTrackMC
 
static TRGCDC_cdc = 0
 CDC trigger singleton.
 
static std::vector< TRGCDCWireHit * > _all
 Keeps all TRGCDCWireHit created by new().
 
static TRGGDL_gdl = 0
 GDL singleton. More...
 
static void(* _ftd )(bool *out, bool *in)
 Function to simulate final trigger decision.
 
static TRGGRL_grl = 0
 GRL singleton.
 
static std::vector< std::string > _stages
 Storage for stages.
 
static int _level = 0
 Debug level. 0:do nothing, 1:show you flow, 2:show you detail, 10:show you very detail.
 
static const unsigned _su = sizeof(unsigned)
 size of unsigned.
 
static const unsigned _bsu = 8 * sizeof(unsigned)
 bit size of unsigned.
 

Detailed Description

Function Documentation

◆ axialHits()

vector< const TCWHit * > axialHits ( void  ) const

returns a list of axial hits.

'update()' must be called before calling this function.

Definition at line 1677 of file TRGCDC.cc.

1678  {
1679  vector<const TCWHit*> t;
1680  t.assign(_axialHits.begin(), _axialHits.end());
1681  return t;
1682 
1683  // if (! mask) return _axialHits;
1684  // else if (mask == CellHitFindingValid) return _axialHits;
1685  // cout << "TRGCDC::axialHits !!! unsupported mask given" << endl;
1686  // return _axialHits;
1687  }

◆ axialSegmentHits()

std::vector< const TRGCDCSegmentHit * > axialSegmentHits ( unsigned  a) const
inline

returns a list of TRGCDCSegmentHit in a axial super layer N.

'simulate()' must be called before calling this function

Definition at line 1015 of file TRGCDC.h.

1016  {
1017  std::vector<const TRGCDCSegmentHit*> t;
1018  t.assign(_segmentHitsSL[a * 2].begin(), _segmentHitsSL[a * 2].end());
1019  return t;
1020  }

◆ calCosPhi()

void calCosPhi ( std::map< std::string, Belle2::TRGCDCJSignal > &  mSignalStorage,
std::map< std::string, Belle2::TRGCDCJLUT * > &  mLutStorage 
)
staticprivate

Calculate Cos Sin ?

Calculate phi

Definition at line 413 of file HoughFinder.cc.

415  {
416 
418  Belle2::TRGCDCJSignalData* commonData = mSignalStorage.begin()->second.getCommonData();
419  {
420  mSignalStorage["invPhiAxMin"] = Belle2::TRGCDCJSignal(M_PI, mSignalStorage["phi_4"].getToReal(), commonData);
421  mSignalStorage["invPhiAxMax"] = Belle2::TRGCDCJSignal(2 * M_PI, mSignalStorage["phi_4"].getToReal(), commonData);
422  }
423 
424  for (unsigned iSt = 0; iSt < 5; iSt++) {
425  string t_inputName = "phi_" + to_string(iSt);
426  string t_outputName = "cosPhi_" + to_string(iSt);
427 
428  if (mLutStorage.find(t_outputName) == mLutStorage.end()) {
429  mLutStorage[t_outputName] = new Belle2::TRGCDCJLUT(t_outputName);
430  mLutStorage[t_outputName]->setFloatFunction(
431  [ = ](double aValue) -> double{return cos(aValue);},
432  mSignalStorage[t_inputName],
433  mSignalStorage["invPhiAxMin"], mSignalStorage["invPhiAxMax"], mSignalStorage[t_inputName].getToReal(),
434  12, 12);
435  };//if name
436 
437  mLutStorage[t_outputName]->operate(mSignalStorage[t_inputName], mSignalStorage[t_outputName]);
438  } // end for
439  }//calCosPhi

◆ cellSize()

float cellSize ( void  ) const
inline

calculates position and direction vector with sag correction.

returns cell size in phi.

Definition at line 300 of file Cell.h.

301  {
302  return _layer.cellSize();
303  }

◆ choose()

void choose ( TRGCDCJSignal target,
TRGCDCJSignal const &  targetMin,
TRGCDCJSignal const &  targetMax,
TRGCDCJSignal const &  reference,
std::vector< std::vector< TRGCDCJSignal > >  data,
int  targetClock 
)
static

Case method.

Reference is what is used to determine. Target is what is going to be assigned. Data is (Assignment, From, To)... (Assignment). Last is default. Choose with target clock. Also has input for target min and target max signal.

Definition at line 622 of file JSignal.cc.

624  {
625 
626  TRGCDCJSignal t_reference(reference);
627  if (t_reference.m_argumentSignals.size() == 0) t_reference.initArgumentSignals();
628 
629  // Handle input errors.
630  if (data.size() == 0 || data.size() == 1) {
631  cout << "[Error] TRGCDCJSignal::choose() => There is not enough data." << endl;
632  return;
633  }
634  if ((*(data.end() - 1)).size() != 1) {
635  cout << "[Error] TRGCDCJSignal::choose() => Last data doesn't contain 1 TRGCDCJSignal." << endl;
636  return;
637  }
638 
639  // Calculate result final clock.
640  int t_maxClock = t_reference.m_finishClock;
641  for (unsigned iCondition = 0; iCondition < data.size(); iCondition++) {
642  TRGCDCJSignal* assign;
643  assign = &(data[iCondition][0]);
644  if (t_maxClock < assign->m_finishClock) t_maxClock = assign->m_finishClock;
645  }
646  // Save final clock.
647  if (targetClock == -3) target.m_finishClock = t_maxClock + 1;
648  else {
649  if (targetClock < t_maxClock) cout << "[Error] TRGCDCJSignal::choose() => targetClock is too small." << endl;
650  else target.m_finishClock = targetClock;
651  }
652 
653  // Change assignment black signal constructors to min and max.
654  // Change assignment min, max (int, actual).
655  signed long long t_minInt = targetMin.m_minInt;
656  signed long long t_maxInt = targetMax.m_maxInt;
657  double t_minActual = targetMin.m_minActual;
658  double t_maxActual = targetMax.m_maxActual;
659  for (unsigned iCondition = 0; iCondition < data.size(); iCondition++) {
660  TRGCDCJSignal* from = 0;
661  TRGCDCJSignal* to = 0;
662  TRGCDCJSignal* assign = 0;
663  assign = &(data[iCondition][0]);
664 
665  // To keep properties.
666  TRGCDCJSignal t_assign(*assign);
667 
668  // To prevent target clock to become constant.
669  //if(assign->m_minInt==assign->m_maxInt) assign->m_finishClock= target.m_finishClock-1;
670  //else assign->m_finishClock= target.m_finishClock;
671  // Change finish clock to target clock.
672  // Init arguments.
673  if (assign->m_argumentSignals.size() == 0) assign->initArgumentSignals();
674  assign->m_finishClock = target.m_finishClock;
675 
676  // Change min, max (int, actual), type values.
677  assign->m_minInt = t_minInt;
678  assign->m_maxInt = t_maxInt;
679  assign->m_minActual = t_minActual;
680  assign->m_maxActual = t_maxActual;
681  assign->m_type = assign->calType();
682  assign->m_bitsize = assign->calBitwidth();
683  // Calculated vhdlCode due to above changes.
684  if (reference.getPrintVhdl() == 1) vhdlCode("none", t_assign, *assign, assign->m_vhdlCode);
685 
686  // For non-default
687  if (data[iCondition].size() != 1) {
688  // Change blank signal constructors to min and max.
689  from = &(data[iCondition][1]);
690  to = &(data[iCondition][2]);
691  if (from->m_bitsize == -1) {
692  (*from) = TRGCDCJSignal(t_reference.m_minInt, t_reference.m_toReal, t_reference.m_minInt, t_reference.m_minInt,
693  t_reference.m_minActual, t_reference.m_minActual, t_reference.m_minActual, -1, t_reference.m_commonData);
694  }
695  if (to->m_bitsize == -1) {
696  (*to) = TRGCDCJSignal(t_reference.m_maxInt, t_reference.m_toReal, t_reference.m_maxInt, t_reference.m_maxInt,
697  t_reference.m_maxActual, t_reference.m_maxActual, t_reference.m_maxActual, -1, t_reference.m_commonData);
698  }
699  }
700 
701  if (from) {
702  if (from->m_argumentSignals.size() == 0) from->initArgumentSignals();
703  }
704  if (to) {
705  if (to->m_argumentSignals.size() == 0) to->initArgumentSignals();
706  }
707  }
708  // For integer case.
709  for (unsigned iCondition = 0; iCondition < data.size(); iCondition++) {
710  TRGCDCJSignal const* assign;
711  assign = &(data[iCondition][0]);
712  // For default case.
713  if (data[iCondition].size() == 1) {
714  string t_string = "";
715  target.assignTo(*assign, target.m_finishClock, t_string);
716  // For non-default cases.
717  } else {
718  TRGCDCJSignal const* from = &(data[iCondition][1]);
719  TRGCDCJSignal const* to = &(data[iCondition][2]);
720  if (t_reference.m_int >= from->m_int && t_reference.m_int <= to->m_int) {
721  string t_string = "";
722  target.assignTo(*assign, target.m_finishClock, t_string);
723  break;
724  }
725  }
726  }
727  // For actual case.
728  for (unsigned iCondition = 0; iCondition < data.size(); iCondition++) {
729  TRGCDCJSignal const* assign;
730  assign = &(data[iCondition][0]);
731  // For default case.
732  if (data[iCondition].size() == 1) {
733  target.m_actual = (*assign).m_actual;
734  // For non-default case.
735  } else {
736  TRGCDCJSignal const* from = &(data[iCondition][1]);
737  TRGCDCJSignal const* to = &(data[iCondition][2]);
738  assign = &(data[iCondition][0]);
739  if (t_reference.m_actual >= from->m_actual && t_reference.m_actual <= to->m_actual) {
740  target.m_actual = (*assign).m_actual;
741  break;
742  }
743  }
744  }
745 
746  target.checkInt("TRGCDCJSignal::choose()");
747 
748  // Print Vhdl code.
749  if (reference.getPrintVhdl() == 1) {
750  string t_finalCode = chooseVhdlCode(target, t_reference, data);
751  target.m_commonData->m_vhdlInProcess += t_finalCode + "\n";
752  //target.printVhdl(t_finalCode);
753  }
754 
755  }

◆ doFitting()

int doFitting ( std::vector< TRGCDCTrack * > &  trackList2D,
std::vector< TRGCDCTrack * > &  trackList2DFitted 
)
private

do track fitting. (kaiyu original)

LUT values

Definition at line 858 of file HoughFinder.cc.

◆ dump() [1/9]

void dump ( const std::string &  message = "",
const std::string &  pre = "" 
) const

dumps contents.

"message" is to select information to dump. "pre" will be printed in head of each line.

Definition at line 92 of file Time.cc.

94  {
95  cout << pre << "time(clock):";
96 
97  if (_edge)
98  cout << " o ";
99  else
100  cout << " . ";
101 
102  cout << _time;
103  cout << " abs=" << _clock->absoluteTime(_time);
104  if (msg.find("name") != string::npos ||
105  msg.find("detail") != string::npos) {
106  cout << " (" << _name << ")";
107  }
108  cout << endl;
109  }

◆ dump() [2/9]

void dump ( const std::string &  message = "",
const std::string &  pre = "" 
) const

dumps contents.

"message" is to select information to dump. "pre" will be printed in head of each line.

Definition at line 47 of file Board.cc.

48  {
49  cout << pre << _name;
50  const string tab = pre + " ";
51  if (msg.find("detail") != string::npos) {
52  cout << endl;
53  cout << pre << "System clock:" << _clockSystem->name() << endl;
54  cout << pre << "Data clock:" << _clockData->name() << endl;
55  cout << pre << "Input user clock:" << _clockUserInput->name() << endl;
56  cout << pre << "Output user clock:" << _clockUserOutput->name()
57  << endl;
58  cout << pre << "Input channels" << endl;
59  for (unsigned i = 0; i < _inputChannels.size(); i++) {
60  cout << tab << _inputChannels[i]->name() << endl;
61  }
62  cout << pre << "Output channels" << endl;
63  for (unsigned i = 0; i < _outputChannels.size(); i++) {
64  cout << tab << _outputChannels[i]->name() << endl;
65  }
66  }
67  cout << endl;
68  }

◆ dump() [3/9]

void dump ( const std::string &  message = "",
const std::string &  pre = "" 
) const

dumps contents.

"message" is to select information to dump. "pre" will be printed in head of each line.

Definition at line 204 of file State.cc.

206  {
207 
208 // bool bin = true;
209  bool large = (_size > 60) || msg.find("large") != string::npos;
210 
211  if (! large) {
212  cout << pre << "size=" << _size << ",";
213  for (unsigned i = 0; i < _size; i++) {
214  const unsigned j = _size - i - 1;
215  if ((j % 8) == 7)
216  cout << "_";
217  if ((* this)[j])
218  cout << "1";
219  else
220  cout << "0";
221  }
222  cout << dec << endl;
223  } else {
224  cout << pre << "size=" << _size << endl;
225 
226  const unsigned nPerLines = 64;
227  const unsigned lines = _size / nPerLines + 1;
228  const unsigned rem = _size % nPerLines;
229 
230  cout << "TRGState" <<
231  " +56 +48 +40 +32 +24 +16 +8"
232  << " +0" << endl;
233 
234  bool skipLast = false;
235  for (unsigned i = 0; i < lines; i++) {
236  const unsigned n0 = (i == 0) ? rem - 1 : nPerLines - 1;
237  const int n1 = 0;
238  const int os = (lines - i - 1) * nPerLines;
239 
240  const string b = TRGUtilities::itostring(os);
241 
242  TRGState s = subset(n1 + os, n0 - n1 + 1);
243 
244 // s.dump("", "*** ");
245 
246  bool skip = false;
247  if (! s.active())
248  skip = true;
249 
250  if (skip && (! skipLast)) {
251  cout << "... (all zero)" << endl;
252  skipLast = true;
253  }
254 
255  if (skip) {
256  skipLast = true;
257  continue;
258  }
259 
260  skipLast = false;
261 
262  cout.width(5);
263  cout << b;
264  cout << " ";
265 
266  if (i == 0) {
267  unsigned n = nPerLines - rem + (nPerLines - rem) / 8;
268  if (rem % 8) ++n;
269  for (unsigned j = 0; j < n; j++)
270  cout << " ";
271  }
272 
273  for (int j = n0; j >= n1; --j) {
274  const unsigned v = (* this)[j + os];
275 
276  if ((j % 8) == 7)
277  cout << "_";
278  if (v)
279  cout << "1";
280  else
281  cout << "0";
282  }
283  cout << endl;
284  }
285  }
286 
287  // else {
288  // cout << pre << "size=" << _size << ",0x";
289  // bool first = true;
290  // for (unsigned i = 0; i < _n; i++) {
291  // const unsigned j = _n - i - 1;
292  // if (((j % 4) == 3) && (! first))
293  // cout << "_";
294  // cout << hex << _state[j];
295  // first = false;
296  // }
297  // cout << dec << endl;
298 
299  // cout << pre << "size=" << _size << ",0x";
300  // bool first = true;
301  // for (unsigned i = 0; i < _n; i++) {
302  // const unsigned j = _n - i - 1;
303  // if (! first)
304  // cout << "_";
305  // cout << hex << _state[j];
306  // cout << "(";
307  // for (unsigned k = 0; k < 4; k++) {
308  // unsigned c = ((_state[j] >> (4 - k + 1) * 8) & 0xff);
309  // if (c < 0x10)
310  // cout << ".";
311  // cout << c;
312  // }
313  // cout << ")";
314  // first = false;
315  // }
316  // cout << dec << endl;
317  // }
318  }

◆ dump() [4/9]

void dump ( const std::string &  message = "",
const std::string &  pre = "" 
) const

dumps contents.

"message" is to select information to dump. "pre" will be printed in head of each line.

Definition at line 69 of file SignalVector.cc.

71  {
72 
73  cout << pre << _name << ":" << size() << " signal(s)" << endl;
74 
75  const bool det = msg.find("detail") != string::npos;
76  const bool clk = msg.find("clock") != string::npos;
77 
78  if (det || clk)
79  cout << pre << ":clock=" << _clock->name();
80 
81  if (det)
82  for (unsigned i = 0; i < size(); i++)
83  (* this)[i].dump(msg, " " + pre + "bit" +
84  TRGUtil::itostring(i) + ":");
85  else
86  for (unsigned i = 0; i < size(); i++)
87  if ((* this)[i].active())
88  (* this)[i].dump(msg, " " + pre + "bit" +
89  TRGUtil::itostring(i) + ":");
90  }

◆ dump() [5/9]

void dump ( const std::string &  message = "",
const std::string &  pre = "" 
) const

dumps contents.

"message" is to select information to dump. "pre" will be printed in head of each line.

Definition at line 198 of file SignalBundle.cc.

200  {
201  cout << pre << _name << ":" << size() << " signal vector(s)" << endl;
202  for (unsigned i = 0; i < size(); i++)
203  (* this)[i]->dump(msg, " " + pre);
204  }

◆ dump() [6/9]

void dump ( const std::string &  message = "",
const std::string &  pre = "" 
) const

dumps contents.

"message" is to select information to dump. "pre" will be printed in head of each line.

Definition at line 67 of file Tracker2D.cc.

68  {
69  TRGBoard::dump(message, pre);
70  }

◆ dump() [7/9]

void dump ( const std::string &  message = "",
const std::string &  pre = "" 
) const

dumps contents.

"message" is to select information to dump. "pre" will be printed in head of each line.

Definition at line 144 of file Signal.cc.

146  {
147 
148  string tmp;
149  tmp.resize(_name.size());
150  transform(_name.cbegin(), _name.cend(), tmp.begin(), ::toupper);
151 
152  const bool ctr = tmp.find("CLOCKCOUNTER") != string::npos;
153 
154  cout << pre << _name << ":#signal=" << _history.size();
155 
156  if (msg.find("clock") != string::npos ||
157  msg.find("detail") != string::npos) {
158  cout << ":clock=" << _clock->name();
159  }
160 
161  cout << endl;
162 
163  if (_history.size() && (! ctr)) {
164  for (unsigned i = 0; i < _history.size(); i++)
165  _history[i].dump(msg, pre + " ");
166  }
167  }

◆ dump() [8/9]

void dump ( const std::string &  message = "",
const std::string &  pre = "" 
) const

dumps contents.

"message" is to select information to dump. "pre" will be printed in head of each line.

Definition at line 93 of file Clock.cc.

95  {
96  cout << pre << _name;
97  if (_source) {
98  cout << ":sync'd to " << _source->name() << endl;
99  cout << pre << " multiplication factor=" << _multi << endl;
100  cout << pre << " division factor =" << _div << endl;
101  } else {
102  cout << endl;
103  }
104 
105  cout << pre << " offset :" << _offset << endl
106  << pre << " freq(MHz):" << _frequency << endl
107  << pre << " cycle(ns):" << _cycle << endl
108  << pre << " min pos :" << _min << endl
109  << pre << " max pos :" << _max << endl
110  << pre << " min(ns) :" << minTiming() << endl
111  << pre << " max(ns) :" << maxTiming() << endl;
112 
113  cout << pre << " numeric limit of int (min,max="
114  << numeric_limits<int>::min() << ","
115  << numeric_limits<int>::max() << ")" << endl;
116  }

◆ dump() [9/9]

void dump ( const std::string &  message = "",
const std::string &  pre = "" 
) const

dumps contents.

"message" is to select information to dump. "pre" will be printed in head of each line.

Definition at line 147 of file FrontEnd.cc.

148  {
149  TRGBoard::dump(message, pre);
150  }

◆ edges()

vector< TRGCDCLink * > edges ( const std::vector< TRGCDCLink * > &  list)
static

returns links which are edges.

This function assumes that all TRGCDCLink's are in the same super layer.

Definition at line 527 of file Link.cc.

528  {
529  vector<TRGCDCLink*> a;
530 
531  unsigned n = list.size();
532  if (n < 2) return a;
533  else if (n == 2) return list;
534 
535  const TCCell* w = list[0]->cell();
536  unsigned nWires = w->layer().nCells();
537  unsigned center = w->localId();
538 
539  unsigned left = 0;
540  unsigned right = 0;
541  TRGCDCLink* leftL = list[0];
542  TRGCDCLink* rightL = list[0];
543  for (unsigned i = 1; i < n; i++) {
544  w = list[i]->cell();
545  unsigned id = w->localId();
546 
547  unsigned distance0, distance1;
548  if (id > center) {
549  distance0 = id - center;
550  distance1 = nWires - distance0;
551  } else {
552  distance1 = center - id;
553  distance0 = nWires - distance1;
554  }
555 
556  if (distance0 < distance1) {
557  if (distance0 > right) {
558  right = distance0;
559  rightL = list[i];
560  }
561  } else {
562  if (distance1 > left) {
563  left = distance1;
564  leftL = list[i];
565  }
566  }
567  }
568 
569  a.push_back(leftL);
570  a.push_back(rightL);
571  return a;
572  }

◆ getEventTime()

int getEventTime ( void  ) const

returns bad hits(finding invalid hits).

returns event time

Definition at line 2740 of file TRGCDC.cc.

◆ getTRGCDC()

TRGCDC * getTRGCDC ( void  )
static

returns TRGCDC object.

TRGCDC should be created with specific configuration before calling this function.

Definition at line 190 of file TRGCDC.cc.

◆ getTRGGDL()

TRGGDL * getTRGGDL ( void  )
static

returns TRGGDL object.

TRGGDL should be created with specific configuration before calling this function.

Definition at line 102 of file TRGGDL.cc.

103  {
104  if (! _gdl)
105  cout << "TRGGDL::getTRGGDL !!! TRGGDL is not created yet" << endl;
106  return _gdl;
107  }

◆ getTRGGRL()

TRGGRL * getTRGGRL ( void  )
static

returns TRGGRL object.

TRGGRL should be created with specific configuration before calling this function.

Definition at line 80 of file TRGGRL.cc.

81  {
82  if (! _grl)
83  B2WARNING("TRGGRL::getTRGGRL !!! TRGGRL is not created yet");
84  return _grl;
85  }

◆ hits()

vector< const TCWHit * > hits ( void  ) const

returns a list of TRGCDCWireHit.

'update()' must be called before calling this function.

Definition at line 1703 of file TRGCDC.cc.

◆ hitsMC()

vector< const TCWHitMC * > hitsMC ( void  ) const

returns a list of TRGCDCWireHitMC.

'updateMC()' must be called before calling this function.

Definition at line 1749 of file TRGCDC.cc.

◆ implementation() [1/2]

int implementation ( const boardType type,
std::ofstream &  outfile 
)
static

make a VHDL component file.

Non-zero value will be returned if errors occured.

Definition at line 66 of file FrontEnd.cc.

◆ implementation() [2/2]

int implementation ( const unitType type,
std::ofstream &  outfile 
)
static

make a VHDL component file.

Non-zero value will be returned if errors occured.

Definition at line 69 of file Merger.cc.

71  {
72 
73  // string cname = "UNKNOWN";
74  // if (_type == innerType)
75  outfile << "-- inner type" << endl;
76  string cname = "TRGCDCMergerInner";
77  // }
78  // else {
79  // outfile << "-- outer type" << endl;
80  // cname = "TRGCDCMergerOuter";
81  // }
82 
83  outfile << "--" << endl;
84  outfile << endl;
85  outfile << " component " << cname << endl;
86  // int err = implementationPort(type, outfile);
87  outfile << " end component;" << endl;
88 
89  outfile << "--------------------------------------------------------------"
90  << endl;
91 
92  outfile << "entity " << cname << "is" << endl;
93  int err = implementationPort(type, outfile);
94  outfile << "end " << cname << ";" << endl;
95  outfile << endl;
96  outfile << "architecture Behavioral of " << cname << " is" << endl;
97  outfile << " -- local" << endl;
98  outfile << endl;
99  outfile << "begin" << endl;
100  outfile << "end Behavioral;" << endl;
101 
102  return err;
103  }

◆ inOut()

vector< TRGCDCLink * > inOut ( const std::vector< TRGCDCLink * > &  list)
static

returns links which are in the inner most and outer most layer.

This function assumes that all TRGCDCLink's are in the same super layer.

Definition at line 621 of file Link.cc.

◆ makeTrack()

TCTrack * makeTrack ( const unsigned  serialID,
const unsigned  pm 
) const
private

Make a track from serial ID in Hough plane.

(no fit, segment hit attached)

Definition at line 1110 of file HoughFinder.cc.

◆ matchUnit()

void matchUnit ( TRGCDCJSignal first,
TRGCDCJSignal second 
) const

Utilities.

Matches unit by shifting bits.

Definition at line 1264 of file JSignal.cc.

◆ nActiveCellsInPattern()

unsigned nActiveCellsInPattern ( unsigned  layerId) const
inlinevirtual

of active cells in the pattern.

Definition at line 112 of file HoughPlaneMulti.h.

113  {
114 // return _layers[id]->nActiveCellsInPattern();
115  return 999;
116  }

◆ name() [1/3]

std::string name ( void  ) const
inline

Operators.

returns name.

Definition at line 206 of file JLUT.h.

207  {
208  return m_name;
209  }

◆ name() [2/3]

string name ( void  ) const

matching function

returns name.

Definition at line 44 of file TRGGRL.cc.

◆ name() [3/3]

string name ( void  ) const

simulates track segment decisions.

returns name.

Definition at line 90 of file TRGCDC.cc.

◆ nLocalLayers()

unsigned nLocalLayers ( unsigned  superLayerId) const
inline

returns # of wire layers in a super layer.

0 will be returned if 'superLayerId' is invalid.

Definition at line 820 of file TRGCDC.h.

◆ nMissingAxialSuperLayers()

unsigned nMissingAxialSuperLayers ( const std::vector< TRGCDCLink * > &  links)
static

returns # of missing axial super layers.

Stereo super layers are not taken into accout.

Definition at line 699 of file Link.cc.

◆ operator+() [1/3]

TRGCDCLpav Belle2::operator+ ( const TRGCDCLpav la1,
const TRGCDCLpav la2 
)
  • operator

Definition at line 680 of file Lpav.cc.

683  {
684 #else
685  {
686  TRGCDCLpav la;
687 #endif
688  la.m_wsum = la1.m_wsum + la2.m_wsum;
689  la.m_xsum = la1.m_xsum + la2.m_xsum;
690  la.m_ysum = la1.m_ysum + la2.m_ysum;
691  la.m_xxsum = la1.m_xxsum + la2.m_xxsum;
692  la.m_yysum = la1.m_yysum + la2.m_yysum;
693  la.m_xysum = la1.m_xysum + la2.m_xysum;
694  la.m_xrrsum = la1.m_xrrsum + la2.m_xrrsum;
695  la.m_yrrsum = la1.m_yrrsum + la2.m_yrrsum;
696  la.m_rrrrsum = la1.m_rrrrsum + la2.m_rrrrsum;
697  la.m_nc = la1.m_nc + la2.m_nc;
698  return la;
699  }

◆ operator+() [2/3]

TRGPoint2D operator+ ( const TRGPoint2D a) const
inline
  • operator

Definition at line 162 of file Point2D.h.

163  {
164  return TRGPoint2D(_p[0] + a.x(), _p[1] + a.y());
165  }

◆ operator+() [3/3]

const TRGCDCJSignal operator+ ( TRGCDCJSignal const &  rhs) const

Arithmetic add operator.

Arithmetic operator.

Definition at line 311 of file JSignal.cc.

◆ operator-() [1/2]

TRGPoint2D operator- ( ) const
inline
  • operator

Definition at line 176 of file Point2D.h.

◆ operator-() [2/2]

TRGPoint2D operator- ( const TRGPoint2D a) const
inline
  • operator

Definition at line 169 of file Point2D.h.

◆ operator=()

const TRGCDCLpav & operator= ( const TRGCDCLpav lp)
inline

assignment operator(s)

inline function definitions

Definition at line 190 of file Lpav.h.

191  {
193  m_wsum = lp.m_wsum;
194  m_xsum = lp.m_xsum;
195  m_ysum = lp.m_ysum;
196  m_xxsum = lp.m_xxsum;
197  m_yysum = lp.m_yysum;
198  m_xysum = lp.m_xysum;
199  m_xrrsum = lp.m_xrrsum;
200  m_yrrsum = lp.m_yrrsum;
201  m_rrrrsum = lp.m_rrrrsum;
202 
203  m_wsum_temp = lp. m_wsum_temp;
204  m_xav = lp.m_xav;
205  m_yav = lp.m_yav;
206  m_xyavp = lp.m_xyavp;
207 
208  m_rscale = lp. m_rscale;
209  m_xxavp = lp.m_xxavp;
210  m_yyavp = lp.m_yyavp;
211  m_xrravp = lp.m_xrravp;
212  m_yrravp = lp.m_yrravp;
213  m_rrrravp = lp.m_rrrravp;
214  m_sinrot = lp.m_sinrot;
215  m_cosrot = lp.m_cosrot;
216 
217  m_nc = lp. m_nc;
218  m_chisq = lp.m_chisq;
219  return *this;
220  }

◆ relation()

const TRGCDCRelation relation ( void  ) const

returns MC information.

False will be returned if no MC info. available.

Definition at line 143 of file TrackBase.cc.

144  {
145 
146  TRGDebug::enterStage("MCInfo");
147 
148  map<unsigned, unsigned> relations;
149  for (unsigned i = 0; i < _tsAll.size(); i++) {
150 
151  const TCCell& cell = * _tsAll[i]->cell();
152  const TCCHit& hit = * cell.hit();
153  const unsigned iMCParticle = hit.iMCParticle();
154 
155  map<unsigned, unsigned>::iterator it = relations.find(iMCParticle);
156  if (it != relations.end())
157  ++it->second;
158  else
159  relations[iMCParticle] = 1;
160 
161  if (TRGDebug::level()) {
162  cout << TRGDebug::tab() << cell.name() << ",MCParticle="
163  << iMCParticle << endl;
164  }
165  }
166 
167  if (TRGDebug::level()) {
168  map<unsigned, unsigned>::const_iterator it = relations.begin();
169  while (it != relations.end()) {
170  cout << TRGDebug::tab()
171  << it->first << ","
172  << it->second << endl;
173  ++it;
174  }
175  }
176 
177  TRGDebug::leaveStage("MCInfo");
178 
179  return TCRelation(* this, relations);
180  }

◆ saveVhdlAndCoe()

void saveVhdlAndCoe ( )

Functions for saving.

Save VHDL and code files.

Definition at line 910 of file Fitter3D.cc.

911  {
912  // Print Vhdl
913  if (m_commonData->getPrintedToFile() == 0) {
914  if (m_commonData->getPrintVhdl() == 0) {
915  m_commonData->setVhdlOutputFile("Fitter3D.vhd");
917  } else {
923  // Print LUTs.
924  for (map<string, TRGCDCJLUT*>::iterator it = m_mLutStorage.begin(); it != m_mLutStorage.end(); ++it) {
925  //it->second->makeCOE("./VHDL/LutData/"+it->first+".coe");
926  it->second->makeCOE(it->first + ".coe");
927  }
928  }
929  }
930  }

◆ segmentHits() [1/2]

std::vector< const TRGCDCSegmentHit * > segmentHits ( unsigned  a) const
inline

returns a list of TRGCDCSegmentHit in a super layer N.

'simulate()' must be called before calling this function

Definition at line 1006 of file TRGCDC.h.

◆ segmentHits() [2/2]

std::vector< const TRGCDCSegmentHit * > segmentHits ( void  ) const
inline

returns a list of TRGCDCSegmentHit.

'simulate()' must be called before calling this function

Definition at line 997 of file TRGCDC.h.

◆ segmentLayer()

const TRGCDCLayer * segmentLayer ( unsigned  id) const
inline

returns a pointer to a track segment layer.

0 will be returned if 'id' is invalid.

Definition at line 1062 of file TRGCDC.h.

◆ simulateBoard()

void simulateBoard ( void  )

firmware simulation.

HitMap

priority timing

fastest timing

clock counter part

Definition at line 201 of file TrackSegmentFinder.cc.

202  {
203 
204  //... Clear signal bundle...
205  // if(_tisb){
206  // for(unsigned i=0;i<_tisb->size();i++)
207  // delete (* _tisb)[i];
208  // delete _tisb;
209  // }
210  if (_tosbE) {
211  for (unsigned i = 0; i < _tosbE->size(); i++)
212  delete(* _tosbE)[i];
213  delete _tosbE;
214  }
215  if (_tosbT) {
216  for (unsigned i = 0; i < _tosbT->size(); i++)
217  delete(* _tosbT)[i];
218  delete _tosbT;
219  }
220 
221  //... Clock..
222  const TRGClock& dClock = TRGCDC::getTRGCDC()->dataClock();
223 
224  //... Make input signal bundle
225  TRGSignalVector inputv(name() + "inputMerger", dClock);
226  // const string ni= name()+"InputSignalBundle";
227  // _tisb = new TRGSignalBundle(ni, dClock);
228 
229  //TRGSignalVector *inputM= new TRGSignalVector(*( (*(*this)[0]->output())[0]));
230  vector <TRGSignalVector*> inputM;
231  vector <TRGSignalVector*> findOUTTrack;
232  vector <TRGSignalVector*> findOUTEvt;
233  vector <int> tmpCTimeListE;
234  vector <int> changeTimeListE;
235  vector <int> tmpCTimeListT;
236  vector <int> changeTimeListT;
237  inputM.resize((*this).size());
238  //yi for(unsigned i=0;i<(*this).size();i++){
239  for (unsigned i = 0; i < nInput(); i++) {
240  //yi inputM[i] = new TRGSignalVector(*( (*(*this)[i]->output())[0]));
241  inputM[i] = new TRGSignalVector(* (* input(i)->signal())[0]);
242  }
243 
244  // TRGSignalVector *inputM= new TRGSignalVector(*( (*(*this)[0]->output())[0]));
245 
246  for (unsigned i = 0; i < inputM[0]->size(); i++) {
247 
248  TRGSignal msig = (*(inputM[0]))[i];
249  inputv += msig;
250  }
251 
252  vector<TRGSignalVector*> separateTS;
253  TRGSignalVector* clockCounter = new TRGSignalVector(inputv[236]);
254  for (int i = 0; i < 8; i++)
255  clockCounter->push_back(inputv[236 + i]);
256  separateTS.resize(16);
257  //separateTS.resize((*this).size()*16);
258  int nTS = separateTS.size();
259  findOUTTrack.resize(nTS);
260  findOUTEvt.resize(nTS);
261  if (type() == outerType) {
262  for (int i = 0; i < nTS; i++) {
263  separateTS[i] = new TRGSignalVector(inputv[i + 208]);
265  if (i == 0)
266  separateTS[i]->push_back(inputv[255]);
267  else
268  separateTS[i]->push_back(inputv[i - 1]);
269  separateTS[i]->push_back(inputv[i]);
270  if (i == nTS)
271  separateTS[i]->push_back(inputv[255]);
272  else
273  separateTS[i]->push_back(inputv[i + 1]);
274  if (i == 0)
275  separateTS[i]->push_back(inputv[255]);
276  else
277  separateTS[i]->push_back(inputv[i + 15]);
278  separateTS[i]->push_back(inputv[i + 16]);
279  separateTS[i]->push_back(inputv[i + 32]);
280  if (i == 0)
281  separateTS[i]->push_back(inputv[255]);
282  else
283  separateTS[i]->push_back(inputv[i + 47]);
284  separateTS[i]->push_back(inputv[i + 48]);
285  if (i == 0)
286  separateTS[i]->push_back(inputv[255]);
287  else
288  separateTS[i]->push_back(inputv[i + 63]);
289  separateTS[i]->push_back(inputv[i + 64]);
290  if (i == nTS)
291  separateTS[i]->push_back(inputv[255]);
292  else
293  separateTS[i]->push_back(inputv[i + 65]);
294 
296  separateTS[i]->push_back(inputv[4 * i + 80]);
297  separateTS[i]->push_back(inputv[4 * i + 81]);
298  separateTS[i]->push_back(inputv[4 * i + 82]);
299  separateTS[i]->push_back(inputv[4 * i + 83]);
301  separateTS[i]->push_back(inputv[4 * i + 144]);
302  separateTS[i]->push_back(inputv[4 * i + 145]);
303  separateTS[i]->push_back(inputv[4 * i + 146]);
304  separateTS[i]->push_back(inputv[4 * i + 147]);
306  const TRGSignalVector& cc = dClock.clockCounter();
307  // cc.dump();
308  separateTS[i]->push_back(cc[0]);
309  separateTS[i]->push_back(cc[1]);
310  separateTS[i]->push_back(cc[2]);
311  separateTS[i]->push_back(cc[3]);
312  separateTS[i]->push_back(cc[4]);
313 
314  }
315  // Board Type Check Start.(for future)
316  for (int i = 0; i < nTS; i++) {
317  findOUTTrack[i] = findTSHit(separateTS[i], i)[0];
318  vector<int> tt = findOUTTrack[i]->stateChanges();
319  if (tt.size())
320  tmpCTimeListT.insert(tmpCTimeListT.end(), tt.begin(), tt.end());
321 
322  findOUTEvt[i] = findTSHit(separateTS[i], i)[1];
323  vector<int> ee = findOUTEvt[i]->stateChanges();
324  if (ee.size())
325  tmpCTimeListE.insert(tmpCTimeListE.end(), ee.begin(), ee.end());
326 
327  //...iw for debug...
328  // dbgIn.push_back(separateTS[i]);
329  // dbgOut.push_back(findOUTTrack[i]);
330  }
331 
332  for (unsigned i = 0; i < tmpCTimeListT.size(); i++) {
333  bool nomatch = true;
334  for (unsigned j = 0; j < changeTimeListT.size(); j++) {
335  if (tmpCTimeListT[i] == changeTimeListT[j]) {
336  nomatch = false;
337  break;
338  }
339  }
340  if (nomatch) changeTimeListT.push_back(tmpCTimeListT[i]);
341  }
342 
343  TRGSignalVector* trackerOut = packerOuterTracker(findOUTTrack,
344  changeTimeListT, 6);
345  (*trackerOut).insert((*trackerOut).end(), (*clockCounter).begin(),
346  (*clockCounter).end());
347  trackerOut->name("TSF TrackerOut");
348 
349  const string noT = name() + "OutputSignalBundleTracker";
350  _tosbT = new TRGSignalBundle(noT, dClock);
351  _tosbT->push_back(trackerOut);
352  if (_tosbT) {
353  (*_tosbT)[0]->name(noT);
354  for (unsigned i = 0; i < (*(*_tosbT)[0]).size(); i++)
355  (*(*_tosbT)[0])[i].name(noT + ":bit" + TRGUtilities::itostring(i));
356  // _tosbT->dump("","");
357  }
358 
359  for (unsigned i = 0; i < tmpCTimeListE.size(); i++) {
360  bool nomatch = true;
361  for (unsigned j = 0; j < changeTimeListE.size(); j++) {
362  if (tmpCTimeListE[i] == changeTimeListE[j]) {
363  nomatch = false;
364  break;
365  }
366  }
367  if (nomatch) changeTimeListE.push_back(tmpCTimeListE[i]);
368  }
369 
370  TRGSignalVector* evtOut = packerOuterEvt(findOUTEvt, changeTimeListE, 6);
371  (*evtOut).insert((*evtOut).end(), (*clockCounter).begin(),
372  (*clockCounter).end());
373 
374  const string noE = name() + "OutputSignalBundleEvt";
375  _tosbE = new TRGSignalBundle(noE, dClock);
376  _tosbE->push_back(evtOut);
377  if (_tosbE) {
378  (*_tosbE)[0]->name(noE);
379  for (unsigned i = 0; i < (*(*_tosbE)[0]).size(); i++)
380  (*(*_tosbE)[0])[i].name(noE + ":bit" + TRGUtilities::itostring(i));
381  // _tosbE->dump("","");
382  }
383  // Board Type Check End.
384  }
385 
386  }

◆ stereoHits()

vector< const TCWHit * > stereoHits ( void  ) const

returns a list of stereo hits.

'update()' must be called before calling this function.

Definition at line 1690 of file TRGCDC.cc.

◆ stereoSegmentHits()

std::vector< const TRGCDCSegmentHit * > stereoSegmentHits ( unsigned  a) const
inline

returns a list of TRGCDCSegmentHit in a stereo super layer N.

'simulate()' must be called before calling this function

Definition at line 1024 of file TRGCDC.h.

◆ storeSimulationResults()

void storeSimulationResults ( std::string  collection2Dfinder,
std::string  collection2Dfitter,
std::string  collection3Dfitter 
)
private

Save results of fast simulation to data store (segment hits & tracks).

Parameters
collection2Dfindername of the StoreArray for the 2D finder tracks
collection2Dfittername of the StoreArray for the 2D fitter tracks
collection3Dfittername of the StoreArray for the 3D fitter tracks

Definition at line 2246 of file TRGCDC.cc.

◆ sub()

void sub ( double  x,
double  y,
double  w = 1,
double  a = 0,
double  b = 0 
)
private

private member functions

private member function sub

Definition at line 645 of file Lpav.cc.

◆ superLayer()

const std::vector< TRGCDCLayer * > * superLayer ( unsigned  id) const
inline

returns a pointer to a super-layer.

0 will be returned if 'id' is invalid.

Definition at line 836 of file TRGCDC.h.

◆ systemClock()

const TRGClock & systemClock ( void  ) const
inline

calculates corrected drift time.

correctionFlag(bit 0:tof, 1:T0 offset, 2:propagation delay, 3:tan(lambda) correction) returns the system clock.

Definition at line 962 of file TRGCDC.h.

◆ TRGGRLMatch()

TRGGRLMatch ( TRGCDCTrack track,
TRGECLCluster cluster,
int  flag 
)

public member functions of TRGGRLMatch class Private variables can be called by the corresponding get function

Constructor

Definition at line 30 of file TRGGRLMatch.cc.

31  : _track(track),
32  _cluster(cluster),
33  _match3D(flag)
34  {
35  calculate();
36  }

◆ TRGSignal()

TRGSignal ( const TRGClock c,
double  t0,
double  t1 
)

Constructor with clock and timing(t0 leading, t1 trailing).

t0 and t1 are in absolute time.

Definition at line 71 of file Signal.cc.

◆ TRGSignalVector()

TRGSignalVector ( const std::string &  name,
const TRGClock c,
unsigned  size = 0 
)

Default constructor.

Constructor with name.

Definition at line 34 of file SignalVector.cc.

◆ TRGTime() [1/2]

TRGTime ( double  timing,
bool  edge,
const TRGClock clock,
const std::string &  name = "signal" 
)

Constructor with clock.

For rising edge, edge must be true. Given timing is syncronized to clock.

Definition at line 35 of file Time.cc.

◆ TRGTime() [2/2]

TRGTime ( int  clockPosition,
bool  edge,
const TRGClock clock,
const std::string &  name = "signal" 
)

Constructor with clock.

For rising edge, edge must be true. Given timing is syncronized to clock.

Definition at line 46 of file Time.cc.

◆ vote() [1/2]

void vote ( float  rx,
float  ry,
unsigned  layerId,
int  weight = 1 
)
inline

Voting.

Voting.

Definition at line 188 of file HoughPlaneMulti2.h.

192  {
193  _usage[layerId] = true;
194  _layers[layerId]->vote(rx, ry, weight);
195  }

◆ vote() [2/2]

void vote ( unsigned  layerId,
unsigned  localId,
int  weight = 1 
)
inline

Voting.

Voting.

Definition at line 206 of file HoughPlaneMulti2.h.

◆ width()

unsigned width ( const std::vector< TRGCDCLink * > &  list)
static

returns width(wire cell unit) of given std::vector<TRGCDCLink *>.

This function assumes that all TRGCDCLink's are in the same super layer.

Definition at line 483 of file Link.cc.

◆ wire() [1/3]

const TCWire * wire ( float  r,
float  phi 
) const

returns a pointer to a wire.

returns a pointer to a wire.

Definition at line 913 of file TRGCDC.cc.

◆ wire() [2/3]

const TCWire * wire ( unsigned  layerId,
int  localId 
) const

returns a pointer to a wire.

'localId' can be negative. 0 will be returned if 'layerId' is invalid.

Definition at line 898 of file TRGCDC.cc.

◆ wire() [3/3]

const TCWire * wire ( unsigned  wireId) const

returns a pointer to a wire.

0 will be returned if 'wireId' is invalid.

Definition at line 890 of file TRGCDC.cc.

Variable Documentation

◆ _gdl

TRGGDL * _gdl = 0
staticprivate

GDL singleton.

do the final trigger decision

Definition at line 205 of file TRGGDL.h.

◆ _undefined

TRGCDCTrackMC * _undefined = new TRGCDCTrackMC()
static

returns a pointer to gen_hepevt.

Dummy particle.

Definition at line 89 of file TrackMC.h.

◆ TRGCDCUndefinedLayer

const TRGCDCLayer* TRGCDCUndefinedLayer
Initial value:
= new TRGCDCLayer(9999,
9999,
9999,
9999,
9999,
0,
0,
9999,
9999,
0,
0)

TRGCDCUndefinedLayer declaration.

Definition at line 30 of file Layer.cc.

Belle2::TRGCDCJSignalData::buffersVhdlCode
void buffersVhdlCode()
Function to print buffer VHDL code.
Definition: JSignalData.cc:152
Belle2::TRGState::TRGState
TRGState(unsigned bitSize=0)
Default constructor.
Definition: State.cc:35
Belle2::TRGState::_size
unsigned _size
bit size.
Definition: State.h:140
Belle2::TRGCDCLpav::m_rscale
double m_rscale
data members
Definition: Lpav.h:164
Belle2::TRGCDCTrackBase::_tsAll
std::vector< TRGCDCLink * > _tsAll
Links for all super layers.
Definition: TrackBase.h:158
Belle2::TRGTime::_edge
bool _edge
Edge type. true : rising, false : falling.
Definition: Time.h:119
Belle2::TRGCDCLpav::m_xysum
double m_xysum
data members
Definition: Lpav.h:146
Belle2::TRGCDCFitter3D::m_mLutStorage
std::map< std::string, TRGCDCJLUT * > m_mLutStorage
Map to hold JLuts.
Definition: Fitter3D.h:142
Belle2::TRGCDCJSignalData::setVhdlOutputFile
void setVhdlOutputFile(std::string)
Sets the filename for VHDL output.
Definition: JSignalData.cc:47
Belle2::TRGCDCLpav::m_yyavp
double m_yyavp
data members
Definition: Lpav.h:168
Belle2::TRGCDCJSignal::chooseVhdlCode
static std::string chooseVhdlCode(TRGCDCJSignal const &target, TRGCDCJSignal const &reference, std::vector< std::vector< TRGCDCJSignal > > const &data)
Writes the choose vhdl code.
Definition: JSignal.cc:2003
Belle2::TRGDebug::level
static int level(void)
returns the debug level.
Definition: Debug.cc:72
Belle2::TRGState::subset
TRGState subset(unsigned i, unsigned n) const
returns subset from i with n bits.
Definition: State.cc:362
Belle2::TRGClock::_source
const TRGClock * _source
Clock source.
Definition: Clock.h:124
Belle2::TRGCDCJSignalData::printToFile
void printToFile()
Utilities Function to print VHDL code.
Definition: JSignalData.cc:108
Belle2::TRGCDCHoughPlaneBoolean::vote
void vote(float rx, float ry, int weight=1) override
Votes.
Definition: HoughPlaneBoolean.h:151
Belle2::TRGCDCJSignalData::getPrintedToFile
bool getPrintedToFile() const
Gets the status of m_printedToFile.
Definition: JSignalData.cc:82
Belle2::TRGBoard::_name
const std::string _name
Name of a board.
Definition: Board.h:89
Belle2::TRGBoard::_outputChannels
std::vector< TRGChannel * > _outputChannels
Output Aurora channel.
Definition: Board.h:107
Belle2::TRGBoard::_clockUserOutput
const TRGClock * _clockUserOutput
User clock.
Definition: Board.h:101
Belle2::TRGCDCLpav::m_rrrrsum
double m_rrrrsum
data members
Definition: Lpav.h:152
Belle2::TRGCDCFitter3D::m_commonData
TRGCDCJSignalData * m_commonData
For VHDL code.
Definition: Fitter3D.h:144
Belle2::TRGCDCLpav::m_xrravp
double m_xrravp
data members
Definition: Lpav.h:170
Belle2::TRGCDCJLUT::m_name
std::string m_name
Name.
Definition: JLUT.h:135
Belle2::TRGClock::_min
int _min
Clock min. count.
Definition: Clock.h:142
Belle2::TRGCDCLpav::m_yav
double m_yav
data members
Definition: Lpav.h:159
Belle2::TRGCDCJSignalData::setPrintVhdl
void setPrintVhdl(bool)
Sets if to print VHDL output.
Definition: JSignalData.cc:52
Belle2::TRGCDCTrackSegmentFinder::packerOuterTracker
TRGSignalVector * packerOuterTracker(vector< TRGSignalVector * > &, vector< int > &, const unsigned)
Packing output for tracker.
Belle2::TRGCDCLpav::m_yrravp
double m_yrravp
data members
Definition: Lpav.h:172
Belle2::TRGCDCMerger::implementationPort
static int implementationPort(const unitType &type, std::ofstream &)
writes a port map.
Definition: Merger.cc:107
Belle2::TRGPoint2D::TRGPoint2D
TRGPoint2D()
Constructor.
Definition: Point2D.cc:22
Belle2::TRGCDCTrackSegmentFinder::findTSHit
vector< TRGSignalVector * > findTSHit(TRGSignalVector *eachInput, int)
Use LUT for find TSHit.
Belle2::TRGCDCJSignal
A class to use Signals for TRGCDC 3D tracker.
Definition: JSignal.h:36
Belle2::TRGCDCTrackSegmentFinder::packerOuterEvt
TRGSignalVector * packerOuterEvt(vector< TRGSignalVector * >, vector< int >, int)
Packing output for evtTime & Low pT.
Belle2::TRGSignalVector::_name
std::string _name
Name.
Definition: SignalVector.h:106
Belle2::TRGBoard::_clockData
const TRGClock * _clockData
Data clock.
Definition: Board.h:95
Belle2::TRGCDCLpav::m_wsum
double m_wsum
data members
Definition: Lpav.h:136
Belle2::TRGCDC::dataClock
const TRGClock & dataClock(void) const
returns the data clock.
Definition: TRGCDC.h:983
Belle2::TRGClock::name
const std::string & name(void) const
returns name.
Definition: Clock.h:162
Belle2::TRGGRL::_grl
static TRGGRL * _grl
GRL singleton.
Definition: TRGGRL.h:146
Belle2::TRGTime::_name
std::string _name
Name.
Definition: Time.h:125
Belle2::TRGCDCLpav::m_yrrsum
double m_yrrsum
data members
Definition: Lpav.h:150
Belle2::TRGCDCTrackSegmentFinder::type
boardType type(void) const
board type of TSF
Definition: TrackSegmentFinder.cc:124
Belle2::TRGCDCJSignalData::entryVhdlCode
void entryVhdlCode()
Function to print entry VHDL code.
Definition: JSignalData.cc:197
Belle2::TRGCDCLpav::m_sinrot
double m_sinrot
data members
Definition: Lpav.h:176
Belle2::TRGSignal::_history
std::vector< TRGTime > _history
Timing history.
Definition: Signal.h:183
Belle2::TRGClock::_cycle
const double _cycle
Clock cycle in nano second.
Definition: Clock.h:139
Belle2::TRGBoard::dump
void dump(const std::string &message="", const std::string &pre="") const
dumps contents.
Definition: Board.cc:47
Belle2::TRGCDCJSignalData
A class to hold common data for JSignals.
Definition: JSignalData.h:34
Belle2::TRGSignal::_clock
const TRGClock * _clock
Clock.
Definition: Signal.h:180
prepareAsicCrosstalkSimDB.ee
ee
aux.
Definition: prepareAsicCrosstalkSimDB.py:55
Belle2::TRGCDCLpav::m_xrrsum
double m_xrrsum
data members
Definition: Lpav.h:148
Belle2::TRGClock::_div
const unsigned _div
Division factor.
Definition: Clock.h:130
Belle2::TRGCDCLpav::m_wsum_temp
double m_wsum_temp
data members
Definition: Lpav.h:155
Belle2::TRGCDCJSignal::vhdlCode
static void vhdlCode(TRGCDCJSignal const &first, std::string operation, TRGCDCJSignal const &second, TRGCDCJSignal const &result, std::string &targtVhdlCode)
Writes vhdl code using two signals.
Definition: JSignal.cc:1782
Belle2::TRGClock::minTiming
double minTiming(void) const
returns min. timing.
Definition: Clock.h:169
Belle2::TRGTime::_clock
const TRGClock * _clock
Clock.
Definition: Time.h:122
Belle2::TRGClock::_frequency
const double _frequency
Frequency in MHz.
Definition: Clock.h:136
Belle2::TRGCDC::getTRGCDC
static TRGCDC * getTRGCDC(void)
returns TRGCDC object.
Definition: TRGCDC.cc:190
Belle2::TRGCDCHoughPlaneMulti2::_layers
TRGCDCHoughPlaneBoolean * _layers[N_LAYERS]
Hough plane for each layer.
Definition: HoughPlaneMulti2.h:131
Belle2::TRGCDC::_segmentHitsSL
std::vector< TRGCDCSegmentHit * > _segmentHitsSL[9]
Track Segments with hits in each super layer.
Definition: TRGCDC.h:660
Belle2::TRGCDCLpav::m_xxavp
double m_xxavp
data members
Definition: Lpav.h:166
Belle2::TRGCDCLayer::cellSize
float cellSize(void) const
returns cell size.
Definition: Layer.h:229
Belle2::TRGGRLMatch::_match3D
int _match3D
flag tells 3D information is valid or not
Definition: TRGGRLMatch.h:102
Belle2::TRGCDCLpav::m_xxsum
double m_xxsum
data members
Definition: Lpav.h:142
Belle2::TRGCDC::_axialHits
std::vector< TRGCDCWireHit * > _axialHits
CDC hits on axial wires.
Definition: TRGCDC.h:636
Belle2::TRGCDCJSignal::m_finishClock
int m_finishClock
Holds the clock tick when the signal is valid.
Definition: JSignal.h:303
Belle2::TRGCDCJLUT
A class to use LUTs for TRGCDC.
Definition: JLUT.h:36
Belle2::TRGClock::_max
int _max
Clock max. count.
Definition: Clock.h:145
Belle2::TRGGRLMatch::calculate
void calculate(void)
a function to execute calculation of matching
Definition: TRGGRLMatch.cc:43
Belle2::TRGClock::maxTiming
double maxTiming(void) const
returns max. timing.
Definition: Clock.h:177
Belle2::TRGSignalBundle::_name
std::string _name
Name.
Definition: SignalBundle.h:108
Belle2::TRGGRLMatch::_track
TRGCDCTrack * _track
a pointer to the TRGCDCTrack of the matching candidate
Definition: TRGGRLMatch.h:90
Belle2::TRGGDL::_gdl
static TRGGDL * _gdl
GDL singleton.
Definition: TRGGDL.h:205
Belle2::TRGBoard::_inputChannels
std::vector< const TRGChannel * > _inputChannels
Input Aurora channel.
Definition: Board.h:104
Belle2::TRGCDCJSignalData::getPrintVhdl
bool getPrintVhdl() const
Gets the status of m_printVhdl.
Definition: JSignalData.cc:77
Belle2::TRGCDCMerger::type
unitType type(void) const
return type.
Definition: Merger.cc:62
Belle2::TRGCDCLpav::m_cosrot
double m_cosrot
data members
Definition: Lpav.h:178
Belle2::TRGCDCLpav::m_ysum
double m_ysum
data members
Definition: Lpav.h:140
Belle2::TRGClock::_name
const std::string _name
Name.
Definition: Clock.h:121
Belle2::TRGBoard::nInput
unsigned nInput(void) const
returns input channels.
Definition: Board.h:177
Belle2::TRGUtilities::itostring
static std::string itostring(int i)
converts int to string. (Use boost::lexical_cast)
Belle2::TRGGRLMatch::_cluster
TRGECLCluster * _cluster
a pointer to the TRGECLCluster of the matching candidate
Definition: TRGGRLMatch.h:99
Belle2::TRGPoint2D::_p
double _p[2]
vector
Definition: Point2D.h:85
Belle2::TRGCDCLpav::m_xyavp
double m_xyavp
data members
Definition: Lpav.h:161
Belle2::TRGDebug::tab
static std::string tab(void)
returns tab spaces.
Definition: Debug.cc:52
Belle2::TRGSignalVector::_clock
const TRGClock * _clock
Clock.
Definition: SignalVector.h:109
Belle2::TRGCDCTrackSegmentFinder::_tosbT
TRGSignalBundle * _tosbT
Output signal bundle.
Definition: TrackSegmentFinder.h:260
Belle2::TRGCDCLpav::m_xav
double m_xav
data members
Definition: Lpav.h:157
Belle2::TRGCDCLpav::m_chisq
double m_chisq
data members
Definition: Lpav.h:183
Belle2::TRGClock::absoluteTime
double absoluteTime(int clockPosition) const
returns absolute time of clock position
Definition: Clock.cc:133
Belle2::TRGCDCHoughPlaneMulti2::_usage
bool _usage[N_LAYERS]
Used or not.
Definition: HoughPlaneMulti2.h:134
Belle2::TRGBoard::_clockUserInput
const TRGClock * _clockUserInput
User clock.
Definition: Board.h:98
Belle2::TRGCDCLpav::m_nc
double m_nc
data members
Definition: Lpav.h:181
Belle2::TRGCDCJSignalData::signalsVhdlCode
void signalsVhdlCode()
Function to print definition of signal VHDL code.
Definition: JSignalData.cc:180
Belle2::TRGBoard::_clockSystem
const TRGClock * _clockSystem
System clock.
Definition: Board.h:92
Belle2::TRGClock::_multi
const unsigned _multi
Multiplication factor.
Definition: Clock.h:127
Belle2::TRGCDCCell::_layer
const TRGCDCLayer & _layer
Layer.
Definition: Cell.h:170
Belle2::TRGDebug::leaveStage
static void leaveStage(const std::string &stageName)
Declare that you leave a stage.
Definition: Debug.cc:39
Belle2::TRGCDCTrackSegmentFinder::_tosbE
TRGSignalBundle * _tosbE
Input signal bundle.
Definition: TrackSegmentFinder.h:258
Belle2::TRGDebug::enterStage
static void enterStage(const std::string &stageName)
Declare that you enter new stage.
Definition: Debug.cc:29
Belle2::TRGCDCLpav::m_xsum
double m_xsum
data members
Definition: Lpav.h:138
Belle2::TRGCDCLpav::m_rrrravp
double m_rrrravp
data members
Definition: Lpav.h:174
Belle2::TRGCDCLpav::m_yysum
double m_yysum
data members
Definition: Lpav.h:144
Belle2::TRGCDCLpar::operator=
const TRGCDCLpar & operator=(const TRGCDCLpar &)
assignment operator(s)
Definition: Lpar.h:212
Belle2::TRGClock::_offset
const double _offset
Clock offset in nano second.
Definition: Clock.h:133
Belle2::TRGTime::_time
int _time
Time in clock unit.
Definition: Time.h:116
Belle2::TRGBoard::input
const TRGChannel * input(unsigned i) const
returns input channel i.
Definition: Board.h:163
Belle2::TRGSignal::_name
std::string _name
Name.
Definition: Signal.h:177
Belle2::TRGCDCJSignal::TRGCDCJSignal
TRGCDCJSignal()
Constructor.
Definition: JSignal.cc:56