EICd
EIC data model
eicd::MutablePMTHit Class Reference

#include <MutablePMTHit.h>

Public Member Functions

 MutablePMTHit ()
 default constructor More...
 
 MutablePMTHit (std::uint64_t cellID, float npe, float time, float timeError, edm4hep::Vector3f position, edm4hep::Vector3f dimension, std::int32_t sector, edm4hep::Vector3f local)
 
 MutablePMTHit (PMTHitObj *obj)
 constructor from existing PMTHitObj More...
 
 MutablePMTHit (const MutablePMTHit &other)
 copy constructor More...
 
MutablePMTHitoperator= (MutablePMTHit other)
 copy-assignment operator More...
 
MutablePMTHit clone () const
 create a mutable deep-copy of the object with identical relations More...
 
 ~MutablePMTHit ()
 destructor More...
 
 operator PMTHit () const
 conversion to const object More...
 
const std::uint64_t & getCellID () const
 Access the The detector specific (geometrical) cell id. More...
 
const float & getNpe () const
 Access the Estimated number of photo-electrons [#]. More...
 
const float & getTime () const
 Access the Time [ns]. More...
 
const float & getTimeError () const
 Access the Error on the time [ns]. More...
 
const edm4hep::Vector3f & getPosition () const
 Access the PMT hit position [mm]. More...
 
const edm4hep::Vector3f & getDimension () const
 Access the The dimension information of the pixel [mm]. More...
 
const std::int32_t & getSector () const
 Access the The sector this hit occured in. More...
 
const edm4hep::Vector3f & getLocal () const
 Access the The local position of the hit in detector coordinates (relative to the sector) [mm]. More...
 
void setCellID (std::uint64_t value)
 Set the The detector specific (geometrical) cell id. More...
 
void setNpe (float value)
 Set the Estimated number of photo-electrons [#]. More...
 
void setTime (float value)
 Set the Time [ns]. More...
 
void setTimeError (float value)
 Set the Error on the time [ns]. More...
 
void setPosition (edm4hep::Vector3f value)
 Set the PMT hit position [mm]. More...
 
edm4hep::Vector3f & position ()
 Get reference to PMT hit position [mm]. More...
 
void setDimension (edm4hep::Vector3f value)
 Set the The dimension information of the pixel [mm]. More...
 
edm4hep::Vector3f & dimension ()
 Get reference to The dimension information of the pixel [mm]. More...
 
void setSector (std::int32_t value)
 Set the The sector this hit occured in. More...
 
void setLocal (edm4hep::Vector3f value)
 Set the The local position of the hit in detector coordinates (relative to the sector) [mm]. More...
 
edm4hep::Vector3f & local ()
 Get reference to The local position of the hit in detector coordinates (relative to the sector) [mm]. More...
 
bool isAvailable () const
 check whether the object is actually available More...
 
void unlink ()
 disconnect from PMTHitObj instance More...
 
bool operator== (const MutablePMTHit &other) const
 
bool operator== (const PMTHit &other) const
 
bool operator< (const MutablePMTHit &other) const
 
unsigned int id () const
 
const podio::ObjectID getObjectID () const
 

Friends

class PMTHitCollection
 
class PMTHitMutableCollectionIterator
 
class PMTHit
 
void swap (MutablePMTHit &a, MutablePMTHit &b)
 

Detailed Description

EIC PMT hit

Author
: S. Joosten, C. Peng

Constructor & Destructor Documentation

◆ MutablePMTHit() [1/4]

eicd::MutablePMTHit::MutablePMTHit ( )

default constructor

◆ MutablePMTHit() [2/4]

eicd::MutablePMTHit::MutablePMTHit ( std::uint64_t  cellID,
float  npe,
float  time,
float  timeError,
edm4hep::Vector3f  position,
edm4hep::Vector3f  dimension,
std::int32_t  sector,
edm4hep::Vector3f  local 
)

◆ MutablePMTHit() [3/4]

eicd::MutablePMTHit::MutablePMTHit ( PMTHitObj obj)

constructor from existing PMTHitObj

◆ MutablePMTHit() [4/4]

eicd::MutablePMTHit::MutablePMTHit ( const MutablePMTHit other)

copy constructor

◆ ~MutablePMTHit()

eicd::MutablePMTHit::~MutablePMTHit ( )

destructor

Member Function Documentation

◆ clone()

MutablePMTHit eicd::MutablePMTHit::clone ( ) const

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

◆ dimension()

edm4hep::Vector3f & eicd::MutablePMTHit::dimension ( )

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

◆ getCellID()

const std::uint64_t & eicd::MutablePMTHit::getCellID ( ) const

Access the The detector specific (geometrical) cell id.

◆ getDimension()

const edm4hep::Vector3f & eicd::MutablePMTHit::getDimension ( ) const

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

◆ getLocal()

const edm4hep::Vector3f & eicd::MutablePMTHit::getLocal ( ) const

Access the The local position of the hit in detector coordinates (relative to the sector) [mm].

◆ getNpe()

const float & eicd::MutablePMTHit::getNpe ( ) const

Access the Estimated number of photo-electrons [#].

◆ getObjectID()

const podio::ObjectID eicd::MutablePMTHit::getObjectID ( ) const

◆ getPosition()

const edm4hep::Vector3f & eicd::MutablePMTHit::getPosition ( ) const

Access the PMT hit position [mm].

◆ getSector()

const std::int32_t & eicd::MutablePMTHit::getSector ( ) const

Access the The sector this hit occured in.

◆ getTime()

const float & eicd::MutablePMTHit::getTime ( ) const

Access the Time [ns].

◆ getTimeError()

const float & eicd::MutablePMTHit::getTimeError ( ) const

Access the Error on the time [ns].

◆ id()

unsigned int eicd::MutablePMTHit::id ( ) const
inline

◆ isAvailable()

bool eicd::MutablePMTHit::isAvailable ( ) const

check whether the object is actually available

◆ local()

edm4hep::Vector3f & eicd::MutablePMTHit::local ( )

Get reference to The local position of the hit in detector coordinates (relative to the sector) [mm].

◆ operator PMTHit()

eicd::MutablePMTHit::operator PMTHit ( ) const

conversion to const object

◆ operator<()

bool eicd::MutablePMTHit::operator< ( const MutablePMTHit other) const
inline

◆ operator=()

MutablePMTHit & eicd::MutablePMTHit::operator= ( MutablePMTHit  other)

copy-assignment operator

◆ operator==() [1/2]

bool eicd::MutablePMTHit::operator== ( const MutablePMTHit other) const
inline

◆ operator==() [2/2]

bool eicd::MutablePMTHit::operator== ( const PMTHit other) const

◆ position()

edm4hep::Vector3f & eicd::MutablePMTHit::position ( )

Get reference to PMT hit position [mm].

◆ setCellID()

void eicd::MutablePMTHit::setCellID ( std::uint64_t  value)

Set the The detector specific (geometrical) cell id.

◆ setDimension()

void eicd::MutablePMTHit::setDimension ( edm4hep::Vector3f  value)

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

◆ setLocal()

void eicd::MutablePMTHit::setLocal ( edm4hep::Vector3f  value)

Set the The local position of the hit in detector coordinates (relative to the sector) [mm].

◆ setNpe()

void eicd::MutablePMTHit::setNpe ( float  value)

Set the Estimated number of photo-electrons [#].

◆ setPosition()

void eicd::MutablePMTHit::setPosition ( edm4hep::Vector3f  value)

Set the PMT hit position [mm].

◆ setSector()

void eicd::MutablePMTHit::setSector ( std::int32_t  value)

Set the The sector this hit occured in.

◆ setTime()

void eicd::MutablePMTHit::setTime ( float  value)

Set the Time [ns].

◆ setTimeError()

void eicd::MutablePMTHit::setTimeError ( float  value)

Set the Error on the time [ns].

◆ unlink()

void eicd::MutablePMTHit::unlink ( )
inline

disconnect from PMTHitObj instance

Friends And Related Function Documentation

◆ PMTHit

friend class PMTHit
friend

◆ PMTHitCollection

friend class PMTHitCollection
friend

◆ PMTHitMutableCollectionIterator

friend class PMTHitMutableCollectionIterator
friend

◆ swap

void swap ( MutablePMTHit a,
MutablePMTHit b 
)
friend

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