LDMX Software
Public Member Functions | Public Attributes | List of all members
trigger::EventDump Struct Reference

Public Member Functions

bool readFromFile (FILE *file)
 
bool writeToFile (FILE *file)
 

Public Attributes

uint64_t event
 
std::vector< ldmx_int::EcalTPEcalTPs
 

Detailed Description

Definition at line 11 of file DiscreteInputs_IO.h.

Constructor & Destructor Documentation

◆ EventDump()

trigger::EventDump::EventDump ( )
inline

Definition at line 15 of file DiscreteInputs_IO.h.

15: event(0), EcalTPs() {}

Member Function Documentation

◆ readFromFile()

bool trigger::EventDump::readFromFile ( FILE *  file)
inline

Definition at line 16 of file DiscreteInputs_IO.h.

16 {
17 if (!fread(&event, sizeof(uint64_t), 1, file)) return false;
18 ldmx_int::readManyFromFile(EcalTPs, file);
19 return true;
20 }

◆ writeToFile()

bool trigger::EventDump::writeToFile ( FILE *  file)
inline

Definition at line 21 of file DiscreteInputs_IO.h.

21 {
22 fwrite(&event, sizeof(uint64_t), 1, file);
23 ldmx_int::writeManyToFile(EcalTPs, file);
24 return true;
25 }

Member Data Documentation

◆ EcalTPs

std::vector<ldmx_int::EcalTP> trigger::EventDump::EcalTPs

Definition at line 13 of file DiscreteInputs_IO.h.

◆ event

uint64_t trigger::EventDump::event

Definition at line 12 of file DiscreteInputs_IO.h.


The documentation for this struct was generated from the following file: