Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4BlockGeomv1 Class Reference

#include <coresoftware/blob/master/simulation/g4simulation/g4detectors/PHG4BlockGeomv1.h>

+ Inheritance diagram for PHG4BlockGeomv1:
+ Collaboration diagram for PHG4BlockGeomv1:

Public Member Functions

 PHG4BlockGeomv1 ()
 
 PHG4BlockGeomv1 (const int layer, const double sizex, const double sizey, const double sizez, const double centerx, const double centery, const double centerz, const double zrot)
 
 ~PHG4BlockGeomv1 () override
 
void identify (std::ostream &os=std::cout) const override
 
int get_layer () const override
 
double get_width () const override
 
double get_thickness () const override
 
double get_length () const override
 
double get_center_x () const override
 
double get_center_y () const override
 
double get_center_z () const override
 
double get_z_rot () const override
 
double get_size_x () const override
 
double get_size_y () const override
 
double get_size_z () const override
 
double get_rot_matrix (const int i, const int j) const override
 
void set_layer (const int i) override
 
void set_size (const double sizex, const double sizey, const double sizez) override
 
void set_z_rot (const double zrot) override
 
void convert_local_to_global (double, double, double, double &, double &, double &) const override
 
void set_center (const double centerx, const double centery, const double centerz)
 
void convert_global_x_to_local (double, double, double, double &, double &, double &) const
 
- Public Member Functions inherited from PHG4BlockGeom
 ~PHG4BlockGeom () override
 
virtual void set_place (const double, const double, const double)
 
virtual void convert_global_to_local (const double, const double, const double, double &, double &, double &) const
 
- Public Member Functions inherited from PHObject
 PHObject ()
 ctor
 
 ~PHObject () override
 dtor
 
virtual PHObjectCloneMe () const
 Virtual copy constructor.
 
virtual PHObjectclone () const final
 
PHObjectClone (const char *newname="") const final
 
void Copy (TObject &object) const final
 
virtual void Reset ()
 Clear Event.
 
virtual int isValid () const
 isValid returns non zero if object contains vailid data
 
virtual int Integrate () const
 
virtual int Integrate (PHObject *)
 
virtual void CopyFrom (const PHObject *obj)
 

Protected Member Functions

void _build_rot_matrix ()
 
- Protected Member Functions inherited from PHG4BlockGeom
 PHG4BlockGeom ()
 

Protected Attributes

int _layer
 
double _size [3]
 
double _center [3]
 
double _rotation_z
 
double _rot_matrix [3][3]
 

Detailed Description

Definition at line 10 of file PHG4BlockGeomv1.h.

View newest version in sPHENIX GitHub at line 10 of file PHG4BlockGeomv1.h

Constructor & Destructor Documentation

PHG4BlockGeomv1::PHG4BlockGeomv1 ( )

Definition at line 8 of file PHG4BlockGeomv1.cc.

View newest version in sPHENIX GitHub at line 8 of file PHG4BlockGeomv1.cc

References _center, _rot_matrix, and _size.

PHG4BlockGeomv1::PHG4BlockGeomv1 ( const int  layer,
const double  sizex,
const double  sizey,
const double  sizez,
const double  centerx,
const double  centery,
const double  centerz,
const double  zrot 
)

Definition at line 19 of file PHG4BlockGeomv1.cc.

View newest version in sPHENIX GitHub at line 19 of file PHG4BlockGeomv1.cc

References _build_rot_matrix(), _center, and _size.

+ Here is the call graph for this function:

PHG4BlockGeomv1::~PHG4BlockGeomv1 ( )
inlineoverride

Definition at line 19 of file PHG4BlockGeomv1.h.

View newest version in sPHENIX GitHub at line 19 of file PHG4BlockGeomv1.h

Member Function Documentation

void PHG4BlockGeomv1::_build_rot_matrix ( )
protected

Definition at line 89 of file PHG4BlockGeomv1.cc.

View newest version in sPHENIX GitHub at line 89 of file PHG4BlockGeomv1.cc

References _rot_matrix, and _rotation_z.

Referenced by PHG4BlockGeomv1(), and set_z_rot().

