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

#include <prototype/blob/master/offline/packages/Prototype3/RawTower_Prototype3.h>

+ Inheritance diagram for RawTower_Prototype3:
+ Collaboration diagram for RawTower_Prototype3:

Public Types

enum  { NSAMPLES = PROTOTYPE3_FEM::NSAMPLES }
 
typedef float signal_type
 
- Public Types inherited from RawTower
enum  PROPERTY { prop_scint_gammas = 1, prop_cerenkov_gammas = 2, prop_MAX_NUMBER = UCHAR_MAX }
 
typedef unsigned long long CellKeyType
 key type for cell map which should be consistent with CellKeyType
 
typedef std::map< CellKeyType,
float > 
CellMap
 
typedef CellMap::iterator CellIterator
 
typedef CellMap::const_iterator CellConstIterator
 
typedef std::pair
< CellIterator, CellIterator
CellRange
 
typedef std::pair
< CellConstIterator,
CellConstIterator
CellConstRange
 
typedef std::map< int, float > ShowerMap
 
typedef ShowerMap::iterator ShowerIterator
 
typedef ShowerMap::const_iterator ShowerConstIterator
 
typedef std::pair
< ShowerIterator,
ShowerIterator
ShowerRange
 
typedef std::pair
< ShowerConstIterator,
ShowerConstIterator
ShowerConstRange
 

Public Member Functions

 RawTower_Prototype3 ()
 
 RawTower_Prototype3 (RawTowerDefs::keytype id)
 
 RawTower_Prototype3 (const unsigned int icol, const unsigned int irow)
 
 RawTower_Prototype3 (const RawTowerDefs::CalorimeterId caloid, const unsigned int ieta, const unsigned int iphi)
 
virtual ~RawTower_Prototype3 ()
 
void Reset () override
 Clear Event.
 
int isValid () const override
 isValid returns non zero if object contains vailid data
 
void identify (std::ostream &os=std::cout) const override
 
void set_id (RawTowerDefs::keytype id) override
 
RawTowerDefs::keytype get_id () const override
 
int get_bineta () const override
 
int get_binphi () const override
 
int get_column () const override
 
int get_row () const override
 
double get_energy () const override
 energy assigned to the tower. Depending on stage of process and DST node name, it could be energy deposition, light yield or calibrated energies
 
void set_energy (const double e) override
 energy assigned to the tower. Depending on stage of process and DST node name, it could be energy deposition, light yield or calibrated energies
 
float get_time () const override
 Time stamp assigned to the tower. Depending on the tower maker, it could be rise time or peak time.
 
void set_time (const float t) override
 Time stamp assigned to the tower. Depending on the tower maker, it could be rise time or peak time.
 
void set_signal_samples (int i, signal_type sig)
 
signal_type get_signal_samples (int i) const
 
void set_HBD_channel_number (int i)
 
int get_HBD_channel_number () const
 
double get_energy_power_law_exp (int verbosity=0)
 
- Public Member Functions inherited from RawTower
 ~RawTower () override
 
virtual void set_key (RawTowerDefs::keytype id)
 
virtual RawTowerDefs::keytype get_key () const
 
virtual int get_bintheta () const
 
virtual int get_binl () const
 return layer ID assigned to tower
 
virtual double get_scint_gammas () const
 energy assigned to the tower. Depending on stage of process and DST node name, it could be energy deposition, light yield or calibrated energies
 
virtual void set_scint_gammas (const double)
 scint_gammas assigned to the tower. Depending on stage of process and DST node name, it could be scint_gammas deposition, light yield or calibrated energies
 
virtual double get_cerenkov_gammas () const
 energy assigned to the tower. Depending on stage of process and DST node name, it could be energy deposition, light yield or calibrated energies
 
virtual void set_cerenkov_gammas (const double)
 cerenkov_gammas assigned to the tower. Depending on stage of process and DST node name, it could be cerenkov_gammas deposition, light yield or calibrated energies
 
virtual bool empty_g4cells () const
 
virtual size_t size_g4cells () const
 
virtual CellConstRange get_g4cells () const
 
virtual CellIterator find_g4cell (CellKeyType id)
 
virtual CellConstIterator find_g4cell (CellKeyType id) const
 
virtual void add_ecell (const CellKeyType, const float)
 
virtual void clear_g4cells ()
 
virtual bool empty_g4showers () const
 
virtual size_t size_g4showers () const
 
virtual ShowerConstRange get_g4showers () const
 
virtual ShowerIterator find_g4shower (int)
 
virtual ShowerConstIterator find_g4shower (int) const
 
virtual void add_eshower (const int, const float)
 
virtual void clear_g4showers ()
 
virtual bool has_property (const PROPERTY) const
 
virtual double get_property (const PROPERTY) const
 
virtual void set_property (const PROPERTY, const double)
 
- 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 Integrate () const
 
virtual int Integrate (PHObject *)
 
