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 }
 

Public Member Functions

uint16_t bitsInTime () const
 
uint16_t bitsOutOfTime () const
 
void clear ()
 clear this Shower More...
 
 CSCShowerDigi ()
 default More...
 
 CSCShowerDigi (const uint16_t inTimeBits, const uint16_t outTimeBits, const uint16_t cscID)
 Constructors. More...
 
uint16_t getCSCID () const
 
bool isLooseInTime () const
 
bool isLooseOutOfTime () const
 
bool isNominalInTime () const
 
bool isNominalOutOfTime () const
 
bool isTightInTime () const
 
bool isTightOutOfTime () const
 
bool isValid () const
 data More...
 
void setCSCID (const uint16_t c)
 set cscID More...
 

Private Attributes

uint16_t bitsInTime_
 
uint16_t bitsOutOfTime_
 
uint16_t cscID_
 

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.

12 { kInvalid = 0, kLoose = 1, kNominal = 2, kTight = 3 };

Constructor & Destructor Documentation

◆ CSCShowerDigi() [1/2]

CSCShowerDigi::CSCShowerDigi ( const uint16_t  inTimeBits,
const uint16_t  outTimeBits,
const uint16_t  cscID 
)

Constructors.

Definition at line 9 of file CSCShowerDigi.cc.

◆ CSCShowerDigi() [2/2]

CSCShowerDigi::CSCShowerDigi ( )

default

Default.

Definition at line 13 of file CSCShowerDigi.cc.

13 : bitsInTime_(0), bitsOutOfTime_(0), cscID_(0) {}

Member Function Documentation

◆ bitsInTime()

uint16_t CSCShowerDigi::bitsInTime ( ) const
inline

Definition at line 32 of file CSCShowerDigi.h.

32 { return bitsInTime_; }

References bitsInTime_.

Referenced by isLooseInTime(), isNominalInTime(), isTightInTime(), and operator<<().

◆ bitsOutOfTime()

uint16_t CSCShowerDigi::bitsOutOfTime ( ) const
inline

Definition at line 33 of file CSCShowerDigi.h.

33 { return bitsOutOfTime_; }

References bitsOutOfTime_.

Referenced by isLooseOutOfTime(), isNominalOutOfTime(), isTightOutOfTime(), and operator<<().

◆ clear()

void CSCShowerDigi::clear ( void  )

clear this Shower

Definition at line 15 of file CSCShowerDigi.cc.

15  {
16  bitsInTime_ = 0;
17  bitsOutOfTime_ = 0;
18  cscID_ = 0;
19 }

References bitsInTime_, bitsOutOfTime_, and cscID_.

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

◆ getCSCID()

uint16_t CSCShowerDigi::getCSCID ( ) const
inline

Definition at line 35 of file CSCShowerDigi.h.

35 { return cscID_; }

References cscID_.

Referenced by SectorProcessorShower::select_shower().

◆ isLooseInTime()

bool CSCShowerDigi::isLooseInTime ( ) const

Definition at line 26 of file CSCShowerDigi.cc.

26 { return bitsInTime() >= kLoose; }

References bitsInTime(), and kLoose.

Referenced by isValid().

◆ isLooseOutOfTime()

bool CSCShowerDigi::isLooseOutOfTime ( ) const

Definition at line 32 of file CSCShowerDigi.cc.

32 { return bitsOutOfTime() >= kLoose; }

References bitsOutOfTime(), and kLoose.

Referenced by isValid().

◆ isNominalInTime()

bool CSCShowerDigi::isNominalInTime ( ) const

Definition at line 28 of file CSCShowerDigi.cc.

28 { return bitsInTime() >= kNominal; }

References bitsInTime(), and kNominal.

◆ isNominalOutOfTime()

bool CSCShowerDigi::isNominalOutOfTime ( ) const

Definition at line 34 of file CSCShowerDigi.cc.

34 { return bitsOutOfTime() >= kNominal; }

References bitsOutOfTime(), and kNominal.

◆ isTightInTime()

bool CSCShowerDigi::isTightInTime ( ) const

Definition at line 30 of file CSCShowerDigi.cc.

30 { return bitsInTime() >= kTight; }

References bitsInTime(), and kTight.

◆ isTightOutOfTime()

bool CSCShowerDigi::isTightOutOfTime ( ) const

Definition at line 36 of file CSCShowerDigi.cc.

36 { return bitsOutOfTime() >= kTight; }

References bitsOutOfTime(), and kTight.

◆ isValid()

bool CSCShowerDigi::isValid ( void  ) const

data

Definition at line 21 of file CSCShowerDigi.cc.

21  {
22  // any loose shower is valid
24 }

References isLooseInTime(), isLooseOutOfTime(), and or.

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

◆ setCSCID()

void CSCShowerDigi::setCSCID ( const uint16_t  c)
inline

set cscID

Definition at line 38 of file CSCShowerDigi.h.

38 { cscID_ = c; }

References c, and cscID_.

Member Data Documentation

◆ bitsInTime_

uint16_t CSCShowerDigi::bitsInTime_
private

Definition at line 41 of file CSCShowerDigi.h.

Referenced by bitsInTime(), and clear().

◆ bitsOutOfTime_

uint16_t CSCShowerDigi::bitsOutOfTime_
private

Definition at line 42 of file CSCShowerDigi.h.

Referenced by bitsOutOfTime(), and clear().

◆ cscID_

uint16_t CSCShowerDigi::cscID_
private

Definition at line 44 of file CSCShowerDigi.h.

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

CSCShowerDigi::kTight
Definition: CSCShowerDigi.h:12
CSCShowerDigi::isLooseInTime
bool isLooseInTime() const
Definition: CSCShowerDigi.cc:26
CSCShowerDigi::kNominal
Definition: CSCShowerDigi.h:12
CSCShowerDigi::isLooseOutOfTime
bool isLooseOutOfTime() const
Definition: CSCShowerDigi.cc:32
CSCShowerDigi::kLoose
Definition: CSCShowerDigi.h:12
CSCShowerDigi::bitsInTime
uint16_t bitsInTime() const
Definition: CSCShowerDigi.h:32
CSCShowerDigi::bitsInTime_
uint16_t bitsInTime_
Definition: CSCShowerDigi.h:41
CSCShowerDigi::kInvalid
Definition: CSCShowerDigi.h:12
CSCShowerDigi::bitsOutOfTime_
uint16_t bitsOutOfTime_
Definition: CSCShowerDigi.h:42
CSCShowerDigi::bitsOutOfTime
uint16_t bitsOutOfTime() const
Definition: CSCShowerDigi.h:33
or
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
CSCShowerDigi::cscID_
uint16_t cscID_
Definition: CSCShowerDigi.h:44