test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes
L1TMuon::TriggerPrimitive Class Reference

#include <MuonTriggerPrimitive.h>

Classes

struct  CSCData
 
struct  DTData
 
struct  RPCData
 

Public Types

enum  subsystem_type { kDT, kCSC, kRPC, kNSubsystems }
 

Public Member Functions

template<typename IDType >
IDType detId () const
 
const int getBX () const
 
const double getCMSGlobalEta () const
 
const double getCMSGlobalPhi () const
 
const GlobalPoint getCMSGlobalPoint () const
 
const double getCMSGlobalRho () const
 
const CSCData getCSCData () const
 
const DTData getDTData () const
 
const unsigned getGlobalSector () const
 
const int getPattern () const
 
const RPCData getRPCData () const
 
const int getStrip () const
 
const unsigned getSubSector () const
 
double getThetaBend () const
 
const int getWire () const
 
const int Id () const
 
TriggerPrimitiveoperator= (const TriggerPrimitive &tp)
 
bool operator== (const TriggerPrimitive &tp) const
 
void print (std::ostream &) const
 
const DetId rawId () const
 
void setCMSGlobalEta (const double eta)
 
void setCMSGlobalPhi (const double phi)
 
void setCMSGlobalRho (const double rho)
 
void setThetaBend (const double theta)
 
const subsystem_type subsystem () const
 
 TriggerPrimitive ()
 
 TriggerPrimitive (const DTChamberId &, const L1MuDTChambPhDigi &, const int segment_number)
 
 TriggerPrimitive (const DTChamberId &, const L1MuDTChambThDigi &, const int segment_number)
 
 TriggerPrimitive (const DTChamberId &, const L1MuDTChambPhDigi &, const L1MuDTChambThDigi &, const int theta_bti_group)
 
 TriggerPrimitive (const CSCDetId &, const CSCCorrelatedLCTDigi &)
 
 TriggerPrimitive (const RPCDetId &detid, const unsigned strip, const unsigned layer, const uint16_t bx)
 
 TriggerPrimitive (const TriggerPrimitive &)
 

Private Member Functions

void calculateCSCGlobalSector (const CSCDetId &chid, unsigned &global_sector, unsigned &subsector)
 
void calculateDTGlobalSector (const DTChamberId &chid, unsigned &global_sector, unsigned &subsector)
 
void calculateRPCGlobalSector (const RPCDetId &chid, unsigned &global_sector, unsigned &subsector)
 

Private Attributes

CSCData _csc
 
DTData _dt
 
double _eta
 
unsigned _globalsector
 
DetId _id
 
double _phi
 
double _rho
 
RPCData _rpc
 
unsigned _subsector
 
subsystem_type _subsystem
 
double _theta
 

Detailed Description

Definition at line 46 of file MuonTriggerPrimitive.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

L1TMuon::TriggerPrimitive::TriggerPrimitive ( )
inline
TriggerPrimitive::TriggerPrimitive ( const DTChamberId detid,
const L1MuDTChambPhDigi digi_phi,
const int  segment_number 
)

Definition at line 21 of file MuonTriggerPrimitive.cc.

References _dt, _globalsector, _subsector, L1TMuon::TriggerPrimitive::DTData::bendingAngle, L1TMuon::TriggerPrimitive::DTData::bx, L1MuDTChambPhDigi::BxCnt(), L1TMuon::TriggerPrimitive::DTData::BxCntCode, L1MuDTChambPhDigi::bxNum(), calculateDTGlobalSector(), L1MuDTChambPhDigi::code(), L1MuDTChambPhDigi::phi(), L1MuDTChambPhDigi::phiB(), L1TMuon::TriggerPrimitive::DTData::qualityCode, L1TMuon::TriggerPrimitive::DTData::radialAngle, L1MuDTChambPhDigi::scNum(), L1TMuon::TriggerPrimitive::DTData::sector, L1TMuon::TriggerPrimitive::DTData::segment_number, L1TMuon::TriggerPrimitive::DTData::station, L1MuDTChambPhDigi::stNum(), L1TMuon::TriggerPrimitive::DTData::theta_bti_group, L1TMuon::TriggerPrimitive::DTData::theta_code, L1TMuon::TriggerPrimitive::DTData::theta_quality, L1MuDTChambPhDigi::Ts2Tag(), L1TMuon::TriggerPrimitive::DTData::Ts2TagCode, L1TMuon::TriggerPrimitive::DTData::wheel, and L1MuDTChambPhDigi::whNum().

23  :
24  _id(detid),
27  // fill in information from theta trigger
28  _dt.theta_bti_group = -1;
29  _dt.segment_number = segment_number;
30  _dt.theta_code = -1;
31  _dt.theta_quality = -1;
32  // now phi trigger
33  _dt.bx = digi_phi.bxNum();
34  _dt.wheel = digi_phi.whNum();
35  _dt.sector = digi_phi.scNum();
36  _dt.station = digi_phi.stNum();
37  _dt.radialAngle = digi_phi.phi();
38  _dt.bendingAngle = digi_phi.phiB();
39  _dt.qualityCode = digi_phi.code();
40  _dt.Ts2TagCode = digi_phi.Ts2Tag();
41  _dt.BxCntCode = digi_phi.BxCnt();
42 }
void calculateDTGlobalSector(const DTChamberId &chid, unsigned &global_sector, unsigned &subsector)
TriggerPrimitive::TriggerPrimitive ( const DTChamberId detid,
const L1MuDTChambThDigi digi_th,
const int  segment_number 
)

Definition at line 44 of file MuonTriggerPrimitive.cc.

References _dt, _globalsector, _subsector, L1TMuon::TriggerPrimitive::DTData::bendingAngle, L1TMuon::TriggerPrimitive::DTData::bx, L1TMuon::TriggerPrimitive::DTData::BxCntCode, L1MuDTChambThDigi::bxNum(), calculateDTGlobalSector(), L1MuDTChambThDigi::code(), L1MuDTChambThDigi::position(), L1MuDTChambThDigi::quality(), L1TMuon::TriggerPrimitive::DTData::qualityCode, L1TMuon::TriggerPrimitive::DTData::radialAngle, L1MuDTChambThDigi::scNum(), L1TMuon::TriggerPrimitive::DTData::sector, L1TMuon::TriggerPrimitive::DTData::segment_number, L1TMuon::TriggerPrimitive::DTData::station, L1MuDTChambThDigi::stNum(), L1TMuon::TriggerPrimitive::DTData::theta_bti_group, L1TMuon::TriggerPrimitive::DTData::theta_code, L1TMuon::TriggerPrimitive::DTData::theta_quality, L1TMuon::TriggerPrimitive::DTData::Ts2TagCode, L1TMuon::TriggerPrimitive::DTData::wheel, and L1MuDTChambThDigi::whNum().

46  :
47  _id(detid),
50  // fill in information from theta trigger
51  _dt.theta_bti_group = theta_bti_group;
52  _dt.segment_number = digi_th.position(theta_bti_group);
53  _dt.theta_code = digi_th.code(theta_bti_group);
54  _dt.theta_quality = digi_th.quality(theta_bti_group);
55  // now phi trigger
56  _dt.bx = digi_th.bxNum();
57  _dt.wheel = digi_th.whNum();
58  _dt.sector = digi_th.scNum();
59  _dt.station = digi_th.stNum();
60  _dt.radialAngle = -1;
61  _dt.bendingAngle = -1;
62  _dt.qualityCode = -1;
63  _dt.Ts2TagCode = -1;
64  _dt.BxCntCode = -1;
65 }
void calculateDTGlobalSector(const DTChamberId &chid, unsigned &global_sector, unsigned &subsector)
int quality(const int i) const
int position(const int i) const
int code(const int i) const
TriggerPrimitive::TriggerPrimitive ( const DTChamberId detid,
const L1MuDTChambPhDigi digi_phi,
const L1MuDTChambThDigi digi_th,
const int  theta_bti_group 
)

Definition at line 67 of file MuonTriggerPrimitive.cc.

