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 ()
 default 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...
 
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) {}

◆ ME0TriggerDigi() [2/2]

ME0TriggerDigi::ME0TriggerDigi ( )

default

Definition at line 20 of file ME0TriggerDigi.cc.

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

References clear().

Member Function Documentation

◆ clear()

void ME0TriggerDigi::clear ( void  )

clear this Trigger

Definition at line 24 of file ME0TriggerDigi.cc.

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

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

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

◆ getBend()

int ME0TriggerDigi::getBend ( ) const
inline

return bend

Definition at line 68 of file ME0TriggerDigi.h.

68 { return bend_; }

References bend_.

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

◆ getBX()

int ME0TriggerDigi::getBX ( ) const
inline

return BX

Definition at line 71 of file ME0TriggerDigi.h.

71 { return bx_; }

References bx_.

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

◆ getChamberid()

int ME0TriggerDigi::getChamberid ( ) const
inline

return chamber number in one CTP7

Definition at line 50 of file ME0TriggerDigi.h.

50 { return chamberid_; }

References chamberid_.

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

◆ getDeltaphi()

int ME0TriggerDigi::getDeltaphi ( ) const
inline

return bending angle

Definition at line 65 of file ME0TriggerDigi.h.

65 { return deltaphi_; }

References deltaphi_.

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

◆ getPartition()

int ME0TriggerDigi::getPartition ( ) const
inline

return the key "partition"

Definition at line 62 of file ME0TriggerDigi.h.

62 { return partition_; }

References partition_.

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

◆ getPhiposition()

int ME0TriggerDigi::getPhiposition ( ) const
inline

return the phi position, resolution: half strip level

Definition at line 59 of file ME0TriggerDigi.h.

59 { return phiposition_; }

References phiposition_.

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

◆ getQuality()

int ME0TriggerDigi::getQuality ( ) const
inline

return the Quality

Definition at line 53 of file ME0TriggerDigi.h.

53 { return quality_; }

References quality_.

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

◆ getStrip()

int ME0TriggerDigi::getStrip ( ) const
inline

return the key strip

Definition at line 56 of file ME0TriggerDigi.h.

56 { return strip_; }

References strip_.

Referenced by operator<<().

◆ isValid()

bool ME0TriggerDigi::isValid ( void  ) const
inline

is valid?

Definition at line 74 of file ME0TriggerDigi.h.

74 { return quality_ != 0; }

References quality_.

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

◆ operator!=()

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

Definition at line 47 of file ME0TriggerDigi.h.

47 { return !(this->operator==(rhs)); }

References operator==().

◆ operator==()

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

Comparison.

Definition at line 34 of file ME0TriggerDigi.cc.

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 }

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

Referenced by operator!=().

◆ setBend()

void ME0TriggerDigi::setBend ( unsigned int  b)
inline

set bend

Definition at line 95 of file ME0TriggerDigi.h.

95 { bend_ = b; }

References b, and bend_.

◆ setBX()

void ME0TriggerDigi::setBX ( unsigned int  b)
inline

set bx

Definition at line 98 of file ME0TriggerDigi.h.

98 { bx_ = b; }

References b, and bx_.

◆ setChamberid()

void ME0TriggerDigi::setChamberid ( const uint16_t  number)
inline

Set track number.

Definition at line 77 of file ME0TriggerDigi.h.

77 { chamberid_ = number; }

References chamberid_, and contentValuesFiles::number.

◆ setDeltaphi()

void ME0TriggerDigi::setDeltaphi ( unsigned int  dphi)
inline

set bending angle

Definition at line 92 of file ME0TriggerDigi.h.

92 { deltaphi_ = dphi; }

References deltaphi_.

◆ setPartition()

void ME0TriggerDigi::setPartition ( unsigned int  p)
inline

set partition

Definition at line 89 of file ME0TriggerDigi.h.

89 { partition_ = p; }

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.

86 { phiposition_ = phi; }

References phi, and phiposition_.

◆ setQuality()

void ME0TriggerDigi::setQuality ( unsigned int  q)
inline

set quality code

Definition at line 80 of file ME0TriggerDigi.h.

80 { quality_ = q; }

References data-class-funcs::q, and quality_.

◆ setStrip()

void ME0TriggerDigi::setStrip ( unsigned int  s)
inline

set strip

Definition at line 83 of file ME0TriggerDigi.h.

83 { strip_ = s; }

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().

ME0TriggerDigi::bx_
uint16_t bx_
Definition: ME0TriggerDigi.h:116
ME0TriggerDigi::chamberid_
uint16_t chamberid_
Definition: ME0TriggerDigi.h:109
ME0TriggerDigi::bend_
uint16_t bend_
Definition: ME0TriggerDigi.h:115
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
data-class-funcs.q
q
Definition: data-class-funcs.py:169
alignCSCRings.s
s
Definition: alignCSCRings.py:92
contentValuesFiles.number
number
Definition: contentValuesFiles.py:53
ME0TriggerDigi::quality_
uint16_t quality_
Definition: ME0TriggerDigi.h:110
b
double b
Definition: hdecay.h:118
ME0TriggerDigi::deltaphi_
uint16_t deltaphi_
Definition: ME0TriggerDigi.h:114
ME0TriggerDigi::strip_
uint16_t strip_
Definition: ME0TriggerDigi.h:111
ME0TriggerDigi::partition_
uint16_t partition_
Definition: ME0TriggerDigi.h:113
DDAxes::phi
ME0TriggerDigi::phiposition_
uint16_t phiposition_
Definition: ME0TriggerDigi.h:112
ME0TriggerDigi::clear
void clear()
clear this Trigger
Definition: ME0TriggerDigi.cc:24
ME0TriggerDigi::operator==
bool operator==(const ME0TriggerDigi &) const
Comparison.
Definition: ME0TriggerDigi.cc:34