#include <SimpleL1MuGMTCand.h>
Classes | |
class | Rank |
define a rank for muon candidates More... | |
Public Types | |
typedef math::XYZTLorentzVector | LorentzVector |
Public Member Functions | |
int | charge () const |
get charge More... | |
void | disable () |
disable muon candidate More... | |
bool | empty () const |
is it an empty muon candidate? More... | |
void | enable () |
enable muon candidate More... | |
unsigned int | eta () const |
get eta-code More... | |
unsigned int | etaRegionIndex () const |
const LorentzVector | getMomentum () const |
unsigned int | linearizedPt (float lsbValue, unsigned maxScale) const |
nevermind this one More... | |
std::string | name () const |
get name of object More... | |
bool | operator!= (const SimpleL1MuGMTCand &) const |
unequal operator More... | |
SimpleL1MuGMTCand & | operator= (const SimpleL1MuGMTCand &) |
assignment operator More... | |
SimpleL1MuGMTCand * | operator= (const SimTrack *) |
assignment operator for a FSimTrack More... | |
bool | operator== (const SimpleL1MuGMTCand &) const |
equal operator More... | |
unsigned int | phi () const |
get phi-code More... | |
unsigned int | phiRegionIndex () const |
void | print () const |
print parameters of muon candidate More... | |
unsigned int | pt () const |
get pt-code More... | |
unsigned int | quality () const |
get quality (not implemented for FAMOS) More... | |
unsigned int | rank () const |
get rank More... | |
void | reset () |
reset muon candidate More... | |
void | setCharge (int charge) |
set charge and packed code of muon candidate More... | |
void | setEta (float eta) |
set eta-value and packed code of muon candidate More... | |
void | setMomentum (const LorentzVector &m) |
void | setPhi (float phi) |
set phi-value and packed code of muon candidate More... | |
void | setPt (float pt) |
set pt-value and packed code of muon candidate More... | |
void | setRank (unsigned int rank) |
set rank More... | |
SimpleL1MuGMTCand () | |
constructor More... | |
SimpleL1MuGMTCand (const SimpleL1MuGMTCand &) | |
copy constructor More... | |
SimpleL1MuGMTCand (const SimpleL1MuGMTCand *) | |
copy constructor from pointer More... | |
SimpleL1MuGMTCand (const SimTrack *) | |
convert a FSimTrack into a SimpleL1MuGMTCand (L1MuGMTExtendedCand) More... | |
SimpleL1MuGMTCand (const SimTrack *p, unsigned etaIndex, unsigned phiIndex, unsigned pTIndex, float etaValue, float phiValue, float pTValue) | |
The same as above, but without relying on internal tables (safer) More... | |
float | smearedPt () const |
return the smeared L1 Pt value before discretization in 32-bit More... | |
~SimpleL1MuGMTCand () override | |
destructor More... | |
Public Member Functions inherited from L1MuGMTExtendedCand | |
unsigned int | detector () const |
unsigned | getDTCSCIndex () const |
get index of contributing DT/CSC muon More... | |
unsigned | getRPCIndex () const |
get index of contributing RPC muon More... | |
bool | isFwd () const |
get forward bit (true=forward, false=barrel) More... | |
bool | isRPC () const |
get RPC bit (true=RPC, false = DT/CSC or matched) More... | |
L1MuGMTExtendedCand () | |
constructor More... | |
L1MuGMTExtendedCand (unsigned data, unsigned rank, int bx=0) | |
constructor More... | |
L1MuGMTExtendedCand (const L1MuGMTExtendedCand &) | |
copy constructor More... | |
bool | operator!= (const L1MuGMTExtendedCand &) const |
unequal operator More... | |
bool | operator== (const L1MuGMTExtendedCand &) const |
equal operator More... | |
void | print () const |
print parameters of muon candidate More... | |
unsigned int | rank () const |
get rank More... | |
void | reset () |
reset muon candidate More... | |
void | setDTCSCIndex (unsigned int idxdtcsc) |
set index of contributing DT/CSC muon More... | |
void | setFwdBit (unsigned int fwdbit) |
set forward bit (1=forward, 0=barrel) More... | |
void | setRank (unsigned int rank) |
set rank More... | |
void | setRPCBit (unsigned int rpcbit) |
set RPC bit (1=RPC, 0=DT/CSC or matched) More... | |
void | setRPCIndex (unsigned int idxrpc) |
set index of contributing RPC muon More... | |
~L1MuGMTExtendedCand () override | |
destructor More... | |
Public Member Functions inherited from L1MuGMTCand | |
int | bx () const |
get bunch crossing identifier More... | |
int | charge () const |
get charge (+1 -1) More... | |
bool | charge_valid () const |
is the charge valid ? More... | |
bool | empty () const |
is it an empty muon candidate? More... | |
unsigned int | etaIndex () const |
get eta-code More... | |
unsigned int | etaRegionIndex () const |
float | etaValue () const |
unsigned | getDataWord () const |
get muon data word More... | |
bool | isHaloCand () const |
interpretation of quality code: is the candidate a beam halo muon ? More... | |
bool | isMatchedCand () const |
interpretation of quality code: is the candidate a matched candidate ? More... | |
bool | isol () const |
get isolation More... | |
bool | isSyncWord () const |
is the candidate a sync word More... | |
L1MuGMTCand () | |
constructor More... | |
L1MuGMTCand (unsigned data, int bx=0) | |
constructor from dataword More... | |
L1MuGMTCand (const L1MuGMTCand &) | |
copy constructor More... | |
unsigned int | linearizedPt (float lsbValue, unsigned maxScale) const |
bool | mip () const |
get mip More... | |
std::string | name () const |
get name of object More... | |
bool | operator!= (const L1MuGMTCand &) const |
unequal operator More... | |
bool | operator== (const L1MuGMTCand &) const |
equal operator More... | |
unsigned int | phiIndex () const |
get phi-code More... | |
unsigned int | phiRegionIndex () const |
float | phiValue () const |
void | print () const |
print parameters of muon candidate More... | |
unsigned int | ptIndex () const |
get pt-code More... | |
float | ptValue () const |
unsigned int | quality () const |
get quality More... | |
void | reset () |
reset muon candidate More... | |
void | setBx (int bx) |
set bunch crossing identifier More... | |
void | setChargePacked (unsigned ch) |
set packed charge/synchronization word of muon candidate (0=POS, 1=NEG, 2=UNDEF, 3=SYNC) More... | |
void | setEtaPacked (unsigned eta) |
set packed eta-code of muon candidate More... | |
void | setEtaValue (float etaVal) |
Set Eta Value (need to set type, first) More... | |
void | setIsolation (bool isol) |
set isolation of muon candidate More... | |
void | setMIP (bool mip) |
set min ionizing bit for muon candidate More... | |
void | setPhiPacked (unsigned phi) |
set packed phi-code of muon candidate More... | |
void | setPhiValue (float phiVal) |
Setters for physical values. More... | |
void | setPtPacked (unsigned pt) |
set packed pt-code of muon candidate More... | |
void | setPtValue (float ptVal) |
Set Pt Value. More... | |
void | setQuality (unsigned quality) |
set quality of muon candidate More... | |
unsigned | sysign () const |
get charge/synchronization word (0=POS, 1=NEG, 2=UNDEF, 3=SYNC) More... | |
bool | useInDiMuonTrigger () const |
interpretation of quality code: is the candidate to be used in a di-muon trigger ? More... | |
bool | useInSingleMuonTrigger () const |
interpretation of quality code: is the candidate to be used in a single muon trigger ? More... | |
virtual | ~L1MuGMTCand () |
destructor More... | |
Static Public Attributes | |
static const float | etaScale [63] |
static const float | phiScale [144] |
static const float | ptScale [32] |
Private Attributes | |
int | m_charge |
bool | m_empty |
unsigned int | m_eta |
std::string | m_name |
unsigned int | m_phi |
unsigned int | m_pt |
unsigned int | m_quality |
unsigned int | m_rank |
float | m_smearedPt |
LorentzVector | myMomentum |
Friends | |
std::ostream & | operator<< (std::ostream &, const SimpleL1MuGMTCand &) |
output stream operator More... | |
Additional Inherited Members | |
Protected Types inherited from L1MuGMTCand | |
enum | { PHI_START =0 } |
enum | { PHI_LENGTH = 8 } |
enum | { PT_START =8 } |
enum | { PT_LENGTH = 5 } |
enum | { QUAL_START =13 } |
enum | { QUAL_LENGTH = 3 } |
enum | { ETA_START =16 } |
enum | { ETA_LENGTH = 6 } |
enum | { ISO_START =22 } |
enum | { ISO_LENGTH = 1 } |
enum | { MIP_START =23 } |
enum | { MIP_LENGTH = 1 } |
enum | { SYSIGN_START =24 } |
enum | { SYSIGN_LENGTH = 2 } |
Protected Member Functions inherited from L1MuGMTCand | |
unsigned | readDataField (unsigned start, unsigned count) const |
void | writeDataField (unsigned start, unsigned count, unsigned value) |
Protected Attributes inherited from L1MuGMTCand | |
int | m_bx |
unsigned | m_dataWord |
float | m_etaValue |
std::string | m_name |
float | m_phiValue |
float | m_ptValue |
Static Protected Attributes inherited from L1MuGMTCand | |
static const float | m_invalidValue = -10. |
Description: Simple L1 Global Muon Trigger Candidate Inherits the basics from 'L1MuGMTCand' base class. Contains pointer to RawHepEventParticle from the event manager. Allows easy conversion from a RawHepEventParticle.
Author: Andrea Perrotta 05/09/2006
Definition at line 24 of file SimpleL1MuGMTCand.h.
Definition at line 28 of file SimpleL1MuGMTCand.h.
SimpleL1MuGMTCand::SimpleL1MuGMTCand | ( | ) |
SimpleL1MuGMTCand::SimpleL1MuGMTCand | ( | const SimpleL1MuGMTCand & | mu | ) |
copy constructor
Definition at line 20 of file SimpleL1MuGMTCand.cc.
References getMomentum(), m_charge, m_eta, m_phi, m_pt, m_quality, setCharge(), L1MuGMTCand::setEtaPacked(), setMomentum(), L1MuGMTCand::setPhiPacked(), L1MuGMTCand::setPtPacked(), and L1MuGMTCand::setQuality().
SimpleL1MuGMTCand::SimpleL1MuGMTCand | ( | const SimpleL1MuGMTCand * | mu | ) |
copy constructor from pointer
Definition at line 33 of file SimpleL1MuGMTCand.cc.
References getMomentum(), m_charge, m_eta, m_phi, m_pt, m_quality, setCharge(), L1MuGMTCand::setEtaPacked(), setMomentum(), L1MuGMTCand::setPhiPacked(), L1MuGMTCand::setPtPacked(), and L1MuGMTCand::setQuality().
SimpleL1MuGMTCand::SimpleL1MuGMTCand | ( | const SimTrack * | p | ) |
convert a FSimTrack into a SimpleL1MuGMTCand (L1MuGMTExtendedCand)
Definition at line 46 of file SimpleL1MuGMTCand.cc.
References CoreSimTrack::charge(), m_empty, m_name, m_quality, m_rank, CoreSimTrack::momentum(), myMomentum, L1MuGMTCand::setBx(), setCharge(), setEta(), L1MuGMTExtendedCand::setFwdBit(), setMomentum(), setPhi(), setPt(), L1MuGMTCand::setQuality(), and L1MuGMTExtendedCand::setRPCBit().
SimpleL1MuGMTCand::SimpleL1MuGMTCand | ( | const SimTrack * | p, |
unsigned | etaIndex, | ||
unsigned | phiIndex, | ||
unsigned | pTIndex, | ||
float | etaValue, | ||
float | phiValue, | ||
float | pTValue | ||
) |
The same as above, but without relying on internal tables (safer)
Definition at line 68 of file SimpleL1MuGMTCand.cc.
References CoreSimTrack::charge(), L1MuGMTCand::etaIndex(), m_empty, m_eta, m_name, m_phi, m_pt, m_quality, m_rank, m_smearedPt, CoreSimTrack::momentum(), myMomentum, L1MuGMTCand::phiIndex(), L1MuGMTCand::setBx(), setCharge(), L1MuGMTCand::setEtaPacked(), L1MuGMTCand::setEtaValue(), L1MuGMTExtendedCand::setFwdBit(), setMomentum(), L1MuGMTCand::setPhiPacked(), L1MuGMTCand::setPhiValue(), L1MuGMTCand::setPtPacked(), L1MuGMTCand::setPtValue(), L1MuGMTCand::setQuality(), and L1MuGMTExtendedCand::setRPCBit().
|
override |
|
inline |
get charge
Definition at line 70 of file SimpleL1MuGMTCand.h.
Referenced by print(), and setCharge().
|
inline |
disable muon candidate
Definition at line 82 of file SimpleL1MuGMTCand.h.
References ALCARECOTkAlJpsiMuMu_cff::charge, PVValHelper::eta, and EnergyCorrector::pt.
|
inline |
is it an empty muon candidate?
Definition at line 76 of file SimpleL1MuGMTCand.h.
Referenced by operator<<(), print(), Vispa.Gui.VispaWidget.TextField::setAutosizeFont(), and Vispa.Gui.VispaWidget.TextField::setAutotruncate().
|
inline |
|
inline |
get eta-code
Definition at line 64 of file SimpleL1MuGMTCand.h.
Referenced by Particle.Particle::__str__(), Jet.Jet::jetID(), and Jet.Jet::puJetId().
|
inline |
|
inline |
Definition at line 114 of file SimpleL1MuGMTCand.h.
References edm::operator!=(), operator<<(), operator==(), and edm::print().
Referenced by SimpleL1MuGMTCand().
|
inline |
|
inline |
get name of object
Definition at line 58 of file SimpleL1MuGMTCand.h.
Referenced by config.CFG::__str__(), validation.Sample::digest(), VIDSelectorBase.VIDSelectorBase::initialize(), and Vispa.Views.PropertyView.Property::valueChanged().
bool SimpleL1MuGMTCand::operator!= | ( | const SimpleL1MuGMTCand & | cand | ) | const |
SimpleL1MuGMTCand & SimpleL1MuGMTCand::operator= | ( | const SimpleL1MuGMTCand & | cand | ) |
assignment operator
Definition at line 223 of file SimpleL1MuGMTCand.cc.
References m_charge, m_empty, m_eta, m_phi, m_pt, m_quality, m_rank, and m_smearedPt.
SimpleL1MuGMTCand * SimpleL1MuGMTCand::operator= | ( | const SimTrack * | p | ) |
assignment operator for a FSimTrack
Definition at line 245 of file SimpleL1MuGMTCand.cc.
References CoreSimTrack::charge(), m_empty, CoreSimTrack::momentum(), setCharge(), setEta(), setPhi(), setPt(), and mathSSE::sqrt().
bool SimpleL1MuGMTCand::operator== | ( | const SimpleL1MuGMTCand & | cand | ) | const |
|
inline |
get phi-code
Definition at line 61 of file SimpleL1MuGMTCand.h.
Referenced by Particle.Particle::__str__(), ntupleDataFormat.Track::phiPull(), and setPhi().
|
inline |
Definition at line 110 of file SimpleL1MuGMTCand.h.
void SimpleL1MuGMTCand::print | ( | void | ) | const |
print parameters of muon candidate
Definition at line 293 of file SimpleL1MuGMTCand.cc.
References charge(), gather_cfg::cout, empty(), L1MuGMTCand::etaValue(), alignBH_cfg::fixed, L1MuGMTCand::phiValue(), L1MuGMTCand::ptValue(), and rank().
|
inline |
get pt-code
Definition at line 67 of file SimpleL1MuGMTCand.h.
Referenced by Particle.Particle::__str__(), DiObject.DiMuon::__str__(), Photon.Photon::calScaledIsoValueExp(), Photon.Photon::calScaledIsoValueLin(), Photon.Photon::calScaledIsoValueQuadr(), Electron.Electron::mvaIDLoose(), Electron.Electron::mvaIDRun2(), Electron.Electron::mvaIDTight(), Electron.Electron::ptErr(), ntupleDataFormat.Track::ptPull(), Lepton.Lepton::relIso(), Lepton.Lepton::relIsoFromEA(), Lepton.Lepton::relIsoR(), Jet.Jet::setCorrP4(), and setPt().
|
inline |
|
inline |
get rank
Definition at line 73 of file SimpleL1MuGMTCand.h.
Referenced by SimpleL1MuGMTCand::Rank::operator()(), and print().
void SimpleL1MuGMTCand::reset | ( | void | ) |
reset muon candidate
Definition at line 111 of file SimpleL1MuGMTCand.cc.
References m_charge, m_empty, m_eta, m_phi, m_pt, m_quality, m_rank, and m_smearedPt.
Referenced by ~SimpleL1MuGMTCand().
void SimpleL1MuGMTCand::setCharge | ( | int | charge | ) |
set charge and packed code of muon candidate
Definition at line 200 of file SimpleL1MuGMTCand.cc.
References charge(), m_charge, and L1MuGMTCand::setChargePacked().
Referenced by operator=(), and SimpleL1MuGMTCand().
void SimpleL1MuGMTCand::setEta | ( | float | eta | ) |
set eta-value and packed code of muon candidate
Definition at line 152 of file SimpleL1MuGMTCand.cc.
References diffTreeTool::diff, etaScale, mps_fire::i, m_eta, L1MuGMTCand::setEtaPacked(), and L1MuGMTCand::setEtaValue().
Referenced by operator=(), and SimpleL1MuGMTCand().
|
inline |
Definition at line 113 of file SimpleL1MuGMTCand.h.
References funct::m.
Referenced by SimpleL1MuGMTCand().
void SimpleL1MuGMTCand::setPhi | ( | float | phi | ) |
set phi-value and packed code of muon candidate
Definition at line 128 of file SimpleL1MuGMTCand.cc.
References diffTreeTool::diff, mps_fire::i, m_phi, M_PI, phi(), phiScale, L1MuGMTCand::setPhiPacked(), and L1MuGMTCand::setPhiValue().
Referenced by operator=(), and SimpleL1MuGMTCand().
void SimpleL1MuGMTCand::setPt | ( | float | pt | ) |
set pt-value and packed code of muon candidate
Definition at line 175 of file SimpleL1MuGMTCand.cc.
References diffTreeTool::diff, mps_fire::i, m_pt, m_smearedPt, pt(), ptScale, L1MuGMTCand::setPtPacked(), and L1MuGMTCand::setPtValue().
Referenced by operator=(), and SimpleL1MuGMTCand().
|
inline |
|
inline |
return the smeared L1 Pt value before discretization in 32-bit
Definition at line 100 of file SimpleL1MuGMTCand.h.
|
friend |
output stream operator
Definition at line 314 of file SimpleL1MuGMTCand.cc.
|
static |
Definition at line 145 of file SimpleL1MuGMTCand.h.
Referenced by operator<<(), and setEta().
|
private |
Definition at line 156 of file SimpleL1MuGMTCand.h.
Referenced by operator!=(), operator=(), operator==(), reset(), setCharge(), and SimpleL1MuGMTCand().
|
private |
Definition at line 151 of file SimpleL1MuGMTCand.h.
Referenced by operator!=(), operator=(), operator==(), reset(), and SimpleL1MuGMTCand().
|
private |
Definition at line 154 of file SimpleL1MuGMTCand.h.
Referenced by operator!=(), operator=(), operator==(), reset(), setEta(), and SimpleL1MuGMTCand().
|
private |
Definition at line 150 of file SimpleL1MuGMTCand.h.
Referenced by SimpleL1MuGMTCand().
|
private |
Definition at line 153 of file SimpleL1MuGMTCand.h.
Referenced by operator!=(), operator=(), operator==(), reset(), setPhi(), and SimpleL1MuGMTCand().
|
private |
Definition at line 155 of file SimpleL1MuGMTCand.h.
Referenced by operator!=(), operator=(), operator==(), reset(), setPt(), and SimpleL1MuGMTCand().
|
private |
Definition at line 157 of file SimpleL1MuGMTCand.h.
Referenced by operator!=(), operator=(), operator==(), reset(), and SimpleL1MuGMTCand().
|
private |
Definition at line 158 of file SimpleL1MuGMTCand.h.
Referenced by operator!=(), operator=(), operator==(), reset(), and SimpleL1MuGMTCand().
|
private |
Definition at line 159 of file SimpleL1MuGMTCand.h.
Referenced by operator=(), reset(), setPt(), and SimpleL1MuGMTCand().
|
private |
Definition at line 161 of file SimpleL1MuGMTCand.h.
Referenced by SimpleL1MuGMTCand().
|
static |
Definition at line 146 of file SimpleL1MuGMTCand.h.
Referenced by operator<<(), and setPhi().
|
static |
Definition at line 144 of file SimpleL1MuGMTCand.h.
Referenced by operator<<(), and setPt().