Definition at line 28 of file DiscreteInputs_IO.h.
◆ DiscreteInputs()
trigger::DiscreteInputs::DiscreteInputs |
( |
const char * |
fileName | ) |
|
|
inline |
Definition at line 30 of file DiscreteInputs_IO.h.
30 : file_(fopen(fileName, "rb")) {
31 if (!file_) {
32 std::cout << "ERROR: cannot read '" << fileName << "'" << std::endl;
33 }
34 assert(file_);
35 }
◆ ~DiscreteInputs()
trigger::DiscreteInputs::~DiscreteInputs |
( |
| ) |
|
|
inline |
◆ event()
const EventDump & trigger::DiscreteInputs::event |
( |
| ) |
|
|
inline |
◆ nextEvent()
bool trigger::DiscreteInputs::nextEvent |
( |
| ) |
|
|
inline |
Definition at line 38 of file DiscreteInputs_IO.h.
38 {
39 if (feof(file_)) return false;
40 if (!event_.readFromFile(file_)) return false;
41 printf("Beginning of event %lu (%lu TPs) \n", event_.event,
42 event_.EcalTPs.size());
43 return true;
44 }
◆ event_
◆ file_
FILE* trigger::DiscreteInputs::file_ |
|
private |
The documentation for this class was generated from the following file: