ATLAS Offline Software
Loading...
Searching...
No Matches
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
19
20// Namespace for the ShowerLib related classes
21namespace ShowerLib {
22
35
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
An STL vector of pointers that by default owns its pointed-to elements.
#define z
float getRSize() const
Definition Shower.h:62
void setZSize(const float zsize)
Definition Shower.h:64
void setRSize(const float rsize)
Definition Shower.h:65
float m_rsize
r size for containment check
Definition Shower.h:55
float m_zsize
z size for containment check
Definition Shower.h:56
Shower()
empty constructor
Definition Shower.h:42
Shower(float r, float z)
Definition Shower.h:44
float getZSize() const
Definition Shower.h:61
int r
Definition globals.cxx:22
Namespace for the ShowerLib related classes.
Definition StepInfo.h:17