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::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.

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

default

Definition at line 21 of file ME0TriggerDigi.cc.

References clear().

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

Member Function Documentation

void ME0TriggerDigi::clear ( void  )
int ME0TriggerDigi::getBend ( ) const
inline

return bend

Definition at line 68 of file ME0TriggerDigi.h.

References bend_.

Referenced by operator<<().

68 { return bend_; }
int ME0TriggerDigi::getBX ( ) const
inline

return BX

Definition at line 71 of file ME0TriggerDigi.h.

References bx_.

Referenced by operator<<().

71 { return bx_; }
int ME0TriggerDigi::getChamberid ( ) const
inline

return chamber number in one CTP7

Definition at line 50 of file ME0TriggerDigi.h.

References chamberid_.

Referenced by operator<<().

50 { return chamberid_; }
uint16_t chamberid_
int ME0TriggerDigi::getDeltaphi ( ) const
inline

return bending angle

Definition at line 65 of file ME0TriggerDigi.h.

References deltaphi_.

Referenced by operator<<().

65 { return deltaphi_; }
uint16_t deltaphi_
int ME0TriggerDigi::getPartition ( ) const
inline

return the key "partition"

Definition at line 62 of file ME0TriggerDigi.h.

References partition_.

Referenced by operator<<().

62 { return partition_; }
uint16_t partition_
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<<().

59 { return phiposition_; }
uint16_t phiposition_
int ME0TriggerDigi::getQuality ( ) const
inline

return the Quality

Definition at line 53 of file ME0TriggerDigi.h.

References quality_.

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

53 { return quality_; }
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_; }
bool ME0TriggerDigi::isValid ( void  ) const
inline
bool ME0TriggerDigi::operator!= ( const ME0TriggerDigi rhs) const
inline

Definition at line 46 of file ME0TriggerDigi.h.

References operator==().

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

Comparison.

Definition at line 35 of file ME0TriggerDigi.cc.

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

Referenced by operator!=().

35  {
36  return ((chamberid_ == rhs.chamberid_) && (quality_ == rhs.quality_) &&
37  (phiposition_ == rhs.phiposition_) && (partition_ == rhs.partition_) &&
38  (deltaphi_ == rhs.deltaphi_) &&
39  (bend_ == rhs.bend_) && (bx_ == rhs.bx_) );
40 }
uint16_t partition_
uint16_t deltaphi_
uint16_t phiposition_
uint16_t chamberid_
void ME0TriggerDigi::setBend ( unsigned int  b)
inline

set bend

Definition at line 96 of file ME0TriggerDigi.h.

References b, and bend_.

96 {bend_=b;}
double b
Definition: hdecay.h:120
void ME0TriggerDigi::setBX ( unsigned int  b)
inline

set bx

Definition at line 99 of file ME0TriggerDigi.h.

References b, and bx_.

99 {bx_=b;}
double b
Definition: hdecay.h:120
void ME0TriggerDigi::setChamberid ( const uint16_t  number)
inline

Set track number.

Definition at line 78 of file ME0TriggerDigi.h.

References chamberid_.

78 {chamberid_ = number;}
uint16_t chamberid_
void ME0TriggerDigi::setDeltaphi ( unsigned int  dphi)
inline

set bending angle

Definition at line 93 of file ME0TriggerDigi.h.

References deltaphi_.

93 {deltaphi_=dphi;}
uint16_t deltaphi_
void ME0TriggerDigi::setPartition ( unsigned int  p)
inline

set partition

Definition at line 90 of file ME0TriggerDigi.h.

References AlCaHLTBitMon_ParallelJobs::p, and partition_.

void ME0TriggerDigi::setPhiposition ( unsigned int  phi)
inline

set phi position

Definition at line 87 of file ME0TriggerDigi.h.

References phi, and phiposition_.

void ME0TriggerDigi::setQuality ( unsigned int  q)
inline

set quality code

Definition at line 81 of file ME0TriggerDigi.h.

References lumiQueryAPI::q, and quality_.

void ME0TriggerDigi::setStrip ( unsigned int  s)
inline

set strip

Definition at line 84 of file ME0TriggerDigi.h.

References alignCSCRings::s, and strip_.

Referenced by ME0TriggerPseudoBuilder::segmentConversion().

Member Data Documentation

uint16_t ME0TriggerDigi::bend_
private

Definition at line 117 of file ME0TriggerDigi.h.

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

uint16_t ME0TriggerDigi::bx_
private

Definition at line 118 of file ME0TriggerDigi.h.

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

uint16_t ME0TriggerDigi::chamberid_
private

Definition at line 111 of file ME0TriggerDigi.h.

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

uint16_t ME0TriggerDigi::deltaphi_
private

Definition at line 116 of file ME0TriggerDigi.h.

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

uint16_t ME0TriggerDigi::partition_
private

Definition at line 115 of file ME0TriggerDigi.h.

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

uint16_t ME0TriggerDigi::phiposition_
private

Definition at line 114 of file ME0TriggerDigi.h.

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

uint16_t ME0TriggerDigi::quality_
private

Definition at line 112 of file ME0TriggerDigi.h.

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

ME0Segment ME0TriggerDigi::segment_
private

Definition at line 121 of file ME0TriggerDigi.h.

uint16_t ME0TriggerDigi::strip_
private

Definition at line 113 of file ME0TriggerDigi.h.

Referenced by getStrip(), and setStrip().