CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
TMem Class Reference

#include <TMem.h>

Inheritance diagram for TMem:

Public Member Functions

bool isMemRelevant (int)
 
int Mem (int, int)
 
 TMem ()
 
 TMem (int)
 
 ~TMem () override
 

Private Member Functions

void init (int)
 

Private Attributes

int _fedid
 
std::vector< int > _memFromDcc
 

Detailed Description

Definition at line 7 of file TMem.h.

Constructor & Destructor Documentation

◆ TMem() [1/2]

TMem::TMem ( )

Definition at line 17 of file TMem.cc.

References init.

17 { init(610); }
void init(int)
Definition: TMem.cc:25

◆ TMem() [2/2]

TMem::TMem ( int  fedid)

Definition at line 20 of file TMem.cc.

References PixelSLinkDataInputSource_cfi::fedid, and init.

◆ ~TMem()

TMem::~TMem ( )
override

Definition at line 23 of file TMem.cc.

23 {}

Member Function Documentation

◆ init()

void TMem::init ( int  fedid)
private

Definition at line 25 of file TMem.cc.

References PixelSLinkDataInputSource_cfi::fedid, and ME::memFromDcc().

25  {
26  _fedid = fedid;
28 }
static std::vector< ME::DCCid > memFromDcc(ME::DCCid idcc)
Definition: ME.cc:561
std::vector< int > _memFromDcc
Definition: TMem.h:10
int _fedid
Definition: TMem.h:9

◆ isMemRelevant()

bool TMem::isMemRelevant ( int  mem)

Definition at line 30 of file TMem.cc.

References mem.

Referenced by EcalLaserAnalyzer::analyze(), and EcalLaserAnalyzer2::analyze().

30  {
31  bool isMemOK = false;
32  for (unsigned int imem = 0; imem < _memFromDcc.size(); imem++) {
33  if (mem == _memFromDcc[imem]) {
34  isMemOK = true;
35  imem = _memFromDcc.size();
36  }
37  }
38  return isMemOK;
39 }
std::vector< int > _memFromDcc
Definition: TMem.h:10
uint16_t mem[nChs][nEvts]

◆ Mem()

int TMem::Mem ( int  lmr,
int  n 
)

Definition at line 41 of file TMem.cc.

References ME::memFromLmr(), and dqmiodumpmetadata::n.

Referenced by EcalLaserAnalyzer::analyze(), and EcalLaserAnalyzer2::analyze().

41  {
42  std::pair<int, int> mempair = ME::memFromLmr(lmr);
43  if (n == 0)
44  return mempair.first;
45  else
46  return mempair.second;
47 }
static std::pair< ME::DCCid, ME::DCCid > memFromLmr(ME::LMRid ilmr)
Definition: ME.cc:538

Member Data Documentation

◆ _fedid

int TMem::_fedid
private

Definition at line 9 of file TMem.h.

◆ _memFromDcc

std::vector<int> TMem::_memFromDcc
private

Definition at line 10 of file TMem.h.