ATLAS Offline Software
LArCalorimeter
LArG4
LArG4ShowerLib
LArG4ShowerLib
Shower.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
6
#ifndef SHOWER_LIB_SHOWER_H
7
#define SHOWER_LIB_SHOWER_H
8
9
// STL includes
10
#include <vector>
11
#include <string>
12
#include <iostream>
13
14
// local includes
15
// #include "LArG4Code/EnergySpot.h"
16
17
#include "
AthContainers/DataVector.h
"
18
#include "
LArG4ShowerLib/ShowerEnergySpot.h
"
19
20
// Namespace for the ShowerLib related classes
21
namespace
ShowerLib
{
22
36
class
Shower
:
public
std::vector<ShowerEnergySpot*> {
37
// class Shower : public DataVector<ShowerEnergySpot> {
38
39
public
:
40
42
Shower
() :
m_rsize
(0.0),
m_zsize
(0.0) {}
43
44
Shower
(
float
r
,
float
z
) :
m_rsize
(
r
),
m_zsize
(
z
) {}
45
46
inline
float
getZSize
()
const
;
47
inline
float
getRSize
()
const
;
48
49
inline
void
setZSize
(
const
float
zsize);
50
inline
void
setRSize
(
const
float
rsize);
51
52
53
private
:
54
55
float
m_rsize
;
56
float
m_zsize
;
57
58
};
59
60
// inline functions
61
float
Shower::getZSize
()
const
{
return
m_zsize
; }
62
float
Shower::getRSize
()
const
{
return
m_rsize
; }
63
64
void
Shower::setZSize
(
const
float
zsize) {
m_zsize
= zsize; }
65
void
Shower::setRSize
(
const
float
rsize) {
m_rsize
= rsize; }
66
67
68
}
// namespace ShowerLib
69
70
#endif // SHOWER_LIB_SHOWER_H
ShowerLib::Shower::setZSize
void setZSize(const float zsize)
Definition:
Shower.h:64
beamspotman.r
def r
Definition:
beamspotman.py:676
ShowerLib::Shower::Shower
Shower(float r, float z)
Definition:
Shower.h:44
ShowerLib::Shower
Class for shower library shower.
Definition:
Shower.h:36
ShowerLib::Shower::Shower
Shower()
empty constructor
Definition:
Shower.h:42
ShowerLib::Shower::m_rsize
float m_rsize
r size for containment check
Definition:
Shower.h:55
ShowerEnergySpot.h
ShowerLib::Shower::m_zsize
float m_zsize
z size for containment check
Definition:
Shower.h:56
z
#define z
ShowerLib::Shower::getZSize
float getZSize() const
Definition:
Shower.h:61
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
ShowerLib::Shower::setRSize
void setRSize(const float rsize)
Definition:
Shower.h:65
ShowerLib
Namespace for the ShowerLib related classes.
Definition:
LArG4GenShowerLib.h:19
ShowerLib::Shower::getRSize
float getRSize() const
Definition:
Shower.h:62
Generated on Fri Jan 10 2025 21:17:38 for ATLAS Offline Software by
1.8.18