LArSoft
v07_13_02
Liquid Argon Software toolkit - http://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 31 of file PointCharge.h.
using recob::PointCharge::Charge_t = float |
Type for the amount of reconstructed charge.
Definition at line 35 of file PointCharge.h.
|
inline |
Default constructor (for ROOT only).
Definition at line 47 of file PointCharge.h.
|
inline |
Constructor: sets all the data.
charge | reconstructed charge (used unchanged) |
Definition at line 54 of file PointCharge.h.
|
inline |
Returns the stored value of the reconstructed charge.
Definition at line 65 of file PointCharge.h.
References fCharge.
Referenced by dump(), hasCharge(), and recob::operator<<().
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 147 of file PointCharge.h.
References charge(), hasCharge(), and MaxVerbosity.
Referenced by dump().
|
inline |
Default verbosity for dumping operations.
Definition at line 115 of file PointCharge.h.
References dump(), and art::detail::indent().
|
inline |
Default verbosity for dumping operations.
Definition at line 118 of file PointCharge.h.
References dump().
|
inline |
Default verbosity for dumping operations.
Definition at line 121 of file PointCharge.h.
References dump(), and art::detail::indent().
|
inline |
Returns whether the reconstructed charge value is valid.
Definition at line 76 of file PointCharge.h.
References charge(), and InvalidCharge.
Referenced by dump().
|
static |
Default verbosity for dumping operations.
Definition at line 87 of file PointCharge.h.
|
private |
|
static |
Value used for default-constructed ("invalid") charge.
Definition at line 39 of file PointCharge.h.
Referenced by hasCharge().
|
static |
Maximum available verbosity for dumping operations.
Definition at line 90 of file PointCharge.h.
Referenced by dump().