10 #ifndef LARDATAOBJ_RECOBASE_CHARGE_H 11 #define LARDATAOBJ_RECOBASE_CHARGE_H 99 template <
typename Stream>
100 void dump(Stream&& out,
101 unsigned int verbosity,
103 std::string firstIndent)
const;
106 template <
typename Stream>
107 void dump(Stream&& out,
unsigned int verbosity, std::string
indent =
"")
const 111 template <
typename Stream>
112 void dump(Stream&& out, std::string
indent, std::string firstIndent)
const 114 dump(std::forward<Stream>(out), DefaultVerbosity, indent, firstIndent);
116 template <
typename Stream>
142 template <
typename Stream>
144 unsigned int verbosity,
146 std::string firstIndent)
const 148 if (verbosity <= 0U)
return;
151 out << firstIndent <<
"charge: ";
161 static_assert(
MaxVerbosity == 1U,
"Please update the code!");
167 #endif // LARDATAOBJ_RECOBASE_CHARGE_H Reconstruction base classes.
constexpr PointCharge(Charge_t charge)
Constructor: sets all the data.
static constexpr Charge_t InvalidCharge
Value used for default-constructed ("invalid") charge.
void dump(Stream &&out, unsigned int verbosity, std::string indent, std::string firstIndent) const
Dump the content of this object into an output stream.
void dump(Stream &&out, std::string indent="") const
Default verbosity for dumping operations.
constexpr PointCharge()
Default constructor (for ROOT only).
constexpr bool hasCharge() const
Returns whether the reconstructed charge value is valid.
std::string indent(std::size_t const i)
static constexpr unsigned int DefaultVerbosity
Default verbosity for dumping operations.
float fCharge
Reconstructed charge.
static constexpr unsigned int MaxVerbosity
Maximum available verbosity for dumping operations.
float Charge_t
Type for the amount of reconstructed charge.
void dump(Stream &&out, std::string indent, std::string firstIndent) const
Default verbosity for dumping operations.
constexpr Charge_t charge() const
Returns the stored value of the reconstructed charge.
std::ostream & operator<<(std::ostream &o, Cluster const &c)
void dump(Stream &&out, unsigned int verbosity, std::string indent="") const
Default verbosity for dumping operations.
Charge reconstructed in the active volume.