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 getPartition () const
 return the key "partition" More...
 
int getPattern () const
 return pattern More...
 
int getQuality () const
 return the Quality More...
 
int getStrip () const
 return the key strip More...
 
int getTrknmb () const
 return track number More...
 
bool isValid () const
 is valid? More...
 
 ME0TriggerDigi (const int trknmb, const int quality, const int strip, const int partition, const int pattern, 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 setPartition (unsigned int s)
 set partition More...
 
void setPattern (unsigned int p)
 set pattern More...
 
void setQuality (unsigned int q)
 set quality code More...
 
void setStrip (unsigned int s)
 set strip More...
 
void setTrknmb (const uint16_t number)
 Set track number. More...
 

Private Attributes

uint16_t bend_
 
uint16_t bx_
 
uint16_t partition_
 
uint16_t pattern_
 
uint16_t quality_
 
uint16_t strip_
 
uint16_t trknmb_
 

Detailed Description

Digi for local ME0 trigger system

Author
Sven Dildick (TAMU)

Definition at line 14 of file ME0TriggerDigi.h.

Constructor & Destructor Documentation

ME0TriggerDigi::ME0TriggerDigi ( const int  trknmb,
const int  quality,
const int  strip,
const int  partition,
const int  pattern,
const int  bend,
const int  bx 
)

Constructors.

Definition at line 5 of file ME0TriggerDigi.cc.

11  :
12  trknmb_(itrknmb),
13  quality_(iquality),
14  strip_(istrip),
15  partition_(ipartition),
16  pattern_(ipattern),
17  bend_(ibend),
18  bx_(ibx)
19 {}
uint16_t partition_
uint16_t trknmb_
uint16_t quality_
uint16_t pattern_
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 51 of file ME0TriggerDigi.h.

References bend_.

Referenced by operator<<().

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

return BX

Definition at line 54 of file ME0TriggerDigi.h.

References bx_.

Referenced by operator<<().

54 { return bx_; }
int ME0TriggerDigi::getPartition ( ) const
inline

return the key "partition"

Definition at line 45 of file ME0TriggerDigi.h.

References partition_.

Referenced by operator<<().

45 { return partition_; }
uint16_t partition_
int ME0TriggerDigi::getPattern ( ) const
inline

return pattern

Definition at line 48 of file ME0TriggerDigi.h.

References pattern_.

Referenced by operator<<().

48 { return pattern_; }
uint16_t pattern_
int ME0TriggerDigi::getQuality ( ) const
inline

return the Quality

Definition at line 39 of file ME0TriggerDigi.h.

References quality_.

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

39 { return quality_; }
uint16_t quality_
int ME0TriggerDigi::getStrip ( ) const
inline

return the key strip

Definition at line 42 of file ME0TriggerDigi.h.

References strip_.

Referenced by operator<<().

42 { return strip_; }
int ME0TriggerDigi::getTrknmb ( ) const
inline

return track number

Definition at line 36 of file ME0TriggerDigi.h.

References trknmb_.

Referenced by operator<<().

36 { return trknmb_; }
uint16_t trknmb_
bool ME0TriggerDigi::isValid ( void  ) const
inline

is valid?

Definition at line 57 of file ME0TriggerDigi.h.

References pattern_.

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

57 { return pattern_!=0; }
uint16_t pattern_
bool ME0TriggerDigi::operator!= ( const ME0TriggerDigi rhs) const
inline

Definition at line 32 of file ME0TriggerDigi.h.

References operator==().

33  { 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_, partition_, pattern_, quality_, strip_, and trknmb_.

Referenced by operator!=().

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

set bend

Definition at line 75 of file ME0TriggerDigi.h.

References b, and bend_.

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

set bx

Definition at line 78 of file ME0TriggerDigi.h.

References b, and bx_.

78 {bx_=b;}
double b
Definition: hdecay.h:120
void ME0TriggerDigi::setPartition ( unsigned int  s)
inline

set partition

Definition at line 69 of file ME0TriggerDigi.h.

References partition_, and alignCSCRings::s.

void ME0TriggerDigi::setPattern ( unsigned int  p)
inline

set pattern

Definition at line 72 of file ME0TriggerDigi.h.

References AlCaHLTBitMon_ParallelJobs::p, and pattern_.

void ME0TriggerDigi::setQuality ( unsigned int  q)
inline

set quality code

Definition at line 63 of file ME0TriggerDigi.h.

References lumiQueryAPI::q, and quality_.

void ME0TriggerDigi::setStrip ( unsigned int  s)
inline

set strip

Definition at line 66 of file ME0TriggerDigi.h.

References alignCSCRings::s, and strip_.

void ME0TriggerDigi::setTrknmb ( const uint16_t  number)
inline

Set track number.

Definition at line 60 of file ME0TriggerDigi.h.

References trknmb_.

60 {trknmb_ = number;}
uint16_t trknmb_

Member Data Documentation

uint16_t ME0TriggerDigi::bend_
private

Definition at line 86 of file ME0TriggerDigi.h.

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

uint16_t ME0TriggerDigi::bx_
private

Definition at line 87 of file ME0TriggerDigi.h.

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

uint16_t ME0TriggerDigi::partition_
private

Definition at line 84 of file ME0TriggerDigi.h.

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

uint16_t ME0TriggerDigi::pattern_
private

Definition at line 85 of file ME0TriggerDigi.h.

Referenced by clear(), getPattern(), isValid(), operator==(), and setPattern().

uint16_t ME0TriggerDigi::quality_
private

Definition at line 82 of file ME0TriggerDigi.h.

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

uint16_t ME0TriggerDigi::strip_
private

Definition at line 83 of file ME0TriggerDigi.h.

Referenced by clear(), getStrip(), operator==(), and setStrip().

uint16_t ME0TriggerDigi::trknmb_
private

Definition at line 81 of file ME0TriggerDigi.h.

Referenced by clear(), getTrknmb(), operator==(), and setTrknmb().