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.

17 { init(610); }

References init.

◆ TMem() [2/2]

TMem::TMem ( int  fedid)

Definition at line 20 of file TMem.cc.

20 { init(fedid); }

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.

25  {
26  _fedid = fedid;
28 }

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

◆ isMemRelevant()

bool TMem::isMemRelevant ( int  mem)

Definition at line 30 of file TMem.cc.

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 }

References mem.

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

◆ Mem()

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

Definition at line 41 of file TMem.cc.

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 }

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

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

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.

dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
TMem::_memFromDcc
std::vector< int > _memFromDcc
Definition: TMem.h:10
mem
uint16_t mem[nChs][nEvts]
Definition: recycleTccEmu.cc:13
ME::memFromLmr
static std::pair< ME::DCCid, ME::DCCid > memFromLmr(ME::LMRid ilmr)
Definition: ME.cc:538
PixelSLinkDataInputSource_cfi.fedid
fedid
Definition: PixelSLinkDataInputSource_cfi.py:6
TMem::_fedid
int _fedid
Definition: TMem.h:9
ME::memFromDcc
static std::vector< ME::DCCid > memFromDcc(ME::DCCid idcc)
Definition: ME.cc:561
TMem::init
void init(int)
Definition: TMem.cc:25