virtual void CopyFrom (const PHObject *obj)
 

Protected Attributes

RawTowerDefs::keytype towerid
 
double energy
 
float time
 
signal_type signal_samples [NSAMPLES]
 
int HBD_channel
 

Additional Inherited Members

- Static Public Member Functions inherited from RawTower
static const std::string get_property_info (PROPERTY prop_id)
 
- Protected Member Functions inherited from RawTower
 RawTower ()
 
virtual unsigned int get_property_nocheck (const PROPERTY) const
 
virtual void set_property_nocheck (const PROPERTY, const unsigned int)
 

Detailed Description

Definition at line 14 of file RawTower_Prototype3.h.

View newest version in sPHENIX GitHub at line 14 of file RawTower_Prototype3.h

Member Typedef Documentation

Definition at line 47 of file RawTower_Prototype3.h.

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

Member Enumeration Documentation

anonymous enum
Enumerator:
NSAMPLES 

Definition at line 43 of file RawTower_Prototype3.h.

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

Constructor & Destructor Documentation

RawTower_Prototype3::RawTower_Prototype3 ( )

Definition at line 15 of file RawTower_Prototype3.cc.

View newest version in sPHENIX GitHub at line 15 of file RawTower_Prototype3.cc

References NSAMPLES, and signal_samples.

RawTower_Prototype3::RawTower_Prototype3 ( RawTowerDefs::keytype  id)

Definition at line 25 of file RawTower_Prototype3.cc.

View newest version in sPHENIX GitHub at line 25 of file RawTower_Prototype3.cc

References NSAMPLES, and signal_samples.

RawTower_Prototype3::RawTower_Prototype3 ( const unsigned int  icol,
const unsigned int  irow 
)

Definition at line 34 of file RawTower_Prototype3.cc.

View newest version in sPHENIX GitHub at line 34 of file RawTower_Prototype3.cc

References RawTowerDefs::encode_towerid(), RawTowerDefs::NONE, NSAMPLES, and signal_samples.

+ Here is the call graph for this function:

RawTower_Prototype3::RawTower_Prototype3 ( const RawTowerDefs::CalorimeterId  caloid,
const unsigned int  ieta,
const unsigned int  iphi 
)

Definition at line 45 of file RawTower_Prototype3.cc.

View newest version in sPHENIX GitHub at line 45 of file RawTower_Prototype3.cc

References RawTowerDefs::encode_towerid(), NSAMPLES, and signal_samples.

+ Here is the call graph for this function:

virtual RawTower_Prototype3::~RawTower_Prototype3 ( )
inlinevirtual

Definition at line 23 of file RawTower_Prototype3.h.

View newest version in sPHENIX GitHub at line 23 of file RawTower_Prototype3.h

Member Function Documentation

int RawTower_Prototype3::get_bineta ( ) const
inlineoverridevirtual

Reimplemented from RawTower.

Definition at line 31 of file RawTower_Prototype3.h.

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

References RawTowerDefs::decode_index1().

Referenced by identify().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int RawTower_Prototype3::get_binphi ( ) const
inlineoverridevirtual

Reimplemented from RawTower.

Definition at line 32 of file RawTower_Prototype3.h.

View newest version in sPHENIX GitHub at line 32 of file RawTower_Prototype3.h

References RawTowerDefs::decode_index2().

Referenced by identify().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int RawTower_Prototype3::get_column ( ) const
inlineoverridevirtual

Reimplemented from RawTower.

Definition at line 33 of file RawTower_Prototype3.h.

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

References RawTowerDefs::decode_index1().

+ Here is the call graph for this function:

double RawTower_Prototype3::get_energy ( ) const
inlineoverridevirtual

energy assigned to the tower. Depending on stage of process and DST node name, it could be energy deposition, light yield or calibrated energies

Reimplemented from RawTower.

Definition at line 35 of file RawTower_Prototype3.h.

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

References energy.

Referenced by identify(), isValid(), and Prototype3DSTReader::process_event().

+ Here is the caller graph for this function:

double RawTower_Prototype3::get_energy_power_law_exp ( int  verbosity = 0)

Definition at line 88 of file RawTower_Prototype3.cc.

View newest version in sPHENIX GitHub at line 88 of file RawTower_Prototype3.cc

References i, NSAMPLES, PROTOTYPE3_FEM::SampleFit_PowerLawExp(), and signal_samples.

+ Here is the call graph for this function:

int RawTower_Prototype3::get_HBD_channel_number ( ) const
inline

Definition at line 52 of file RawTower_Prototype3.h.

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

References HBD_channel.

RawTowerDefs::keytype RawTower_Prototype3::get_id ( ) const
inlineoverridevirtual

Reimplemented from RawTower.

Definition at line 30 of file RawTower_Prototype3.h.

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

References towerid.

int RawTower_Prototype3::get_row ( ) const
inlineoverridevirtual

