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

#include <DTrackingResolutionGEANT.h>

+ Inheritance diagram for DTrackingResolutionGEANT:

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
 

Detailed Description

Definition at line 18 of file DTrackingResolutionGEANT.h.

Constructor & Destructor Documentation

DTrackingResolutionGEANT::DTrackingResolutionGEANT ( )

Definition at line 23 of file DTrackingResolutionGEANT.cc.

DTrackingResolutionGEANT::~DTrackingResolutionGEANT ( )
virtual

Definition at line 87 of file DTrackingResolutionGEANT.cc.

Member Function Documentation

virtual const char* DTrackingResolutionGEANT::className ( void  )
inlinevirtual

Reimplemented from DTrackingResolution.

Definition at line 22 of file DTrackingResolutionGEANT.h.

References static_className().

bool DTrackingResolution::Efficiency ( int  geanttype,
const TVector3 &  mom 
)
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.

double DTrackingResolutionGEANT::GetEfficiency ( int  geanttype,
const TVector3 &  mom 
)
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.

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

bool DTrackingResolution::Smear ( int  geanttype,
TVector3 &  mom 
)
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().

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

Definition at line 23 of file DTrackingResolutionGEANT.h.

Referenced by className().

Member Data Documentation

TH2D* DTrackingResolutionGEANT::efficiency_hist
private

Definition at line 33 of file DTrackingResolutionGEANT.h.

TFile* DTrackingResolutionGEANT::file
private

Definition at line 29 of file DTrackingResolutionGEANT.h.

TH2D* DTrackingResolutionGEANT::phi_res_hist
private

Definition at line 32 of file DTrackingResolutionGEANT.h.

TH2D* DTrackingResolutionGEANT::pt_res_hist
private

Definition at line 30 of file DTrackingResolutionGEANT.h.

TH2D* DTrackingResolutionGEANT::theta_res_hist
private

Definition at line 31 of file DTrackingResolutionGEANT.h.


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