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

Public Member Functions

bool operator< (const EcalTP &other) const
 
void fill (int _tid, float _tp)
 
void writeToFile (FILE *file) const
 
void readFromFile (FILE *file)
 

Public Attributes

uint32_t tid
 
uint32_t tp
 

Detailed Description

Definition at line 13 of file DiscreteInputs.h.

Member Function Documentation

◆ fill()

void trigger::ldmx_int::EcalTP::fill ( int  _tid,
float  _tp 
)
inline

Definition at line 19 of file DiscreteInputs.h.

19 {
20 tid = _tid;
21 tp = _tp;
22 }

◆ operator<()

bool trigger::ldmx_int::EcalTP::operator< ( const EcalTP other) const
inline

Definition at line 18 of file DiscreteInputs.h.

18{ return tp > other.tp; }

◆ readFromFile()

void trigger::ldmx_int::EcalTP::readFromFile ( FILE *  file)
inline

Definition at line 27 of file DiscreteInputs.h.

27 {
28 fread(&tid, sizeof(uint32_t), 1, file);
29 fread(&tp, sizeof(uint32_t), 1, file);
30 }

◆ writeToFile()

void trigger::ldmx_int::EcalTP::writeToFile ( FILE *  file) const
inline

Definition at line 23 of file DiscreteInputs.h.

23 {
24 fwrite(&tid, sizeof(uint32_t), 1, file);
25 fwrite(&tp, sizeof(uint32_t), 1, file);
26 }

Member Data Documentation

◆ tid

uint32_t trigger::ldmx_int::EcalTP::tid

Definition at line 14 of file DiscreteInputs.h.

◆ tp

uint32_t trigger::ldmx_int::EcalTP::tp

Definition at line 15 of file DiscreteInputs.h.


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