dd4pod::CalorimeterHit Class Reference

#include <CalorimeterHit.h>

Public Member Functions

 CalorimeterHit ()
 default constructor More...
 
 CalorimeterHit (long long cellID, long flag, long g4ID, dd4pod::FourVector position, dd4pod::MonteCarloContrib truth, double energyDeposit)
 
 CalorimeterHit (CalorimeterHitObj *obj)
 constructor from existing CalorimeterHitObj More...
 
 CalorimeterHit (const CalorimeterHit &other)
 copy constructor More...
 
CalorimeterHitoperator= (const CalorimeterHit &other)
 copy-assignment operator More...
 
CalorimeterHit clone () const
 support cloning (deep-copy) More...
 
 ~CalorimeterHit ()
 destructor More...
 
 operator ConstCalorimeterHit () const
 conversion to const object More...
 
const long long & cellID () const
 Access the cellID. More...
 
const long & flag () const
 Access the User flag to classify hits. More...
 
const long & g4ID () const
 Access the Original Geant4 track identifier of the creating track (debugging) More...
 
const dd4pod::FourVectorposition () const
 Access the position. More...
 
const dd4pod::MonteCarloContribtruth () const
 Access the truth. More...
 
const double & energyDeposit () const
 Access the energyDeposit. More...
 
void cellID (long long value)
 Set the cellID. More...
 
void flag (long value)
 Set the User flag to classify hits. More...
 
void g4ID (long value)
 Set the Original Geant4 track identifier of the creating track (debugging) More...
 
void position (dd4pod::FourVector value)
 Set the position. More...
 
dd4pod::FourVectorposition ()
 Get reference to position. More...
 
void truth (dd4pod::MonteCarloContrib value)
 Set the truth. More...
 
dd4pod::MonteCarloContribtruth ()
 Get reference to truth. More...
 
void energyDeposit (double value)
 Set the energyDeposit. More...
 
bool isAvailable () const
 check whether the object is actually available More...
 
void unlink ()
 disconnect from CalorimeterHitObj instance More...
 
bool operator== (const CalorimeterHit &other) const
 
bool operator== (const ConstCalorimeterHit &other) const
 
bool operator< (const CalorimeterHit &other) const
 
unsigned int id () const
 
const podio::ObjectID getObjectID () const
 

Detailed Description

Podio implementation of dd4hep's dd4hep::sim::Geant4Calorimeter::Hit class

Author
: W.Armstrong

Definition at line 27 of file CalorimeterHit.h.

Constructor & Destructor Documentation

◆ CalorimeterHit() [1/4]

dd4pod::CalorimeterHit::CalorimeterHit ( )

default constructor

Definition at line 16 of file CalorimeterHit.cc.

◆ CalorimeterHit() [2/4]

dd4pod::CalorimeterHit::CalorimeterHit ( long long  cellID,
long  flag,
long  g4ID,
dd4pod::FourVector  position,
dd4pod::MonteCarloContrib  truth,
double  energyDeposit 
)

Definition at line 20 of file CalorimeterHit.cc.

◆ CalorimeterHit() [3/4]

dd4pod::CalorimeterHit::CalorimeterHit ( CalorimeterHitObj obj)

constructor from existing CalorimeterHitObj

Definition at line 40 of file CalorimeterHit.cc.

◆ CalorimeterHit() [4/4]

dd4pod::CalorimeterHit::CalorimeterHit ( const CalorimeterHit other)

copy constructor

Definition at line 30 of file CalorimeterHit.cc.

◆ ~CalorimeterHit()

dd4pod::CalorimeterHit::~CalorimeterHit ( )

destructor

Definition at line 48 of file CalorimeterHit.cc.

Member Function Documentation

◆ cellID() [1/2]

const long long & dd4pod::CalorimeterHit::cellID ( ) const

Access the cellID.

Definition at line 53 of file CalorimeterHit.cc.

◆ cellID() [2/2]

void dd4pod::CalorimeterHit::cellID ( long long  value)

Set the cellID.

Definition at line 61 of file CalorimeterHit.cc.

◆ clone()

CalorimeterHit dd4pod::CalorimeterHit::clone ( ) const

