#include <L1MuDTChambPhContainer.h>
Public Types | |
typedef std::vector < L1MuDTChambPhDigi > | Phi_Container |
typedef Phi_Container::const_iterator | Phi_iterator |
Public Member Functions | |
bool | bxEmpty (int step) const |
int | bxSize (int step1, int step2) const |
L1MuDTChambPhDigi * | chPhiSegm1 (int wheel, int stat, int sect, int bx) const |
L1MuDTChambPhDigi * | chPhiSegm2 (int wheel, int stat, int sect, int bx) const |
Phi_Container * | getContainer () const |
L1MuDTChambPhContainer () | |
void | setContainer (Phi_Container inputSegments) |
~L1MuDTChambPhContainer () | |
Private Attributes | |
Phi_Container | phiSegments |
Definition at line 34 of file L1MuDTChambPhContainer.h.
typedef std::vector<L1MuDTChambPhDigi> L1MuDTChambPhContainer::Phi_Container |
Definition at line 38 of file L1MuDTChambPhContainer.h.
typedef Phi_Container::const_iterator L1MuDTChambPhContainer::Phi_iterator |
Definition at line 39 of file L1MuDTChambPhContainer.h.
L1MuDTChambPhContainer::L1MuDTChambPhContainer | ( | ) |
Definition at line 36 of file L1MuDTChambPhContainer.cc.
{}
L1MuDTChambPhContainer::~L1MuDTChambPhContainer | ( | ) |
Definition at line 41 of file L1MuDTChambPhContainer.cc.
{}
bool L1MuDTChambPhContainer::bxEmpty | ( | int | step | ) | const |
Definition at line 60 of file L1MuDTChambPhContainer.cc.
References relativeConstraints::empty, and i.
{ bool empty = true; for ( Phi_iterator i = phiSegments.begin(); i != phiSegments.end(); i++ ) { if (step == i->bxNum()) empty = false; } return(empty); }
int L1MuDTChambPhContainer::bxSize | ( | int | step1, |
int | step2 | ||
) | const |
Definition at line 73 of file L1MuDTChambPhContainer.cc.
References i, and findQualityFiles::size.
{ int size = 0; for ( Phi_iterator i = phiSegments.begin(); i != phiSegments.end(); i++ ) { if (step1 <= i->bxNum() && step2 >= i->bxNum() && i->Ts2Tag() == 0 && i->code() != 7) size++; if (step1 <= i->bxNum()-1 && step2 >= i->bxNum()-1 && i->Ts2Tag() == 1 && i->code() != 7) size++; } return(size); }
L1MuDTChambPhDigi * L1MuDTChambPhContainer::chPhiSegm1 | ( | int | wheel, |
int | stat, | ||
int | sect, | ||
int | bx | ||
) | const |
Definition at line 89 of file L1MuDTChambPhContainer.cc.
References i.
Referenced by CSCTFDTReceiver::process().
{ L1MuDTChambPhDigi* rT=0; for ( Phi_iterator i = phiSegments.begin(); i != phiSegments.end(); i++ ) { if (step == i->bxNum() && wheel == i->whNum() && sect == i->scNum() && stat == i->stNum() && i->Ts2Tag() == 0) rT = const_cast<L1MuDTChambPhDigi*>(&(*i)); } return(rT); }
L1MuDTChambPhDigi * L1MuDTChambPhContainer::chPhiSegm2 | ( | int | wheel, |
int | stat, | ||
int | sect, | ||
int | bx | ||
) | const |
Definition at line 104 of file L1MuDTChambPhContainer.cc.
References i.
Referenced by CSCTFDTReceiver::process().
{ L1MuDTChambPhDigi* rT=0; for ( Phi_iterator i = phiSegments.begin(); i != phiSegments.end(); i++ ) { if (step == i->bxNum()-1 && wheel == i->whNum() && sect == i->scNum() && stat == i->stNum() && i->Ts2Tag() == 1) rT = const_cast<L1MuDTChambPhDigi*>(&(*i)); } return(rT); }
L1MuDTChambPhContainer::Phi_Container * L1MuDTChambPhContainer::getContainer | ( | ) | const |
Definition at line 51 of file L1MuDTChambPhContainer.cc.
{ Phi_Container* rT=0; rT = const_cast<Phi_Container*>(&phiSegments); return(rT); }
void L1MuDTChambPhContainer::setContainer | ( | Phi_Container | inputSegments | ) |
Definition at line 46 of file L1MuDTChambPhContainer.cc.
{ phiSegments = inputSegments; }
Definition at line 61 of file L1MuDTChambPhContainer.h.