CMS 3D CMS Logo

CSCShowerDigi.cc
Go to the documentation of this file.
3 #include <iomanip>
4 #include <iostream>
5 
6 using namespace std;
7 
9 CSCShowerDigi::CSCShowerDigi(const uint16_t bitsInTime, const uint16_t bitsOutOfTime, const uint16_t cscID)
10  : bitsInTime_(bitsInTime), bitsOutOfTime_(bitsOutOfTime), cscID_(cscID) {}
11 
13 CSCShowerDigi::CSCShowerDigi() : bitsInTime_(0), bitsOutOfTime_(0), cscID_(0) {}
14 
16  bitsInTime_ = 0;
17  bitsOutOfTime_ = 0;
18  cscID_ = 0;
19 }
20 
21 bool CSCShowerDigi::isValid() const {
22  // any loose shower is valid
24 }
25 
26 bool CSCShowerDigi::isLooseInTime() const { return bitsInTime() >= kLoose; }
27 
28 bool CSCShowerDigi::isNominalInTime() const { return bitsInTime() >= kNominal; }
29 
30 bool CSCShowerDigi::isTightInTime() const { return bitsInTime() >= kTight; }
31 
33 
35 
37 
38 std::ostream& operator<<(std::ostream& o, const CSCShowerDigi& digi) {
39  return o << "CSC Shower: in-time bits " << digi.bitsInTime() << ", out-of-time bits " << digi.bitsOutOfTime();
40 }
bool isLooseOutOfTime() const
std::ostream & operator<<(std::ostream &o, const CSCShowerDigi &digi)
bool isValid() const
data
uint16_t bitsOutOfTime_
Definition: CSCShowerDigi.h:42
uint16_t bitsOutOfTime() const
Definition: CSCShowerDigi.h:33
bool isLooseInTime() const
bool isTightInTime() const
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
bool isNominalInTime() const
bool isTightOutOfTime() const
uint16_t cscID_
Definition: CSCShowerDigi.h:44
uint16_t bitsInTime() const
Definition: CSCShowerDigi.h:32
bool isNominalOutOfTime() const
uint16_t bitsInTime_
Definition: CSCShowerDigi.h:41
void clear()
clear this Shower
CSCShowerDigi()
default