CMS 3D CMS Logo

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

#include <CSCShowerDigi.h>

Public Types

enum  Run3Shower { kInvalid = 0, kLoose = 1, kNominal = 2, kTight = 3 }
 
enum  ShowerType {
  kInvalidShower = 0, kALCTShower = 1, kCLCTShower = 2, kLCTShower = 3,
  kEMTFShower = 4, kGMTShower = 5
}
 

Public Member Functions

uint16_t bitsInTime () const
 
uint16_t bitsOutOfTime () const
 
void clear ()
 clear this Shower More...
 
 CSCShowerDigi (const uint16_t inTimeBits, const uint16_t outTimeBits, const uint16_t cscID, const uint16_t bx=0, const uint16_t showerType=4, const uint16_t wireNHits=0, const uint16_t compNHits=0)
 Constructors. More...
 
 CSCShowerDigi ()
 default More...
 
uint16_t getBX () const
 
uint16_t getComparatorNHits () const
 
uint16_t getCSCID () const
 
uint16_t getShowerType () const
 
uint16_t getWireNHits () const
 
bool isLooseInTime () const
 
bool isLooseOutOfTime () const
 
bool isNominalInTime () const
 
bool isNominalOutOfTime () const
 
bool isTightInTime () const
 
bool isTightOutOfTime () const
 
bool isValid () const
 data More...
 
bool isValidShowerType () const
 
void setBX (const uint16_t bx)
 
void setCSCID (const uint16_t c)
 set cscID More...
 

Private Attributes

uint16_t bitsInTime_
 
uint16_t bitsOutOfTime_
 
uint16_t bx_
 
uint16_t comparatorNHits_
 
uint16_t cscID_
 
uint16_t showerType_
 
uint16_t wireNHits_
 

Detailed Description

Definition at line 9 of file CSCShowerDigi.h.

Member Enumeration Documentation

◆ Run3Shower

Enumerator
kInvalid 
kLoose 
kNominal 
kTight 

Definition at line 12 of file CSCShowerDigi.h.

◆ ShowerType

Enumerator
kInvalidShower 
kALCTShower 
kCLCTShower 
kLCTShower 
kEMTFShower 
kGMTShower 

Definition at line 14 of file CSCShowerDigi.h.

Constructor & Destructor Documentation

◆ CSCShowerDigi() [1/2]

CSCShowerDigi::CSCShowerDigi ( const uint16_t  inTimeBits,
const uint16_t  outTimeBits,
const uint16_t  cscID,
const uint16_t  bx = 0,
const uint16_t  showerType = 4,
const uint16_t  wireNHits = 0,
const uint16_t  compNHits = 0 
)

Constructors.

Definition at line 9 of file CSCShowerDigi.cc.

18  cscID_(cscID),
19  bx_(bx),
20  showerType_(showerType),
21  wireNHits_(wireNHits),
22  comparatorNHits_(compNHits) {}
uint16_t wireNHits_
Definition: CSCShowerDigi.h:68
uint16_t comparatorNHits_
Definition: CSCShowerDigi.h:69
uint16_t bitsOutOfTime_
Definition: CSCShowerDigi.h:63
uint16_t showerType_
Definition: CSCShowerDigi.h:67
uint16_t bitsOutOfTime() const
Definition: CSCShowerDigi.h:49
uint16_t bx_
Definition: CSCShowerDigi.h:66
uint16_t cscID_
Definition: CSCShowerDigi.h:65
uint16_t bitsInTime() const
Definition: CSCShowerDigi.h:48
uint16_t bitsInTime_
Definition: CSCShowerDigi.h:62

◆ CSCShowerDigi() [2/2]

CSCShowerDigi::CSCShowerDigi ( )

default

Default.

Definition at line 25 of file CSCShowerDigi.cc.

uint16_t wireNHits_
Definition: CSCShowerDigi.h:68
uint16_t comparatorNHits_
Definition: CSCShowerDigi.h:69
uint16_t bitsOutOfTime_
Definition: CSCShowerDigi.h:63
uint16_t showerType_
Definition: CSCShowerDigi.h:67
uint16_t bx_
Definition: CSCShowerDigi.h:66
uint16_t cscID_
Definition: CSCShowerDigi.h:65
uint16_t bitsInTime_
Definition: CSCShowerDigi.h:62

Member Function Documentation

◆ bitsInTime()

uint16_t CSCShowerDigi::bitsInTime ( ) const
inline

◆ bitsOutOfTime()

uint16_t CSCShowerDigi::bitsOutOfTime ( ) const
inline

◆ clear()

void CSCShowerDigi::clear ( void  )

clear this Shower

Definition at line 28 of file CSCShowerDigi.cc.

References bitsInTime_, bitsOutOfTime_, bx_, comparatorNHits_, cscID_, showerType_, and wireNHits_.

Referenced by CSCCathodeLCTProcessor::clear(), CSCAnodeLCTProcessor::clear(), CSCMotherboard::clear(), and BeautifulSoup.Tag::setString().

28  {
29  bitsInTime_ = 0;
30  bitsOutOfTime_ = 0;
31  cscID_ = 0;
32  bx_ = 0;
33  showerType_ = 0;
34  wireNHits_ = 0;
35  comparatorNHits_ = 0;
36 }
uint16_t wireNHits_
Definition: CSCShowerDigi.h:68
uint16_t comparatorNHits_
Definition: CSCShowerDigi.h:69
uint16_t bitsOutOfTime_
Definition: CSCShowerDigi.h:63
uint16_t showerType_
Definition: CSCShowerDigi.h:67
uint16_t bx_
Definition: CSCShowerDigi.h:66
uint16_t cscID_
Definition: CSCShowerDigi.h:65
uint16_t bitsInTime_
Definition: CSCShowerDigi.h:62

