SimDataFormats
CaloHit
interface
HFShowerPhoton.h
Go to the documentation of this file.
1
#ifndef SimDataFormats_HFShowerPhoton_H
2
#define SimDataFormats_HFShowerPhoton_H
3
// File: HFShowerPhoton.h
5
// Photons which will generate single photo electron as in HFShowerLibrary
7
8
#include "
DataFormats/Math/interface/Point3D.h
"
9
#include <iostream>
10
#include <cmath>
11
#include <vector>
12
13
class
HFShowerPhoton
{
14
public
:
16
typedef
math::XYZPointF
Point
;
17
18
HFShowerPhoton
(
float
x
= 0,
float
y
= 0,
float
z
= 0,
float
lambda
= 0,
float
t
= 0);
19
HFShowerPhoton
(
const
Point
&
p
,
float
time
,
float
lambda
);
20
HFShowerPhoton
(
const
HFShowerPhoton
&);
21
virtual
~HFShowerPhoton
();
22
23
const
Point
&
position
()
const
{
return
position_
; }
24
float
x
()
const
{
return
position_
.X(); }
25
float
y
()
const
{
return
position_
.Y(); }
26
float
z
()
const
{
return
position_
.Z(); }
27
float
lambda
()
const
{
return
lambda_
; }
28
float
t
()
const
{
return
time_
; }
29
30
private
:
31
Point
position_
;
32
float
lambda_
;
33
float
time_
;
34
};
35
36
typedef
std::vector<HFShowerPhoton>
HFShowerPhotonCollection
;
37
38
std::ostream&
operator<<
(std::ostream&,
const
HFShowerPhoton
&);
39
40
#endif
HFShowerPhoton::y
float y() const
Definition:
HFShowerPhoton.h:25
HFShowerPhoton::t
float t() const
Definition:
HFShowerPhoton.h:28
protons_cff.time
time
Definition:
protons_cff.py:35
HFShowerPhoton::position
const Point & position() const
Definition:
HFShowerPhoton.h:23
operator<<
std::ostream & operator<<(std::ostream &, const HFShowerPhoton &)
Definition:
HFShowerPhoton.cc:22
HFShowerPhoton::position_
Point position_
Definition:
HFShowerPhoton.h:31
HFShowerPhoton::x
float x() const
Definition:
HFShowerPhoton.h:24
HFShowerPhoton::Point
math::XYZPointF Point
point in the space
Definition:
HFShowerPhoton.h:16
HFShowerPhotonCollection
std::vector< HFShowerPhoton > HFShowerPhotonCollection
Definition:
HFShowerPhoton.h:36
Point
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition:
DMRtrends.cc:57
AlCaHLTBitMon_ParallelJobs.p
def p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
HFShowerPhoton::lambda
float lambda() const
Definition:
HFShowerPhoton.h:27
HFShowerPhoton::z
float z() const
Definition:
HFShowerPhoton.h:26
HFShowerPhoton::~HFShowerPhoton
virtual ~HFShowerPhoton()
Definition:
HFShowerPhoton.cc:20
HFShowerPhoton::lambda_
float lambda_
Definition:
HFShowerPhoton.h:32
HFShowerPhoton
Definition:
HFShowerPhoton.h:13
Point3D.h
math::XYZPointF
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float > > XYZPointF
point in space with cartesian internal representation
Definition:
Point3D.h:10
HFShowerPhoton::time_
float time_
Definition:
HFShowerPhoton.h:33
HFShowerPhoton::HFShowerPhoton
HFShowerPhoton(float x=0, float y=0, float z=0, float lambda=0, float t=0)
Definition:
HFShowerPhoton.cc:9
Generated for CMSSW Reference Manual by
1.8.16