Hall-D Software
alpha
|
#include <DTrackingResolution.h>
Public Member Functions | |
DTrackingResolution () | |
virtual | ~DTrackingResolution () |
virtual const char * | className (void) |
virtual void | GetResolution (int geanttype, const TVector3 &mom, double &pt_res, double &theta_res, double &phi_res)=0 |
virtual double | GetEfficiency (int geanttype, const TVector3 &mom)=0 |
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 | |
TRandom3 | rnd |
Definition at line 14 of file DTrackingResolution.h.
DTrackingResolution::DTrackingResolution | ( | ) |
Definition at line 18 of file DTrackingResolution.cc.
|
virtual |
Definition at line 26 of file DTrackingResolution.cc.
|
inlinevirtual |
Reimplemented in DTrackingResolutionGEANT.
Definition at line 18 of file DTrackingResolution.h.
References static_className().
bool DTrackingResolution::Efficiency | ( | int | geanttype, |
const TVector3 & | mom | ||
) |
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.
|
pure virtual |
Implemented in DTrackingResolutionGEANT.
|
pure virtual |
Implemented in DTrackingResolutionGEANT.
bool DTrackingResolution::Smear | ( | int | geanttype, |
TVector3 & | mom | ||
) |
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 19 of file DTrackingResolution.h.
Referenced by className().
|
private |
Definition at line 32 of file DTrackingResolution.h.