EDM4eic
EIC data model
|
#include <MutableCalorimeterHit.h>
Public Types | |
using | object_type = CalorimeterHit |
using | collection_type = CalorimeterHitCollection |
Public Member Functions | |
MutableCalorimeterHit () | |
default constructor | |
MutableCalorimeterHit (std::uint64_t cellID, float energy, float energyError, float time, float timeError, edm4hep::Vector3f position, edm4hep::Vector3f dimension, std::int32_t sector, std::int32_t layer, edm4hep::Vector3f local) | |
Constructor initializing all members. | |
MutableCalorimeterHit (const MutableCalorimeterHit &other)=default | |
copy constructor | |
MutableCalorimeterHit & | operator= (MutableCalorimeterHit other) |
copy-assignment operator | |
MutableCalorimeterHit | clone () const |
create a mutable deep-copy of the object with identical relations | |
~MutableCalorimeterHit ()=default | |
destructor | |
operator CalorimeterHit () const | |
conversion to const object | |
std::uint64_t | getCellID () const |
Access the The detector specific (geometrical) cell id. | |
float | getEnergy () const |
Access the The energy for this hit in [GeV]. | |
float | getEnergyError () const |
Access the Error on energy [GeV]. | |
float | getTime () const |
Access the The time of the hit in [ns]. | |
float | getTimeError () const |
Access the Error on the time. | |
const edm4hep::Vector3f & | getPosition () const |
Access the The global position of the hit in world coordinates [mm]. | |
const edm4hep::Vector3f & | getDimension () const |
Access the The dimension information of the cell [mm]. | |
std::int32_t | getSector () const |
Access the Sector that this hit occurred in. | |
std::int32_t | getLayer () const |
Access the Layer that the hit occurred in. | |
const edm4hep::Vector3f & | getLocal () const |
Access the The local coordinates of the hit in the detector segment [mm]. | |
const edm4hep::RawCalorimeterHit | getRawHit () const |
Access the Related raw calorimeter hit. | |
void | setCellID (std::uint64_t value) |
Set the The detector specific (geometrical) cell id. | |
void | setEnergy (float value) |
Set the The energy for this hit in [GeV]. | |
void | setEnergyError (float value) |
Set the Error on energy [GeV]. | |
void | setTime (float value) |
Set the The time of the hit in [ns]. | |
void | setTimeError (float value) |
Set the Error on the time. | |
void | setPosition (edm4hep::Vector3f value) |
Set the The global position of the hit in world coordinates [mm]. | |
edm4hep::Vector3f & | position () |
Get reference to The global position of the hit in world coordinates [mm]. | |
void | setDimension (edm4hep::Vector3f value) |
Set the The dimension information of the cell [mm]. | |
edm4hep::Vector3f & | dimension () |
Get reference to The dimension information of the cell [mm]. | |
void | setSector (std::int32_t value) |
Set the Sector that this hit occurred in. | |
void | setLayer (std::int32_t value) |
Set the Layer that the hit occurred in. | |
void | setLocal (edm4hep::Vector3f value) |
Set the The local coordinates of the hit in the detector segment [mm]. | |
edm4hep::Vector3f & | local () |
Get reference to The local coordinates of the hit in the detector segment [mm]. | |
void | setRawHit (edm4hep::RawCalorimeterHit value) |
Set the Related raw calorimeter hit. | |
bool | isAvailable () const |
check whether the object is actually available | |
void | unlink () |
disconnect from CalorimeterHitObj instance | |
bool | operator== (const MutableCalorimeterHit &other) const |
bool | operator== (const CalorimeterHit &other) const |
bool | operator< (const MutableCalorimeterHit &other) const |
podio::ObjectID | id () const |
const podio::ObjectID | getObjectID () const |
Friends | |
class | CalorimeterHitCollection |
class | CalorimeterHitMutableCollectionIterator |
class | CalorimeterHit |
void | swap (MutableCalorimeterHit &a, MutableCalorimeterHit &b) |
Calorimeter hit
edm4eic::MutableCalorimeterHit::MutableCalorimeterHit | ( | ) |
default constructor
edm4eic::MutableCalorimeterHit::MutableCalorimeterHit | ( | std::uint64_t | cellID, |
float | energy, | ||
float | energyError, | ||
float | time, | ||
float | timeError, | ||
edm4hep::Vector3f | position, | ||
edm4hep::Vector3f | dimension, | ||
std::int32_t | sector, | ||
std::int32_t | layer, | ||
edm4hep::Vector3f | local ) |
Constructor initializing all members.
|
default |
copy constructor
|
default |
destructor
MutableCalorimeterHit edm4eic::MutableCalorimeterHit::clone | ( | ) | const |
create a mutable deep-copy of the object with identical relations
edm4hep::Vector3f & edm4eic::MutableCalorimeterHit::dimension | ( | ) |
Get reference to The dimension information of the cell [mm].
std::uint64_t edm4eic::MutableCalorimeterHit::getCellID | ( | ) | const |
Access the The detector specific (geometrical) cell id.
const edm4hep::Vector3f & edm4eic::MutableCalorimeterHit::getDimension | ( | ) | const |
Access the The dimension information of the cell [mm].
float edm4eic::MutableCalorimeterHit::getEnergy | ( | ) | const |
Access the The energy for this hit in [GeV].
float edm4eic::MutableCalorimeterHit::getEnergyError | ( | ) | const |
Access the Error on energy [GeV].
std::int32_t edm4eic::MutableCalorimeterHit::getLayer | ( | ) | const |
Access the Layer that the hit occurred in.
const edm4hep::Vector3f & edm4eic::MutableCalorimeterHit::getLocal | ( | ) | const |
Access the The local coordinates of the hit in the detector segment [mm].
const podio::ObjectID edm4eic::MutableCalorimeterHit::getObjectID | ( | ) | const |
const edm4hep::Vector3f & edm4eic::MutableCalorimeterHit::getPosition | ( | ) | const |
Access the The global position of the hit in world coordinates [mm].
const edm4hep::RawCalorimeterHit edm4eic::MutableCalorimeterHit::getRawHit | ( | ) | const |
Access the Related raw calorimeter hit.
std::int32_t edm4eic::MutableCalorimeterHit::getSector | ( | ) | const |
Access the Sector that this hit occurred in.
float edm4eic::MutableCalorimeterHit::getTime | ( | ) | const |
Access the The time of the hit in [ns].
float edm4eic::MutableCalorimeterHit::getTimeError | ( | ) | const |
Access the Error on the time.
|
inline |
bool edm4eic::MutableCalorimeterHit::isAvailable | ( | ) | const |
check whether the object is actually available
edm4hep::Vector3f & edm4eic::MutableCalorimeterHit::local | ( | ) |
Get reference to The local coordinates of the hit in the detector segment [mm].
edm4eic::MutableCalorimeterHit::operator CalorimeterHit | ( | ) | const |
conversion to const object
|
inline |
MutableCalorimeterHit & edm4eic::MutableCalorimeterHit::operator= | ( | MutableCalorimeterHit | other | ) |
copy-assignment operator
bool edm4eic::MutableCalorimeterHit::operator== | ( | const CalorimeterHit & | other | ) | const |
|
inline |
edm4hep::Vector3f & edm4eic::MutableCalorimeterHit::position | ( | ) |
Get reference to The global position of the hit in world coordinates [mm].
void edm4eic::MutableCalorimeterHit::setCellID | ( | std::uint64_t | value | ) |
Set the The detector specific (geometrical) cell id.
void edm4eic::MutableCalorimeterHit::setDimension | ( | edm4hep::Vector3f | value | ) |
Set the The dimension information of the cell [mm].
void edm4eic::MutableCalorimeterHit::setEnergy | ( | float | value | ) |
Set the The energy for this hit in [GeV].
void edm4eic::MutableCalorimeterHit::setEnergyError | ( | float | value | ) |
Set the Error on energy [GeV].
void edm4eic::MutableCalorimeterHit::setLayer | ( | std::int32_t | value | ) |
Set the Layer that the hit occurred in.
void edm4eic::MutableCalorimeterHit::setLocal | ( | edm4hep::Vector3f | value | ) |
Set the The local coordinates of the hit in the detector segment [mm].
void edm4eic::MutableCalorimeterHit::setPosition | ( | edm4hep::Vector3f | value | ) |
Set the The global position of the hit in world coordinates [mm].
void edm4eic::MutableCalorimeterHit::setRawHit | ( | edm4hep::RawCalorimeterHit | value | ) |
Set the Related raw calorimeter hit.
void edm4eic::MutableCalorimeterHit::setSector | ( | std::int32_t | value | ) |
Set the Sector that this hit occurred in.
void edm4eic::MutableCalorimeterHit::setTime | ( | float | value | ) |
Set the The time of the hit in [ns].
void edm4eic::MutableCalorimeterHit::setTimeError | ( | float | value | ) |
Set the Error on the time.
|
inline |
disconnect from CalorimeterHitObj instance
|
friend |
|
friend |
|
friend |
|
friend |