EDM4eic
EIC data model
Loading...
Searching...
No Matches
HGCROCSample.h
Go to the documentation of this file.
1// AUTOMATICALLY GENERATED FILE - DO NOT EDIT
2
3#ifndef EDM4EIC_HGCROCSample_H
4#define EDM4EIC_HGCROCSample_H
5
6#include <cstdint>
7#include <ostream>
8
9#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
10#include "nlohmann/json_fwd.hpp"
11#endif
12
13namespace edm4eic {
14
15/** @class HGCROCSample
16 *
17 * @author:
18 */
20public:
21 std::uint16_t ADC{}; ///< [ADC Counts], amplitude of signal during sample, valid IFF TOTInProgress is false
22 std::uint16_t timeOfArrival{}; ///< Time of arrival (TOA) [TDC counts], nonzero IFF ADC crossed threshold upwards during sample
23 std::uint16_t timeOverThreshold{}; ///< Time over threshold (TOT) [TDC counts], nonzero IFF ADC crossed threshold downwards during sample AND if TOA fired in a previous sample
24 bool TOTInProgress{}; ///< Flag which indicates if TOT calculation is ongoing, ADC value may be corrupted if this is true
25 bool TOTComplete{}; ///< Flag which indicates if a TOT calculation is complete and TOT value is valid
26
27
28};
29
30std::ostream& operator<<(std::ostream& o, const edm4eic::HGCROCSample& value);
31
32#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
33void to_json(nlohmann::json& j, const HGCROCSample& value);
34#endif
35
36} // namespace edm4eic
37
38
39#endif
Definition HGCROCSample.h:19
std::uint16_t timeOfArrival
Time of arrival (TOA) [TDC counts], nonzero IFF ADC crossed threshold upwards during sample.
Definition HGCROCSample.h:22
bool TOTComplete
Flag which indicates if a TOT calculation is complete and TOT value is valid.
Definition HGCROCSample.h:25
std::uint16_t ADC
[ADC Counts], amplitude of signal during sample, valid IFF TOTInProgress is false
Definition HGCROCSample.h:21
bool TOTInProgress
Flag which indicates if TOT calculation is ongoing, ADC value may be corrupted if this is true.
Definition HGCROCSample.h:24
std::uint16_t timeOverThreshold
Time over threshold (TOT) [TDC counts], nonzero IFF ADC crossed threshold downwards during sample AND...
Definition HGCROCSample.h:23
Definition CalorimeterHit.cc:17
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition CalorimeterHit.cc:103