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: