![]() |
LArSoft
v10_06_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Charge reconstructed in the active volume. More...
#include "PointCharge.h"
Public Types | |
| using | Charge_t = float |
| Type for the amount of reconstructed charge. More... | |
Public Member Functions | |
Constructors | |
| constexpr | PointCharge () |
| Default constructor (for ROOT only). More... | |
| constexpr | PointCharge (Charge_t charge) |
| Constructor: sets all the data. More... | |
Access to the information | |
| constexpr Charge_t | charge () const |
| Returns the stored value of the reconstructed charge. More... | |
Object status and data validity | |
| constexpr bool | hasCharge () const |
| Returns whether the reconstructed charge value is valid. More... | |
Static Public Attributes | |
| static constexpr Charge_t | InvalidCharge = std::numeric_limits<Charge_t>::lowest() |
| Value used for default-constructed ("invalid") charge. More... | |
Private Attributes | |
| float | fCharge |
| Reconstructed charge. More... | |
Printing operations | |
| static constexpr unsigned int | DefaultVerbosity = 1U |
| Default verbosity for dumping operations. More... | |
| static constexpr unsigned int | MaxVerbosity = 1U |
| Maximum available verbosity for dumping operations. More... | |
| template<typename Stream > | |
| void | dump (Stream &&out, unsigned int verbosity, std::string indent, std::string firstIndent) const |
| Dump the content of this object into an output stream. More... | |
| template<typename Stream > | |
| void | dump (Stream &&out, unsigned int verbosity, std::string indent="") const |
| Default verbosity for dumping operations. More... | |
| template<typename Stream > | |
| void | dump (Stream &&out, std::string indent, std::string firstIndent) const |
| Default verbosity for dumping operations. More... | |
| template<typename Stream > | |
| void | dump (Stream &&out, std::string indent="") const |
| Default verbosity for dumping operations. More... | |
Charge reconstructed in the active volume.
The reconstructed charge value is in arbitrary units in that it's hard to precisely define the normalization, which ends up being algorithm-dependent. As such, the charge from this object is expected to require a specific calibration.
Definition at line 30 of file PointCharge.h.
| using recob::PointCharge::Charge_t = float |
Type for the amount of reconstructed charge.
Definition at line 33 of file PointCharge.h.
|
inline |
Default constructor (for ROOT only).
Definition at line 43 of file PointCharge.h.
|
inline |
Constructor: sets all the data.
| charge | reconstructed charge (used unchanged) |
Definition at line 50 of file PointCharge.h.
|
inline |
Returns the stored value of the reconstructed charge.
Definition at line 60 of file PointCharge.h.
References fCharge.
Referenced by dump(), and hasCharge().
| void recob::PointCharge::dump | ( | Stream && | out, |
| unsigned int | verbosity, | ||
| std::string | indent, | ||
| std::string | firstIndent | ||
| ) | const |
Dump the content of this object into an output stream.
| Stream | type of stream to write into |
| out | output stream |
| verbosity | the level of detail of dumped information, to be between 0 and MaxVerbosity _(default: DefaultVerbosity)_ |
| indent | all lines except the first are prepended this string _(default: none)_ |
| firstIndent | the first output line is prepended this string _(default: same as indent)_ |
The output starts on the current line, with firstIndent as indentation. No end-of-line is inserted at the end of the output.
Definition at line 143 of file PointCharge.h.
References charge(), hasCharge(), and MaxVerbosity.
Referenced by dump(), and recob::operator<<().
|
inline |
Default verbosity for dumping operations.
Definition at line 107 of file PointCharge.h.
References dump(), and art::detail::indent().
|
inline |
Default verbosity for dumping operations.
Definition at line 112 of file PointCharge.h.
References dump().
|
inline |
Default verbosity for dumping operations.
Definition at line 117 of file PointCharge.h.
References dump(), and art::detail::indent().
|
inline |
Returns whether the reconstructed charge value is valid.
Definition at line 70 of file PointCharge.h.
References charge(), and InvalidCharge.
Referenced by dump().
|
static |
Default verbosity for dumping operations.
Definition at line 80 of file PointCharge.h.
|
private |
|
static |
Value used for default-constructed ("invalid") charge.
Definition at line 36 of file PointCharge.h.
Referenced by hasCharge().
|
static |
Maximum available verbosity for dumping operations.
Definition at line 83 of file PointCharge.h.
Referenced by dump().