allpix::DepositedCharge
Module: Objects
Charge deposit in sensor of detector.
#include <DepositedCharge.hpp>
Inherits from allpix::SensorCharge, allpix::Object, TObject
Public Functions
Name | |
---|---|
DepositedCharge(ROOT::Math::XYZPoint local_position, ROOT::Math::XYZPoint global_position, CarrierType type, unsigned int charge, double local_time, double global_time, const MCParticle * mc_particle =nullptr) Construct a charge deposit. |
|
const MCParticle * | getMCParticle() const Get related Monte-Carlo particle. |
void | setMCParticle(const MCParticle * mc_particle) Set the Monte-Carlo particle. |
virtual void | print(std::ostream & out) const override Print an ASCII representation of DepositedCharge to the given stream. |
ClassDefOverride(DepositedCharge , 4 ) ROOT class definition. |
|
DepositedCharge() =default Default constructor for ROOT I/O. |
|
virtual void | loadHistory() override Resolve all the history to standard pointers. |
virtual void | petrifyHistory() override Petrify all the pointers to prepare for persistent storage. |
Friends
Name | |
---|---|
class | PropagatedCharge |
Additional inherited members
Public Functions inherited from allpix::SensorCharge
Name | |
---|---|
SensorCharge(ROOT::Math::XYZPoint local_position, ROOT::Math::XYZPoint global_position, CarrierType type, unsigned int charge, double local_time, double global_time) Construct a set of charges in a sensor. |
|
ROOT::Math::XYZPoint | getLocalPosition() const Get local position of the set of charges in the sensor. |
ROOT::Math::XYZPoint | getGlobalPosition() const Get the global position of the set of charges in the sensor. |
CarrierType | getType() const Get the type of charge carrier. |
unsigned int | getCharge() const Get total amount of charges stored. |
long | getSign() const Get the sign of the charge for set of charge carriers. |
double | getGlobalTime() const Get time after start of event in global reference frame. |
double | getLocalTime() const Get local time in the sensor. |
SensorCharge() =default Default constructor for ROOT I/O. |
Public Classes inherited from allpix::Object
Name | |
---|---|
class | BaseWrapper |
class | PointerWrapper |
Public Functions inherited from allpix::Object
Name | |
---|---|
Object(const Object & ) =default Use default copy behaviour. |
|
Object & | operator=(const Object & ) =default Use default copy behaviour. |
Object(Object && ) =default Use default move behaviour. |
|
Object & | operator=(Object && ) =default Use default move behaviour. |
Object() =default Required default constructor. |
|
~Object() override =default Required virtual destructor. |
|
void | markForStorage() |
Protected Functions inherited from allpix::Object
Name | |
---|---|
void | Print(Option_t * ) const override Override function to implement ROOTPrint() |
Friends inherited from allpix::Object
Name | |
---|---|
std::ostream & | operator«(std::ostream & out, const allpix::Object & obj) Overloaded ostream operator for printing of object data. |
Public Functions Documentation
function DepositedCharge
DepositedCharge(
ROOT::Math::XYZPoint local_position,
ROOT::Math::XYZPoint global_position,
CarrierType type,
unsigned int charge,
double local_time,
double global_time,
const MCParticle * mc_particle =nullptr
)
Construct a charge deposit.
Parameters:
- local_position Local position of the deposit in the sensor
- global_position Global position of the propagated set of charges in the sensor
- type Type of the carrier
- charge Total charge of the deposit
- local_time Time of propagation arrival after energy deposition, local reference frame
- global_time Total time of propagation arrival after event start, global reference frame
- mc_particle Optional pointer to related MC particle
function getMCParticle
const MCParticle * getMCParticle() const
Get related Monte-Carlo particle.
Exceptions:
- MissingReferenceException If the pointed object is not in scope
Return: Pointer to possible Monte-Carlo particle
Object is stored as TRef and can only be accessed if pointed object is in scope
function setMCParticle
void setMCParticle(
const MCParticle * mc_particle
)
Set the Monte-Carlo particle.
Parameters:
- mc_particle The Monte-Carlo particle
Warning: Special method because MCParticle is only known after deposit creation, should not be replaced later.
function print
virtual void print(
std::ostream & out
) const override
Print an ASCII representation of DepositedCharge to the given stream.
Parameters:
- out Stream to print to
Reimplements: allpix::Object::print
function ClassDefOverride
ClassDefOverride(
DepositedCharge ,
4
)
ROOT class definition.
function DepositedCharge
DepositedCharge() =default
Default constructor for ROOT I/O.
function loadHistory
virtual void loadHistory() override
Resolve all the history to standard pointers.
Reimplements: allpix::Object::loadHistory
function petrifyHistory
virtual void petrifyHistory() override
Petrify all the pointers to prepare for persistent storage.
Reimplements: allpix::Object::petrifyHistory
Friends
friend PropagatedCharge
friend class PropagatedCharge(
PropagatedCharge
);
Updated on 2024-12-13 at 08:31:36 +0000