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

#include <TrackerHit.h>

Public Types

using mutable_type = MutableTrackerHit
using collection_type = TrackerHitCollection

Public Member Functions

 TrackerHit ()=default
 default constructor
 TrackerHit (const std::uint64_t cellID, const edm4hep::Vector3f &position, const edm4eic::CovDiag3f &positionError, const float time, const float timeError, const float edep, const float edepError)
 Constructor initializing all members.
 TrackerHit (const TrackerHit &other)=default
 copy constructor
TrackerHitoperator= (TrackerHit other) &
 copy-assignment operator
TrackerHitoperator= (TrackerHit other) &&=delete
MutableTrackerHit clone (bool cloneRelations=true) const
 ~TrackerHit ()=default
 destructor
 TrackerHit (const MutableTrackerHit &other)
 converting constructor from mutable object
std::uint64_t getCellID () const
 Access the The detector specific (geometrical) cell id.
const edm4hep::Vector3f & getPosition () const
 Access the Hit (cell) position [mm].
const edm4eic::CovDiag3fgetPositionError () const
 Access the Covariance Matrix.
float getTime () const
 Access the Hit time [ns].
float getTimeError () const
 Access the Error on the time.
float getEdep () const
 Access the Energy deposit in this hit [GeV].
float getEdepError () const
 Access the Error on the energy deposit [GeV].
const edm4eic::RawTrackerHit getRawHit () const
 Access the Related raw tracker hit.
bool isAvailable () const
 check whether the object is actually available
void unlink ()
 disconnect from TrackerHitObj instance
constexpr bool operator== (const TrackerHit &other) const
bool operator== (const MutableTrackerHit &other) const
constexpr bool operator!= (const TrackerHit &other) const
bool operator!= (const MutableTrackerHit &other) const
bool operator< (const TrackerHit &other) const
podio::ObjectID id () const
const podio::ObjectID getObjectID () const

Static Public Member Functions

static TrackerHit makeEmpty ()

Static Public Attributes

static constexpr std::string_view typeName = "edm4eic::TrackerHit"

Friends

class MutableTrackerHit
class TrackerHitCollection
class edm4eic::TrackerHitCollectionData
class TrackerHitCollectionIterator
podio::detail::OrderKey podio::detail::getOrderKey (const TrackerHit &obj)
void swap (TrackerHit &a, TrackerHit &b)

Detailed Description

Tracker hit (reconstructed from Raw)

Author
: W. Armstrong, S. Joosten

Member Typedef Documentation

◆ collection_type

◆ mutable_type

Constructor & Destructor Documentation

◆ TrackerHit() [1/4]

edm4eic::TrackerHit::TrackerHit ( )
default

default constructor

◆ TrackerHit() [2/4]

edm4eic::TrackerHit::TrackerHit ( const std::uint64_t cellID,
const edm4hep::Vector3f & position,
const edm4eic::CovDiag3f & positionError,
const float time,
const float timeError,
const float edep,
const float edepError )

Constructor initializing all members.

◆ TrackerHit() [3/4]

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

copy constructor

◆ ~TrackerHit()

edm4eic::TrackerHit::~TrackerHit ( )
default

destructor

◆ TrackerHit() [4/4]

edm4eic::TrackerHit::TrackerHit ( const MutableTrackerHit & other)

converting constructor from mutable object

Member Function Documentation

◆ clone()

MutableTrackerHit edm4eic::TrackerHit::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

◆ getCellID()

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

Access the The detector specific (geometrical) cell id.

◆ getEdep()

float edm4eic::TrackerHit::getEdep ( ) const

Access the Energy deposit in this hit [GeV].

◆ getEdepError()

float edm4eic::TrackerHit::getEdepError ( ) const

Access the Error on the energy deposit [GeV].

◆ getObjectID()

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

◆ getPosition()

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

Access the Hit (cell) position [mm].

◆ getPositionError()

const edm4eic::CovDiag3f & edm4eic::TrackerHit::getPositionError ( ) const

Access the Covariance Matrix.

◆ getRawHit()

const edm4eic::RawTrackerHit edm4eic::TrackerHit::getRawHit ( ) const

Access the Related raw tracker hit.

◆ getTime()

float edm4eic::TrackerHit::getTime ( ) const

Access the Hit time [ns].

◆ getTimeError()

float edm4eic::TrackerHit::getTimeError ( ) const

Access the Error on the time.

◆ id()

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

◆ isAvailable()

bool edm4eic::TrackerHit::isAvailable ( ) const

check whether the object is actually available

◆ makeEmpty()

TrackerHit edm4eic::TrackerHit::makeEmpty ( )
static

◆ operator!=() [1/2]

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

◆ operator!=() [2/2]

bool edm4eic::TrackerHit::operator!= ( const TrackerHit & other) const
inlineconstexpr

◆ operator<()

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

◆ operator=() [1/2]

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

copy-assignment operator

◆ operator=() [2/2]

TrackerHit & edm4eic::TrackerHit::operator= ( TrackerHit other) &&
delete

◆ operator==() [1/2]

bool edm4eic::TrackerHit::operator== ( const MutableTrackerHit & other) const

◆ operator==() [2/2]

bool edm4eic::TrackerHit::operator== ( const TrackerHit & other) const
inlineconstexpr

◆ unlink()

void edm4eic::TrackerHit::unlink ( )
inline

disconnect from TrackerHitObj instance

◆ edm4eic::TrackerHitCollectionData

friend class edm4eic::TrackerHitCollectionData
friend

◆ MutableTrackerHit

friend class MutableTrackerHit
friend

◆ podio::detail::getOrderKey

podio::detail::OrderKey podio::detail::getOrderKey ( const TrackerHit & obj)
friend

◆ swap

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

◆ TrackerHitCollection

friend class TrackerHitCollection
friend

◆ TrackerHitCollectionIterator

friend class TrackerHitCollectionIterator
friend

Member Data Documentation

◆ typeName

std::string_view edm4eic::TrackerHit::typeName = "edm4eic::TrackerHit"
staticconstexpr

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