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 19 of file TMem.cc.

References init.

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

Definition at line 25 of file TMem.cc.

References init.

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

Definition at line 31 of file TMem.cc.

32 {
33 }

Member Function Documentation

void TMem::init ( int  fedid)
private

Definition at line 35 of file TMem.cc.

References ME::memFromDcc().

36 {
37  _fedid=fedid;
39 }
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 41 of file TMem.cc.

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

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

Definition at line 53 of file TMem.cc.

References ME::memFromLmr().

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

53  {
54 
55  std::pair<int,int> mempair=ME::memFromLmr(lmr);
56  if(n==0) return mempair.first;
57  else return mempair.second;
58 
59 }
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.