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 ()
 
 GEMPadDigiCluster (std::vector< uint16_t > pads, int bx)
 
bool isValid () const
 
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() [1/2]

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

Definition at line 4 of file GEMPadDigiCluster.cc.

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

◆ GEMPadDigiCluster() [2/2]

GEMPadDigiCluster::GEMPadDigiCluster ( )

Definition at line 6 of file GEMPadDigiCluster.cc.

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

Member Function Documentation

◆ bx()

int GEMPadDigiCluster::bx ( ) const
inline

Definition at line 28 of file GEMPadDigiCluster.h.

28 { return bx_; }

References bx_.

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

◆ isValid()

bool GEMPadDigiCluster::isValid ( void  ) const

Definition at line 26 of file GEMPadDigiCluster.cc.

26 { return !v_.empty() and bx_ != -99; }

References bx_, and v_.

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

◆ operator!=()

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

Definition at line 14 of file GEMPadDigiCluster.cc.

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

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

◆ operator<()

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

Precedence operator.

Definition at line 19 of file GEMPadDigiCluster.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 GEMPadDigiCluster::operator== ( const GEMPadDigiCluster digi) const

Definition at line 9 of file GEMPadDigiCluster.cc.

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

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

◆ pads()

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

Definition at line 27 of file GEMPadDigiCluster.h.

27 { return v_; }

References v_.

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

◆ print()

void GEMPadDigiCluster::print ( void  ) const

Definition at line 36 of file GEMPadDigiCluster.cc.

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

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

Member Data Documentation

◆ bx_

int32_t GEMPadDigiCluster::bx_
private

Definition at line 34 of file GEMPadDigiCluster.h.

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

◆ v_

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

Definition at line 33 of file GEMPadDigiCluster.h.

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

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