CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
ME0TriggerDigi Class Reference

#include <ME0TriggerDigi.h>

Public Member Functions

void clear ()
 clear this Trigger More...
 
int getBend () const
 return bend More...
 
int getBX () const
 return BX More...
 
int getChamberid () const
 return chamber number in one CTP7 More...
 
int getDeltaphi () const
 return bending angle More...
 
int getPartition () const
 return the key "partition" More...
 
int getPhiposition () const
 return the phi position, resolution: half strip level More...
 
int getQuality () const
 return the Quality More...
 
int getStrip () const
 return the key strip More...
 
bool isValid () const
 is valid? More...
 
 ME0TriggerDigi (const int chamberid, const int quality, const int phiposition, const int partition, const int deltaphi, const int bend, const int bx)
 Constructors. More...
 
 ME0TriggerDigi ()
 default More...
 
bool operator!= (const ME0TriggerDigi &rhs) const
 
bool operator== (const ME0TriggerDigi &) const
 Comparison. More...
 
void setBend (unsigned int b)
 set bend More...
 
void setBX (unsigned int b)
 set bx More...
 
void setChamberid (const uint16_t number)
 Set track number. More...
 
void setDeltaphi (unsigned int dphi)
 set bending angle More...
 
void setPartition (unsigned int p)
 set partition More...
 
void setPhiposition (unsigned int phi)
 set phi position More...
 
void setQuality (unsigned int q)
 set quality code More...
 
void setStrip (unsigned int s)
 set strip More...
 

Private Attributes

uint16_t bend_
 
uint16_t bx_
 
uint16_t chamberid_
 
uint16_t deltaphi_
 
uint16_t partition_
 
uint16_t phiposition_
 
uint16_t quality_
 
ME0Segment segment_
 
uint16_t strip_
 

Detailed Description

Digi for local ME0 trigger system ME0 data format: 32bits in total eta position: 4bits, 0-15 phi positoin: 10bits, halfstrip resolution deltaPhi: 9bits, phi difference between layer1 and layer6 bend: 1bits, left(+)=0 or right(-)=1 quality: 4bits, quality0 means invalid chamber id: 1bits, 2 chamber in CTP7 30 bits used now and 2 bits reserved for future

Other properties for MC bx: center at BX8, similar to CSC discussion: https://indico.cern.ch/event/780696/ first version of ME0 trigger is built from offline ME0 segment added ME0 reference in trigger digi temporarily

Author
Sven Dildick (TAMU), Tao Huang (TAMU)

Definition at line 28 of file ME0TriggerDigi.h.

Constructor & Destructor Documentation

◆ ME0TriggerDigi() [1/2]

ME0TriggerDigi::ME0TriggerDigi ( const int  chamberid,
const int  quality,
const int  phiposition,
const int  partition,
const int  deltaphi,
const int  bend,
const int  bx 
)

Constructors.

Definition at line 5 of file ME0TriggerDigi.cc.

12  : chamberid_(ichamberid),
13  quality_(iquality),
14  phiposition_(iphiposition),
15  partition_(ipartition),
16  deltaphi_(ideltaphi),
17  bend_(ibend),
18  bx_(ibx) {}
uint16_t partition_
uint16_t deltaphi_
uint16_t phiposition_
uint16_t chamberid_

◆ ME0TriggerDigi() [2/2]

ME0TriggerDigi::ME0TriggerDigi ( )

default

Definition at line 20 of file ME0TriggerDigi.cc.

References clear().

20  {
21  clear(); // set contents to zero
22 }
void clear()
clear this Trigger

Member Function Documentation

◆ clear()

void ME0TriggerDigi::clear ( void  )

clear this Trigger

Definition at line 24 of file ME0TriggerDigi.cc.

References bend_, bx_, chamberid_, deltaphi_, partition_, phiposition_, and quality_.

Referenced by ME0Motherboard::clear(), ME0TriggerDigi(), and BeautifulSoup.Tag::setString().

