EICd
EIC data model
eicd::PMTHit Class Reference

#include <PMTHit.h>

Public Member Functions

 PMTHit ()
 default constructor More...
 
 PMTHit (std::uint64_t cellID, float npe, float time, float timeError, edm4hep::Vector3f position, edm4hep::Vector3f dimension, std::int32_t sector, edm4hep::Vector3f local)
 
 PMTHit (PMTHitObj *obj)
 constructor from existing PMTHitObj More...
 
 PMTHit (const PMTHit &other)
 copy constructor More...
 
PMTHitoperator= (PMTHit other)
 copy-assignment operator More...
 
MutablePMTHit clone () const
 create a mutable deep-copy of the object with identical relations More...
 
 ~PMTHit ()
 destructor 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...
 
bool isAvailable () const
 check whether the object is actually available More...
 
void unlink ()
 disconnect from PMTHitObj instance More...
 
bool operator== (const PMTHit &other) const
 
bool operator== (const MutablePMTHit &other) const
 
bool operator< (const PMTHit &other) const
 
unsigned int id () const
 
const podio::ObjectID getObjectID () const
 

Friends

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

Detailed Description

EIC PMT hit

Author
: S. Joosten, C. Peng

Constructor & Destructor Documentation

◆ PMTHit() [1/4]

eicd::PMTHit::PMTHit ( )

default constructor

◆ PMTHit() [2/4]

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

◆ PMTHit() [3/4]

eicd::PMTHit::PMTHit ( PMTHitObj obj)

constructor from existing PMTHitObj

◆ PMTHit() [4/4]

eicd::PMTHit::PMTHit ( const PMTHit other)

copy constructor

◆ ~PMTHit()

eicd::PMTHit::~PMTHit ( )

destructor

Member Function Documentation

◆ clone()

MutablePMTHit eicd::PMTHit::clone ( ) const

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

◆ getCellID()

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

Access the The detector specific (geometrical) cell id.

◆ getDimension()

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

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

◆ getLocal()

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

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

◆ getNpe()

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

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

◆ getObjectID()

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

◆ getPosition()

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

Access the PMT hit position [mm].

◆ getSector()

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

Access the The sector this hit occured in.

◆ getTime()

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

Access the Time [ns].

◆ getTimeError()

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

Access the Error on the time [ns].

◆ id()

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

◆ isAvailable()

bool eicd::PMTHit::isAvailable ( ) const

check whether the object is actually available

◆ operator<()

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

◆ operator=()

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

copy-assignment operator

◆ operator==() [1/2]

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

◆ operator==() [2/2]

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

◆ unlink()

void eicd::PMTHit::unlink ( )
inline

disconnect from PMTHitObj instance

Friends And Related Function Documentation

◆ MutablePMTHit

friend class MutablePMTHit
friend

◆ PMTHitCollection

friend class PMTHitCollection
friend

◆ PMTHitCollectionIterator

friend class PMTHitCollectionIterator
friend

◆ swap

void swap ( PMTHit a,
PMTHit b 
)
friend

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