#include <TrackerHit.h>
Public Member Functions | |
| TrackerHit () | |
| default constructor More... | |
| TrackerHit (long long cellID, long flag, long g4ID, dd4pod::FourVector position, dd4pod::FourVector momentum, double length, dd4pod::MonteCarloContrib truth, double energyDeposit) | |
| TrackerHit (TrackerHitObj *obj) | |
| constructor from existing TrackerHitObj More... | |
| TrackerHit (const TrackerHit &other) | |
| copy constructor More... | |
| TrackerHit & | operator= (const TrackerHit &other) |
| copy-assignment operator More... | |
| TrackerHit | clone () const |
| support cloning (deep-copy) More... | |
| ~TrackerHit () | |
| destructor More... | |
| operator ConstTrackerHit () const | |
| conversion to const object More... | |
| const long long & | cellID () const |
| Access the cellID. More... | |
| const long & | flag () const |
| Access the User flag to classify hits. More... | |
| const long & | g4ID () const |
| Access the Original Geant4 track identifier of the creating track (debugging) More... | |
| const dd4pod::FourVector & | position () const |
| Access the position. More... | |
| const dd4pod::FourVector & | momentum () const |
| Access the momentum. More... | |
| const double & | length () const |
| Access the length. More... | |
| const dd4pod::MonteCarloContrib & | truth () const |
| Access the truth. More... | |
| const double & | energyDeposit () const |
| Access the energyDeposit. More... | |
| void | cellID (long long value) |
| Set the cellID. More... | |
| void | flag (long value) |
| Set the User flag to classify hits. More... | |
| void | g4ID (long value) |
| Set the Original Geant4 track identifier of the creating track (debugging) More... | |
| void | position (dd4pod::FourVector value) |
| Set the position. More... | |
| dd4pod::FourVector & | position () |
| Get reference to position. More... | |
| void | momentum (dd4pod::FourVector value) |
| Set the momentum. More... | |
| dd4pod::FourVector & | momentum () |
| Get reference to momentum. More... | |
| void | length (double value) |
| Set the length. More... | |
| void | truth (dd4pod::MonteCarloContrib value) |
| Set the truth. More... | |
| dd4pod::MonteCarloContrib & | truth () |
| Get reference to truth. More... | |
| void | energyDeposit (double value) |
| Set the energyDeposit. More... | |
| bool | isAvailable () const |
| check whether the object is actually available More... | |
| void | unlink () |
| disconnect from TrackerHitObj instance More... | |
| bool | operator== (const TrackerHit &other) const |
| bool | operator== (const ConstTrackerHit &other) const |
| bool | operator< (const TrackerHit &other) const |
| unsigned int | id () const |
| const podio::ObjectID | getObjectID () const |
Detailed Description
Podio implementation of dd4hep's dd4hep::sim::Geant4Tracker::Hit class
Definition at line 27 of file TrackerHit.h.
Constructor & Destructor Documentation
◆ TrackerHit() [1/4]
| dd4pod::TrackerHit::TrackerHit | ( | ) |
default constructor
Definition at line 16 of file TrackerHit.cc.
◆ TrackerHit() [2/4]
| dd4pod::TrackerHit::TrackerHit | ( | long long | cellID, |
| long | flag, | ||
| long | g4ID, | ||
| dd4pod::FourVector | position, | ||
| dd4pod::FourVector | momentum, | ||
| double | length, | ||
| dd4pod::MonteCarloContrib | truth, | ||
| double | energyDeposit | ||
| ) |
Definition at line 20 of file TrackerHit.cc.
◆ TrackerHit() [3/4]
| dd4pod::TrackerHit::TrackerHit | ( | TrackerHitObj * | obj | ) |
constructor from existing TrackerHitObj
Definition at line 42 of file TrackerHit.cc.
◆ TrackerHit() [4/4]
| dd4pod::TrackerHit::TrackerHit | ( | const TrackerHit & | other | ) |
copy constructor
Definition at line 32 of file TrackerHit.cc.
◆ ~TrackerHit()
| dd4pod::TrackerHit::~TrackerHit | ( | ) |
destructor
Definition at line 50 of file TrackerHit.cc.
Member Function Documentation
◆ cellID() [1/2]
| const long long & dd4pod::TrackerHit::cellID | ( | ) | const |
Access the cellID.
Definition at line 55 of file TrackerHit.cc.
◆ cellID() [2/2]
| void dd4pod::TrackerHit::cellID | ( | long long | value | ) |
Set the cellID.
Definition at line 65 of file TrackerHit.cc.
◆ clone()
| TrackerHit dd4pod::TrackerHit::clone | ( | ) | const |
support cloning (deep-copy)
Definition at line 46 of file TrackerHit.cc.
◆ energyDeposit() [1/2]
| const double & dd4pod::TrackerHit::energyDeposit | ( | ) | const |
Access the energyDeposit.
Definition at line 62 of file TrackerHit.cc.
◆ energyDeposit() [2/2]
| void dd4pod::TrackerHit::energyDeposit | ( | double | value | ) |
Set the energyDeposit.
Definition at line 75 of file TrackerHit.cc.
◆ flag() [1/2]
| const long & dd4pod::TrackerHit::flag | ( | ) | const |
Access the User flag to classify hits.
Definition at line 56 of file TrackerHit.cc.
◆ flag() [2/2]
| void dd4pod::TrackerHit::flag | ( | long | value | ) |
Set the User flag to classify hits.
Definition at line 66 of file TrackerHit.cc.
◆ g4ID() [1/2]
| const long & dd4pod::TrackerHit::g4ID | ( | ) | const |
Access the Original Geant4 track identifier of the creating track (debugging)
Definition at line 57 of file TrackerHit.cc.
◆ g4ID() [2/2]
| void dd4pod::TrackerHit::g4ID | ( | long | value | ) |
Set the Original Geant4 track identifier of the creating track (debugging)
Definition at line 67 of file TrackerHit.cc.
◆ getObjectID()
| const podio::ObjectID dd4pod::TrackerHit::getObjectID | ( | ) | const |
Definition at line 90 of file TrackerHit.cc.
◆ id()
|
inline |
Definition at line 131 of file TrackerHit.h.
◆ isAvailable()
| bool dd4pod::TrackerHit::isAvailable | ( | ) | const |
check whether the object is actually available
Definition at line 83 of file TrackerHit.cc.
◆ length() [1/2]
| const double & dd4pod::TrackerHit::length | ( | ) | const |
Access the length.
Definition at line 60 of file TrackerHit.cc.
◆ length() [2/2]
| void dd4pod::TrackerHit::length | ( | double | value | ) |
Set the length.
Definition at line 72 of file TrackerHit.cc.
◆ momentum() [1/3]
| dd4pod::FourVector & dd4pod::TrackerHit::momentum | ( | ) |
Get reference to momentum.
Definition at line 71 of file TrackerHit.cc.
◆ momentum() [2/3]
| const dd4pod::FourVector & dd4pod::TrackerHit::momentum | ( | ) | const |
Access the momentum.
Definition at line 59 of file TrackerHit.cc.
◆ momentum() [3/3]
| void dd4pod::TrackerHit::momentum | ( | dd4pod::FourVector | value | ) |
Set the momentum.
Definition at line 70 of file TrackerHit.cc.
◆ operator ConstTrackerHit()
| dd4pod::TrackerHit::operator ConstTrackerHit | ( | ) | const |
conversion to const object
Definition at line 53 of file TrackerHit.cc.
◆ operator<()
|
inline |
Definition at line 129 of file TrackerHit.h.
◆ operator=()
| TrackerHit & dd4pod::TrackerHit::operator= | ( | const TrackerHit & | other | ) |
copy-assignment operator
Definition at line 36 of file TrackerHit.cc.
◆ operator==() [1/2]
| bool dd4pod::TrackerHit::operator== | ( | const ConstTrackerHit & | other | ) | const |
Definition at line 97 of file TrackerHit.cc.
◆ operator==() [2/2]
|
inline |
Definition at line 125 of file TrackerHit.h.
◆ position() [1/3]
| dd4pod::FourVector & dd4pod::TrackerHit::position | ( | ) |
Get reference to position.
Definition at line 69 of file TrackerHit.cc.
◆ position() [2/3]
| const dd4pod::FourVector & dd4pod::TrackerHit::position | ( | ) | const |
Access the position.
Definition at line 58 of file TrackerHit.cc.
◆ position() [3/3]
| void dd4pod::TrackerHit::position | ( | dd4pod::FourVector | value | ) |
Set the position.
Definition at line 68 of file TrackerHit.cc.
◆ truth() [1/3]
| dd4pod::MonteCarloContrib & dd4pod::TrackerHit::truth | ( | ) |
Get reference to truth.
Definition at line 74 of file TrackerHit.cc.
◆ truth() [2/3]
| const dd4pod::MonteCarloContrib & dd4pod::TrackerHit::truth | ( | ) | const |
Access the truth.
Definition at line 61 of file TrackerHit.cc.
◆ truth() [3/3]
| void dd4pod::TrackerHit::truth | ( | dd4pod::MonteCarloContrib | value | ) |
Set the truth.
Definition at line 73 of file TrackerHit.cc.
◆ unlink()
|
inline |
disconnect from TrackerHitObj instance
Definition at line 123 of file TrackerHit.h.
The documentation for this class was generated from the following files:
1.8.18