LDMX Software
trigger::ldmx_int::EcalTP Struct Reference

Public Member Functions

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

Public Attributes

uint8_t tp
 
uint32_t tid
 
uint32_t tp_lin
 
uint32_t layer
 
uint32_t module
 
uint32_t cell
 

Detailed Description

Definition at line 13 of file DiscreteInputs.h.

Member Function Documentation

◆ fill() [1/2]

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

Definition at line 23 of file DiscreteInputs.h.

23 {
24 tid = _tid;
25 tp = _tp;
26 // derived data, optional
27 layer = 0;
28 module = 0;
29 cell = 0;
30 tp_lin = 0;
31 }

◆ fill() [2/2]

void trigger::ldmx_int::EcalTP::fill ( int _tid,
int _tp,
int _layer,
int _module,
int _cell,
int _tp_lin )
inline

Definition at line 32 of file DiscreteInputs.h.

33 {
34 tid = _tid;
35 tp = _tp;
36 layer = _layer;
37 module = _module;
38 cell = _cell;
39 tp_lin = _tp_lin;
40 }

◆ operator<()

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

Definition at line 22 of file DiscreteInputs.h.

22{ return tp > other.tp; }

◆ readFromFile()

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

Definition at line 49 of file DiscreteInputs.h.

49 {
50 fread(&tp, sizeof(uint8_t), 1, file);
51 fread(&tid, sizeof(uint32_t), 1, file);
52 fread(&layer, sizeof(uint32_t), 1, file);
53 fread(&module, sizeof(uint32_t), 1, file);
54 fread(&cell, sizeof(uint32_t), 1, file);
55 fread(&tp_lin, sizeof(uint32_t), 1, file);
56 }

◆ writeToFile()

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

Definition at line 41 of file DiscreteInputs.h.

41 {
42 fwrite(&tp, sizeof(uint8_t), 1, file);
43 fwrite(&tid, sizeof(uint32_t), 1, file);
44 fwrite(&layer, sizeof(uint32_t), 1, file);
45 fwrite(&module, sizeof(uint32_t), 1, file);
46 fwrite(&cell, sizeof(uint32_t), 1, file);
47 fwrite(&tp_lin, sizeof(uint32_t), 1, file);
48 }

Member Data Documentation

◆ cell

uint32_t trigger::ldmx_int::EcalTP::cell

Definition at line 20 of file DiscreteInputs.h.

◆ layer

uint32_t trigger::ldmx_int::EcalTP::layer

Definition at line 18 of file DiscreteInputs.h.

◆ module

uint32_t trigger::ldmx_int::EcalTP::module

Definition at line 19 of file DiscreteInputs.h.

◆ tid

uint32_t trigger::ldmx_int::EcalTP::tid

Definition at line 15 of file DiscreteInputs.h.

◆ tp

uint8_t trigger::ldmx_int::EcalTP::tp

Definition at line 14 of file DiscreteInputs.h.

◆ tp_lin

uint32_t trigger::ldmx_int::EcalTP::tp_lin

Definition at line 17 of file DiscreteInputs.h.


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