CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes | Friends
L1MuDTTrack Class Reference

#include <L1MuDTTrack.h>

Inheritance diagram for L1MuDTTrack:
L1MuRegionalCand

Public Member Functions

L1MuDTAddressArray address () const
 get address-array for this muon candidate More...
 
int address (int stat) const
 get relative address of a given station More...
 
int charge () const
 get charge (1 bit) More...
 
void disable ()
 disable muon candidate More...
 
bool empty () const override
 is it an empty muon candidate? More...
 
void enable ()
 enable muon candidate More...
 
unsigned int eta () const
 get eta-code (6 bits) More...
 
bool fineEtaBit () const
 get fine eta bit More...
 
const L1MuDTTrackSegEtagetEndTSeta () const
 return end eta track segment of muon candidate More...
 
const L1MuDTTrackSegPhigetEndTSphi () const
 return end phi track segment of muon candidate More...
 
const L1MuDTTrackSegEtagetStartTSeta () const
 return start eta track segment of muon candidate More...
 
const L1MuDTTrackSegPhigetStartTSphi () const
 return start phi track segment of muon candidate More...
 
const std::vector< L1MuDTTrackSegEta > & getTSeta () const
 return all eta track segments of the muon candidate More...
 
const std::vector< L1MuDTTrackSegPhi > & getTSphi () const
 return all phi track segments of the muon candidate More...
 
 L1MuDTTrack ()
 default constructor More...
 
 L1MuDTTrack (const L1MuDTSecProcId &)
 constructor More...
 
 L1MuDTTrack (const L1MuDTTrack &)
 copy constructor More...
 
std::string name () const
 get name of object More...
 
int numberOfTSeta () const
 return number of eta track segments used to form the muon candidate More...
 
int numberOfTSphi () const
 return number of phi track segments used to form the muon candidate More...
 
bool operator!= (const L1MuDTTrack &) const
 unequal operator More...
 
L1MuDTTrackoperator= (const L1MuDTTrack &)
 assignment operator More...
 
bool operator== (const L1MuDTTrack &) const
 equal operator More...
 
unsigned int phi () const
 get phi-code (8 bits) More...
 
void print () const override
 print parameters of muon candidate More...
 
unsigned int pt () const
 get pt-code (5 bits) More...
 
void reset () override
 reset muon candidate More...
 
void setAddresses (const L1MuDTAddressArray &addr)
 set relative addresses of muon candidate More...
 
void setCharge (int charge)
 set charge of muon candidate More...
 
void setEta (int eta)
 set eta-code of muon candidate More...
 
void setFineEtaBit ()
 set fine eta bit More...
 
void setName (std::string name)
 set name of object More...
 
void setPhi (int phi)
 set phi-code of muon candidate More...
 
void setPt (int pt)
 set pt-code of muon candidate More...
 
void setQuality (unsigned int quality)
 set quality of muon candidate More...
 
void setTC (TrackClass tc)
 set track-class of muon candidate More...
 
void setTSeta (const std::vector< const L1MuDTTrackSegEta * > &tsList)
 set eta track segments used to form the muon candidate More...
 
void setTSphi (const std::vector< const L1MuDTTrackSegPhi * > &tsList)
 set phi track segments used to form the muon candidate More...
 
const L1MuDTSecProcIdspid () const
 return Sector Processor in which the muon candidate was found More...
 
TrackClass tc () const
 get track-class More...
 
unsigned int triggerScale (float value, const edm::EventSetup &c) const
 convert pt value in GeV to pt code More...
 
 ~L1MuDTTrack () override
 destructor More...
 
- Public Member Functions inherited from L1MuRegionalCand
int bx () const
 return bunch crossing identifier More...
 
unsigned charge_packed () const
 return charge packed as in hardware (0=pos, 1=neg) More...
 
unsigned charge_valid_packed () const
 return charge valid packed as in hardware (1=valid, 0=not valid) More...
 
bool chargeValid () const
 is the charge valid ? More...
 
int chargeValue () const
 get charge More...
 
unsigned eta_packed () const
 return eta packed as in hardware More...
 
float etaValue () const
 get eta-value of muon candidate More...
 
unsigned finehalo_packed () const
 return eta-fine (for DT) / halo (for CSC) bit More...
 
unsigned getDataWord () const
 return data word More...
 
bool isFineHalo () const
 is it fine (DT) / halo (CSC) ? More...
 
 L1MuRegionalCand (unsigned dataword=0, int bx=0)
 constructor from data word More...
 
 L1MuRegionalCand (unsigned type_idx, unsigned phi, unsigned eta, unsigned pt, unsigned charge, unsigned ch_valid, unsigned finehalo, unsigned quality, int bx)
 constructor from packed members More...
 
unsigned phi_packed () const
 return phi packed as in hardware More...
 
float phiValue () const
 get phi-value of muon candidate in radians (low edge of bin) More...
 
unsigned pt_packed () const
 return pt packed as in hardware More...
 
float ptValue () const
 get pt-value of muon candidate in GeV More...
 
unsigned int quality () const
 return quality More...
 
unsigned int quality_packed () const
 return quality packed as in hardware More...
 
void setBx (int bx)
 Set Bunch Crossing. More...
 
void setChargePacked (unsigned ch)
 Set Charge (0=pos, 1=neg) More...
 
void setChargeValid (bool valid)
 Set Charge Valid. More...
 
void setChargeValidPacked (unsigned valid)
 Set Charge Valid. More...
 
void setChargeValue (int charge)
 Set Charge Value: -1, 1. More...
 
void setDataWord (unsigned dataword)
 Set data word. More...
 
void setEtaPacked (unsigned eta)
 Set Eta: 6-bit code. More...
 
void setEtaValue (float etaVal)
 Set Eta Value (need to set type, first) More...
 
void setFineHalo (bool fh)
 Set Fine / Halo. More...
 
void setFineHaloPacked (unsigned fh)
 Set Fine / Halo. More...
 
void setPhiPacked (unsigned phi)
 Set Phi: 0..143. More...
 
void setPhiValue (float phiVal)
 Set Phi Value. More...
 
void setPtPacked (unsigned pt)
 Set Pt: 0..31. More...
 
void setPtValue (float ptVal)
 Set Pt Value. More...
 
void setQualityPacked (unsigned qual)
 Set Quality: 0..7. More...
 
void setType (unsigned type)
 Set Type: 0 DT, 1 bRPC, 2 CSC, 3 fRPC. More...
 
unsigned type_idx () const
 return type: 0 DT, 1 bRPC, 2 CSC, 3 fRPC More...
 
virtual ~L1MuRegionalCand ()
 destructor More...
 

Static Public Member Functions

static bool rank (const L1MuDTTrack *first, const L1MuDTTrack *second)
 define a rank for muon candidates More...
 

Private Attributes

L1MuDTAddressArray m_addArray
 
bool m_empty
 
std::string m_name
 
L1MuDTSecProcId m_spid
 
TrackClass m_tc
 
std::vector< L1MuDTTrackSegEtam_tsetaList
 
std::vector< L1MuDTTrackSegPhim_tsphiList
 

Friends

std::ostream & operator<< (std::ostream &, const L1MuDTTrack &)
 output stream operator More...
 

Additional Inherited Members

- Public Types inherited from L1MuRegionalCand
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  { FINEHALO_START = 22 }
 
enum  { FINEHALO_LENGTH = 1 }
 
enum  { CHARGE_START = 23 }
 
enum  { CHARGE_LENGTH = 1 }
 
enum  { CHVALID_START = 24 }
 
enum  { CHVALID_LENGTH = 1 }
 
enum  { TYPE_START = 30 }
 
enum  { TYPE_LENGTH = 2 }
 

Detailed Description

L1 Muon Track Candidate

N. Neumeister CERN EP J. Troconiz UAM Madrid

Definition at line 47 of file L1MuDTTrack.h.

Constructor & Destructor Documentation

◆ L1MuDTTrack() [1/3]

L1MuDTTrack::L1MuDTTrack ( )

default constructor

Definition at line 48 of file L1MuDTTrack.cc.

49  : L1MuRegionalCand(0, 0),
51  m_name("L1MuDTTrack"),
52  m_empty(true),
53  m_tc(UNDEF),
54  m_addArray(),
55  m_tsphiList(),
56  m_tsetaList() {
57  m_tsphiList.reserve(4);
58  m_tsetaList.reserve(3);
59 
60  setType(0);
61  setChargeValid(true);
62 }

References m_tsetaList, m_tsphiList, L1MuRegionalCand::setChargeValid(), and L1MuRegionalCand::setType().

◆ L1MuDTTrack() [2/3]

L1MuDTTrack::L1MuDTTrack ( const L1MuDTSecProcId spid)

constructor

Definition at line 64 of file L1MuDTTrack.cc.

