src/objects/Pulse.hpp
Definition of pulse object. More…
Namespaces
Name |
---|
allpix Helper class to hold support layers for a detector model. |
Classes
Name | |
---|---|
class | allpix::Pulse Pulse holding induced charges as a function of time. |
Detailed Description
Definition of pulse object.
Copyright: Copyright (c) 2019-2024 CERN and the Allpix Squared authors. This software is distributed under the terms of the MIT License, copied verbatim in the file “LICENSE.md”. In applying this license, CERN does not waive the privileges and immunities granted to it by virtue of its status as an Intergovernmental Organization or submit itself to any jurisdiction. SPDX-License-Identifier: MIT
Source code
#ifndef ALLPIX_PULSE_H
#define ALLPIX_PULSE_H
#include <vector>
#include <TObject.h>
namespace allpix {
class Pulse : public std::vector<double> {
public:
explicit Pulse(double time_bin) noexcept;
Pulse(double time_bin, double total_time);
Pulse() = default;
void addCharge(double charge, double time);
int getCharge() const;
double getBinning() const;
bool isInitialized() const;
Pulse& operator+=(const Pulse& rhs);
ClassDef(Pulse, 3); // NOLINT
private:
double bin_{};
bool initialized_{};
};
} // namespace allpix
#endif /* ALLPIX_PULSE_H */
Updated on 2025-02-27 at 14:14:46 +0000