EDM4eic
EIC data model
Loading...
Searching...
No Matches
edm4eic::MutableCalorimeterHit Class Reference

#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
 
MutableCalorimeterHitoperator= (MutableCalorimeterHit other)
 copy-assignment operator
 
MutableCalorimeterHit clone (bool cloneRelations=true) const
 
 ~MutableCalorimeterHit ()=default
 destructor
 
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.
 
std::uint64_t & getCellID ()
 Get mutable reference to The detector specific (geometrical) cell id.
 
std::uint64_t & cellID ()
 Get reference to The detector specific (geometrical) cell id.
 
void setEnergy (float value)
 Set the The energy for this hit in [GeV].
 
float & getEnergy ()
 Get mutable reference to The energy for this hit in [GeV].
 
float & energy ()
 Get reference to The energy for this hit in [GeV].
 
void setEnergyError (float value)
 Set the Error on energy [GeV].
 
float & getEnergyError ()
 Get mutable reference to Error on energy [GeV].
 
float & energyError ()
 Get reference to Error on energy [GeV].
 
void setTime (float value)
 Set the The time of the hit in [ns].
 
float & getTime ()
 Get mutable reference to The time of the hit in [ns].
 
float & time ()
 Get reference to The time of the hit in [ns].
 
void setTimeError (float value)
 Set the Error on the time.
 
float & getTimeError ()
 Get mutable reference to Error on the time.
 
float & timeError ()
 Get reference to Error on the time.
 
void setPosition (edm4hep::Vector3f value)
 Set the The global position of the hit in world coordinates [mm].
 
edm4hep::Vector3f & getPosition ()
 Get mutable reference to 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 & getDimension ()
 Get mutable reference to 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.
 
std::int32_t & getSector ()
 Get mutable reference to Sector that this hit occurred in.
 
std::int32_t & sector ()
 Get reference to Sector that this hit occurred in.
 
void setLayer (std::int32_t value)
 Set the Layer that the hit occurred in.
 
std::int32_t & getLayer ()
 Get mutable reference to Layer that the hit occurred in.
 
std::int32_t & layer ()
 Get reference to 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 & getLocal ()
 Get mutable reference to 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 (const 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
 
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)
 

Detailed Description

Calorimeter hit

Author
: W. Armstrong, S. Joosten

Member Typedef Documentation

◆ collection_type

◆ object_type

Constructor & Destructor Documentation

◆ MutableCalorimeterHit() [1/3]

edm4eic::MutableCalorimeterHit::MutableCalorimeterHit ( )

default constructor

◆ MutableCalorimeterHit() [2/3]

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.

◆ MutableCalorimeterHit() [3/3]

edm4eic::MutableCalorimeterHit::MutableCalorimeterHit ( const MutableCalorimeterHit & other)
default

copy constructor

◆ ~MutableCalorimeterHit()

edm4eic::MutableCalorimeterHit::~MutableCalorimeterHit ( )
default

destructor

Member Function Documentation

◆ cellID()

std::uint64_t & edm4eic::MutableCalorimeterHit::cellID ( )

Get reference to The detector specific (geometrical) cell id.

◆ clone()

MutableCalorimeterHit edm4eic::MutableCalorimeterHit::clone ( bool cloneRelations = true) const

create a mutable deep-copy of the object with identical relations if cloneRelations=false, the relations are not cloned and will be empty

◆ dimension()

edm4hep::Vector3f & edm4eic::MutableCalorimeterHit::dimension ( )

Get reference to The dimension information of the cell [mm].

◆ energy()

float & edm4eic::MutableCalorimeterHit::energy ( )

Get reference to The energy for this hit in [GeV].

◆ energyError()

float & edm4eic::MutableCalorimeterHit::energyError ( )

Get reference to Error on energy [GeV].

◆ getCellID() [1/2]

std::uint64_t & edm4eic::MutableCalorimeterHit::getCellID ( )

