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

#include <MutableMeasurement2D.h>

Public Types

using object_type = Measurement2D
 
using collection_type = Measurement2DCollection
 

Public Member Functions

 MutableMeasurement2D ()
 default constructor
 
 MutableMeasurement2D (std::uint64_t surface, edm4hep::Vector2f loc, float time, edm4eic::Cov3f covariance)
 Constructor initializing all members.
 
 MutableMeasurement2D (const MutableMeasurement2D &other)=default
 copy constructor
 
MutableMeasurement2Doperator= (MutableMeasurement2D other)
 copy-assignment operator
 
MutableMeasurement2D clone () const
 create a mutable deep-copy of the object with identical relations
 
 ~MutableMeasurement2D ()=default
 destructor
 
 operator Measurement2D () const
 conversion to const object
 
std::uint64_t getSurface () const
 Access the Surface for bound coordinates (geometryID)
 
const edm4hep::Vector2f & getLoc () const
 Access the 2D location on surface.
 
float getTime () const
 Access the Measurement time.
 
const edm4eic::Cov3fgetCovariance () const
 Access the Covariance on location and time.
 
void setSurface (std::uint64_t value)
 Set the Surface for bound coordinates (geometryID)
 
void setLoc (edm4hep::Vector2f value)
 Set the 2D location on surface.
 
edm4hep::Vector2f & loc ()
 Get reference to 2D location on surface.
 
void setTime (float value)
 Set the Measurement time.
 
void setCovariance (edm4eic::Cov3f value)
 Set the Covariance on location and time.
 
edm4eic::Cov3fcovariance ()
 Get reference to Covariance on location and time.
 
void addToHits (edm4eic::TrackerHit)
 
std::size_t hits_size () const
 
edm4eic::TrackerHit getHits (std::size_t) const
 
std::vector< edm4eic::TrackerHit >::const_iterator hits_begin () const
 
std::vector< edm4eic::TrackerHit >::const_iterator hits_end () const
 
podio::RelationRange< edm4eic::TrackerHitgetHits () const
 
void addToWeights (float)
 
std::size_t weights_size () const
 
float getWeights (std::size_t) const
 
std::vector< float >::const_iterator weights_begin () const
 
std::vector< float >::const_iterator weights_end () const
 
podio::RelationRange< float > getWeights () const
 
bool isAvailable () const
 check whether the object is actually available
 
void unlink ()
 disconnect from Measurement2DObj instance
 
bool operator== (const MutableMeasurement2D &other) const
 
bool operator== (const Measurement2D &other) const
 
bool operator< (const MutableMeasurement2D &other) const
 
podio::ObjectID id () const
 
const podio::ObjectID getObjectID () const
 

Friends

class Measurement2DCollection
 
class Measurement2DMutableCollectionIterator
 
class Measurement2D
 
void swap (MutableMeasurement2D &a, MutableMeasurement2D &b)
 

Detailed Description

2D measurement (on an arbitrary surface)

Author
: W. Deconinck

Member Typedef Documentation

◆ collection_type

◆ object_type

Constructor & Destructor Documentation

◆ MutableMeasurement2D() [1/3]

edm4eic::MutableMeasurement2D::MutableMeasurement2D ( )

default constructor

◆ MutableMeasurement2D() [2/3]

edm4eic::MutableMeasurement2D::MutableMeasurement2D ( std::uint64_t surface,
edm4hep::Vector2f loc,
float time,
edm4eic::Cov3f covariance )

Constructor initializing all members.

◆ MutableMeasurement2D() [3/3]

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

copy constructor

◆ ~MutableMeasurement2D()

edm4eic::MutableMeasurement2D::~MutableMeasurement2D ( )
default

destructor

Member Function Documentation

◆ addToHits()

void edm4eic::MutableMeasurement2D::addToHits ( edm4eic::TrackerHit component)

◆ addToWeights()

void edm4eic::MutableMeasurement2D::addToWeights ( float component)

◆ clone()

MutableMeasurement2D edm4eic::MutableMeasurement2D::clone ( ) const

create a mutable deep-copy of the object with identical relations

◆ covariance()

edm4eic::Cov3f & edm4eic::MutableMeasurement2D::covariance ( )

Get reference to Covariance on location and time.

◆ getCovariance()

const edm4eic::Cov3f & edm4eic::MutableMeasurement2D::getCovariance ( ) const

Access the Covariance on location and time.

◆ getHits() [1/2]

podio::RelationRange< edm4eic::TrackerHit > edm4eic::MutableMeasurement2D::getHits ( ) const

◆ getHits() [2/2]

edm4eic::TrackerHit edm4eic::MutableMeasurement2D::getHits ( std::size_t index) const

◆ getLoc()

const edm4hep::Vector2f & edm4eic::MutableMeasurement2D::getLoc ( ) const

Access the 2D location on surface.

◆ getObjectID()

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

◆ getSurface()

std::uint64_t edm4eic::MutableMeasurement2D::getSurface ( ) const

Access the Surface for bound coordinates (geometryID)

◆ getTime()

float edm4eic::MutableMeasurement2D::getTime ( ) const

Access the Measurement time.

◆ getWeights() [1/2]

podio::RelationRange< float > edm4eic::MutableMeasurement2D::getWeights ( ) const

◆ getWeights() [2/2]

float edm4eic::MutableMeasurement2D::getWeights ( std::size_t index) const

◆ hits_begin()

std::vector< edm4eic::TrackerHit >::const_iterator edm4eic::MutableMeasurement2D::hits_begin ( ) const

◆ hits_end()

std::vector< edm4eic::TrackerHit >::const_iterator edm4eic::MutableMeasurement2D::hits_end ( ) const

◆ hits_size()

std::size_t edm4eic::MutableMeasurement2D::hits_size ( ) const

◆ id()

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

◆ isAvailable()

bool edm4eic::MutableMeasurement2D::isAvailable ( ) const

check whether the object is actually available

◆ loc()

edm4hep::Vector2f & edm4eic::MutableMeasurement2D::loc ( )

Get reference to 2D location on surface.

◆ operator Measurement2D()

edm4eic::MutableMeasurement2D::operator Measurement2D ( ) const

conversion to const object

◆ operator<()

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

◆ operator=()

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

copy-assignment operator

◆ operator==() [1/2]

bool edm4eic::MutableMeasurement2D::operator== ( const Measurement2D & other) const

◆ operator==() [2/2]

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

◆ setCovariance()

void edm4eic::MutableMeasurement2D::setCovariance ( edm4eic::Cov3f value)

Set the Covariance on location and time.

◆ setLoc()

void edm4eic::MutableMeasurement2D::setLoc ( edm4hep::Vector2f value)

Set the 2D location on surface.

◆ setSurface()

void edm4eic::MutableMeasurement2D::setSurface ( std::uint64_t value)

Set the Surface for bound coordinates (geometryID)

◆ setTime()

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

Set the Measurement time.

◆ unlink()

void edm4eic::MutableMeasurement2D::unlink ( )
inline

disconnect from Measurement2DObj instance

◆ weights_begin()

std::vector< float >::const_iterator edm4eic::MutableMeasurement2D::weights_begin ( ) const

◆ weights_end()

std::vector< float >::const_iterator edm4eic::MutableMeasurement2D::weights_end ( ) const

◆ weights_size()

std::size_t edm4eic::MutableMeasurement2D::weights_size ( ) const

Friends And Related Symbol Documentation

◆ Measurement2D

friend class Measurement2D
friend

◆ Measurement2DCollection

friend class Measurement2DCollection
friend

◆ Measurement2DMutableCollectionIterator

◆ swap

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

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