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

#include <DTOFGeometry.h>

+ Inheritance diagram for DTOFGeometry:

Public Member Functions

 JOBJECT_PUBLIC (DTOFGeometry)
 
 DTOFGeometry (const DGeometry *locGeometry)
 
int Get_NLayers () const
 
int Get_NPlanes () const
 
int Get_NEnds () const
 
int Get_NBars () const
 
int Get_NLongBars () const
 
int Get_NShortBars () const
 
int Get_FirstShortBar () const
 
int Get_LastShortBar () const
 
float Get_LongBarLength () const
 
float Get_HalfLongBarLength () const
 
float Get_ShortBarLength () const
 
float Get_HalfShortBarLength () const
 
float Get_BarWidth () const
 
float Get_CenterVertPlane () const
 
float Get_CenterHorizPlane () const
 
float Get_CenterMidPlane () const
 
float bar2y (int bar, int end=0) const
 

convert bar number to the position of the center of the bar in local coordinations

More...
 
int y2bar (double y) const
 
                                > convert local position y to bar number

(where y is the position perpendicular to the bar length)

More...
 
void toStrings (vector< pair< string, string > > &items) const
 

Private Attributes

int NLAYERS
 
int NENDS
 number of scintillator layers More...
 
int NLONGBARS
 maximum number of ends that are read out (should be 2!) More...
 
int NSHORTBARS
 

number of long scintillator bars

More...
 
int NBARS
 

number of short scintillator bars

More...
 
int NINSTALLBARS
 

number of long scintillator bars

More...
 
int FirstShortBar
 

number of bars vertically = NLONGBARS + NSHORTBARS/2

More...
 
int LastShortBar
 

bar number of first short bar

More...
 
float LONGBARLENGTH
 

bar number of last short bar of same type north

More...
 
float HALFLONGBARLENGTH
 

length of the long scintillators

More...
 
float SHORTBARLENGTH
 

middle of the long scintillators

More...
 
float HALFSHORTBARLENGTH
 

length of the short scintillators

More...
 
float BARWIDTH
 

middle of the short scintillators

More...
 
float CenterVPlane
 

width of the scintillator bars

More...
 
float CenterHPlane
 center z position of Vertical Plane More...
 
float CenterMPlane
 center z position of Horizontal Plane More...
 
vector< double > YPOS
 center z position between the two Plane More...
 

Detailed Description

Definition at line 20 of file DTOFGeometry.h.

Constructor & Destructor Documentation

Member Function Documentation

float DTOFGeometry::bar2y ( int  bar,
int  end = 0 
) const

convert bar number to the position of the center of the bar in local coordinations

Definition at line 53 of file DTOFGeometry.cc.

References y.

Referenced by DParticleID::Get_ClosestTOFPaddleHit_Horizontal(), and DParticleID::Get_ClosestTOFPaddleHit_Vertical().

float DTOFGeometry::Get_BarWidth ( ) const
inline

Definition at line 44 of file DTOFGeometry.h.

float DTOFGeometry::Get_CenterHorizPlane ( ) const
inline

Definition at line 47 of file DTOFGeometry.h.

Referenced by DParticleID::Get_ClosestTOFPaddleHit_Horizontal().

float DTOFGeometry::Get_CenterMidPlane ( ) const
inline

Definition at line 48 of file DTOFGeometry.h.

Referenced by DParticleID::PredictTOFPaddles().

float DTOFGeometry::Get_CenterVertPlane ( ) const
inline

Definition at line 46 of file DTOFGeometry.h.

Referenced by DParticleID::Get_ClosestTOFPaddleHit_Vertical().

int DTOFGeometry::Get_FirstShortBar ( ) const
inline
float DTOFGeometry::Get_HalfLongBarLength ( ) const
inline

Definition at line 41 of file DTOFGeometry.h.

float DTOFGeometry::Get_HalfShortBarLength ( ) const
inline

Definition at line 43 of file DTOFGeometry.h.

int DTOFGeometry::Get_LastShortBar ( ) const
inline
float DTOFGeometry::Get_LongBarLength ( ) const
inline

Definition at line 40 of file DTOFGeometry.h.

Referenced by DParticleID::DParticleID().

int DTOFGeometry::Get_NBars ( ) const
inline

Definition at line 33 of file DTOFGeometry.h.

Referenced by DTOFHit_factory::brun(), and DTOFHit_factory::FillCalibTable().

int DTOFGeometry::Get_NEnds ( ) const
inline

Definition at line 30 of file DTOFGeometry.h.

int DTOFGeometry::Get_NLayers ( ) const
inline

Definition at line 28 of file DTOFGeometry.h.

int DTOFGeometry::Get_NLongBars ( ) const
inline

Definition at line 34 of file DTOFGeometry.h.

int DTOFGeometry::Get_NPlanes ( ) const
inline

Definition at line 29 of file DTOFGeometry.h.

Referenced by DTOFHit_factory::brun(), and DTOFHit_factory::FillCalibTable().

int DTOFGeometry::Get_NShortBars ( ) const
inline

Definition at line 35 of file DTOFGeometry.h.

float DTOFGeometry::Get_ShortBarLength ( ) const
inline

Definition at line 42 of file DTOFGeometry.h.

Referenced by DParticleID::DParticleID().

DTOFGeometry::JOBJECT_PUBLIC ( DTOFGeometry  )
void DTOFGeometry::toStrings ( vector< pair< string, string > > &  items) const
inline

Definition at line 53 of file DTOFGeometry.h.

int DTOFGeometry::y2bar ( double  y) const

                                > convert local position y to bar number

(where y is the position perpendicular to the bar length)

Definition at line 68 of file DTOFGeometry.cc.

References y.

Referenced by DParticleID::PredictTOFPaddles().

Member Data Documentation

float DTOFGeometry::BARWIDTH
private

middle of the short scintillators

Definition at line 79 of file DTOFGeometry.h.

Referenced by DTOFGeometry().

float DTOFGeometry::CenterHPlane
private

center z position of Vertical Plane

Definition at line 82 of file DTOFGeometry.h.

Referenced by DTOFGeometry().

float DTOFGeometry::CenterMPlane
private

center z position of Horizontal Plane

Definition at line 83 of file DTOFGeometry.h.

Referenced by DTOFGeometry().

float DTOFGeometry::CenterVPlane
private

width of the scintillator bars

Definition at line 81 of file DTOFGeometry.h.

Referenced by DTOFGeometry().

int DTOFGeometry::FirstShortBar
private

number of bars vertically = NLONGBARS + NSHORTBARS/2

Definition at line 72 of file DTOFGeometry.h.

Referenced by DTOFGeometry().

float DTOFGeometry::HALFLONGBARLENGTH
private

length of the long scintillators

Definition at line 76 of file DTOFGeometry.h.

Referenced by DTOFGeometry().

float DTOFGeometry::HALFSHORTBARLENGTH
private

length of the short scintillators

Definition at line 78 of file DTOFGeometry.h.

Referenced by DTOFGeometry().

int DTOFGeometry::LastShortBar
private

bar number of first short bar

Definition at line 73 of file DTOFGeometry.h.

Referenced by DTOFGeometry().

float DTOFGeometry::LONGBARLENGTH
private

bar number of last short bar of same type north

Definition at line 75 of file DTOFGeometry.h.

Referenced by DTOFGeometry().

int DTOFGeometry::NBARS
private

number of short scintillator bars

Definition at line 69 of file DTOFGeometry.h.

int DTOFGeometry::NENDS
private

number of scintillator layers

Definition at line 64 of file DTOFGeometry.h.

Referenced by DTOFGeometry().

int DTOFGeometry::NINSTALLBARS
private

number of long scintillator bars

Definition at line 70 of file DTOFGeometry.h.

Referenced by DTOFGeometry().

int DTOFGeometry::NLAYERS
private

Definition at line 63 of file DTOFGeometry.h.

Referenced by DTOFGeometry().

int DTOFGeometry::NLONGBARS
private

maximum number of ends that are read out (should be 2!)

Definition at line 66 of file DTOFGeometry.h.

Referenced by DTOFGeometry().

int DTOFGeometry::NSHORTBARS
private

number of long scintillator bars

Definition at line 68 of file DTOFGeometry.h.

Referenced by DTOFGeometry().

float DTOFGeometry::SHORTBARLENGTH
private

middle of the long scintillators

Definition at line 77 of file DTOFGeometry.h.

Referenced by DTOFGeometry().

vector<double> DTOFGeometry::YPOS
private

center z position between the two Plane

Definition at line 85 of file DTOFGeometry.h.

Referenced by DTOFGeometry().


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