CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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)
 
virtual ~TMem ()
 

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::TMem ( )

Definition at line 18 of file TMem.cc.

References init.

19 {
20  init(610);
21 }
void init(int)
Definition: TMem.cc:34
TMem::TMem ( int  fedid)

Definition at line 24 of file TMem.cc.

References init.

25 {
26  init(fedid);
27 }
void init(int)
Definition: TMem.cc:34
TMem::~TMem ( )
virtual

Definition at line 30 of file TMem.cc.

31 {
32 }

Member Function Documentation

void TMem::init ( int  fedid)
private

Definition at line 34 of file TMem.cc.

References ME::memFromDcc().

35 {
36  _fedid=fedid;
38 }
static std::vector< ME::DCCid > memFromDcc(ME::DCCid idcc)
Definition: ME.cc:608
std::vector< int > _memFromDcc
Definition: TMem.h:13
int _fedid
Definition: TMem.h:12
bool TMem::isMemRelevant ( int  mem)

Definition at line 40 of file TMem.cc.

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

40  {
41 
42  bool isMemOK=false;
43  for (unsigned int imem=0;imem<_memFromDcc.size();imem++){
44  if(mem == _memFromDcc[imem]) {
45  isMemOK=true;
46  imem=_memFromDcc.size();
47  }
48  }
49  return isMemOK;
50 }
std::vector< int > _memFromDcc
Definition: TMem.h:13
uint16_t mem[nChs][nEvts]
int TMem::Mem ( int  lmr,
int  n 
)

Definition at line 52 of file TMem.cc.

References ME::memFromLmr().

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

52  {
53 
54  std::pair<int,int> mempair=ME::memFromLmr(lmr);
55  if(n==0) return mempair.first;
56  else return mempair.second;
57 
58 }
static std::pair< ME::DCCid, ME::DCCid > memFromLmr(ME::LMRid ilmr)
Definition: ME.cc:579

Member Data Documentation

int TMem::_fedid
private

Definition at line 12 of file TMem.h.

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

Definition at line 13 of file TMem.h.