support cloning (deep-copy)

Definition at line 44 of file CalorimeterHit.cc.

◆ energyDeposit() [1/2]

const double & dd4pod::CalorimeterHit::energyDeposit ( ) const

Access the energyDeposit.

Definition at line 58 of file CalorimeterHit.cc.

◆ energyDeposit() [2/2]

void dd4pod::CalorimeterHit::energyDeposit ( double  value)

Set the energyDeposit.

Definition at line 68 of file CalorimeterHit.cc.

◆ flag() [1/2]

const long & dd4pod::CalorimeterHit::flag ( ) const

Access the User flag to classify hits.

Definition at line 54 of file CalorimeterHit.cc.

◆ flag() [2/2]

void dd4pod::CalorimeterHit::flag ( long  value)

Set the User flag to classify hits.

Definition at line 62 of file CalorimeterHit.cc.

◆ g4ID() [1/2]

const long & dd4pod::CalorimeterHit::g4ID ( ) const

Access the Original Geant4 track identifier of the creating track (debugging)

Definition at line 55 of file CalorimeterHit.cc.

◆ g4ID() [2/2]

void dd4pod::CalorimeterHit::g4ID ( long  value)

Set the Original Geant4 track identifier of the creating track (debugging)

Definition at line 63 of file CalorimeterHit.cc.

◆ getObjectID()

const podio::ObjectID dd4pod::CalorimeterHit::getObjectID ( ) const

Definition at line 83 of file CalorimeterHit.cc.

◆ id()

unsigned int dd4pod::CalorimeterHit::id ( ) const
inline

Definition at line 117 of file CalorimeterHit.h.

◆ isAvailable()

bool dd4pod::CalorimeterHit::isAvailable ( ) const

check whether the object is actually available

Definition at line 76 of file CalorimeterHit.cc.

◆ operator ConstCalorimeterHit()

dd4pod::CalorimeterHit::operator ConstCalorimeterHit ( ) const

conversion to const object

Definition at line 51 of file CalorimeterHit.cc.

◆ operator<()

bool dd4pod::CalorimeterHit::operator< ( const CalorimeterHit other) const
inline

Definition at line 115 of file CalorimeterHit.h.

◆ operator=()

CalorimeterHit & dd4pod::CalorimeterHit::operator= ( const CalorimeterHit other)

copy-assignment operator

Definition at line 34 of file CalorimeterHit.cc.

◆ operator==() [1/2]

bool dd4pod::CalorimeterHit::operator== ( const CalorimeterHit other) const
inline

Definition at line 111 of file CalorimeterHit.h.

◆ operator==() [2/2]

bool dd4pod::CalorimeterHit::operator== ( const ConstCalorimeterHit other) const

Definition at line 90 of file CalorimeterHit.cc.

◆ position() [1/3]

dd4pod::FourVector & dd4pod::CalorimeterHit::position ( )

Get reference to position.

Definition at line 65 of file CalorimeterHit.cc.

◆ position() [2/3]

const dd4pod::FourVector & dd4pod::CalorimeterHit::position ( ) const

Access the position.

Definition at line 56 of file CalorimeterHit.cc.

◆ position() [3/3]

void dd4pod::CalorimeterHit::position ( dd4pod::FourVector  value)

Set the position.

Definition at line 64 of file CalorimeterHit.cc.

◆ truth() [1/3]

dd4pod::MonteCarloContrib & dd4pod::CalorimeterHit::truth ( )

Get reference to truth.

Definition at line 67 of file CalorimeterHit.cc.

◆ truth() [2/3]

const dd4pod::MonteCarloContrib & dd4pod::CalorimeterHit::truth ( ) const

Access the truth.

Definition at line 57 of file CalorimeterHit.cc.

◆ truth() [3/3]

void dd4pod::CalorimeterHit::truth ( dd4pod::MonteCarloContrib  value)

Set the truth.

Definition at line 66 of file CalorimeterHit.cc.

◆ unlink()

void dd4pod::CalorimeterHit::unlink ( )
inline

disconnect from CalorimeterHitObj instance

Definition at line 109 of file CalorimeterHit.h.


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