Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DTrackingResolution Class Referenceabstract

#include <DTrackingResolution.h>

+ Inheritance diagram for DTrackingResolution:

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
 

Detailed Description

Definition at line 14 of file DTrackingResolution.h.

Constructor & Destructor Documentation

DTrackingResolution::DTrackingResolution ( )

Definition at line 18 of file DTrackingResolution.cc.

DTrackingResolution::~DTrackingResolution ( )
virtual

Definition at line 26 of file DTrackingResolution.cc.

Member Function Documentation

virtual const char* DTrackingResolution::className ( void  )
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.

virtual double DTrackingResolution::GetEfficiency ( int  geanttype,
const TVector3 &  mom 
)
pure virtual

Implemented in DTrackingResolutionGEANT.

virtual void DTrackingResolution::GetResolution ( int  geanttype,
const TVector3 &  mom,
double &  pt_res,
double &  theta_res,
double &  phi_res 
)
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().

static const char* DTrackingResolution::static_className ( void  )
inlinestatic

Definition at line 19 of file DTrackingResolution.h.

Referenced by className().

Member Data Documentation

TRandom3 DTrackingResolution::rnd
private

Definition at line 32 of file DTrackingResolution.h.


The documentation for this class was generated from the following files: