CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Public Attributes | Private Attributes
RBCChamberORLogic Class Reference

#include <RBCChamberORLogic.h>

Inheritance diagram for RBCChamberORLogic:
RBCLogic

Public Types

typedef std::map< std::string,
bool >::iterator 
itr2chambers
 
typedef std::vector
< std::string >::iterator 
itr2names
 

Public Member Functions

void copymap (const std::bitset< 15 > &)
 
void createmap (const std::bitset< 15 > &)
 
bool evaluateLayerOR (const char *, const char *)
 
std::bitset< 6 > * getlayersignal (int _idx)
 
void process (const RBCInput &, std::bitset< 2 > &)
 
 RBCChamberORLogic ()
 Standard constructor. More...
 
void reset ()
 
void setBoardSpecs (const RBCBoardSpecs::RBCBoardConfig &)
 
void setmaxlevel (int _mx)
 
virtual ~RBCChamberORLogic ()
 Destructor. More...
 
- Public Member Functions inherited from RBCLogic
virtual ~RBCLogic ()
 

Public Attributes

std::bitset< 6 > * m_layersignal
 
- Public Attributes inherited from RBCLogic
bool m_triggersignal
 

Private Attributes

std::map< std::string, bool > m_chamber
 
int m_maxcb
 
int m_maxlevel
 
std::vector< std::string > m_rbname
 

Detailed Description

This class works out the mapping of inputs to chambers and applies a Coincidence Logic. The criteria for coincidence is set by the parameter m_maxlevel.

Authors
Andres Osorio, Flavio Loddo, Marcello Maggi

email: aosor.nosp@m.io@u.nosp@m.niand.nosp@m.es.e.nosp@m.du.co

Date
2008-10-11

Definition at line 27 of file RBCChamberORLogic.h.

Member Typedef Documentation

typedef std::map<std::string,bool>::iterator RBCChamberORLogic::itr2chambers

Definition at line 41 of file RBCChamberORLogic.h.

typedef std::vector<std::string>::iterator RBCChamberORLogic::itr2names

Definition at line 38 of file RBCChamberORLogic.h.

Constructor & Destructor Documentation

RBCChamberORLogic::RBCChamberORLogic ( )

Standard constructor.

Definition at line 16 of file RBCChamberORLogic.cc.

RBCChamberORLogic::~RBCChamberORLogic ( )
virtual

Destructor.

Definition at line 52 of file RBCChamberORLogic.cc.

Member Function Documentation

void RBCChamberORLogic::copymap ( const std::bitset< 15 > &  _input)

Definition at line 145 of file RBCChamberORLogic.cc.

void RBCChamberORLogic::createmap ( const std::bitset< 15 > &  _input)

Definition at line 164 of file RBCChamberORLogic.cc.

bool RBCChamberORLogic::evaluateLayerOR ( const char *  _chA,
const char *  _chB 
)

Definition at line 202 of file RBCChamberORLogic.cc.

std::bitset<6>* RBCChamberORLogic::getlayersignal ( int  _idx)
inlinevirtual

Implements RBCLogic.

Definition at line 38 of file RBCChamberORLogic.h.

38 { return & m_layersignal[_idx]; };
std::bitset< 6 > * m_layersignal
void RBCChamberORLogic::process ( const RBCInput _input,
std::bitset< 2 > &  _decision 
)
virtual

Implements RBCLogic.

Definition at line 60 of file RBCChamberORLogic.cc.

void RBCChamberORLogic::reset ( void  )

Definition at line 183 of file RBCChamberORLogic.cc.

void RBCChamberORLogic::setBoardSpecs ( const RBCBoardSpecs::RBCBoardConfig specs)
virtual

Implements RBCLogic.

Definition at line 138 of file RBCChamberORLogic.cc.

void RBCChamberORLogic::setmaxlevel ( int  _mx)
inline

Definition at line 51 of file RBCChamberORLogic.h.

References m_maxlevel.

51 { m_maxlevel = _mx;};

Member Data Documentation

std::map<std::string, bool> RBCChamberORLogic::m_chamber
private

Definition at line 61 of file RBCChamberORLogic.h.

std::bitset<6>* RBCChamberORLogic::m_layersignal

Definition at line 51 of file RBCChamberORLogic.h.

int RBCChamberORLogic::m_maxcb
private

Definition at line 63 of file RBCChamberORLogic.h.

int RBCChamberORLogic::m_maxlevel
private

Definition at line 65 of file RBCChamberORLogic.h.

Referenced by setmaxlevel().

std::vector<std::string> RBCChamberORLogic::m_rbname
private

Definition at line 59 of file RBCChamberORLogic.h.