References _dt, _globalsector, _subsector, L1TMuon::TriggerPrimitive::DTData::bendingAngle, L1TMuon::TriggerPrimitive::DTData::bx, L1MuDTChambPhDigi::BxCnt(), L1TMuon::TriggerPrimitive::DTData::BxCntCode, L1MuDTChambPhDigi::bxNum(), calculateDTGlobalSector(), L1MuDTChambPhDigi::code(), L1MuDTChambThDigi::code(), L1MuDTChambPhDigi::phi(), L1MuDTChambPhDigi::phiB(), L1MuDTChambThDigi::position(), L1MuDTChambThDigi::quality(), L1TMuon::TriggerPrimitive::DTData::qualityCode, L1TMuon::TriggerPrimitive::DTData::radialAngle, L1MuDTChambPhDigi::scNum(), L1TMuon::TriggerPrimitive::DTData::sector, L1TMuon::TriggerPrimitive::DTData::segment_number, L1TMuon::TriggerPrimitive::DTData::station, L1MuDTChambPhDigi::stNum(), L1TMuon::TriggerPrimitive::DTData::theta_bti_group, L1TMuon::TriggerPrimitive::DTData::theta_code, L1TMuon::TriggerPrimitive::DTData::theta_quality, L1MuDTChambPhDigi::Ts2Tag(), L1TMuon::TriggerPrimitive::DTData::Ts2TagCode, L1TMuon::TriggerPrimitive::DTData::wheel, and L1MuDTChambPhDigi::whNum().

70  :
71  _id(detid),
74  // fill in information from theta trigger
75  _dt.theta_bti_group = theta_bti_group;
76  _dt.segment_number = digi_th.position(theta_bti_group);
77  _dt.theta_code = digi_th.code(theta_bti_group);
78  _dt.theta_quality = digi_th.quality(theta_bti_group);
79  // now phi trigger
80  _dt.bx = digi_phi.bxNum();
81  _dt.wheel = digi_phi.whNum();
82  _dt.sector = digi_phi.scNum();
83  _dt.station = digi_phi.stNum();
84  _dt.radialAngle = digi_phi.phi();
85  _dt.bendingAngle = digi_phi.phiB();
86  _dt.qualityCode = digi_phi.code();
87  _dt.Ts2TagCode = digi_phi.Ts2Tag();
88  _dt.BxCntCode = digi_phi.BxCnt();
89 }
void calculateDTGlobalSector(const DTChamberId &chid, unsigned &global_sector, unsigned &subsector)
int quality(const int i) const
int position(const int i) const
int code(const int i) const
TriggerPrimitive::TriggerPrimitive ( const CSCDetId detid,
const CSCCorrelatedLCTDigi digi 
)

Definition at line 92 of file MuonTriggerPrimitive.cc.

References _csc, _globalsector, _subsector, L1TMuon::TriggerPrimitive::CSCData::bend, L1TMuon::TriggerPrimitive::CSCData::bx, L1TMuon::TriggerPrimitive::CSCData::bx0, calculateCSCGlobalSector(), L1TMuon::TriggerPrimitive::CSCData::cscID, CSCCorrelatedLCTDigi::getBend(), CSCCorrelatedLCTDigi::getBX(), CSCCorrelatedLCTDigi::getBX0(), CSCCorrelatedLCTDigi::getCSCID(), CSCCorrelatedLCTDigi::getKeyWG(), CSCCorrelatedLCTDigi::getMPCLink(), CSCCorrelatedLCTDigi::getPattern(), CSCCorrelatedLCTDigi::getQuality(), CSCCorrelatedLCTDigi::getStrip(), CSCCorrelatedLCTDigi::getSyncErr(), CSCCorrelatedLCTDigi::getTrknmb(), CSCCorrelatedLCTDigi::isValid(), L1TMuon::TriggerPrimitive::CSCData::keywire, L1TMuon::TriggerPrimitive::CSCData::mpclink, L1TMuon::TriggerPrimitive::CSCData::pattern, L1TMuon::TriggerPrimitive::CSCData::quality, L1TMuon::TriggerPrimitive::CSCData::strip, L1TMuon::TriggerPrimitive::CSCData::syncErr, L1TMuon::TriggerPrimitive::CSCData::trknmb, and L1TMuon::TriggerPrimitive::CSCData::valid.

