TrdMCClusterR Fit Classifier
Functions
TrackerL1 Namespace Reference

cm More...

Functions

bool HasL1XYHit (const TH2D *hTrackerL1_XY, const double &x, const double &y, const bool &debug=false)
 
std::pair< Point::Point2DwID, bool > FindClosestTrkL1ClusterFrom3DLine (const TH2D *hTrackerL1_XY, const Line::Line3DParametricForm &line, const std::vector< Point::Point2DwID > &gMCClustersXY, const bool &debug=false)
 

Detailed Description

cm

Function Documentation

◆ FindClosestTrkL1ClusterFrom3DLine()

std::pair<Point::Point2DwID, bool> TrackerL1::FindClosestTrkL1ClusterFrom3DLine ( const TH2D *  hTrackerL1_XY,
const Line::Line3DParametricForm line,
const std::vector< Point::Point2DwID > &  gMCClustersXY,
const bool &  debug = false 
)

Validate the function inputs

Step 1: Solve for t given the target Z

Step 2: Find extrapolated X and Y using t

Step 3: Check if L1 hit exists. If not, return empty pair

Step 4: Find the closest gMCCluster

init a very high value

x1, y1, x2, y2

reset to the smaller value

Step 5: Return the closest gMCCluster 0.01cm is 100um (micron) (AMS tracker resolution is ~1um). using a cut of less 0.1cm seems justified. the distribution really changes at that stage. there is another change in slope at 200um.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HasL1XYHit()

bool TrackerL1::HasL1XYHit ( const TH2D *  hTrackerL1_XY,
const double &  x,
const double &  y,
const bool &  debug = false 
)

Get the bin indexes for the point

Here is the caller graph for this function: