CMS 3D CMS Logo

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

#include <LogEleMapdb.h>

Public Member Functions

 CellDB ()
 
 CellDB ()
 
 CellDB ()
 
template<typename T >
CellDB find (const std::string par, const T val) const
 
template<typename T >
CellDB find (const std::string par, const T val) const
 
template<typename T >
CellDB find (const std::string par, const T val) const
 
Cell operator[] (int i) const
 
Cell operator[] (int i) const
 
Cell operator[] (int i) const
 
int size () const
 
int size () const
 
int size () const
 

Private Member Functions

 CellDB (const std::vector< Cell > s)
 
 CellDB (const std::vector< Cell > s)
 
 CellDB (const std::vector< Cell > s)
 

Private Attributes

std::vector< Cellcells
 

Detailed Description

Definition at line 14741 of file LogEleMapdb.h.

Constructor & Destructor Documentation

◆ CellDB() [1/6]

CellDB::CellDB ( )
inline

Definition at line 14743 of file LogEleMapdb.h.

Referenced by find().

◆ CellDB() [2/6]

CellDB::CellDB ( const std::vector< Cell s)
inlineprivate

Definition at line 14761 of file LogEleMapdb.h.

14761 : cells(s) {}

◆ CellDB() [3/6]

CellDB::CellDB ( )
inline

Definition at line 14743 of file LogEleMapdb.h.

◆ CellDB() [4/6]

CellDB::CellDB ( const std::vector< Cell s)
inlineprivate

Definition at line 14761 of file LogEleMapdb.h.

14761 : cells(s) {}

◆ CellDB() [5/6]

CellDB::CellDB ( )
inline

Definition at line 14743 of file LogEleMapdb.h.

◆ CellDB() [6/6]

CellDB::CellDB ( const std::vector< Cell s)
inlineprivate

Definition at line 14761 of file LogEleMapdb.h.

14761 : cells(s) {}

Member Function Documentation

◆ find() [1/3]

template<typename T >
CellDB CellDB::find ( const std::string  par,
const T  val 
) const
inline

Definition at line 14752 of file LogEleMapdb.h.

14752  {
14753  std::vector<Cell> s;
14754  for (size_t i = 0; i < cells.size(); ++i)
14755  if (cells[i].check(par, val))
14756  s.push_back(cells[i]);
14757  return CellDB(s);
14758  }

References CellDB(), cells, RPCNoise_example::check, mps_fire::i, alignCSCRings::s, and heppy_batch::val.

◆ find() [2/3]

template<typename T >
CellDB CellDB::find ( const std::string  par,
const T  val 
) const
inline

Definition at line 14752 of file LogEleMapdb.h.

14752  {
14753  std::vector<Cell> s;
14754  for (size_t i = 0; i < cells.size(); ++i)
14755  if (cells[i].check(par, val))
14756  s.push_back(cells[i]);
14757  return CellDB(s);
14758  }

References CellDB(), cells, RPCNoise_example::check, mps_fire::i, alignCSCRings::s, and heppy_batch::val.

◆ find() [3/3]

template<typename T >
CellDB CellDB::find ( const std::string  par,
const T  val 
) const
inline

Definition at line 14752 of file LogEleMapdb.h.

14752  {
14753  std::vector<Cell> s;
14754  for (size_t i = 0; i < cells.size(); ++i)
14755  if (cells[i].check(par, val))
14756  s.push_back(cells[i]);
14757  return CellDB(s);
14758  }

References CellDB(), cells, RPCNoise_example::check, mps_fire::i, alignCSCRings::s, and heppy_batch::val.

◆ operator[]() [1/3]

Cell CellDB::operator[] ( int  i) const
inline

Definition at line 14746 of file LogEleMapdb.h.

14746 { return cells[i]; }

References cells, and mps_fire::i.

◆ operator[]() [2/3]

Cell CellDB::operator[] ( int  i) const
inline

Definition at line 14746 of file LogEleMapdb.h.

14746 { return cells[i]; }

References cells, and mps_fire::i.

◆ operator[]() [3/3]

Cell CellDB::operator[] ( int  i) const
inline

Definition at line 14746 of file LogEleMapdb.h.

14746 { return cells[i]; }

References cells, and mps_fire::i.

◆ size() [1/3]

int CellDB::size ( void  ) const
inline

Definition at line 14748 of file LogEleMapdb.h.

14748 { return cells.size(); }

References cells.

Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), and main().

◆ size() [2/3]

int CellDB::size ( void  ) const
inline

Definition at line 14748 of file LogEleMapdb.h.

14748 { return cells.size(); }

References cells.

Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().

◆ size() [3/3]

int CellDB::size ( void  ) const
inline

Definition at line 14748 of file LogEleMapdb.h.

14748 { return cells.size(); }

References cells.

Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().

Member Data Documentation

◆ cells

std::vector< Cell > CellDB::cells
private

Definition at line 14762 of file LogEleMapdb.h.

Referenced by find(), operator[](), and size().

DIM
#define DIM(a)
Definition: LogEleMapdb.h:14738
mps_fire.i
i
Definition: mps_fire.py:355
AllCells
const Cell AllCells[]
Definition: LogEleMapdb.h:73
DIM
#define DIM(a)
Definition: LogEleMapdb.h:14738
alignCSCRings.s
s
Definition: alignCSCRings.py:92
RPCNoise_example.check
check
Definition: RPCNoise_example.py:71
CellDB::cells
std::vector< Cell > cells
Definition: LogEleMapdb.h:14762
CellDB::CellDB
CellDB()
Definition: LogEleMapdb.h:14743
DIM
#define DIM(a)
Definition: LogEleMapdb.h:14738
heppy_batch.val
val
Definition: heppy_batch.py:351