93  :
94  _id(detid),
97  _csc.trknmb = digi.getTrknmb();
98  _csc.valid = digi.isValid();
99  _csc.quality = digi.getQuality();
100  _csc.keywire = digi.getKeyWG();
101  _csc.strip = digi.getStrip();
102  _csc.pattern = digi.getPattern();
103  _csc.bend = digi.getBend();
104  _csc.bx = digi.getBX();
105  _csc.mpclink = digi.getMPCLink();
106  _csc.bx0 = digi.getBX0();
107  _csc.syncErr = digi.getSyncErr();
108  _csc.cscID = digi.getCSCID();
109 }
int getStrip() const
return the key halfstrip from 0,159
uint16_t getSyncErr() const
int getQuality() const
return the 4 bit Correlated LCT Quality
int getBend() const
return bend
uint16_t getCSCID() const
int getTrknmb() const
return track number
int getBX() const
return BX
uint16_t getBX0() const
int getMPCLink() const
return MPC link number, 0 means not sorted, 1-3 give MPC sorting rank
void calculateCSCGlobalSector(const CSCDetId &chid, unsigned &global_sector, unsigned &subsector)
bool isValid() const
return valid pattern bit
int getPattern() const
return pattern
int getKeyWG() const
return the key wire group
TriggerPrimitive::TriggerPrimitive ( const RPCDetId detid,
const unsigned  strip,
const unsigned  layer,
const uint16_t  bx 
)
TriggerPrimitive::TriggerPrimitive ( const TriggerPrimitive tp)

Member Function Documentation

void TriggerPrimitive::calculateCSCGlobalSector ( const CSCDetId chid,
unsigned &  global_sector,
unsigned &  subsector 
)
private

Definition at line 284 of file MuonTriggerPrimitive.cc.

Referenced by TriggerPrimitive().

286  {
287 }
void TriggerPrimitive::calculateDTGlobalSector ( const DTChamberId chid,
unsigned &  global_sector,
unsigned &  subsector 
)
private

Definition at line 279 of file MuonTriggerPrimitive.cc.

Referenced by TriggerPrimitive().

281  {
282 }
void TriggerPrimitive::calculateRPCGlobalSector ( const RPCDetId chid,
unsigned &  global_sector,
unsigned &  subsector 
)
private

Definition at line 289 of file MuonTriggerPrimitive.cc.

Referenced by TriggerPrimitive().

291  {
292 }
template<typename IDType >
IDType L1TMuon::TriggerPrimitive::detId ( ) const
inline
const int TriggerPrimitive::getBX ( ) const

Definition at line 200 of file MuonTriggerPrimitive.cc.

References _csc, _dt, _rpc, _subsystem, L1TMuon::TriggerPrimitive::RPCData::bx, L1TMuon::TriggerPrimitive::CSCData::bx, L1TMuon::TriggerPrimitive::DTData::bx, Exception, kCSC, kDT, and kRPC.

Referenced by L1ITMuonBarrelPrimitiveProducer::produce().

200  {
201  switch(_subsystem) {
202  case kDT:
203  return _dt.bx;
204  case kCSC:
205  return _csc.bx;
206  case kRPC:
207  return _rpc.bx;
208  default:
209  throw cms::Exception("Invalid Subsytem")
210  << "The specified subsystem for this track stub is out of range"
211  << std::endl;
212  }
213  return -1;
214 }
const double L1TMuon::TriggerPrimitive::getCMSGlobalEta ( ) const
inline

Definition at line 139 of file MuonTriggerPrimitive.h.

References _eta.

139 { return _eta; }
const double L1TMuon::TriggerPrimitive::getCMSGlobalPhi ( ) const
inline
const GlobalPoint L1TMuon::TriggerPrimitive::getCMSGlobalPoint ( ) const
inline
const double L1TMuon::TriggerPrimitive::getCMSGlobalRho ( ) const
inline

Definition at line 143 of file MuonTriggerPrimitive.h.

References _rho.

143 { return _rho; }
const CSCData L1TMuon::TriggerPrimitive::getCSCData ( ) const
inline
const DTData L1TMuon::TriggerPrimitive::getDTData ( ) const
inline
const unsigned L1TMuon::TriggerPrimitive::getGlobalSector ( ) const
inline

Definition at line 172 of file MuonTriggerPrimitive.h.

References _globalsector.

172 { return _globalsector; }
const int TriggerPrimitive::getPattern ( ) const

Definition at line 248 of file MuonTriggerPrimitive.cc.

References _csc, _subsystem, Exception, kCSC, kDT, kRPC, and L1TMuon::TriggerPrimitive::CSCData::pattern.

Referenced by PrimitiveConverter::convert().

248  {
249  switch(_subsystem) {
250  case kDT:
251  return -1;
252  case kCSC:
253  return _csc.pattern;
254  case kRPC:
255  return -1;
256  default:
257  throw cms::Exception("Invalid Subsytem")
258  << "The specified subsystem for this track stub is out of range"
259  << std::endl;
260  }
261  return -1;
262 }
const RPCData L1TMuon::TriggerPrimitive::getRPCData ( ) const
inline

Definition at line 162 of file MuonTriggerPrimitive.h.

References _rpc.

Referenced by L1TMuon::GeometryTranslator::getRPCSpecificPoint().

162 { return _rpc; }
const int TriggerPrimitive::getStrip ( ) const

Definition at line 216 of file MuonTriggerPrimitive.cc.

References _csc, _rpc, _subsystem, Exception, kCSC, kDT, kRPC, L1TMuon::TriggerPrimitive::RPCData::strip, and L1TMuon::TriggerPrimitive::CSCData::strip.

216  {
217  switch(_subsystem) {
218  case kDT:
219  return -1;
220  case kCSC:
221  return _csc.strip;
222  case kRPC:
223  return _rpc.strip;
224  default:
225  throw cms::Exception("Invalid Subsytem")
226  << "The specified subsystem for this track stub is out of range"
227  << std::endl;
228  }
229  return -1;
230 }
const unsigned L1TMuon::TriggerPrimitive::getSubSector ( ) const
inline

Definition at line 173 of file MuonTriggerPrimitive.h.

References _subsector.

173 { return _subsector; }
double L1TMuon::TriggerPrimitive::getThetaBend ( ) const
inline

Definition at line 154 of file MuonTriggerPrimitive.h.

References _theta.

154 { return _theta; }
const int TriggerPrimitive::getWire ( ) const

Definition at line 232 of file MuonTriggerPrimitive.cc.

References _csc, _subsystem, Exception, kCSC, kDT, L1TMuon::TriggerPrimitive::CSCData::keywire, and kRPC.

232  {
233  switch(_subsystem) {
234  case kDT:
235  return -1;
236  case kCSC:
237  return _csc.keywire;
238  case kRPC:
239  return -1;
240  default:
241  throw cms::Exception("Invalid Subsytem")
242  << "The specified subsystem for this track stub is out of range"
243  << std::endl;
244  }
245  return -1;
246 }
const int TriggerPrimitive::Id ( ) const

Definition at line 263 of file MuonTriggerPrimitive.cc.

References _csc, _subsystem, L1TMuon::TriggerPrimitive::CSCData::cscID, Exception, kCSC, kDT, and kRPC.

Referenced by PrimitiveConverter::convert().

263  {
264  switch(_subsystem) {
265  case kDT:
266  return -1;
267  case kCSC:
268  return _csc.cscID;
269  case kRPC:
270  return -1;
271  default:
272  throw cms::Exception("Invalid Subsytem")
273  << "The specified subsystem for this track stub is out of range"
274  << std::endl;
275  }
276  return -1;
277 }
TriggerPrimitive & TriggerPrimitive::operator= ( const TriggerPrimitive tp)