65  : L1MuRegionalCand(0, 0),
66  m_spid(spid),
67  m_name("L1MuDTTrack"),
68  m_empty(true),
69  m_tc(UNDEF),
70  m_addArray(),
71  m_tsphiList(),
72  m_tsetaList() {
73  m_tsphiList.reserve(4);
74  m_tsetaList.reserve(3);
75 
76  setType(0);
77  setChargeValid(true);
78 }

References m_tsetaList, m_tsphiList, L1MuRegionalCand::setChargeValid(), and L1MuRegionalCand::setType().

◆ L1MuDTTrack() [3/3]

L1MuDTTrack::L1MuDTTrack ( const L1MuDTTrack id)

copy constructor

Definition at line 80 of file L1MuDTTrack.cc.

81  : L1MuRegionalCand(id),
82  m_spid(id.m_spid),
83  m_name(id.m_name),
84  m_empty(id.m_empty),
85  m_tc(id.m_tc),

◆ ~L1MuDTTrack()

L1MuDTTrack::~L1MuDTTrack ( )
override

destructor

Definition at line 93 of file L1MuDTTrack.cc.

93 {}

Member Function Documentation

◆ address() [1/2]

L1MuDTAddressArray L1MuDTTrack::address ( ) const
inline

get address-array for this muon candidate

Definition at line 92 of file L1MuDTTrack.h.

92 { return m_addArray; }

References m_addArray.

◆ address() [2/2]

int L1MuDTTrack::address ( int  stat) const
inline

get relative address of a given station

Definition at line 95 of file L1MuDTTrack.h.

95 { return m_addArray.station(stat); }

References m_addArray, hgcalPlots::stat, and L1MuDTAddressArray::station().

◆ charge()

int L1MuDTTrack::charge ( void  ) const
inline

get charge (1 bit)

Definition at line 80 of file L1MuDTTrack.h.

80 { return chargeValue(); }

References L1MuRegionalCand::chargeValue().

Referenced by operator!=(), operator==(), and setCharge().

◆ disable()

void L1MuDTTrack::disable ( )
inline

disable muon candidate

Definition at line 128 of file L1MuDTTrack.h.

128 { m_empty = true; }

References m_empty.

◆ empty()

bool L1MuDTTrack::empty ( void  ) const
inlineoverridevirtual

is it an empty muon candidate?

Reimplemented from L1MuRegionalCand.

Definition at line 86 of file L1MuDTTrack.h.

86 { return m_empty; }

References m_empty.

Referenced by print().

◆ enable()

void L1MuDTTrack::enable ( )
inline

enable muon candidate

Definition at line 122 of file L1MuDTTrack.h.

122  {
123  m_empty = false;
124  setType(0);
125  }

References m_empty, and L1MuRegionalCand::setType().

Referenced by L1MuDTAssignmentUnit::run().

◆ eta()

unsigned int L1MuDTTrack::eta ( void  ) const
inline

get eta-code (6 bits)

Definition at line 74 of file L1MuDTTrack.h.

74 { return eta_packed(); }

References L1MuRegionalCand::eta_packed().

Referenced by Particle.Particle::__str__(), Jet.Jet::jetID(), operator!=(), operator==(), Jet.Jet::puJetId(), and setEta().

◆ fineEtaBit()

bool L1MuDTTrack::fineEtaBit ( ) const
inline

get fine eta bit

Definition at line 77 of file L1MuDTTrack.h.

77 { return isFineHalo(); }

References L1MuRegionalCand::isFineHalo().

Referenced by operator!=(), and operator==().

◆ getEndTSeta()

const L1MuDTTrackSegEta & L1MuDTTrack::getEndTSeta ( ) const

return end eta track segment of muon candidate

Definition at line 140 of file L1MuDTTrack.cc.

140 { return m_tsetaList.back(); }

References m_tsetaList.

◆ getEndTSphi()

const L1MuDTTrackSegPhi & L1MuDTTrack::getEndTSphi ( ) const

return end phi track segment of muon candidate

Definition at line 130 of file L1MuDTTrack.cc.

130 { return m_tsphiList.back(); }

References m_tsphiList.

◆ getStartTSeta()

const L1MuDTTrackSegEta & L1MuDTTrack::getStartTSeta ( ) const

return start eta track segment of muon candidate

Definition at line 135 of file L1MuDTTrack.cc.

135 { return m_tsetaList.front(); }

References m_tsetaList.

◆ getStartTSphi()

const L1MuDTTrackSegPhi & L1MuDTTrack::getStartTSphi ( ) const

return start phi track segment of muon candidate

Definition at line 125 of file L1MuDTTrack.cc.

125 { return m_tsphiList.front(); }

References m_tsphiList.

◆ getTSeta()

const std::vector<L1MuDTTrackSegEta>& L1MuDTTrack::getTSeta ( ) const
inline

return all eta track segments of the muon candidate

Definition at line 113 of file L1MuDTTrack.h.

113 { return m_tsetaList; }

References m_tsetaList.

◆ getTSphi()

const std::vector<L1MuDTTrackSegPhi>& L1MuDTTrack::getTSphi ( ) const
inline

return all phi track segments of the muon candidate

Definition at line 104 of file L1MuDTTrack.h.

104 { return m_tsphiList; }

References m_tsphiList.

◆ name()

std::string L1MuDTTrack::name ( void  ) const
inline

get name of object

Definition at line 65 of file L1MuDTTrack.h.

65 { return m_name; }

References m_name.

Referenced by config.CFG::__str__(), validation.Sample::digest(), VIDSelectorBase.VIDSelectorBase::initialize(), and setName().

◆ numberOfTSeta()

int L1MuDTTrack::numberOfTSeta ( ) const
inline

return number of eta track segments used to form the muon candidate

Definition at line 101 of file L1MuDTTrack.h.

101 { return m_tsetaList.size(); }

References m_tsetaList.

◆ numberOfTSphi()

int L1MuDTTrack::numberOfTSphi ( ) const
inline

return number of phi track segments used to form the muon candidate

Definition at line 98 of file L1MuDTTrack.h.

98 { return m_tsphiList.size(); }

References m_tsphiList.

◆ operator!=()

bool L1MuDTTrack::operator!= ( const L1MuDTTrack track) const

unequal operator

Definition at line 231 of file L1MuDTTrack.cc.

231  {
232  if (m_spid != track.m_spid)
233  return true;
234  if (m_empty != track.m_empty)
235  return true;
236  if (m_tc != track.m_tc)
237  return true;
238  if (bx() != track.bx())
239  return true;
240  if (phi() != track.phi())
241  return true;
242  if (eta() != track.eta())
243  return true;
244  if (fineEtaBit() != track.fineEtaBit())
245  return true;
246  if (pt() != track.pt())
247  return true;
248  if (charge() != track.charge())
249  return true;
250  if (quality() != track.quality())
251  return true;
252  if (m_addArray != track.m_addArray)
253  return true;
254  return false;
255 }

References L1MuRegionalCand::bx(), charge(), eta(), fineEtaBit(), m_addArray, m_empty, m_spid, m_tc, phi(), pt(), L1MuRegionalCand::quality(), and HLT_FULL_cff::track.

◆ operator=()

L1MuDTTrack & L1MuDTTrack::operator= ( const L1MuDTTrack track)

assignment operator

Definition at line 184 of file L1MuDTTrack.cc.

184  {
185  if (this != &track) {
186  this->setBx(track.bx());
187  this->setDataWord(track.getDataWord());
188  m_spid = track.m_spid;
189  m_empty = track.m_empty;
190  m_name = track.m_name;
191  m_tc = track.m_tc;
192  m_addArray = track.m_addArray;
193  m_tsphiList = track.m_tsphiList;
194  m_tsetaList = track.m_tsetaList;
195  }
196  return *this;
197 }

References L1MuRegionalCand::bx(), L1MuRegionalCand::getDataWord(), m_addArray, m_empty, m_name, m_spid, m_tc, m_tsetaList, m_tsphiList, L1MuRegionalCand::setBx(), L1MuRegionalCand::setDataWord(), and HLT_FULL_cff::track.

◆ operator==()

bool L1MuDTTrack::operator== ( const L1MuDTTrack track) const

equal operator

Definition at line 202 of file L1MuDTTrack.cc.

202  {
203  if (m_spid != track.m_spid)
204  return false;
205  if (m_empty != track.m_empty)
206  return false;
207  if (m_tc != track.m_tc)
208  return false;
209  if (bx() != track.bx())
210  return false;
211  if (phi() != track.phi())
212  return false;
213  if (eta() != track.eta())
214  return false;
215  if (fineEtaBit() != track.fineEtaBit())
216  return false;
217  if (pt() != track.pt())
218  return false;
219  if (charge() != track.charge())
220  return false;
221  if (quality() != track.quality())
222  return false;
223  if (m_addArray != track.m_addArray)
224  return false;
225  return true;
226 }

References L1MuRegionalCand::bx(), charge(), eta(), fineEtaBit(), m_addArray, m_empty, m_spid, m_tc, phi(), pt(), L1MuRegionalCand::quality(), and HLT_FULL_cff::track.

◆ phi()

unsigned int L1MuDTTrack::phi ( void  ) const
inline

get phi-code (8 bits)

Definition at line 71 of file L1MuDTTrack.h.

71 { return phi_packed(); }

References L1MuRegionalCand::phi_packed().

Referenced by Particle.Particle::__str__(), operator!=(), operator==(), ntupleDataFormat.Track::phiPull(), and setPhi().

◆ print()

void L1MuDTTrack::print ( void  ) const
overridevirtual

print parameters of muon candidate

Reimplemented from L1MuRegionalCand.

Definition at line 260 of file L1MuDTTrack.cc.

260  {
261  if (!empty()) {
262  cout.setf(ios::showpoint);
263  cout.setf(ios::right, ios::adjustfield);
264  cout << setiosflags(ios::showpoint | ios::fixed);
265  cout << "MUON : "
266  << "pt = " << setw(2) << pt_packed() << " "
267  << "charge = " << setw(2) << charge_packed() << " "
268  << "eta = " << setw(2) << eta_packed() << " (" << setw(1) << finehalo_packed() << ") "
269  << "phi = " << setw(3) << phi_packed() << " "
270  << "quality = " << setw(1) << quality_packed() << '\t' << "class = " << tc() << " "
271  << "bx = " << setw(2) << bx() << endl;
272  cout << " found in " << m_spid << " with phi track segments :" << endl;
273  vector<L1MuDTTrackSegPhi>::const_iterator iter;
274  for (iter = m_tsphiList.begin(); iter != m_tsphiList.end(); iter++) {
275  cout << " " << (*iter) << endl;
276  }
277  }
278 }

References L1MuRegionalCand::bx(), L1MuRegionalCand::charge_packed(), gather_cfg::cout, empty(), L1MuRegionalCand::eta_packed(), L1MuRegionalCand::finehalo_packed(), alignBH_cfg::fixed, m_spid, m_tsphiList, L1MuRegionalCand::phi_packed(), L1MuRegionalCand::pt_packed(), L1MuRegionalCand::quality_packed(), and tc().

◆ pt()

unsigned int L1MuDTTrack::pt ( ) const
inline

◆ rank()

static bool L1MuDTTrack::rank ( const L1MuDTTrack first,
const L1MuDTTrack second 
)
inlinestatic

define a rank for muon candidates

Definition at line 185 of file L1MuDTTrack.h.

185  {
186  unsigned short int rank_f = 0; // rank of first
187  unsigned short int rank_s = 0; // rank of second
188  if (first)
189  rank_f = 10 * first->pt() + first->quality();
190  if (second)
191  rank_s = 10 * second->pt() + second->quality();
192  return rank_f > rank_s;
193  }

References dqmdumpme::first, and edm::second().

Referenced by L1MuDTMuonSorter::run(), and L1MuDTWedgeSorter::run().

◆ reset()

void L1MuDTTrack::reset ( void  )
overridevirtual

reset muon candidate

Reimplemented from L1MuRegionalCand.

Definition at line 102 of file L1MuDTTrack.cc.

102  {
104  m_empty = true;
105  m_tc = UNDEF;
106  m_addArray.reset();
107  m_tsphiList.clear();
108  m_tsetaList.clear();
109 }

References m_addArray, m_empty, m_tc, m_tsetaList, m_tsphiList, L1MuDTAddressArray::reset(), L1MuRegionalCand::reset(), and UNDEF.

◆ setAddresses()

void L1MuDTTrack::setAddresses ( const L1MuDTAddressArray addr)
inline

set relative addresses of muon candidate

Definition at line 158 of file L1MuDTTrack.h.

158 { m_addArray = addr; }

References generateTowerEtThresholdLUT::addr, and m_addArray.

Referenced by L1MuDTAssignmentUnit::run().

◆ setCharge()

void L1MuDTTrack::setCharge ( int  charge)
inline

set charge of muon candidate

Definition at line 149 of file L1MuDTTrack.h.

149  {
151  setChargeValid(true);
152  }

References charge(), L1MuRegionalCand::setChargeValid(), and L1MuRegionalCand::setChargeValue().

Referenced by L1MuDTAssignmentUnit::PtAU().

◆ setEta()

void L1MuDTTrack::setEta ( int  eta)

set eta-code of muon candidate

Definition at line 114 of file L1MuDTTrack.cc.

114  {
115  // eta is a signed integer [-32,31],
116  // representing 64 bins in an interval [-1.2,+1.2]
117  // first convert eta into an unsigned integer
120 }

References eta(), L1MuSignedPacking< Bits >::packedFromIdx(), and L1MuRegionalCand::setEtaPacked().

Referenced by L1MuDTEtaProcessor::assign().

◆ setFineEtaBit()

void L1MuDTTrack::setFineEtaBit ( )
inline

set fine eta bit

Definition at line 143 of file L1MuDTTrack.h.

143 { setFineHalo(true); }

References L1MuRegionalCand::setFineHalo().

Referenced by L1MuDTEtaProcessor::assign().

◆ setName()

void L1MuDTTrack::setName ( std::string  name)
inline

set name of object

Definition at line 131 of file L1MuDTTrack.h.

131 { m_name = name; }

References m_name, and name().

◆ setPhi()

void L1MuDTTrack::setPhi ( int  phi)
inline

set phi-code of muon candidate

Definition at line 137 of file L1MuDTTrack.h.

137 { setPhiPacked(phi); }

References phi(), and L1MuRegionalCand::setPhiPacked().

Referenced by L1MuDTAssignmentUnit::PhiAU().

◆ setPt()

void L1MuDTTrack::setPt ( int  pt)
inline

set pt-code of muon candidate

Definition at line 146 of file L1MuDTTrack.h.

146 { setPtPacked(pt); }

References pt(), and L1MuRegionalCand::setPtPacked().

Referenced by L1MuDTAssignmentUnit::PtAU().

◆ setQuality()

void L1MuDTTrack::setQuality ( unsigned int  quality)
inline

set quality of muon candidate

Definition at line 155 of file L1MuDTTrack.h.

References L1MuRegionalCand::quality(), and L1MuRegionalCand::setQualityPacked().

Referenced by L1MuDTAssignmentUnit::QuaAU().

◆ setTC()

void L1MuDTTrack::setTC ( TrackClass  tc)
inline

set track-class of muon candidate

Definition at line 134 of file L1MuDTTrack.h.

134 { m_tc = tc; }

References m_tc, and tc().

Referenced by L1MuDTAssignmentUnit::run().

◆ setTSeta()

void L1MuDTTrack::setTSeta ( const std::vector< const L1MuDTTrackSegEta * > &  tsList)

set eta track segments used to form the muon candidate

Definition at line 158 of file L1MuDTTrack.cc.

158  {
159  if (!tsList.empty()) {
160  vector<const L1MuDTTrackSegEta*>::const_iterator iter;
161  for (iter = tsList.begin(); iter != tsList.end(); iter++) {
162  if (*iter)
163  m_tsetaList.push_back(**iter);
164  }
165  }
166 }

References m_tsetaList.

Referenced by L1MuDTEtaProcessor::assign().

◆ setTSphi()

void L1MuDTTrack::setTSphi ( const std::vector< const L1MuDTTrackSegPhi * > &  tsList)

set phi track segments used to form the muon candidate

Definition at line 145 of file L1MuDTTrack.cc.

145  {
146  if (!tsList.empty()) {
147  vector<const L1MuDTTrackSegPhi*>::const_iterator iter;
148  for (iter = tsList.begin(); iter != tsList.end(); iter++) {
149  if (*iter)
150  m_tsphiList.push_back(**iter);
151  }
152  }
153 }

References m_tsphiList.

Referenced by L1MuDTAssignmentUnit::run().

◆ spid()

const L1MuDTSecProcId& L1MuDTTrack::spid ( ) const
inline

return Sector Processor in which the muon candidate was found

Definition at line 89 of file L1MuDTTrack.h.

89 { return m_spid; }

References m_spid.

◆ tc()

TrackClass L1MuDTTrack::tc ( ) const
inline

get track-class

Definition at line 83 of file L1MuDTTrack.h.

83 { return m_tc; }

References m_tc.

Referenced by print(), and setTC().

◆ triggerScale()

unsigned int L1MuDTTrack::triggerScale ( float  value,
const edm::EventSetup c 
) const

convert pt value in GeV to pt code

Definition at line 171 of file L1MuDTTrack.cc.

171  {
172  const float eps = 1.e-5; // add an epsilon so that setting works with low edge value
173 
174  edm::ESHandle<L1MuTriggerPtScale> theTriggerScales;
175  c.get<L1MuTriggerPtScaleRcd>().get(theTriggerScales);
176  unsigned int t_Scale = theTriggerScales->getPtScale()->getPacked(value + eps);
177 
178  return t_Scale;
179 }

References HltBtagPostValidation_cff::c, get, L1MuScale::getPacked(), and L1MuTriggerPtScale::getPtScale().

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  ,
const L1MuDTTrack  
)
friend

output stream operator

Member Data Documentation

◆ m_addArray

L1MuDTAddressArray L1MuDTTrack::m_addArray
private

Definition at line 201 of file L1MuDTTrack.h.

Referenced by address(), operator!=(), operator=(), operator==(), reset(), and setAddresses().

◆ m_empty

bool L1MuDTTrack::m_empty
private

Definition at line 198 of file L1MuDTTrack.h.

Referenced by disable(), empty(), enable(), operator!=(), operator=(), operator==(), and reset().

◆ m_name

std::string L1MuDTTrack::m_name
private

Definition at line 197 of file L1MuDTTrack.h.

Referenced by name(), operator=(), and setName().

◆ m_spid

L1MuDTSecProcId L1MuDTTrack::m_spid
private

Definition at line 196 of file L1MuDTTrack.h.

Referenced by operator!=(), operator=(), operator==(), print(), and spid().

◆ m_tc

TrackClass L1MuDTTrack::m_tc
private

Definition at line 199 of file L1MuDTTrack.h.

Referenced by operator!=(), operator=(), operator==(), reset(), setTC(), and tc().

◆ m_tsetaList

std::vector<L1MuDTTrackSegEta> L1MuDTTrack::m_tsetaList
private

◆ m_tsphiList