Reimplemented from RawTower.

Definition at line 34 of file RawTower_Prototype3.h.

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

References RawTowerDefs::decode_index2().

+ Here is the call graph for this function:

RawTower_Prototype3::signal_type RawTower_Prototype3::get_signal_samples ( int  i) const

Definition at line 81 of file RawTower_Prototype3.cc.

View newest version in sPHENIX GitHub at line 81 of file RawTower_Prototype3.cc

References assert, i, NSAMPLES, and signal_samples.

float RawTower_Prototype3::get_time ( ) const
inlineoverridevirtual

Time stamp assigned to the tower. Depending on the tower maker, it could be rise time or peak time.

Reimplemented from RawTower.

Definition at line 37 of file RawTower_Prototype3.h.

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

References time.

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

identify Function from PHObject

Parameters
osOutput Stream

Reimplemented from RawTower.

Definition at line 66 of file RawTower_Prototype3.cc.

View newest version in sPHENIX GitHub at line 66 of file RawTower_Prototype3.cc

References get_bineta(), get_binphi(), and get_energy().

+ Here is the call graph for this function:

int RawTower_Prototype3::isValid ( ) const
overridevirtual

isValid returns non zero if object contains vailid data

Reimplemented from RawTower.

Definition at line 64 of file RawTower_Prototype3.cc.

View newest version in sPHENIX GitHub at line 64 of file RawTower_Prototype3.cc

References get_energy().

+ Here is the call graph for this function:

void RawTower_Prototype3::Reset ( )
overridevirtual

Clear Event.

Reimplemented from RawTower.

Definition at line 57 of file RawTower_Prototype3.cc.

View newest version in sPHENIX GitHub at line 57 of file RawTower_Prototype3.cc

References energy, NSAMPLES, signal_samples, and time.

void RawTower_Prototype3::set_energy ( const double  )
inlineoverridevirtual

energy assigned to the tower. Depending on stage of process and DST node name, it could be energy deposition, light yield or calibrated energies

Reimplemented from RawTower.

Definition at line 36 of file RawTower_Prototype3.h.

View newest version in sPHENIX GitHub at line 36 of file RawTower_Prototype3.h

References Acts::UnitConstants::e, and energy.

void RawTower_Prototype3::set_HBD_channel_number ( int  i)
inline

Definition at line 51 of file RawTower_Prototype3.h.

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

References HBD_channel, and i.

void RawTower_Prototype3::set_id ( RawTowerDefs::keytype  id)
inlineoverridevirtual

Reimplemented from RawTower.

Definition at line 29 of file RawTower_Prototype3.h.

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

References train_ambiguity_solver::id.

void RawTower_Prototype3::set_signal_samples ( int  i,
RawTower_Prototype3::signal_type  sig 
)

Definition at line 72 of file RawTower_Prototype3.cc.

View newest version in sPHENIX GitHub at line 72 of file RawTower_Prototype3.cc

References assert, i, NSAMPLES, and signal_samples.

void RawTower_Prototype3::set_time ( const float  )
inlineoverridevirtual

Time stamp assigned to the tower. Depending on the tower maker, it could be rise time or peak time.

Reimplemented from RawTower.

Definition at line 38 of file RawTower_Prototype3.h.

View newest version in sPHENIX GitHub at line 38 of file RawTower_Prototype3.h

References t, and time.

Member Data Documentation

double RawTower_Prototype3::energy
protected

energy assigned to the tower. Depending on stage of process and DST node name, it could be energy deposition, light yield or calibrated energies

Definition at line 63 of file RawTower_Prototype3.h.

View newest version in sPHENIX GitHub at line 63 of file RawTower_Prototype3.h

Referenced by get_energy(), Reset(), and set_energy().

int RawTower_Prototype3::HBD_channel
protected

Definition at line 70 of file RawTower_Prototype3.h.

View newest version in sPHENIX GitHub at line 70 of file RawTower_Prototype3.h

Referenced by get_HBD_channel_number(), and set_HBD_channel_number().

signal_type RawTower_Prototype3::signal_samples[NSAMPLES]
protected

Definition at line 69 of file RawTower_Prototype3.h.

View newest version in sPHENIX GitHub at line 69 of file RawTower_Prototype3.h

Referenced by get_energy_power_law_exp(), get_signal_samples(), RawTower_Prototype3(), Reset(), and set_signal_samples().

float RawTower_Prototype3::time
protected

Time stamp assigned to the tower. Depending on the tower maker, it could be rise time or peak time.

Definition at line 66 of file RawTower_Prototype3.h.

View newest version in sPHENIX GitHub at line 66 of file RawTower_Prototype3.h

Referenced by get_time(), Reset(), and set_time().

RawTowerDefs::keytype RawTower_Prototype3::towerid
protected

Definition at line 59 of file RawTower_Prototype3.h.

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

Referenced by get_id().


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