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

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

+ Inheritance diagram for PHG4CylinderCellv1:
+ Collaboration diagram for PHG4CylinderCellv1:

Public Member Functions

 PHG4CylinderCellv1 ()
 
 ~PHG4CylinderCellv1 () override
 
void identify (std::ostream &os=std::cout) const override
 
EdepConstRange get_g4hits () override
 
void add_edep (const PHG4HitDefs::keytype g4hitid, const float edep) override
 
void add_edep (const PHG4HitDefs::keytype g4hitid, const float edep, const float light_yield) override
 
ShowerEdepConstRange get_g4showers () override
 
void add_shower_edep (const int g4showerid, const float edep) override
 
void set_cell_id (const PHG4CylinderCellDefs::keytype id) override
 
void set_layer (const unsigned int i) override
 
double get_edep () const override
 
unsigned int get_layer () const override
 
PHG4CylinderCellDefs::keytype get_cell_id () const override
 
int get_binz () const override
 
int get_binphi () const override
 
int get_bineta () const override
 
float get_light_yield () const override
 
void set_zbin (const int i) override
 
void set_etabin (const int i) override
 
void set_phibin (const int i) override
 
void set_light_yield (const float lightYield) override
 
- Public Member Functions inherited from PHG4CylinderCell
 ~PHG4CylinderCell () override
 
void set_ladder_phi_index (const int) override
 
int get_ladder_phi_index () const override
 
void set_ladder_z_index (const int) override
 
int get_ladder_z_index () const override
 
virtual void set_fiber_ID (int)
 
virtual int get_fiber_ID () const
 
virtual void set_sensor_index (const std::string &)
 
virtual std::string get_sensor_index () const
 
virtual int get_j_index () const
 
virtual void set_j_index (const int)
 
virtual int get_k_index () const
 
virtual void set_k_index (const int)
 
virtual int get_l_index () const
 
virtual void set_l_index (const int)
 
- Public Member Functions inherited from PHG4Cell
 ~PHG4Cell () override
 
void CopyFrom (const PHObject *phobj) override
 
void Reset () override
 Clear Event.
 
virtual void set_cellid (const PHG4CellDefs::keytype)
 
virtual PHG4CellDefs::keytype get_cellid () const
 
virtual bool has_binning (const PHG4CellDefs::CellBinning) const
 
virtual void add_edep (const PHG4HitDefs::keytype, const int, const float)
 
virtual short int get_detid () const
 
short int get_layer () const
 
virtual void add_edep (const float)
 
virtual void add_eion (const float)
 
virtual double get_eion () const
 
virtual void add_light_yield (const float)
 
virtual void add_raw_light_yield (const float)
 
virtual float get_raw_light_yield () const
 
virtual void set_chip_index (const int)
 
virtual int get_chip_index () const
 
virtual void set_half_stave_index (const int)
 
virtual int get_half_stave_index () const
 
virtual void set_module_index (const int)
 
virtual int get_module_index () const
 
virtual int get_phibin () const
 
virtual void set_pixel_index (const int)
 
virtual int get_pixel_index () const
 
virtual void set_stave_index (const int)
 
virtual int get_stave_index () const
 
virtual int get_zbin () const
 
virtual void print () const
 
virtual bool has_property (const PROPERTY) const
 
virtual float get_property_float (const PROPERTY) const
 
virtual int get_property_int (const PROPERTY) const
 
virtual unsigned int get_property_uint (const PROPERTY) const
 
virtual void set_property (const PROPERTY, const float)
 
virtual void set_property (const PROPERTY, const int)
 
virtual void set_property (const PROPERTY, const unsigned int)
 
- 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 int isValid () const
 isValid returns non zero if object contains vailid data
 
virtual int Integrate () const
 
virtual int Integrate (PHObject *)
 

Protected Attributes

unsigned int layer
 
PHG4CylinderCellDefs::keytype cellid
 
int binz
 
int binphi
 
EdepMap edeps
 
ShowerEdepMap showeredeps
 
float light_yield
 

Additional Inherited Members

- Public Types inherited from PHG4Cell
enum  PROPERTY {
  prop_stave_index = 1, prop_half_stave_index = 2, prop_module_index = 3, prop_chip_index = 4,
  prop_pixel_index = 5, prop_phibin = 6, prop_zbin = 7, prop_ladder_z_index = 8,
  prop_ladder_phi_index = 9, prop_edep = 21, prop_eion = 22, prop_light_yield = 23,
  prop_raw_light_yield = 24, prop_MAX_NUMBER = UCHAR_MAX
}
 
enum  PROPERTY_TYPE { type_int = 1, type_uint = 2, type_float = 3, type_unknown = -1 }
 
typedef std::map
< PHG4HitDefs::keytype, float > 
EdepMap
 
typedef EdepMap::iterator EdepIterator
 
typedef EdepMap::const_iterator EdepConstIterator
 
typedef std::pair
< EdepIterator, EdepIterator
EdepRange
 
typedef std::pair
< EdepConstIterator,
EdepConstIterator
EdepConstRange
 