◆ getBX()

uint16_t CSCShowerDigi::getBX ( ) const
inline

◆ getComparatorNHits()

uint16_t CSCShowerDigi::getComparatorNHits ( ) const
inline

◆ getCSCID()

uint16_t CSCShowerDigi::getCSCID ( ) const
inline

◆ getShowerType()

uint16_t CSCShowerDigi::getShowerType ( ) const
inline

Definition at line 53 of file CSCShowerDigi.h.

References showerType_.

Referenced by operator<<().

53 { return showerType_; }
uint16_t showerType_
Definition: CSCShowerDigi.h:67

◆ getWireNHits()

uint16_t CSCShowerDigi::getWireNHits ( ) const
inline

Definition at line 54 of file CSCShowerDigi.h.

References wireNHits_.

Referenced by CSCMotherboard::matchShowers(), and operator<<().

54 { return wireNHits_; }
uint16_t wireNHits_
Definition: CSCShowerDigi.h:68

◆ isLooseInTime()

bool CSCShowerDigi::isLooseInTime ( ) const

Definition at line 44 of file CSCShowerDigi.cc.

References bitsInTime(), and kLoose.

Referenced by isValid(), and CSCMotherboard::matchShowers().

44 { return bitsInTime() >= kLoose; }
uint16_t bitsInTime() const
Definition: CSCShowerDigi.h:48

◆ isLooseOutOfTime()

bool CSCShowerDigi::isLooseOutOfTime ( ) const

Definition at line 50 of file CSCShowerDigi.cc.

References bitsOutOfTime(), and kLoose.

50 { return bitsOutOfTime() >= kLoose; }
uint16_t bitsOutOfTime() const
Definition: CSCShowerDigi.h:49

◆ isNominalInTime()

bool CSCShowerDigi::isNominalInTime ( ) const

Definition at line 46 of file CSCShowerDigi.cc.

References bitsInTime(), and kNominal.

Referenced by CSCMotherboard::matchShowers().

46 { return bitsInTime() >= kNominal; }
uint16_t bitsInTime() const
Definition: CSCShowerDigi.h:48

◆ isNominalOutOfTime()

bool CSCShowerDigi::isNominalOutOfTime ( ) const

Definition at line 52 of file CSCShowerDigi.cc.

References bitsOutOfTime(), and kNominal.

52 { return bitsOutOfTime() >= kNominal; }
uint16_t bitsOutOfTime() const
Definition: CSCShowerDigi.h:49

◆ isTightInTime()

bool CSCShowerDigi::isTightInTime ( ) const

Definition at line 48 of file CSCShowerDigi.cc.

References bitsInTime(), and kTight.

Referenced by CSCMotherboard::matchShowers().

48 { return bitsInTime() >= kTight; }
uint16_t bitsInTime() const
Definition: CSCShowerDigi.h:48

◆ isTightOutOfTime()

bool CSCShowerDigi::isTightOutOfTime ( ) const

Definition at line 54 of file CSCShowerDigi.cc.

References bitsOutOfTime(), and kTight.

54 { return bitsOutOfTime() >= kTight; }
uint16_t bitsOutOfTime() const
Definition: CSCShowerDigi.h:49

◆ isValid()

bool CSCShowerDigi::isValid ( void  ) const

◆ isValidShowerType()

bool CSCShowerDigi::isValidShowerType ( ) const

Definition at line 56 of file CSCShowerDigi.cc.

References kInvalidShower, and showerType_.

Referenced by isValid().

◆ setBX()

void CSCShowerDigi::setBX ( const uint16_t  bx)
inline

Definition at line 59 of file CSCShowerDigi.h.

References simKBmtfDigis_cfi::bx, and bx_.

◆ setCSCID()

void CSCShowerDigi::setCSCID ( const uint16_t  c)
inline

set cscID

Definition at line 58 of file CSCShowerDigi.h.

References c, and cscID_.

58 { cscID_ = c; }
uint16_t cscID_
Definition: CSCShowerDigi.h:65

Member Data Documentation

◆ bitsInTime_

uint16_t CSCShowerDigi::bitsInTime_
private

Definition at line 62 of file CSCShowerDigi.h.

Referenced by bitsInTime(), and clear().

◆ bitsOutOfTime_

uint16_t CSCShowerDigi::bitsOutOfTime_
private

Definition at line 63 of file CSCShowerDigi.h.

Referenced by bitsOutOfTime(), and clear().

◆ bx_

uint16_t CSCShowerDigi::bx_
private

Definition at line 66 of file CSCShowerDigi.h.

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

◆ comparatorNHits_

uint16_t CSCShowerDigi::comparatorNHits_
private

Definition at line 69 of file CSCShowerDigi.h.

Referenced by clear(), and getComparatorNHits().

◆ cscID_

uint16_t CSCShowerDigi::cscID_
private

Definition at line 65 of file CSCShowerDigi.h.

Referenced by clear(), getCSCID(), and setCSCID().

◆ showerType_

uint16_t CSCShowerDigi::showerType_
private

Definition at line 67 of file CSCShowerDigi.h.

Referenced by clear(), getShowerType(), and isValidShowerType().

◆ wireNHits_

uint16_t CSCShowerDigi::wireNHits_
private

Definition at line 68 of file CSCShowerDigi.h.

Referenced by clear(), and getWireNHits().