22 #ifndef DataFormatsL1GlobalMuonTrigger_L1MuGMTExtendedCand_h 23 #define DataFormatsL1GlobalMuonTrigger_L1MuGMTExtendedCand_h 127 class Rank : std::binary_function< const L1MuGMTExtendedCand*, const L1MuGMTExtendedCand*, bool> {
130 unsigned int rank_f = (
first) ? first->
rank(): 0;
131 unsigned int rank_s = (
second) ? second->
rank() : 0;
132 return rank_f > rank_s;
137 class RankRef : std::binary_function< const L1MuGMTExtendedCand&, const L1MuGMTExtendedCand&, bool> {
140 unsigned int rank_f = first.
rank();
141 unsigned int rank_s = second.
rank();
142 return rank_f > rank_s;
void writeDataField(unsigned start, unsigned count, unsigned value)
define a rank for muon candidates
bool operator!=(const L1MuGMTExtendedCand &) const
unequal operator
void setDTCSCIndex(unsigned int idxdtcsc)
set index of contributing DT/CSC muon
unsigned readDataField(unsigned start, unsigned count) const
unsigned int rank() const
get rank
bool operator()(const L1MuGMTExtendedCand *first, const L1MuGMTExtendedCand *second) const
U second(std::pair< T, U > const &p)
bool operator==(const L1MuGMTExtendedCand &) const
equal operator
unsigned int detector() const
int bx() const
get bunch crossing identifier
bool isRPC() const
get RPC bit (true=RPC, false = DT/CSC or matched)
void setFwdBit(unsigned int fwdbit)
set forward bit (1=forward, 0=barrel)
friend std::ostream & operator<<(std::ostream &, const L1MuGMTExtendedCand &)
output stream operator
void reset()
reset muon candidate
unsigned getRPCIndex() const
get index of contributing RPC muon
L1MuGMTExtendedCand()
constructor
unsigned getDTCSCIndex() const
get index of contributing DT/CSC muon
void setRPCBit(unsigned int rpcbit)
set RPC bit (1=RPC, 0=DT/CSC or matched)
void setRank(unsigned int rank)
set rank
char data[epos_bytes_allocation]
virtual ~L1MuGMTExtendedCand()
destructor
bool operator()(const L1MuGMTExtendedCand &first, const L1MuGMTExtendedCand &second) const
bool isFwd() const
get forward bit (true=forward, false=barrel)
void setRPCIndex(unsigned int idxrpc)
set index of contributing RPC muon
void print() const
print parameters of muon candidate
define a rank for muon candidates