CMS 3D CMS Logo

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

#include <ME0PadDigiCluster.h>

Public Member Functions

int bx () const
 
 ME0PadDigiCluster ()
 
 ME0PadDigiCluster (std::vector< uint16_t > pads, int bx)
 
bool operator!= (const ME0PadDigiCluster &digi) const
 
bool operator< (const ME0PadDigiCluster &digi) const
 Precedence operator. More...
 
bool operator== (const ME0PadDigiCluster &digi) const
 
const std::vector< uint16_t > & pads () const
 
void print () const
 

Private Attributes

int32_t bx_
 
std::vector< uint16_t > v_
 

Detailed Description

Cluster of maximal 8 adjacent ME0 pad digis with the same BX

Author
Sven Dildick

Definition at line 17 of file ME0PadDigiCluster.h.

Constructor & Destructor Documentation

◆ ME0PadDigiCluster() [1/2]

ME0PadDigiCluster::ME0PadDigiCluster ( std::vector< uint16_t >  pads,
int  bx 
)
explicit

Definition at line 4 of file ME0PadDigiCluster.cc.

4 : v_(pads), bx_(bx) {}

◆ ME0PadDigiCluster() [2/2]

ME0PadDigiCluster::ME0PadDigiCluster ( )

Definition at line 6 of file ME0PadDigiCluster.cc.

6 : v_(std::vector<uint16_t>()), bx_(0) {}

Member Function Documentation

◆ bx()

int ME0PadDigiCluster::bx ( ) const
inline

Definition at line 27 of file ME0PadDigiCluster.h.

27 { return bx_; }

References bx_.

Referenced by operator!=(), operator<(), operator<<(), operator==(), and print().

◆ operator!=()

bool ME0PadDigiCluster::operator!= ( const ME0PadDigiCluster digi) const

Definition at line 14 of file ME0PadDigiCluster.cc.

14  {
15  return v_ != digi.pads() or bx_ != digi.bx();
16 }

References bx(), bx_, or, pads(), and v_.

◆ operator<()

bool ME0PadDigiCluster::operator< ( const ME0PadDigiCluster digi) const

Precedence operator.

Definition at line 19 of file ME0PadDigiCluster.cc.

19  {
20  if (digi.bx() == bx_)
21  return digi.pads().front() < v_.front();
22  else
23  return digi.bx() < bx_;
24 }

References bx(), bx_, pads(), and v_.

◆ operator==()

bool ME0PadDigiCluster::operator== ( const ME0PadDigiCluster digi) const

Definition at line 9 of file ME0PadDigiCluster.cc.

9  {
10  return v_ == digi.pads() and bx_ == digi.bx();
11 }

References bx(), bx_, pads(), and v_.

◆ pads()

const std::vector<uint16_t>& ME0PadDigiCluster::pads ( ) const
inline

Definition at line 26 of file ME0PadDigiCluster.h.

26 { return v_; }

References v_.

Referenced by operator!=(), operator<(), operator<<(), operator==(), and print().

◆ print()

void ME0PadDigiCluster::print ( void  ) const

Definition at line 34 of file ME0PadDigiCluster.cc.

34  {
35  std::cout << " bx: " << bx() << " pads: ";
36  for (auto p : pads())
37  std::cout << " " << p;
38  std::cout << std::endl;
39 }

References bx(), gather_cfg::cout, AlCaHLTBitMon_ParallelJobs::p, and pads().

Member Data Documentation

◆ bx_

int32_t ME0PadDigiCluster::bx_
private

Definition at line 33 of file ME0PadDigiCluster.h.

Referenced by bx(), operator!=(), operator<(), and operator==().

◆ v_

std::vector<uint16_t> ME0PadDigiCluster::v_
private

Definition at line 32 of file ME0PadDigiCluster.h.

Referenced by operator!=(), operator<(), operator==(), and pads().

ME0PadDigiCluster::pads
const std::vector< uint16_t > & pads() const
Definition: ME0PadDigiCluster.h:26
gather_cfg.cout
cout
Definition: gather_cfg.py:144
ME0PadDigiCluster::v_
std::vector< uint16_t > v_
Definition: ME0PadDigiCluster.h:32
ME0PadDigiCluster::bx
int bx() const
Definition: ME0PadDigiCluster.h:27
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
ME0PadDigiCluster::bx_
int32_t bx_
Definition: ME0PadDigiCluster.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