Get mutable reference to The detector specific (geometrical) cell id.

◆ getCellID() [2/2]

std::uint64_t edm4eic::MutableCalorimeterHit::getCellID ( ) const

Access the The detector specific (geometrical) cell id.

◆ getDimension() [1/2]

edm4hep::Vector3f & edm4eic::MutableCalorimeterHit::getDimension ( )

Get mutable reference to The dimension information of the cell [mm].

◆ getDimension() [2/2]

const edm4hep::Vector3f & edm4eic::MutableCalorimeterHit::getDimension ( ) const

Access the The dimension information of the cell [mm].

◆ getEnergy() [1/2]

float & edm4eic::MutableCalorimeterHit::getEnergy ( )

Get mutable reference to The energy for this hit in [GeV].

◆ getEnergy() [2/2]

float edm4eic::MutableCalorimeterHit::getEnergy ( ) const

Access the The energy for this hit in [GeV].

◆ getEnergyError() [1/2]

float & edm4eic::MutableCalorimeterHit::getEnergyError ( )

Get mutable reference to Error on energy [GeV].

◆ getEnergyError() [2/2]

float edm4eic::MutableCalorimeterHit::getEnergyError ( ) const

Access the Error on energy [GeV].

◆ getLayer() [1/2]

std::int32_t & edm4eic::MutableCalorimeterHit::getLayer ( )

Get mutable reference to Layer that the hit occurred in.

◆ getLayer() [2/2]

std::int32_t edm4eic::MutableCalorimeterHit::getLayer ( ) const

Access the Layer that the hit occurred in.

◆ getLocal() [1/2]

edm4hep::Vector3f & edm4eic::MutableCalorimeterHit::getLocal ( )

Get mutable reference to The local coordinates of the hit in the detector segment [mm].

◆ getLocal() [2/2]

const edm4hep::Vector3f & edm4eic::MutableCalorimeterHit::getLocal ( ) const

Access the The local coordinates of the hit in the detector segment [mm].

◆ getObjectID()

const podio::ObjectID edm4eic::MutableCalorimeterHit::getObjectID ( ) const

◆ getPosition() [1/2]

edm4hep::Vector3f & edm4eic::MutableCalorimeterHit::getPosition ( )

Get mutable reference to The global position of the hit in world coordinates [mm].

◆ getPosition() [2/2]

const edm4hep::Vector3f & edm4eic::MutableCalorimeterHit::getPosition ( ) const

Access the The global position of the hit in world coordinates [mm].

◆ getRawHit()

const edm4hep::RawCalorimeterHit edm4eic::MutableCalorimeterHit::getRawHit ( ) const

Access the Related raw calorimeter hit.

◆ getSector() [1/2]

std::int32_t & edm4eic::MutableCalorimeterHit::getSector ( )

Get mutable reference to Sector that this hit occurred in.

◆ getSector() [2/2]

std::int32_t edm4eic::MutableCalorimeterHit::getSector ( ) const

Access the Sector that this hit occurred in.

◆ getTime() [1/2]

float & edm4eic::MutableCalorimeterHit::getTime ( )

Get mutable reference to The time of the hit in [ns].

◆ getTime() [2/2]

float edm4eic::MutableCalorimeterHit::getTime ( ) const

Access the The time of the hit in [ns].

◆ getTimeError() [1/2]

float & edm4eic::MutableCalorimeterHit::getTimeError ( )

Get mutable reference to Error on the time.

◆ getTimeError() [2/2]

float edm4eic::MutableCalorimeterHit::getTimeError ( ) const

Access the Error on the time.

◆ id()

podio::ObjectID edm4eic::MutableCalorimeterHit::id ( ) const
inline

◆ isAvailable()

bool edm4eic::MutableCalorimeterHit::isAvailable ( ) const

check whether the object is actually available

◆ layer()

std::int32_t & edm4eic::MutableCalorimeterHit::layer ( )

