#include <RPCDigiL1Link.h>
Public Member Functions | |
int | bx (unsigned int layer) const |
bool | empty (unsigned int layer) const |
bool | empty () const |
unsigned int | nlayer () const |
unsigned int | rawdetId (unsigned int layer) const |
RPCDigiL1Link () | |
void | setLink (unsigned int layer, unsigned int rpcdetId, int strip, int bx) |
int | strip (unsigned int layer) const |
~RPCDigiL1Link () | |
Private Member Functions | |
void | checklayer (unsigned int layer) const |
Private Attributes | |
std::vector< std::pair < unsigned int, int > > | _link |
Definition at line 7 of file RPCDigiL1Link.h.
RPCDigiL1Link::RPCDigiL1Link | ( | ) |
RPCDigiL1Link::~RPCDigiL1Link | ( | ) |
Definition at line 13 of file RPCDigiL1Link.cc.
{}
int RPCDigiL1Link::bx | ( | unsigned int | layer | ) | const |
Definition at line 52 of file RPCDigiL1Link.cc.
References _link, and checklayer().
{ this->checklayer(layer); return _link[layer-1].second/1000; }
void RPCDigiL1Link::checklayer | ( | unsigned int | layer | ) | const [private] |
Definition at line 81 of file RPCDigiL1Link.cc.
References Exception.
Referenced by bx(), empty(), rawdetId(), setLink(), and strip().
{ if (layer == 0 || layer > 6) throw cms::Exception("RPCException") <<"RPCDigiL1Link: layer must be in the range from 1 to 6" <<std::endl; }
bool RPCDigiL1Link::empty | ( | ) | const |
Definition at line 18 of file RPCDigiL1Link.cc.
References alignCSCRings::e, and prof2calltree::l.
bool RPCDigiL1Link::empty | ( | unsigned int | layer | ) | const |
Definition at line 29 of file RPCDigiL1Link.cc.
References checklayer(), and rawdetId().
{ this->checklayer(layer); return this->rawdetId(layer)==0; }
unsigned int RPCDigiL1Link::nlayer | ( | ) | const |
unsigned int RPCDigiL1Link::rawdetId | ( | unsigned int | layer | ) | const |
Definition at line 37 of file RPCDigiL1Link.cc.
References _link, and checklayer().
Referenced by empty().
{ this->checklayer(layer); return _link[layer-1].first; }
void RPCDigiL1Link::setLink | ( | unsigned int | layer, |
unsigned int | rpcdetId, | ||
int | strip, | ||
int | bx | ||
) |
Definition at line 66 of file RPCDigiL1Link.cc.
References _link, abs, checklayer(), redigi_cff::pdigi, and strip().
Referenced by RPCTrigger::giveFinallCandindates().
int RPCDigiL1Link::strip | ( | unsigned int | layer | ) | const |
Definition at line 45 of file RPCDigiL1Link.cc.
References _link, abs, checklayer(), and edm::second().
Referenced by setLink().
{ this->checklayer(layer); return abs(_link[layer-1].second)%1000; }
std::vector< std::pair<unsigned int, int> > RPCDigiL1Link::_link [private] |
Definition at line 28 of file RPCDigiL1Link.h.
Referenced by bx(), nlayer(), rawdetId(), RPCDigiL1Link(), setLink(), and strip().