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 bx () const
 
 GEMPadDigiCluster ()
 
 GEMPadDigiCluster (std::vector< uint16_t > pads, int16_t bx, enum GEMSubDetId::Station station=GEMSubDetId::Station::GE11, unsigned nPart=NumberPartitions::GE11)
 
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
 
GEMSubDetId::Station station () const
 

Private Attributes

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.

21 { GE11InValid = 255, GE21InValid = 511 };

◆ NumberPartitions

Enumerator
ME0 
GE11 
GE21 
GE21SplitStrip 

Definition at line 24 of file GEMPadDigiCluster.h.

24 { ME0 = 8, GE11 = 8, GE21 = 8, GE21SplitStrip = 16 };

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) {}

◆ 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) {}

Member Function Documentation

◆ bx()

int GEMPadDigiCluster::bx ( ) const
inline

Definition at line 40 of file GEMPadDigiCluster.h.

40 { return bx_; }

References bx_.

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

◆ isValid()

bool GEMPadDigiCluster::isValid ( void  ) const

Definition at line 31 of file GEMPadDigiCluster.cc.

31  {
32  // empty clusters are always invalid
33  if (v_.empty())
34  return false;
35 
36  uint16_t invalid = GE11InValid;
39  }
40  return v_[0] != invalid;
41 }

References GE11InValid, GEMSubDetId::GE21, GE21InValid, invalid, station_, and v_.

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

◆ nPartitions()

unsigned GEMPadDigiCluster::nPartitions ( ) const
inline

Definition at line 43 of file GEMPadDigiCluster.h.

43 { return part_; }

References part_.

◆ operator!=()

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

Definition at line 19 of file GEMPadDigiCluster.cc.

19  {
20  return v_ != digi.pads() or bx_ != digi.bx();
21 }

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

◆ operator<()

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

Precedence operator.

Definition at line 24 of file GEMPadDigiCluster.cc.

24  {
25  if (digi.bx() == bx_)
26  return digi.pads().front() < v_.front();
27  else
28  return digi.bx() < bx_;
29 }

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

◆ operator==()

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

Definition at line 14 of file GEMPadDigiCluster.cc.

14  {
15  return v_ == digi.pads() and bx_ == digi.bx() and station_ == digi.station();
16 }

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

◆ pads()

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

Definition at line 39 of file GEMPadDigiCluster.h.

39 { return v_; }

References v_.

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

◆ print()

void GEMPadDigiCluster::print ( void  ) const

Definition at line 51 of file GEMPadDigiCluster.cc.

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

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

◆ station()

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

Definition at line 41 of file GEMPadDigiCluster.h.

41 { return station_; }

References station_.

Referenced by geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), and operator==().

Member Data Documentation

◆ bx_

int32_t GEMPadDigiCluster::bx_
private

Definition at line 48 of file GEMPadDigiCluster.h.

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

◆ part_

unsigned GEMPadDigiCluster::part_
private

Definition at line 51 of file GEMPadDigiCluster.h.

Referenced by nPartitions().

◆ station_

GEMSubDetId::Station GEMPadDigiCluster::station_
private

Definition at line 49 of file GEMPadDigiCluster.h.

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

◆ v_

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

Definition at line 47 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::GE21InValid
Definition: GEMPadDigiCluster.h:21
GEMPadDigiCluster::pads
const std::vector< uint16_t > & pads() const
Definition: GEMPadDigiCluster.h:39
GEMPadDigiCluster::ME0
Definition: GEMPadDigiCluster.h:24
CTPPSpixelLocalTrackReconstructionInfo::invalid
GEMPadDigiCluster::bx
int bx() const
Definition: GEMPadDigiCluster.h:40
GEMSubDetId::Station::GE21
GEMPadDigiCluster::GE21
Definition: GEMPadDigiCluster.h:24
nPart
TString nPart(Int_t part, TString string, TString delimit=";", Bool_t removerest=true)
GEMPadDigiCluster::GE11InValid
Definition: GEMPadDigiCluster.h:21
GEMPadDigiCluster::bx_
int32_t bx_
Definition: GEMPadDigiCluster.h:48
GEMPadDigiCluster::part_
unsigned part_
Definition: GEMPadDigiCluster.h:51
GEMPadDigiCluster::station_
GEMSubDetId::Station station_
Definition: GEMPadDigiCluster.h:49
GEMPadDigiCluster::v_
std::vector< uint16_t > v_
Definition: GEMPadDigiCluster.h:47
GEMPadDigiCluster::GE21SplitStrip
Definition: GEMPadDigiCluster.h:24
GEMSubDetId::Station::GE11
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
GEMPadDigiCluster::GE11
Definition: GEMPadDigiCluster.h:24
GEMPadDigiCluster::station
GEMSubDetId::Station station() const
Definition: GEMPadDigiCluster.h:41