typedef std::map< int, float > ShowerEdepMap
 
typedef ShowerEdepMap::iterator ShowerEdepIterator
 
typedef
ShowerEdepMap::const_iterator 
ShowerEdepConstIterator
 
typedef std::pair
< ShowerEdepIterator,
ShowerEdepIterator
ShowerEdepRange
 
typedef std::pair
< ShowerEdepConstIterator,
ShowerEdepConstIterator
ShowerEdepConstRange
 
- Static Public Member Functions inherited from PHG4Cell
static std::pair< const
std::string, PROPERTY_TYPE
get_property_info (PROPERTY prop_id)
 
static bool check_property (const PROPERTY prop_id, const PROPERTY_TYPE prop_type)
 
static std::string get_property_type (const PROPERTY_TYPE prop_type)
 
- Protected Member Functions inherited from PHG4CylinderCell
 PHG4CylinderCell ()
 

Detailed Description

Definition at line 17 of file PHG4CylinderCellv1.h.

View newest version in sPHENIX GitHub at line 17 of file PHG4CylinderCellv1.h

Constructor & Destructor Documentation

PHG4CylinderCellv1::PHG4CylinderCellv1 ( )

Definition at line 7 of file PHG4CylinderCellv1.cc.

View newest version in sPHENIX GitHub at line 7 of file PHG4CylinderCellv1.cc

PHG4CylinderCellv1::~PHG4CylinderCellv1 ( )
inlineoverride

Definition at line 21 of file PHG4CylinderCellv1.h.

View newest version in sPHENIX GitHub at line 21 of file PHG4CylinderCellv1.h

Member Function Documentation

void PHG4CylinderCellv1::add_edep ( const PHG4HitDefs::keytype  g4hitid,
const float  edep 
)
overridevirtual

Reimplemented from PHG4Cell.

Definition at line 18 of file PHG4CylinderCellv1.cc.

View newest version in sPHENIX GitHub at line 18 of file PHG4CylinderCellv1.cc

References edeps.

void PHG4CylinderCellv1::add_edep ( const PHG4HitDefs::keytype  g4hitid,
const float  edep,
const float  light_yield 
)
overridevirtual

Reimplemented from PHG4Cell.

Definition at line 30 of file PHG4CylinderCellv1.cc.

View newest version in sPHENIX GitHub at line 30 of file PHG4CylinderCellv1.cc

References add_edep(), and light_yield.

Referenced by add_edep().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PHG4CylinderCellv1::add_shower_edep ( const int  g4showerid,
const float  edep 
)
overridevirtual

Reimplemented from PHG4Cell.

Definition at line 36 of file PHG4CylinderCellv1.cc.

View newest version in sPHENIX GitHub at line 36 of file PHG4CylinderCellv1.cc

References showeredeps.

int PHG4CylinderCellv1::get_bineta ( ) const
inlineoverridevirtual

Reimplemented from PHG4CylinderCell.

Definition at line 47 of file PHG4CylinderCellv1.h.

View newest version in sPHENIX GitHub at line 47 of file PHG4CylinderCellv1.h

References get_binz().

+ Here is the call graph for this function:

int PHG4CylinderCellv1::get_binphi ( ) const
inlineoverridevirtual

Reimplemented from PHG4CylinderCell.

Definition at line 46 of file PHG4CylinderCellv1.h.

View newest version in sPHENIX GitHub at line 46 of file PHG4CylinderCellv1.h

References binphi.

int PHG4CylinderCellv1::get_binz ( ) const
inlineoverridevirtual

Reimplemented from PHG4CylinderCell.

Definition at line 45 of file PHG4CylinderCellv1.h.

View newest version in sPHENIX GitHub at line 45 of file PHG4CylinderCellv1.h

References binz.

Referenced by get_bineta().

+ Here is the caller graph for this function:

PHG4CylinderCellDefs::keytype PHG4CylinderCellv1::get_cell_id ( ) const
inlineoverridevirtual

Reimplemented from PHG4CylinderCell.

Definition at line 44 of file PHG4CylinderCellv1.h.

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

References cellid.

double PHG4CylinderCellv1::get_edep ( ) const
overridevirtual

Reimplemented from PHG4Cell.

Definition at line 48 of file PHG4CylinderCellv1.cc.

View newest version in sPHENIX GitHub at line 48 of file PHG4CylinderCellv1.cc

References edeps.

Referenced by PHG4CylinderCellv3::identify(), PHG4CylinderCellv2::identify(), and identify().

+ Here is the caller graph for this function:

EdepConstRange PHG4CylinderCellv1::get_g4hits ( )
inlineoverridevirtual

Reimplemented from PHG4Cell.

Definition at line 25 of file PHG4CylinderCellv1.h.

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

References edeps.

ShowerEdepConstRange PHG4CylinderCellv1::get_g4showers ( )
inlineoverridevirtual

Reimplemented from PHG4Cell.

Definition at line 34 of file PHG4CylinderCellv1.h.

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

References showeredeps.

unsigned int PHG4CylinderCellv1::get_layer ( ) const
inlineoverridevirtual