+ Here is the caller graph for this function:

void PHG4BlockGeomv1::convert_global_x_to_local ( double  gx,
double  gy,
double  gz,
double lx,
double ly,
double lz 
) const

Definition at line 76 of file PHG4BlockGeomv1.cc.

View newest version in sPHENIX GitHub at line 76 of file PHG4BlockGeomv1.cc

References _center, _rot_matrix, and gz.

void PHG4BlockGeomv1::convert_local_to_global ( double  lx,
double  ly,
double  lz,
double gx,
double gy,
double gz 
) const
overridevirtual

Reimplemented from PHG4BlockGeom.

Definition at line 63 of file PHG4BlockGeomv1.cc.

View newest version in sPHENIX GitHub at line 63 of file PHG4BlockGeomv1.cc

References _center, and _rot_matrix.

double PHG4BlockGeomv1::get_center_x ( ) const
inlineoverridevirtual

Reimplemented from PHG4BlockGeom.

Definition at line 28 of file PHG4BlockGeomv1.h.

View newest version in sPHENIX GitHub at line 28 of file PHG4BlockGeomv1.h

References _center.

double PHG4BlockGeomv1::get_center_y ( ) const
inlineoverridevirtual

Reimplemented from PHG4BlockGeom.

Definition at line 29 of file PHG4BlockGeomv1.h.

View newest version in sPHENIX GitHub at line 29 of file PHG4BlockGeomv1.h

References _center.

double PHG4BlockGeomv1::get_center_z ( ) const
inlineoverridevirtual

Reimplemented from PHG4BlockGeom.

Definition at line 30 of file PHG4BlockGeomv1.h.

View newest version in sPHENIX GitHub at line 30 of file PHG4BlockGeomv1.h

References _center.

int PHG4BlockGeomv1::get_layer ( ) const
inlineoverridevirtual

Reimplemented from PHG4BlockGeom.

Definition at line 24 of file PHG4BlockGeomv1.h.

View newest version in sPHENIX GitHub at line 24 of file PHG4BlockGeomv1.h

References _layer.

double PHG4BlockGeomv1::get_length ( ) const
inlineoverridevirtual

Reimplemented from PHG4BlockGeom.

Definition at line 27 of file PHG4BlockGeomv1.h.

View newest version in sPHENIX GitHub at line 27 of file PHG4BlockGeomv1.h

References _size.

double PHG4BlockGeomv1::get_rot_matrix ( const int  i,
const int  j 
) const
inlineoverridevirtual

Reimplemented from PHG4BlockGeom.

Definition at line 37 of file PHG4BlockGeomv1.h.

View newest version in sPHENIX GitHub at line 37 of file PHG4BlockGeomv1.h

References _rot_matrix, i, and j.

double PHG4BlockGeomv1::get_size_x ( ) const
inlineoverridevirtual

Reimplemented from PHG4BlockGeom.

Definition at line 33 of file PHG4BlockGeomv1.h.

View newest version in sPHENIX GitHub at line 33 of file PHG4BlockGeomv1.h

References _size.

double PHG4BlockGeomv1::get_size_y ( ) const
inlineoverridevirtual

Reimplemented from PHG4BlockGeom.

Definition at line 34 of file PHG4BlockGeomv1.h.

View newest version in sPHENIX GitHub at line 34 of file PHG4BlockGeomv1.h

References _size.

double PHG4BlockGeomv1::get_size_z ( ) const
inlineoverridevirtual

Reimplemented from PHG4BlockGeom.

Definition at line 35 of file PHG4BlockGeomv1.h.

View newest version in sPHENIX GitHub at line 35 of file PHG4BlockGeomv1.h

References _size.

double PHG4BlockGeomv1::get_thickness ( ) const
inlineoverridevirtual

Reimplemented from PHG4BlockGeom.

Definition at line 26 of file PHG4BlockGeomv1.h.

View newest version in sPHENIX GitHub at line 26 of file PHG4BlockGeomv1.h

References _size.

double PHG4BlockGeomv1::get_width ( ) const
inlineoverridevirtual

