CMS 3D CMS Logo

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

#include <GEMPadDigiCluster.h>

Public Member Functions

int bx () const
 
 GEMPadDigiCluster (std::vector< uint16_t > pads, int bx)
 
 GEMPadDigiCluster ()
 
bool operator!= (const GEMPadDigiCluster &digi) const
 
bool operator< (const GEMPadDigiCluster &digi) const
 Precedence operator. More...
 
bool operator== (const GEMPadDigiCluster &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 GEM pad digis with the same BX

Author
Sven Dildick

Definition at line 17 of file GEMPadDigiCluster.h.

Constructor & Destructor Documentation

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

Definition at line 4 of file GEMPadDigiCluster.cc.

4  :
5  v_(pads),
6  bx_(bx)
7 {}
const std::vector< uint16_t > & pads() const
std::vector< uint16_t > v_
GEMPadDigiCluster::GEMPadDigiCluster ( )

Definition at line 9 of file GEMPadDigiCluster.cc.

9  :
10  v_(std::vector<uint16_t>()),
11  bx_(0)
12 {}
std::vector< uint16_t > v_

Member Function Documentation

int GEMPadDigiCluster::bx ( ) const
inline

Definition at line 28 of file GEMPadDigiCluster.h.

References bx_, and print().

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

28 { return bx_; }
bool GEMPadDigiCluster::operator!= ( const GEMPadDigiCluster digi) const

Definition at line 23 of file GEMPadDigiCluster.cc.

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

24 {
25  return v_ != digi.pads() or bx_ != digi.bx();
26 }
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
const std::vector< uint16_t > & pads() const
std::vector< uint16_t > v_
bool GEMPadDigiCluster::operator< ( const GEMPadDigiCluster digi) const

Precedence operator.

Definition at line 30 of file GEMPadDigiCluster.cc.

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

31 {
32  if(digi.bx() == bx_)
33  return digi.pads().front() < v_.front();
34  else
35  return digi.bx() < bx_;
36 }
const std::vector< uint16_t > & pads() const
std::vector< uint16_t > v_
bool GEMPadDigiCluster::operator== ( const GEMPadDigiCluster digi) const

Definition at line 16 of file GEMPadDigiCluster.cc.

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

17 {
18  return v_ == digi.pads() and bx_ == digi.bx();
19 }
const std::vector< uint16_t > & pads() const
std::vector< uint16_t > v_
const std::vector<uint16_t>& GEMPadDigiCluster::pads ( ) const
inline

Definition at line 27 of file GEMPadDigiCluster.h.

References v_.

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

27 { return v_; }
std::vector< uint16_t > v_
void GEMPadDigiCluster::print ( void  ) const

Definition at line 48 of file GEMPadDigiCluster.cc.

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

Referenced by bx().

49 {
50  std::cout << " bx: " << bx() << " pads: ";
51  for (auto p: pads()) std::cout << " " << p;
52  std::cout << std::endl;
53 }
const std::vector< uint16_t > & pads() const

Member Data Documentation

int32_t GEMPadDigiCluster::bx_
private

Definition at line 34 of file GEMPadDigiCluster.h.

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

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

Definition at line 33 of file GEMPadDigiCluster.h.

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