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 }
CSCShowerDigi.h
MessageLogger.h
CSCShowerDigi::kTight
Definition: CSCShowerDigi.h:12
CSCShowerDigi
Definition: CSCShowerDigi.h:9
CSCShowerDigi::isLooseInTime
bool isLooseInTime() const
Definition: CSCShowerDigi.cc:26
operator<<
std::ostream & operator<<(std::ostream &o, const CSCShowerDigi &digi)
Definition: CSCShowerDigi.cc:38
CSCShowerDigi::kNominal
Definition: CSCShowerDigi.h:12
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:42
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::CSCShowerDigi
CSCShowerDigi()
default
Definition: CSCShowerDigi.cc:13
CSCShowerDigi::bitsInTime_
uint16_t bitsInTime_
Definition: CSCShowerDigi.h:41
CSCShowerDigi::isValid
bool isValid() const
data
Definition: CSCShowerDigi.cc:21
CSCShowerDigi::clear
void clear()
clear this Shower
Definition: CSCShowerDigi.cc:15
CSCShowerDigi::isNominalOutOfTime
bool isNominalOutOfTime() const
Definition: CSCShowerDigi.cc:34
CSCShowerDigi::bitsOutOfTime_
uint16_t bitsOutOfTime_
Definition: CSCShowerDigi.h:42
std
Definition: JetResolutionObject.h:76
CSCShowerDigi::isTightInTime
bool isTightInTime() const
Definition: CSCShowerDigi.cc:30
CSCShowerDigi::isNominalInTime
bool isNominalInTime() const
Definition: CSCShowerDigi.cc:28
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
CSCShowerDigi::isTightOutOfTime
bool isTightOutOfTime() const
Definition: CSCShowerDigi.cc:36
CSCShowerDigi::cscID_
uint16_t cscID_
Definition: CSCShowerDigi.h:44