24  {
25  chamberid_ = 0;
26  quality_ = 0;
27  phiposition_ = 0;
28  partition_ = 0;
29  deltaphi_ = 0;
30  bend_ = 0;
31  bx_ = 0;
32 }
uint16_t partition_
uint16_t deltaphi_
uint16_t phiposition_
uint16_t chamberid_

◆ getBend()

int ME0TriggerDigi::getBend ( ) const
inline

return bend

Definition at line 68 of file ME0TriggerDigi.h.

References bend_.

Referenced by operator<<(), and L1TMuon::TriggerPrimitive::TriggerPrimitive().

68 { return bend_; }

◆ getBX()

int ME0TriggerDigi::getBX ( ) const
inline

return BX

Definition at line 71 of file ME0TriggerDigi.h.

References bx_.

Referenced by operator<<(), and L1TMuon::TriggerPrimitive::TriggerPrimitive().

71 { return bx_; }

◆ getChamberid()

int ME0TriggerDigi::getChamberid ( ) const
inline

return chamber number in one CTP7

Definition at line 50 of file ME0TriggerDigi.h.

References chamberid_.

Referenced by operator<<(), and L1TMuon::TriggerPrimitive::TriggerPrimitive().

50 { return chamberid_; }
uint16_t chamberid_

◆ getDeltaphi()

int ME0TriggerDigi::getDeltaphi ( ) const
inline

return bending angle

Definition at line 65 of file ME0TriggerDigi.h.

References deltaphi_.

Referenced by operator<<(), and L1TMuon::TriggerPrimitive::TriggerPrimitive().

65 { return deltaphi_; }
uint16_t deltaphi_

◆ getPartition()

int ME0TriggerDigi::getPartition ( ) const
inline

return the key "partition"

Definition at line 62 of file ME0TriggerDigi.h.

References partition_.

Referenced by operator<<(), and L1TMuon::TriggerPrimitive::TriggerPrimitive().

62 { return partition_; }
uint16_t partition_

◆ getPhiposition()

int ME0TriggerDigi::getPhiposition ( ) const
inline

return the phi position, resolution: half strip level

Definition at line 59 of file ME0TriggerDigi.h.

References phiposition_.

Referenced by operator<<(), and L1TMuon::TriggerPrimitive::TriggerPrimitive().

59 { return phiposition_; }
uint16_t phiposition_

◆ getQuality()

int ME0TriggerDigi::getQuality ( ) const
inline

return the Quality

Definition at line 53 of file ME0TriggerDigi.h.

References quality_.

Referenced by operator<<(), ME0Motherboard::sortByQuality(), and L1TMuon::TriggerPrimitive::TriggerPrimitive().

53 { return quality_; }

◆ getStrip()

int ME0TriggerDigi::getStrip ( ) const
inline

return the key strip

Definition at line 56 of file ME0TriggerDigi.h.

References strip_.

Referenced by operator<<().

56 { return strip_; }

◆ isValid()

bool ME0TriggerDigi::isValid ( void  ) const
inline

is valid?

Definition at line 74 of file ME0TriggerDigi.h.

References quality_.

Referenced by ntupleDataFormat._Object::_checkIsValid(), and core.AutoHandle.AutoHandle::ReallyLoad().

74 { return quality_ != 0; }

◆ operator!=()

bool ME0TriggerDigi::operator!= ( const ME0TriggerDigi rhs) const
inline

Definition at line 47 of file ME0TriggerDigi.h.

References operator==().

47 { return !(this->operator==(rhs)); }
bool operator==(const ME0TriggerDigi &) const
Comparison.

◆ operator==()

bool ME0TriggerDigi::operator== ( const ME0TriggerDigi rhs) const

Comparison.

Definition at line 34 of file ME0TriggerDigi.cc.

References bend_, bx_, chamberid_, deltaphi_, partition_, phiposition_, and quality_.

Referenced by operator!=().

34  {
35  return ((chamberid_ == rhs.chamberid_) && (quality_ == rhs.quality_) && (phiposition_ == rhs.phiposition_) &&
36  (partition_ == rhs.partition_) && (deltaphi_ == rhs.deltaphi_) && (bend_ == rhs.bend_) && (bx_ == rhs.bx_));
37 }
uint16_t partition_
uint16_t deltaphi_
uint16_t phiposition_
uint16_t chamberid_

◆ setBend()

void ME0TriggerDigi::setBend ( unsigned int  b)
inline

set bend

Definition at line 95 of file ME0TriggerDigi.h.

References b, and bend_.

95 { bend_ = b; }
double b
Definition: hdecay.h:118

◆ setBX()

void ME0TriggerDigi::setBX ( unsigned int  b)
inline

set bx

Definition at line 98 of file ME0TriggerDigi.h.

References b, and bx_.

98 { bx_ = b; }
double b
Definition: hdecay.h:118

◆ setChamberid()

void ME0TriggerDigi::setChamberid ( const uint16_t  number)
inline

Set track number.

Definition at line 77 of file ME0TriggerDigi.h.

References chamberid_, and contentValuesFiles::number.

◆ setDeltaphi()

void ME0TriggerDigi::setDeltaphi ( unsigned int  dphi)
inline

set bending angle

Definition at line 92 of file ME0TriggerDigi.h.

References deltaphi_.

92 { deltaphi_ = dphi; }
uint16_t deltaphi_

◆ setPartition()

void ME0TriggerDigi::setPartition ( unsigned int  p)
inline

set partition

Definition at line 89 of file ME0TriggerDigi.h.

References AlCaHLTBitMon_ParallelJobs::p, and partition_.

◆ setPhiposition()

void ME0TriggerDigi::setPhiposition ( unsigned int  phi)
inline

set phi position

Definition at line 86 of file ME0TriggerDigi.h.

References phi, and phiposition_.

◆ setQuality()

void ME0TriggerDigi::setQuality ( unsigned int  q)
inline

set quality code

Definition at line 80 of file ME0TriggerDigi.h.

References submitPVResolutionJobs::q, and quality_.

◆ setStrip()

void ME0TriggerDigi::setStrip ( unsigned int  s)
inline

set strip

Definition at line 83 of file ME0TriggerDigi.h.

References alignCSCRings::s, and strip_.

Member Data Documentation

◆ bend_

uint16_t ME0TriggerDigi::bend_
private

Definition at line 115 of file ME0TriggerDigi.h.

Referenced by clear(), getBend(), operator==(), and setBend().

◆ bx_

uint16_t ME0TriggerDigi::bx_
private

Definition at line 116 of file ME0TriggerDigi.h.

Referenced by clear(), getBX(), operator==(), and setBX().

◆ chamberid_

uint16_t ME0TriggerDigi::chamberid_
private

Definition at line 109 of file ME0TriggerDigi.h.

Referenced by clear(), getChamberid(), operator==(), and setChamberid().

◆ deltaphi_

uint16_t ME0TriggerDigi::deltaphi_
private

Definition at line 114 of file ME0TriggerDigi.h.

Referenced by clear(), getDeltaphi(), operator==(), and setDeltaphi().

◆ partition_

uint16_t ME0TriggerDigi::partition_
private

Definition at line 113 of file ME0TriggerDigi.h.

Referenced by clear(), getPartition(), operator==(), and setPartition().

◆ phiposition_

uint16_t ME0TriggerDigi::phiposition_
private

Definition at line 112 of file ME0TriggerDigi.h.

Referenced by clear(), getPhiposition(), operator==(), and setPhiposition().

◆ quality_

uint16_t ME0TriggerDigi::quality_
private

Definition at line 110 of file ME0TriggerDigi.h.

Referenced by clear(), getQuality(), isValid(), operator==(), and setQuality().

◆ segment_

ME0Segment ME0TriggerDigi::segment_
private

Definition at line 119 of file ME0TriggerDigi.h.

◆ strip_

uint16_t ME0TriggerDigi::strip_
private

Definition at line 111 of file ME0TriggerDigi.h.

Referenced by getStrip(), and setStrip().