Reimplemented from PHG4CylinderCell.

Definition at line 43 of file PHG4CylinderCellv1.h.

View newest version in sPHENIX GitHub at line 43 of file PHG4CylinderCellv1.h

References layer.

float PHG4CylinderCellv1::get_light_yield ( ) const
inlineoverridevirtual

Reimplemented from PHG4Cell.

Definition at line 48 of file PHG4CylinderCellv1.h.

View newest version in sPHENIX GitHub at line 48 of file PHG4CylinderCellv1.h

References light_yield.

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

identify Function from PHObject

Parameters
osOutput Stream

Reimplemented from PHG4CylinderCell.

Reimplemented in PHG4CylinderCellv2, and PHG4CylinderCellv3.

Definition at line 59 of file PHG4CylinderCellv1.cc.

View newest version in sPHENIX GitHub at line 59 of file PHG4CylinderCellv1.cc

References binphi, binz, cellid, get_edep(), and layer.

+ Here is the call graph for this function:

void PHG4CylinderCellv1::set_cell_id ( const PHG4CylinderCellDefs::keytype  id)
inlineoverridevirtual

Reimplemented from PHG4CylinderCell.

Definition at line 40 of file PHG4CylinderCellv1.h.

View newest version in sPHENIX GitHub at line 40 of file PHG4CylinderCellv1.h

References cellid, and train_ambiguity_solver::id.

void PHG4CylinderCellv1::set_etabin ( const int  i)
inlineoverridevirtual

Reimplemented from PHG4CylinderCell.

Definition at line 51 of file PHG4CylinderCellv1.h.

View newest version in sPHENIX GitHub at line 51 of file PHG4CylinderCellv1.h

References set_zbin().

+ Here is the call graph for this function:

void PHG4CylinderCellv1::set_layer ( const unsigned int  i)
inlineoverridevirtual

Reimplemented from PHG4CylinderCell.

Definition at line 41 of file PHG4CylinderCellv1.h.

View newest version in sPHENIX GitHub at line 41 of file PHG4CylinderCellv1.h

References i, and layer.

void PHG4CylinderCellv1::set_light_yield ( const float  lightYield)
inlineoverridevirtual

Reimplemented from PHG4CylinderCell.

Definition at line 53 of file PHG4CylinderCellv1.h.

View newest version in sPHENIX GitHub at line 53 of file PHG4CylinderCellv1.h

References light_yield.

void PHG4CylinderCellv1::set_phibin ( const int  i)
inlineoverridevirtual

Reimplemented from PHG4Cell.

Definition at line 52 of file PHG4CylinderCellv1.h.

View newest version in sPHENIX GitHub at line 52 of file PHG4CylinderCellv1.h

References binphi, and i.

void PHG4CylinderCellv1::set_zbin ( const int  i)
inlineoverridevirtual

Reimplemented from PHG4Cell.

Definition at line 50 of file PHG4CylinderCellv1.h.

View newest version in sPHENIX GitHub at line 50 of file PHG4CylinderCellv1.h

References binz, and i.

Referenced by set_etabin().

+ Here is the caller graph for this function:

Member Data Documentation

int PHG4CylinderCellv1::binphi
protected

Definition at line 59 of file PHG4CylinderCellv1.h.

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

Referenced by get_binphi(), PHG4CylinderCellv2::identify(), identify(), and set_phibin().

int PHG4CylinderCellv1::binz
protected

Definition at line 58 of file PHG4CylinderCellv1.h.

View newest version in sPHENIX GitHub at line 58 of file PHG4CylinderCellv1.h

Referenced by get_binz(), PHG4CylinderCellv2::identify(), identify(), and set_zbin().

PHG4CylinderCellDefs::keytype PHG4CylinderCellv1::cellid
protected

Definition at line 57 of file PHG4CylinderCellv1.h.

View newest version in sPHENIX GitHub at line 57 of file PHG4CylinderCellv1.h

Referenced by get_cell_id(), PHG4CylinderCellv3::identify(), PHG4CylinderCellv2::identify(), identify(), and set_cell_id().

EdepMap PHG4CylinderCellv1::edeps
protected

Definition at line 60 of file PHG4CylinderCellv1.h.

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

Referenced by add_edep(), get_edep(), and get_g4hits().

unsigned int PHG4CylinderCellv1::layer
protected

Definition at line 56 of file PHG4CylinderCellv1.h.

View newest version in sPHENIX GitHub at line 56 of file PHG4CylinderCellv1.h

Referenced by get_layer(), PHG4CylinderCellv3::identify(), PHG4CylinderCellv2::identify(), identify(), and set_layer().

float PHG4CylinderCellv1::light_yield
protected

Definition at line 62 of file PHG4CylinderCellv1.h.

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

Referenced by add_edep(), get_light_yield(), and set_light_yield().

ShowerEdepMap PHG4CylinderCellv1::showeredeps
protected

Definition at line 61 of file PHG4CylinderCellv1.h.

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

Referenced by add_shower_edep(), and get_g4showers().


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