Definition at line 137 of file MuonTriggerPrimitive.cc.

References _csc, _dt, _eta, _globalsector, _id, _phi, _rpc, _subsector, and _subsystem.

137  {
138  this->_dt = tp._dt;
139  this->_csc = tp._csc;
140  this->_rpc = tp._rpc;
141  this->_id = tp._id;
142  this->_subsystem = tp._subsystem;
143  this->_globalsector = tp._globalsector;
144  this->_subsector = tp._subsector;
145  this->_eta = tp._eta;
146  this->_phi = tp._phi;
147  return *this;
148 }
bool TriggerPrimitive::operator== ( const TriggerPrimitive tp) const

Definition at line 165 of file MuonTriggerPrimitive.cc.

References _csc, _dt, _globalsector, _id, _rpc, _subsector, _subsystem, L1TMuon::TriggerPrimitive::CSCData::bend, L1TMuon::TriggerPrimitive::DTData::bendingAngle, L1TMuon::TriggerPrimitive::RPCData::bx, L1TMuon::TriggerPrimitive::CSCData::bx, L1TMuon::TriggerPrimitive::DTData::bx, L1TMuon::TriggerPrimitive::CSCData::bx0, L1TMuon::TriggerPrimitive::DTData::BxCntCode, L1TMuon::TriggerPrimitive::CSCData::cscID, L1TMuon::TriggerPrimitive::CSCData::keywire, L1TMuon::TriggerPrimitive::RPCData::layer, L1TMuon::TriggerPrimitive::CSCData::mpclink, L1TMuon::TriggerPrimitive::CSCData::pattern, L1TMuon::TriggerPrimitive::CSCData::quality, L1TMuon::TriggerPrimitive::DTData::qualityCode, L1TMuon::TriggerPrimitive::DTData::radialAngle, L1TMuon::TriggerPrimitive::DTData::sector, L1TMuon::TriggerPrimitive::DTData::segment_number, L1TMuon::TriggerPrimitive::DTData::station, L1TMuon::TriggerPrimitive::RPCData::strip, L1TMuon::TriggerPrimitive::CSCData::strip, L1TMuon::TriggerPrimitive::CSCData::syncErr, L1TMuon::TriggerPrimitive::DTData::theta_bti_group, L1TMuon::TriggerPrimitive::DTData::theta_code, L1TMuon::TriggerPrimitive::DTData::theta_quality, L1TMuon::TriggerPrimitive::CSCData::trknmb, L1TMuon::TriggerPrimitive::DTData::Ts2TagCode, L1TMuon::TriggerPrimitive::CSCData::valid, and L1TMuon::TriggerPrimitive::DTData::wheel.

165  {
166  return ( this->_dt.bx == tp._dt.bx &&
167  this->_dt.wheel == tp._dt.wheel &&
168  this->_dt.sector == tp._dt.sector &&
169  this->_dt.station == tp._dt.station &&
170  this->_dt.radialAngle == tp._dt.radialAngle &&
171  this->_dt.bendingAngle == tp._dt.bendingAngle &&
172  this->_dt.qualityCode == tp._dt.qualityCode &&
173  this->_dt.Ts2TagCode == tp._dt.Ts2TagCode &&
174  this->_dt.BxCntCode == tp._dt.BxCntCode &&
175  this->_dt.theta_bti_group == tp._dt.theta_bti_group &&
176  this->_dt.segment_number == tp._dt.segment_number &&
177  this->_dt.theta_code == tp._dt.theta_code &&
178  this->_dt.theta_quality == tp._dt.theta_quality &&
179  this->_csc.trknmb == tp._csc.trknmb &&
180  this->_csc.valid == tp._csc.valid &&
181  this->_csc.quality == tp._csc.quality &&
182  this->_csc.keywire == tp._csc.keywire &&
183  this->_csc.strip == tp._csc.strip &&
184  this->_csc.pattern == tp._csc.pattern &&
185  this->_csc.bend == tp._csc.bend &&
186  this->_csc.bx == tp._csc.bx &&
187  this->_csc.mpclink == tp._csc.mpclink &&
188  this->_csc.bx0 == tp._csc.bx0 &&
189  this->_csc.syncErr == tp._csc.syncErr &&
190  this->_csc.cscID == tp._csc.cscID &&
191  this->_rpc.strip == tp._rpc.strip &&
192  this->_rpc.layer == tp._rpc.layer &&
193  this->_rpc.bx == tp._rpc.bx &&
194  this->_id == tp._id &&
195  this->_subsystem == tp._subsystem &&
196  this->_globalsector == tp._globalsector &&
197  this->_subsector == tp._subsector );
198 }
void TriggerPrimitive::print ( std::ostream &  out) const

Definition at line 294 of file MuonTriggerPrimitive.cc.

References _csc, _dt, _eta, _phi, _rpc, _subsystem, _theta, L1TMuon::TriggerPrimitive::CSCData::bend, L1TMuon::TriggerPrimitive::DTData::bendingAngle, L1TMuon::TriggerPrimitive::RPCData::bx, L1TMuon::TriggerPrimitive::CSCData::bx, L1TMuon::TriggerPrimitive::DTData::bx, L1TMuon::TriggerPrimitive::CSCData::bx0, L1TMuon::TriggerPrimitive::DTData::BxCntCode, L1TMuon::TriggerPrimitive::CSCData::cscID, Exception, customizeTrackingMonitorSeedNumber::idx, kCSC, kDT, L1TMuon::TriggerPrimitive::CSCData::keywire, kRPC, L1TMuon::TriggerPrimitive::RPCData::layer, L1TMuon::TriggerPrimitive::CSCData::mpclink, L1TMuon::TriggerPrimitive::CSCData::pattern, L1TMuon::TriggerPrimitive::CSCData::quality, L1TMuon::TriggerPrimitive::DTData::qualityCode, L1TMuon::TriggerPrimitive::DTData::radialAngle, L1TMuon::TriggerPrimitive::DTData::segment_number, L1TMuon::TriggerPrimitive::RPCData::strip, L1TMuon::TriggerPrimitive::CSCData::strip, L1TMuon::TriggerPrimitive::CSCData::syncErr, L1TMuon::TriggerPrimitive::DTData::theta_bti_group, L1TMuon::TriggerPrimitive::DTData::theta_code, L1TMuon::TriggerPrimitive::DTData::theta_quality, L1TMuon::TriggerPrimitive::CSCData::trknmb, L1TMuon::TriggerPrimitive::DTData::Ts2TagCode, and L1TMuon::TriggerPrimitive::CSCData::valid.

294  {
295  unsigned idx = (unsigned) _subsystem;
296  out << subsystem_names[idx] << " Trigger Primitive" << std::endl;
297  out << "eta: " << _eta << " phi: " << _phi
298  << " bend: " << _theta << std::endl;
299  switch(_subsystem) {
300  case kDT:
301  out << detId<DTChamberId>() << std::endl;
302  out << "Local BX : " << _dt.bx << std::endl;
303  out << "Segment Nmb : " << _dt.segment_number << std::endl;
304  out << "Packed Phi : " << _dt.radialAngle << std::endl;
305  out << "Packed Bend : " << _dt.bendingAngle << std::endl;
306  out << "Quality Code : " << _dt.qualityCode << std::endl;
307  out << "Ts2Tag Code : " << _dt.Ts2TagCode << std::endl;
308  out << "BXCnt Code : " << _dt.BxCntCode << std::endl;
309  out << "Theta BTI Grp : " << _dt.theta_bti_group << std::endl;
310  out << "Theta Code : " << _dt.theta_code << std::endl;
311  out << "Theta Quality : " << _dt.theta_quality << std::endl;
312  break;
313  case kCSC:
314  out << detId<CSCDetId>() << std::endl;
315  out << "Local BX : " << _csc.bx << std::endl;
316  out << "Segment Nmb : " << _csc.trknmb << std::endl;
317  out << "Segment Valid : " << _csc.valid << std::endl;
318  out << "Quality Code : " << _csc.quality << std::endl;
319  out << "Key Wire Grp : " << _csc.keywire << std::endl;
320  out << "Half-Strip : " << _csc.strip << std::endl;
321  out << "CLCT Pattern : " << _csc.pattern << std::endl;
322  out << "Packed Bend : " << _csc.bend << std::endl;
323  out << "MPC Link : " << _csc.mpclink << std::endl;
324  out << "BX0 : " << _csc.bx0 << std::endl;
325  out << "Sync Error : " << _csc.syncErr << std::endl;
326  out << "CSCID : " << _csc.cscID << std::endl;
327  break;
328  case kRPC:
329  out << detId<RPCDetId>() << std::endl;
330  out << "Local BX : " << _rpc.bx << std::endl;
331  out << "Strip : " << _rpc.strip << std::endl;
332  out << "Layer : " << _rpc.layer << std::endl;
333  break;
334  default:
335  throw cms::Exception("Invalid Subsytem")
336  << "The specified subsystem for this track stub is out of range"
337  << std::endl;
338  }
339 }
tuple idx
DEBUGGING if hasattr(process,&quot;trackMonIterativeTracking2012&quot;): print &quot;trackMonIterativeTracking2012 D...
const DetId L1TMuon::TriggerPrimitive::rawId ( ) const
inline

Definition at line 169 of file MuonTriggerPrimitive.h.

References _id.

169 {return _id;};
void L1TMuon::TriggerPrimitive::setCMSGlobalEta ( const double  eta)
inline

Definition at line 140 of file MuonTriggerPrimitive.h.

References _eta, and eta.

void L1TMuon::TriggerPrimitive::setCMSGlobalPhi ( const double  phi)
inline

Definition at line 142 of file MuonTriggerPrimitive.h.

References _phi.

Referenced by L1ITMuonBarrelPrimitiveProducer::produce().

void L1TMuon::TriggerPrimitive::setCMSGlobalRho ( const double  rho)
inline

Definition at line 144 of file MuonTriggerPrimitive.h.

References _rho.

void L1TMuon::TriggerPrimitive::setThetaBend ( const double  theta)
inline

Definition at line 153 of file MuonTriggerPrimitive.h.

References _theta, and theta().

153 { _theta = theta; }
Geom::Theta< T > theta() const
const subsystem_type L1TMuon::TriggerPrimitive::subsystem ( ) const
inline

Member Data Documentation

CSCData L1TMuon::TriggerPrimitive::_csc
private
DTData L1TMuon::TriggerPrimitive::_dt
private

Definition at line 190 of file MuonTriggerPrimitive.h.

Referenced by getBX(), getDTData(), operator=(), operator==(), print(), and TriggerPrimitive().

double L1TMuon::TriggerPrimitive::_eta
private
unsigned L1TMuon::TriggerPrimitive::_globalsector
private

Definition at line 198 of file MuonTriggerPrimitive.h.

Referenced by getGlobalSector(), operator=(), operator==(), and TriggerPrimitive().

DetId L1TMuon::TriggerPrimitive::_id
private

Definition at line 194 of file MuonTriggerPrimitive.h.

Referenced by detId(), operator=(), operator==(), and rawId().

double L1TMuon::TriggerPrimitive::_phi
private
double L1TMuon::TriggerPrimitive::_rho
private

Definition at line 200 of file MuonTriggerPrimitive.h.

Referenced by getCMSGlobalPoint(), getCMSGlobalRho(), and setCMSGlobalRho().

RPCData L1TMuon::TriggerPrimitive::_rpc
private
unsigned L1TMuon::TriggerPrimitive::_subsector
private

Definition at line 199 of file MuonTriggerPrimitive.h.

Referenced by getSubSector(), operator=(), operator==(), and TriggerPrimitive().

subsystem_type L1TMuon::TriggerPrimitive::_subsystem
private
double L1TMuon::TriggerPrimitive::_theta
private

Definition at line 201 of file MuonTriggerPrimitive.h.

Referenced by getThetaBend(), print(), and setThetaBend().