CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
HFShowerPhoton Class Reference

#include <HFShowerPhoton.h>

Public Types

typedef math::XYZPointF Point
 point in the space More...
 

Public Member Functions

 HFShowerPhoton (float x=0, float y=0, float z=0, float lambda=0, float t=0)
 
 HFShowerPhoton (const Point &p, float time, float lambda)
 
 HFShowerPhoton (const HFShowerPhoton &)=default
 
 HFShowerPhoton (HFShowerPhoton &&)=default
 
float lambda () const
 
HFShowerPhotonoperator= (const HFShowerPhoton &)=default
 
HFShowerPhotonoperator= (HFShowerPhoton &&)=default
 
const Pointposition () const
 
float t () const
 
float x () const
 
float y () const
 
float z () const
 

Private Attributes

float lambda_
 
Point position_
 
float time_
 

Detailed Description

Definition at line 13 of file HFShowerPhoton.h.

Member Typedef Documentation

◆ Point

point in the space

Definition at line 16 of file HFShowerPhoton.h.

Constructor & Destructor Documentation

◆ HFShowerPhoton() [1/4]

HFShowerPhoton::HFShowerPhoton ( float  x = 0,
float  y = 0,
float  z = 0,
float  lambda = 0,
float  t = 0 
)

Definition at line 9 of file HFShowerPhoton.cc.

10  : position_(x, y, z), lambda_(lambda), time_(t) {}
float t() const
float x() const
float lambda() const
float y() const
float z() const

◆ HFShowerPhoton() [2/4]

HFShowerPhoton::HFShowerPhoton ( const Point p,
float  time,
float  lambda 
)

◆ HFShowerPhoton() [3/4]

HFShowerPhoton::HFShowerPhoton ( const HFShowerPhoton )
default

◆ HFShowerPhoton() [4/4]

HFShowerPhoton::HFShowerPhoton ( HFShowerPhoton &&  )
default

Member Function Documentation

◆ lambda()

float HFShowerPhoton::lambda ( ) const
inline

Definition at line 30 of file HFShowerPhoton.h.

References lambda_.

Referenced by operator<<(), and HcalForwardAnalysis::setPhotons().

30 { return lambda_; }

◆ operator=() [1/2]

HFShowerPhoton& HFShowerPhoton::operator= ( const HFShowerPhoton )
default

◆ operator=() [2/2]

HFShowerPhoton& HFShowerPhoton::operator= ( HFShowerPhoton &&  )
default

◆ position()

const Point& HFShowerPhoton::position ( ) const
inline

Definition at line 26 of file HFShowerPhoton.h.

References position_.

26 { return position_; }

◆ t()

float HFShowerPhoton::t ( ) const
inline

Definition at line 31 of file HFShowerPhoton.h.

References time_.

Referenced by operator<<(), and HcalForwardAnalysis::setPhotons().

31 { return time_; }

◆ x()

float HFShowerPhoton::x ( ) const
inline

◆ y()

float HFShowerPhoton::y ( ) const
inline

◆ z()

float HFShowerPhoton::z ( ) const
inline

Member Data Documentation

◆ lambda_

float HFShowerPhoton::lambda_
private

Definition at line 35 of file HFShowerPhoton.h.

Referenced by lambda().

◆ position_

Point HFShowerPhoton::position_
private

Definition at line 34 of file HFShowerPhoton.h.

Referenced by position(), x(), y(), and z().

◆ time_

float HFShowerPhoton::time_
private

Definition at line 36 of file HFShowerPhoton.h.

Referenced by t().