Hall-D Software
alpha
|
#include <DTrackingResolutionGEANT.h>
Public Member Functions | |
DTrackingResolutionGEANT () | |
virtual | ~DTrackingResolutionGEANT () |
virtual const char * | className (void) |
void | GetResolution (int geanttype, const TVector3 &mom, double &pt_res, double &theta_res, double &phi_res) |
double | GetEfficiency (int geanttype, const TVector3 &mom) |
bool | Smear (int geanttype, TVector3 &mom) |
bool | Efficiency (int geanttype, const TVector3 &mom) |
Static Public Member Functions | |
static const char * | static_className (void) |
Private Attributes | |
TFile * | file |
TH2D * | pt_res_hist |
TH2D * | theta_res_hist |
TH2D * | phi_res_hist |
TH2D * | efficiency_hist |
Definition at line 18 of file DTrackingResolutionGEANT.h.
DTrackingResolutionGEANT::DTrackingResolutionGEANT | ( | ) |
Definition at line 23 of file DTrackingResolutionGEANT.cc.
|
virtual |
Definition at line 87 of file DTrackingResolutionGEANT.cc.
|
inlinevirtual |
Reimplemented from DTrackingResolution.
Definition at line 22 of file DTrackingResolutionGEANT.h.
References static_className().
|
inherited |
Return a boolean saying whether this event would be reconstructed or not. The value returned will vary in that if mom points to an area of the detector with 80% efficienct, then this will return "true" 80% of the time and "false" 20% of the time.
Geometric acceptance is also included so values of mom pointing away from the detector will always returen "false".
This works by calling the GetEfficiency method and then picking a random number between 0 and 1. If the random number is less than or equal to the efficiency value, then true is returned . Otherwise, false is returned.
Definition at line 75 of file DTrackingResolution.cc.
|
virtual |
Return the reconstruction efficiency for a charged particle based on results from GEANT-based Monte Carlo studies.
Implements DTrackingResolution.
Definition at line 124 of file DTrackingResolutionGEANT.cc.
|
virtual |
Return the momentum and angular resolutions for a charged particle based on results from GEANT-based Monte Carlo studies.
Implements DTrackingResolution.
Definition at line 95 of file DTrackingResolutionGEANT.cc.
|
inherited |
Smear the momentum vector of a charged particle based on reolutions obtained from the GetResolution method.
The value of geanttype should specify the particle type using the GEANT particle ids.
The units of mom should be GeV/c
Definition at line 34 of file DTrackingResolution.cc.
References sin().
|
inlinestatic |
Definition at line 23 of file DTrackingResolutionGEANT.h.
Referenced by className().
|
private |
Definition at line 33 of file DTrackingResolutionGEANT.h.
|
private |
Definition at line 29 of file DTrackingResolutionGEANT.h.
|
private |
Definition at line 32 of file DTrackingResolutionGEANT.h.
|
private |
Definition at line 30 of file DTrackingResolutionGEANT.h.
|
private |
Definition at line 31 of file DTrackingResolutionGEANT.h.