ATLAS Offline Software
GeoMaterialPropertyVector.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 #ifndef GeoMaterialPropertyVector_h
6 #define GeoMaterialPropertyVector_h 1
7 
9 #include <vector>
10 
12 {
13 public:
14  bool operator ++();
17 
19  {
20  m_CurrentEntry = -1;
21  m_NumEntries = 0;
22  };
23 
24  GeoMaterialPropertyVector(double *PhotonMomenta,
25  double *PropertyValues,
26  int NumElements);
27 
29 
31 
32  void ResetIterator();
33 
34  // Add a new element (pair of numbers) to the GeoMaterialPropertyVector.
35  void AddElement(double aPhotonMomentum,
36  double aPropertyValue);
37 
38  double GetProperty() const;
39  double GetPhotonMomentum() const;
40 
41  // Dump contents
42  void DumpVector();
43 
44 private:
45  GeoMPVEntry GetEntry(int i) const;
46 
47  std::vector<GeoMPVEntry*> m_MPV;
50 };
51 
52 #endif
GeoMaterialPropertyVector::operator=
GeoMaterialPropertyVector & operator=(const GeoMaterialPropertyVector &right)
Definition: GeoMaterialPropertyVector.cxx:18
GeoMaterialPropertyVector::AddElement
void AddElement(double aPhotonMomentum, double aPropertyValue)
Definition: GeoMaterialPropertyVector.cxx:75
GeoMaterialPropertyVector::m_CurrentEntry
int m_CurrentEntry
Definition: GeoMaterialPropertyVector.h:49
GeoMPVEntry.h
GeoMaterialPropertyVector::m_MPV
std::vector< GeoMPVEntry * > m_MPV
Definition: GeoMaterialPropertyVector.h:47
GeoMaterialPropertyVector::GetProperty
double GetProperty() const
Definition: GeoMaterialPropertyVector.cxx:85
GeoMaterialPropertyVector::GetEntry
GeoMPVEntry GetEntry(int i) const
Definition: GeoMaterialPropertyVector.cxx:118
GeoMaterialPropertyVector::GeoMaterialPropertyVector
GeoMaterialPropertyVector()
Definition: GeoMaterialPropertyVector.h:18
GeoMaterialPropertyVector::ResetIterator
void ResetIterator()
Definition: GeoMaterialPropertyVector.cxx:70
GeoMaterialPropertyVector::GetPhotonMomentum
double GetPhotonMomentum() const
Definition: GeoMaterialPropertyVector.cxx:93
lumiFormat.i
int i
Definition: lumiFormat.py:92
GeoMPVEntry
Definition: GeoMPVEntry.h:9
GeoMaterialPropertyVector::~GeoMaterialPropertyVector
~GeoMaterialPropertyVector()
Definition: GeoMaterialPropertyVector.cxx:63
GeoMaterialPropertyVector::DumpVector
void DumpVector()
Definition: GeoMaterialPropertyVector.cxx:101
GeoMaterialPropertyVector::m_NumEntries
int m_NumEntries
Definition: GeoMaterialPropertyVector.h:48
GeoMaterialPropertyVector::operator++
bool operator++()
Definition: GeoMaterialPropertyVector.cxx:9
GeoMaterialPropertyVector
Definition: GeoMaterialPropertyVector.h:12