TrdMCClusterR Fit Classifier
|
Classes | |
struct | Cluster |
struct | TRDHitCluster |
struct | Track |
struct | TRDTrack |
Enumerations | |
enum | Coordinate { X , Y , Z } |
Functions | |
template<typename T > | |
double | GetDistance (const T &P1, const T &P2) |
bool | IsClusterInsideTRD (const TH2F *h2D_TRDMap_XZ, const TH2F *h2D_TRDMap_YZ, const TH2F *h2D_TRDMap_XY, double x, double y, double z) |
void | printTRDTrackInfo (const std::vector< TRDTrack > &vTracks) |
std::vector< double > | GetAllPosValues (const std::vector< Track > &allTracks, Coordinate coord) |
std::vector< double > | GetTrkPosValues (const Track &track, Coordinate coord) |
TGraph2D * | SetTrackClustersToGraph (const AMSTrdMCTrack::Track &track) |
TH3D * | SetTrackClustersInTH3D (const AMSTrdMCTrack::Track &track) |
std::vector<double> AMSTrdMCTrack::GetAllPosValues | ( | const std::vector< Track > & | allTracks, |
Coordinate | coord | ||
) |
double AMSTrdMCTrack::GetDistance | ( | const T & | P1, |
const T & | P2 | ||
) |
Template function to calculate the Euclidean distance between two Cluster instances
std::vector<double> AMSTrdMCTrack::GetTrkPosValues | ( | const Track & | track, |
Coordinate | coord | ||
) |
bool AMSTrdMCTrack::IsClusterInsideTRD | ( | const TH2F * | h2D_TRDMap_XZ, |
const TH2F * | h2D_TRDMap_YZ, | ||
const TH2F * | h2D_TRDMap_XY, | ||
double | x, | ||
double | y, | ||
double | z | ||
) |
Create new static histograms for additional checks. Static to ensure they are not recreated on each function call
Check if histograms are already initialized
Reproduce module distribution in XZ view
Loop over x-axis
Loop over y-axis
Only allow bins 4 to 15 to be non-zero
Reproduce module distribution in YZ view
Loop over x-axis
Loop over y-axis
Only allow the first 4 and last 4 bins to be non-zero
Check (x, z) in histogramXZ
Check (y, z) in histogramYZ
Check if histograms are successfully opened
Check (x, y) in h2D_TRDMap_XY
Check (x, z) in h2D_TRDMap_XZ
Check (y, z) in h2D_TRDMap_YZ
If all checks are passed, return true
void AMSTrdMCTrack::printTRDTrackInfo | ( | const std::vector< TRDTrack > & | vTracks | ) |
TH3D* AMSTrdMCTrack::SetTrackClustersInTH3D | ( | const AMSTrdMCTrack::Track & | track | ) |
Function to set the clusters in a TH3D
Create a 3D histogram
Fill the histogram with the cluster positions
TGraph2D* AMSTrdMCTrack::SetTrackClustersToGraph | ( | const AMSTrdMCTrack::Track & | track | ) |
Function to set the clusters in a TGraph2D