PhotoMultiplierHit.h
Go to the documentation of this file.
1 // AUTOMATICALLY GENERATED FILE - DO NOT EDIT
2 
3 #ifndef DD4POD_PhotoMultiplierHit_H
4 #define DD4POD_PhotoMultiplierHit_H
5 
8 
9 #include "dd4pod/FourVector.h"
11 #include "podio/ObjectID.h"
12 #include <ostream>
13 
14 
15 
16 namespace dd4pod {
17 
18 
19 class PhotoMultiplierHitCollection;
20 class PhotoMultiplierHitCollectionIterator;
21 class ConstPhotoMultiplierHit;
22 
28 
32 
33 public:
34 
38 
41 
44 
47 
49  PhotoMultiplierHit clone() const;
50 
53 
55  operator ConstPhotoMultiplierHit() const;
56 
57 public:
58 
60  const long long& cellID() const;
61 
63  const long& flag() const;
64 
66  const long& g4ID() const;
67 
69  const dd4pod::FourVector& position() const;
70 
72  const dd4pod::FourVector& momentum() const;
73 
75  const double& length() const;
76 
78  const dd4pod::MonteCarloContrib& truth() const;
79 
81  const double& energy() const;
82 
83 
84 
86  void cellID(long long value);
87 
89  void flag(long value);
90 
92  void g4ID(long value);
93 
98 
103 
105  void length(double value);
106 
111 
113  void energy(double value);
114 
115 
116 
117 
118 
119 
121  bool isAvailable() const;
123  void unlink() { m_obj = nullptr; }
124 
125  bool operator==(const PhotoMultiplierHit& other) const { return m_obj == other.m_obj; }
126  bool operator==(const ConstPhotoMultiplierHit& other) const;
127 
128  // less comparison operator, so that objects can be e.g. stored in sets.
129  bool operator<(const PhotoMultiplierHit& other) const { return m_obj < other.m_obj; }
130 
131  unsigned int id() const { return getObjectID().collectionID * 10000000 + getObjectID().index; }
132 
133  const podio::ObjectID getObjectID() const;
134 
135 private:
136  PhotoMultiplierHitObj* m_obj;
137 };
138 
139 std::ostream& operator<<(std::ostream& o, const ConstPhotoMultiplierHit& value);
140 
141 } // namespace dd4pod
142 
143 
144 #endif
bool operator==(const PhotoMultiplierHit &other) const
const long & g4ID() const
Access the Original Geant 4 track identifier of the creating track (debugging)
const podio::ObjectID getObjectID() const
parameter value(const doc_string &label, Targets &&... tgts)
makes required, blocking, repeatable value parameter; matches any non-empty string
Definition: clipp.h:2094
const dd4pod::FourVector & position() const
Access the position.
PhotoMultiplierHit & operator=(const PhotoMultiplierHit &other)
copy-assignment operator
PhotoMultiplierHit()
default constructor
const long long & cellID() const
Access the cellID.
bool operator<(const PhotoMultiplierHit &other) const
const dd4pod::MonteCarloContrib & truth() const
Access the truth.
void unlink()
disconnect from PhotoMultiplierHitObj instance
bool isAvailable() const
check whether the object is actually available
const dd4pod::FourVector & momentum() const
Access the momentum.
const long & flag() const
Access the User flag to classify hits.
PhotoMultiplierHit clone() const
support cloning (deep-copy)
A Collection is identified by an ID.
std::ostream & operator<<(std::ostream &o, const ConstCalorimeterHit &value)
const double & length() const
Access the length.
const double & energy() const
Access the photon energy.