Reimplemented from PHG4BlockGeom.

Definition at line 25 of file PHG4BlockGeomv1.h.

View newest version in sPHENIX GitHub at line 25 of file PHG4BlockGeomv1.h

References _size.

double PHG4BlockGeomv1::get_z_rot ( ) const
inlineoverridevirtual

Reimplemented from PHG4BlockGeom.

Definition at line 31 of file PHG4BlockGeomv1.h.

View newest version in sPHENIX GitHub at line 31 of file PHG4BlockGeomv1.h

References _rotation_z.

void PHG4BlockGeomv1::identify ( std::ostream &  os = std::cout) const
overridevirtual

identify Function from PHObject

Parameters
osOutput Stream

Reimplemented from PHG4BlockGeom.

Definition at line 37 of file PHG4BlockGeomv1.cc.

View newest version in sPHENIX GitHub at line 37 of file PHG4BlockGeomv1.cc

References _center, _layer, _rotation_z, and _size.

void PHG4BlockGeomv1::set_center ( const double  centerx,
const double  centery,
const double  centerz 
)

Definition at line 55 of file PHG4BlockGeomv1.cc.

View newest version in sPHENIX GitHub at line 55 of file PHG4BlockGeomv1.cc

References _center.

void PHG4BlockGeomv1::set_layer ( const int  i)
inlineoverridevirtual

Reimplemented from PHG4BlockGeom.

Definition at line 39 of file PHG4BlockGeomv1.h.

View newest version in sPHENIX GitHub at line 39 of file PHG4BlockGeomv1.h

References _layer, and i.

void PHG4BlockGeomv1::set_size ( const double  sizex,
const double  sizey,
const double  sizez 
)
overridevirtual

Reimplemented from PHG4BlockGeom.

Definition at line 47 of file PHG4BlockGeomv1.cc.

View newest version in sPHENIX GitHub at line 47 of file PHG4BlockGeomv1.cc

References _size.

void PHG4BlockGeomv1::set_z_rot ( const double  zrot)
inlineoverridevirtual

Reimplemented from PHG4BlockGeom.

Definition at line 44 of file PHG4BlockGeomv1.h.

View newest version in sPHENIX GitHub at line 44 of file PHG4BlockGeomv1.h

References _build_rot_matrix(), and _rotation_z.

+ Here is the call graph for this function:

Member Data Documentation

double PHG4BlockGeomv1::_center[3]
protected

Definition at line 61 of file PHG4BlockGeomv1.h.

View newest version in sPHENIX GitHub at line 61 of file PHG4BlockGeomv1.h

Referenced by convert_global_x_to_local(), convert_local_to_global(), get_center_x(), get_center_y(), get_center_z(), identify(), PHG4BlockGeomv1(), and set_center().

int PHG4BlockGeomv1::_layer
protected

Definition at line 59 of file PHG4BlockGeomv1.h.

View newest version in sPHENIX GitHub at line 59 of file PHG4BlockGeomv1.h

Referenced by get_layer(), identify(), and set_layer().

double PHG4BlockGeomv1::_rot_matrix[3][3]
protected

Definition at line 65 of file PHG4BlockGeomv1.h.

View newest version in sPHENIX GitHub at line 65 of file PHG4BlockGeomv1.h

Referenced by _build_rot_matrix(), convert_global_x_to_local(), convert_local_to_global(), get_rot_matrix(), and PHG4BlockGeomv1().

double PHG4BlockGeomv1::_rotation_z
protected

Definition at line 62 of file PHG4BlockGeomv1.h.

View newest version in sPHENIX GitHub at line 62 of file PHG4BlockGeomv1.h

Referenced by _build_rot_matrix(), get_z_rot(), identify(), and set_z_rot().

double PHG4BlockGeomv1::_size[3]
protected

Definition at line 60 of file PHG4BlockGeomv1.h.

View newest version in sPHENIX GitHub at line 60 of file PHG4BlockGeomv1.h

Referenced by get_length(), get_size_x(), get_size_y(), get_size_z(), get_thickness(), get_width(), identify(), PHG4BlockGeomv1(), and set_size().


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