CMS 3D CMS Logo

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

#include <GEMPadDigiCluster.h>

Public Types

enum  InValid { GE11InValid = 255, GE21InValid = 511 }
 
enum  NumberPartitions { ME0 = 8, GE11 = 8, GE21 = 8, GE21SplitStrip = 16 }
 

Public Member Functions

int alctMatchTime () const
 
int bx () const
 
 GEMPadDigiCluster (std::vector< uint16_t > pads, int16_t bx, enum GEMSubDetId::Station station=GEMSubDetId::Station::GE11, unsigned nPart=NumberPartitions::GE11)
 
 GEMPadDigiCluster ()
 
bool isValid () const
 
unsigned nPartitions () 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
 
void setAlctMatchTime (int matchWin)
 
GEMSubDetId::Station station () const
 

Private Attributes

int alctMatchTime_ = -1
 
int32_t bx_
 
unsigned part_
 
GEMSubDetId::Station station_
 
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 19 of file GEMPadDigiCluster.h.

Member Enumeration Documentation

◆ InValid

Enumerator
GE11InValid 
GE21InValid 

Definition at line 21 of file GEMPadDigiCluster.h.

◆ NumberPartitions

Enumerator
ME0 
GE11 
GE21 
GE21SplitStrip 

Definition at line 24 of file GEMPadDigiCluster.h.

Constructor & Destructor Documentation

◆ GEMPadDigiCluster() [1/2]

GEMPadDigiCluster::GEMPadDigiCluster ( std::vector< uint16_t >  pads,
int16_t  bx,
enum GEMSubDetId::Station  station = GEMSubDetId::Station::GE11,
unsigned  nPart = NumberPartitions::GE11 
)
explicit

Definition at line 4 of file GEMPadDigiCluster.cc.

8  : v_(pads), bx_(bx), station_(station), part_(nPart) {}
const std::vector< uint16_t > & pads() const
std::vector< uint16_t > v_
TString nPart(Int_t part, TString string, TString delimit=";", Bool_t removerest=true)
GEMSubDetId::Station station_
GEMSubDetId::Station station() const

◆ GEMPadDigiCluster() [2/2]

GEMPadDigiCluster::GEMPadDigiCluster ( )

Definition at line 10 of file GEMPadDigiCluster.cc.

11  : v_(std::vector<uint16_t>()), bx_(-99), station_(GEMSubDetId::Station::GE11), part_(NumberPartitions::GE11) {}
std::vector< uint16_t > v_
GEMSubDetId::Station station_

Member Function Documentation

◆ alctMatchTime()

int GEMPadDigiCluster::alctMatchTime ( ) const
inline

Definition at line 47 of file GEMPadDigiCluster.h.

References alctMatchTime_.

Referenced by GEMInternalCluster::GEMInternalCluster().

47 { return alctMatchTime_; }

◆ bx()

int GEMPadDigiCluster::bx ( ) const
inline

◆ isValid()

bool GEMPadDigiCluster::isValid ( void  ) const

◆ nPartitions()

unsigned GEMPadDigiCluster::nPartitions ( ) const
inline

Definition at line 44 of file GEMPadDigiCluster.h.

References part_.

Referenced by GEMInternalCluster::mid1(), and GEMInternalCluster::mid2().

44 { return part_; }

◆ operator!=()

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

Definition at line 19 of file GEMPadDigiCluster.cc.

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

19  {
20  return v_ != digi.pads() or bx_ != digi.bx();
21 }
const std::vector< uint16_t > & pads() 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
std::vector< uint16_t > v_

◆ operator<()

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

Precedence operator.

Definition at line 24 of file GEMPadDigiCluster.cc.

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

24  {
25  if (digi.bx() == bx_)
26  return digi.pads().front() < v_.front();
27  else
28  return digi.bx() < bx_;
29 }
const std::vector< uint16_t > & pads() const
std::vector< uint16_t > v_

◆ operator==()

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

Definition at line 14 of file GEMPadDigiCluster.cc.

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

14  {
15  return v_ == digi.pads() and bx_ == digi.bx() and station_ == digi.station();
16 }
const std::vector< uint16_t > & pads() const
std::vector< uint16_t > v_
GEMSubDetId::Station station_
GEMSubDetId::Station station() const

◆ pads()

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

◆ print()

void GEMPadDigiCluster::print ( void  ) const

Definition at line 51 of file GEMPadDigiCluster.cc.

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

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

◆ setAlctMatchTime()

void GEMPadDigiCluster::setAlctMatchTime ( int  matchWin)
inline

Definition at line 48 of file GEMPadDigiCluster.h.

References alctMatchTime_.

Referenced by CSCGEMData::etaDigis().

48 { alctMatchTime_ = matchWin; }

◆ station()

GEMSubDetId::Station GEMPadDigiCluster::station ( ) const
inline

Member Data Documentation

◆ alctMatchTime_

int GEMPadDigiCluster::alctMatchTime_ = -1
private

Definition at line 53 of file GEMPadDigiCluster.h.

Referenced by alctMatchTime(), and setAlctMatchTime().

◆ bx_

int32_t GEMPadDigiCluster::bx_
private

Definition at line 52 of file GEMPadDigiCluster.h.

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

◆ part_

unsigned GEMPadDigiCluster::part_
private

Definition at line 56 of file GEMPadDigiCluster.h.

Referenced by nPartitions().

◆ station_

GEMSubDetId::Station GEMPadDigiCluster::station_
private

Definition at line 54 of file GEMPadDigiCluster.h.

Referenced by isValid(), operator==(), and station().

◆ v_

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

Definition at line 51 of file GEMPadDigiCluster.h.

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