Project
Loading...
Searching...
No Matches
o2::zdc::SpatialPhotonResponse Class Reference

#include <SpatialPhotonResponse.h>

Public Member Functions

 SpatialPhotonResponse (int Nx, int Ny, double lowerx, double lowery, double lengthx, double lengthy)
 
 SpatialPhotonResponse ()=default
 
void addPhoton (double x, double y, int nphotons)
 
void printToScreen () const
 
void reset ()
 
double getCellLx () const
 
double getCellLy () const
 
double getNx () const
 
double getNy () const
 
double getLowerX () const
 
double getLowerY () const
 
bool hasSignal () const
 
int getPhotonSum () const
 
void setDetectorID (int det)
 
int getDetectorID () const
 
void setHitTime (float t)
 
float getHitTime () const
 
std::array< int, 5 > getPhotonsPerChannel () const
 
std::vector< std::vector< int > > const & getImageData () const
 

Detailed Description

Class representing the spatial photon response in a ZDC calorimeter

Definition at line 30 of file SpatialPhotonResponse.h.

Constructor & Destructor Documentation

◆ SpatialPhotonResponse() [1/2]

SpatialPhotonResponse::SpatialPhotonResponse ( int  Nx,
int  Ny,
double  lowerx,
double  lowery,
double  lengthx,
double  lengthy 
)

Definition at line 19 of file SpatialPhotonResponse.cxx.

◆ SpatialPhotonResponse() [2/2]

o2::zdc::SpatialPhotonResponse::SpatialPhotonResponse ( )
default

Member Function Documentation

◆ addPhoton()

void SpatialPhotonResponse::addPhoton ( double  x,
double  y,
int  nphotons 
)

Definition at line 37 of file SpatialPhotonResponse.cxx.

◆ getCellLx()

double o2::zdc::SpatialPhotonResponse::getCellLx ( ) const
inline

Definition at line 44 of file SpatialPhotonResponse.h.

◆ getCellLy()

double o2::zdc::SpatialPhotonResponse::getCellLy ( ) const
inline

Definition at line 45 of file SpatialPhotonResponse.h.

◆ getDetectorID()

int o2::zdc::SpatialPhotonResponse::getDetectorID ( ) const
inline

Definition at line 61 of file SpatialPhotonResponse.h.

◆ getHitTime()

float o2::zdc::SpatialPhotonResponse::getHitTime ( ) const
inline

Definition at line 63 of file SpatialPhotonResponse.h.

◆ getImageData()

std::vector< std::vector< int > > const & o2::zdc::SpatialPhotonResponse::getImageData ( ) const
inline

Definition at line 67 of file SpatialPhotonResponse.h.

◆ getLowerX()

double o2::zdc::SpatialPhotonResponse::getLowerX ( ) const
inline

Definition at line 49 of file SpatialPhotonResponse.h.

◆ getLowerY()

double o2::zdc::SpatialPhotonResponse::getLowerY ( ) const
inline

Definition at line 50 of file SpatialPhotonResponse.h.

◆ getNx()

double o2::zdc::SpatialPhotonResponse::getNx ( ) const
inline

Definition at line 47 of file SpatialPhotonResponse.h.

◆ getNy()

double o2::zdc::SpatialPhotonResponse::getNy ( ) const
inline

Definition at line 48 of file SpatialPhotonResponse.h.

◆ getPhotonsPerChannel()

std::array< int, 5 > SpatialPhotonResponse::getPhotonsPerChannel ( ) const

Definition at line 90 of file SpatialPhotonResponse.cxx.

◆ getPhotonSum()

int o2::zdc::SpatialPhotonResponse::getPhotonSum ( ) const
inline

Definition at line 53 of file SpatialPhotonResponse.h.

◆ hasSignal()

bool o2::zdc::SpatialPhotonResponse::hasSignal ( ) const
inline

Definition at line 52 of file SpatialPhotonResponse.h.

◆ printToScreen()

void SpatialPhotonResponse::printToScreen ( ) const

Definition at line 58 of file SpatialPhotonResponse.cxx.

◆ reset()

void SpatialPhotonResponse::reset ( )

Definition at line 76 of file SpatialPhotonResponse.cxx.

◆ setDetectorID()

void o2::zdc::SpatialPhotonResponse::setDetectorID ( int  det)
inline

Definition at line 54 of file SpatialPhotonResponse.h.

◆ setHitTime()

void o2::zdc::SpatialPhotonResponse::setHitTime ( float  t)
inline

Definition at line 62 of file SpatialPhotonResponse.h.


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