std::vector<L1MuDTTrackSegPhi> L1MuDTTrack::m_tsphiList
private
L1MuRegionalCand::bx
int bx() const
return bunch crossing identifier
Definition: L1MuRegionalCand.h:79
L1MuRegionalCand::setPhiPacked
void setPhiPacked(unsigned phi)
Set Phi: 0..143.
Definition: L1MuRegionalCand.h:120
alignBH_cfg.fixed
fixed
Definition: alignBH_cfg.py:54
L1MuDTTrack::m_empty
bool m_empty
Definition: L1MuDTTrack.h:198
L1MuRegionalCand::setEtaPacked
void setEtaPacked(unsigned eta)
Set Eta: 6-bit code.
Definition: L1MuRegionalCand.h:135
L1MuDTTrack::m_spid
L1MuDTSecProcId m_spid
Definition: L1MuDTTrack.h:196
HLT_FULL_cff.track
track
Definition: HLT_FULL_cff.py:11713
L1MuRegionalCand::phi_packed
unsigned phi_packed() const
return phi packed as in hardware
Definition: L1MuRegionalCand.h:86
L1MuRegionalCand::setFineHalo
void setFineHalo(bool fh)
Set Fine / Halo.
Definition: L1MuRegionalCand.h:160
L1MuDTTrack::name
std::string name() const
get name of object
Definition: L1MuDTTrack.h:65
L1MuDTAddressArray::station
unsigned short station(int stat) const
get address of a given station [1-4]
Definition: L1MuDTAddressArray.h:80
gather_cfg.cout
cout
Definition: gather_cfg.py:144
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:222
L1MuDTTrack::eta
unsigned int eta() const
get eta-code (6 bits)
Definition: L1MuDTTrack.h:74
L1MuRegionalCand::L1MuRegionalCand
L1MuRegionalCand(unsigned dataword=0, int bx=0)
constructor from data word
Definition: L1MuRegionalCand.cc:42
dqmdumpme.first
first
Definition: dqmdumpme.py:55
L1MuDTTrack::fineEtaBit
bool fineEtaBit() const
get fine eta bit
Definition: L1MuDTTrack.h:77
L1MuRegionalCand::setType
void setType(unsigned type)
Set Type: 0 DT, 1 bRPC, 2 CSC, 3 fRPC.
Definition: L1MuRegionalCand.h:114
L1MuDTTrack::m_name
std::string m_name
Definition: L1MuDTTrack.h:197
L1MuRegionalCand::getDataWord
unsigned getDataWord() const
return data word
Definition: L1MuRegionalCand.h:107
L1MuRegionalCand::quality_packed
unsigned int quality_packed() const
return quality packed as in hardware
Definition: L1MuRegionalCand.h:92
L1MuRegionalCand::setBx
void setBx(int bx)
Set Bunch Crossing.
Definition: L1MuRegionalCand.h:117
generateTowerEtThresholdLUT.addr
addr
Definition: generateTowerEtThresholdLUT.py:57
hgcalPlots.stat
stat
Definition: hgcalPlots.py:1119
L1MuDTAddressArray::reset
void reset()
reset address array
Definition: L1MuDTAddressArray.cc:100
edm::ESHandle
Definition: DTSurvey.h:22
L1MuRegionalCand::setChargeValue
void setChargeValue(int charge)
Set Charge Value: -1, 1.
Definition: L1MuRegionalCand.h:154
L1MuDTTrack::m_tsphiList
std::vector< L1MuDTTrackSegPhi > m_tsphiList
Definition: L1MuDTTrack.h:202
L1MuDTTrack::phi
unsigned int phi() const
get phi-code (8 bits)
Definition: L1MuDTTrack.h:71
L1MuDTSecProcId
Definition: L1MuDTSecProcId.h:40
L1MuTriggerPtScale::getPtScale
const L1MuScale * getPtScale() const
get the Pt scale
Definition: L1MuTriggerPtScale.h:59
L1MuRegionalCand::setDataWord
void setDataWord(unsigned dataword)
Set data word.
Definition: L1MuRegionalCand.h:166
L1MuRegionalCand::chargeValue
int chargeValue() const
get charge
Definition: L1MuRegionalCand.h:64
L1MuRegionalCand::setPtPacked
void setPtPacked(unsigned pt)
Set Pt: 0..31.
Definition: L1MuRegionalCand.h:123
L1MuDTTrack::empty
bool empty() const override
is it an empty muon candidate?
Definition: L1MuDTTrack.h:86
value
Definition: value.py:1
L1MuTriggerPtScaleRcd
Definition: L1MuTriggerPtScaleRcd.h:12
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
get
#define get
L1MuDTTrack::tc
TrackClass tc() const
get track-class
Definition: L1MuDTTrack.h:83
L1MuDTTrack::charge
int charge() const
get charge (1 bit)
Definition: L1MuDTTrack.h:80
L1MuRegionalCand::eta_packed
unsigned eta_packed() const
return eta packed as in hardware
Definition: L1MuRegionalCand.h:95
L1MuRegionalCand::isFineHalo
bool isFineHalo() const
is it fine (DT) / halo (CSC) ?
Definition: L1MuRegionalCand.h:70
L1MuRegionalCand::finehalo_packed
unsigned finehalo_packed() const
return eta-fine (for DT) / halo (for CSC) bit
Definition: L1MuRegionalCand.h:98
L1MuRegionalCand::pt_packed
unsigned pt_packed() const
return pt packed as in hardware
Definition: L1MuRegionalCand.h:89
UNDEF
Definition: L1MuBMTrackAssParam.h:21
L1MuSignedPacking
Definition: L1MuPacking.h:94
L1MuScale::getPacked
virtual unsigned getPacked(float value) const =0
pack a value
L1MuDTTrack::m_tsetaList
std::vector< L1MuDTTrackSegEta > m_tsetaList
Definition: L1MuDTTrack.h:203
L1MuDTTrack::m_addArray
L1MuDTAddressArray m_addArray
Definition: L1MuDTTrack.h:201
L1MuRegionalCand::setChargeValid
void setChargeValid(bool valid)
Set Charge Valid.
Definition: L1MuRegionalCand.h:157
L1MuDTTrack::m_tc
TrackClass m_tc
Definition: L1MuDTTrack.h:199
L1MuSignedPacking::packedFromIdx
unsigned packedFromIdx(int idx) const override
get the packed notation of a value, check range
Definition: L1MuPacking.h:104
L1MuDTTrack::pt
unsigned int pt() const
get pt-code (5 bits)
Definition: L1MuDTTrack.h:68
L1MuRegionalCand::setQualityPacked
void setQualityPacked(unsigned qual)
Set Quality: 0..7.
Definition: L1MuRegionalCand.h:126
L1MuRegionalCand::quality
unsigned int quality() const
return quality
Definition: L1MuRegionalCand.h:73
L1MuRegionalCand::reset
virtual void reset()
reset
Definition: L1MuRegionalCand.cc:72
L1MuRegionalCand::charge_packed
unsigned charge_packed() const
return charge packed as in hardware (0=pos, 1=neg)
Definition: L1MuRegionalCand.h:101
L1MuDTTrack::spid
const L1MuDTSecProcId & spid() const
return Sector Processor in which the muon candidate was found
Definition: L1MuDTTrack.h:89