Get reference to Layer that the hit occurred in.

◆ local()

edm4hep::Vector3f & edm4eic::MutableCalorimeterHit::local ( )

Get reference to The local coordinates of the hit in the detector segment [mm].

◆ operator!=() [1/2]

bool edm4eic::MutableCalorimeterHit::operator!= ( const CalorimeterHit & other) const
inline

◆ operator!=() [2/2]

bool edm4eic::MutableCalorimeterHit::operator!= ( const MutableCalorimeterHit & other) const
inline

◆ operator<()

bool edm4eic::MutableCalorimeterHit::operator< ( const MutableCalorimeterHit & other) const
inline

◆ operator=()

MutableCalorimeterHit & edm4eic::MutableCalorimeterHit::operator= ( MutableCalorimeterHit other)

copy-assignment operator

◆ operator==() [1/2]

bool edm4eic::MutableCalorimeterHit::operator== ( const CalorimeterHit & other) const

◆ operator==() [2/2]

bool edm4eic::MutableCalorimeterHit::operator== ( const MutableCalorimeterHit & other) const
inline

◆ position()

edm4hep::Vector3f & edm4eic::MutableCalorimeterHit::position ( )

Get reference to The global position of the hit in world coordinates [mm].

◆ sector()

std::int32_t & edm4eic::MutableCalorimeterHit::sector ( )

Get reference to Sector that this hit occurred in.

◆ setCellID()

void edm4eic::MutableCalorimeterHit::setCellID ( std::uint64_t value)

Set the The detector specific (geometrical) cell id.

◆ setDimension()

void edm4eic::MutableCalorimeterHit::setDimension ( edm4hep::Vector3f value)

Set the The dimension information of the cell [mm].

◆ setEnergy()

void edm4eic::MutableCalorimeterHit::setEnergy ( float value)

Set the The energy for this hit in [GeV].

◆ setEnergyError()

void edm4eic::MutableCalorimeterHit::setEnergyError ( float value)

Set the Error on energy [GeV].

◆ setLayer()

void edm4eic::MutableCalorimeterHit::setLayer ( std::int32_t value)

Set the Layer that the hit occurred in.

◆ setLocal()

void edm4eic::MutableCalorimeterHit::setLocal ( edm4hep::Vector3f value)

Set the The local coordinates of the hit in the detector segment [mm].

◆ setPosition()

void edm4eic::MutableCalorimeterHit::setPosition ( edm4hep::Vector3f value)

Set the The global position of the hit in world coordinates [mm].

◆ setRawHit()

void edm4eic::MutableCalorimeterHit::setRawHit ( const edm4hep::RawCalorimeterHit & value)

Set the Related raw calorimeter hit.

◆ setSector()

void edm4eic::MutableCalorimeterHit::setSector ( std::int32_t value)

Set the Sector that this hit occurred in.

◆ setTime()

void edm4eic::MutableCalorimeterHit::setTime ( float value)

Set the The time of the hit in [ns].

◆ setTimeError()

void edm4eic::MutableCalorimeterHit::setTimeError ( float value)

Set the Error on the time.

◆ time()

float & edm4eic::MutableCalorimeterHit::time ( )

Get reference to The time of the hit in [ns].

◆ timeError()

float & edm4eic::MutableCalorimeterHit::timeError ( )

Get reference to Error on the time.

◆ unlink()

void edm4eic::MutableCalorimeterHit::unlink ( )
inline

disconnect from CalorimeterHitObj instance

Friends And Related Symbol Documentation

◆ CalorimeterHit

friend class CalorimeterHit
friend

◆ CalorimeterHitCollection

friend class CalorimeterHitCollection
friend

◆ CalorimeterHitMutableCollectionIterator

◆ swap

void swap ( MutableCalorimeterHit & a,
MutableCalorimeterHit & b )
friend

The documentation for this class was generated from the following files: