CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

TMem Class Reference

#include <TMem.h>

List of all members.

Public Member Functions

bool isMemRelevant (int)
int Mem (int, int)
 TMem (int)
 TMem ()
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.

{
  init(610);
}
TMem::TMem ( int  fedid)

Definition at line 25 of file TMem.cc.

References init.

{
  init(fedid);
}
TMem::~TMem ( ) [virtual]

Definition at line 31 of file TMem.cc.

{
}

Member Function Documentation

void TMem::init ( int  fedid) [private]

Definition at line 35 of file TMem.cc.

References ME::memFromDcc().

bool TMem::isMemRelevant ( int  mem)

Definition at line 41 of file TMem.cc.

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

                               {

  bool isMemOK=false;
  for (unsigned int imem=0;imem<_memFromDcc.size();imem++){
    if(mem == _memFromDcc[imem]) {
      isMemOK=true;
      imem=_memFromDcc.size();
    }
  }
  return isMemOK;
}
int TMem::Mem ( int  lmr,
int  n 
)

Definition at line 53 of file TMem.cc.

References ME::memFromLmr().

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

                           {
  
  std::pair<int,int> mempair=ME::memFromLmr(lmr);
  if(n==0) return mempair.first;
  else return mempair.second;
  
}

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.