CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
SiPixelPI::topolInfo Struct Reference

#include <SiPixelPayloadInspectorHelper.h>

Public Member Functions

void fillGeometryInfo (const DetId &detId, const TrackerTopology &tTopo, bool isPhase0)
 
SiPixelPI::regions filterThePartition ()
 
void init ()
 
void printAll ()
 
bool sanityCheck ()
 
virtual ~topolInfo ()
 

Private Attributes

bool m_isInternal
 
int m_layer
 
uint32_t m_rawid
 
int m_ring
 
int m_side
 
int m_subdetid
 

Detailed Description

Definition at line 582 of file SiPixelPayloadInspectorHelper.h.

Constructor & Destructor Documentation

◆ ~topolInfo()

virtual SiPixelPI::topolInfo::~topolInfo ( )
inlinevirtual

Definition at line 597 of file SiPixelPayloadInspectorHelper.h.

597 {}

Member Function Documentation

◆ fillGeometryInfo()

void SiPixelPI::topolInfo::fillGeometryInfo ( const DetId detId,
const TrackerTopology tTopo,
bool  isPhase0 
)

Definition at line 631 of file SiPixelPayloadInspectorHelper.h.

633  {
634  unsigned int subdetId = static_cast<unsigned int>(detId.subdetId());
635 
636  m_rawid = detId.rawId();
637  m_subdetid = subdetId;
638  if (subdetId == PixelSubdetector::PixelBarrel) {
639  m_layer = tTopo.pxbLayer(detId.rawId());
640  m_isInternal = !SiPixelPI::isBPixOuterLadder(detId, tTopo, isPhase0);
641  } else if (subdetId == PixelSubdetector::PixelEndcap) {
642  m_layer = tTopo.pxfDisk(detId.rawId());
643  m_side = tTopo.pxfSide(detId.rawId());
644  } else
645  edm::LogWarning("LogicError") << "Unknown subdetid: " << subdetId;
646  }

References SiPixelPI::isBPixOuterLadder(), m_isInternal, m_layer, m_rawid, m_side, m_subdetid, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, TrackerTopology::pxbLayer(), TrackerTopology::pxfDisk(), TrackerTopology::pxfSide(), DetId::rawId(), and DetId::subdetId().

◆ filterThePartition()

SiPixelPI::regions SiPixelPI::topolInfo::filterThePartition ( )

Definition at line 651 of file SiPixelPayloadInspectorHelper.h.

653  {
655 
656  // BPix
657  if (m_subdetid == 1) {
658  switch (m_layer) {
659  case 1:
661  break;
662  case 2:
664  break;
665  case 3:
667  break;
668  case 4:
670  break;
671  default:
672  edm::LogWarning("LogicError") << "Unknow BPix layer: " << m_layer;
673  break;
674  }
675  // FPix
676  } else if (m_subdetid == 2) {
677  switch (m_layer) {
678  case 1:
680  break;
681  case 2:
683  break;
684  case 3:
686  break;
687  default:
688  edm::LogWarning("LogicError") << "Unknow FPix disk: " << m_layer;
689  break;
690  }
691  }
692  return ret;
693  }

References SiPixelPI::BPixL1i, SiPixelPI::BPixL1o, SiPixelPI::BPixL2i, SiPixelPI::BPixL2o, SiPixelPI::BPixL3i, SiPixelPI::BPixL3o, SiPixelPI::BPixL4i, SiPixelPI::BPixL4o, SiPixelPI::FPixmL1, SiPixelPI::FPixmL2, SiPixelPI::FPixmL3, SiPixelPI::FPixpL1, SiPixelPI::FPixpL2, SiPixelPI::FPixpL3, m_isInternal, m_layer, m_side, m_subdetid, SiPixelPI::NUM_OF_REGIONS, and runTheMatrix::ret.

◆ init()

void SiPixelPI::topolInfo::init ( void  )

Definition at line 609 of file SiPixelPayloadInspectorHelper.h.

611  {
612  m_rawid = 0;
613  m_subdetid = -1;
614  m_layer = -1;
615  m_side = -1;
616  m_ring = -1;
617  m_isInternal = false;
618  };

References m_isInternal, m_layer, m_rawid, m_ring, m_side, and m_subdetid.

◆ printAll()

void SiPixelPI::topolInfo::printAll ( )

Definition at line 601 of file SiPixelPayloadInspectorHelper.h.

603  {
604  std::cout << " detId:" << m_rawid << " subdetid: " << m_subdetid << " layer: " << m_layer << " side: " << m_side
605  << " ring: " << m_ring << " isInternal:" << m_isInternal << std::endl;
606  }

References gather_cfg::cout, m_isInternal, m_layer, m_rawid, m_ring, m_side, and m_subdetid.

◆ sanityCheck()

bool SiPixelPI::topolInfo::sanityCheck ( )

Definition at line 621 of file SiPixelPayloadInspectorHelper.h.

623  {
624  if (m_layer == 0 || (m_subdetid == 1 && m_layer > 4) || (m_subdetid == 2 && m_layer > 3)) {
625  return false;
626  } else {
627  return true;
628  }
629  }

References m_layer, and m_subdetid.

Member Data Documentation

◆ m_isInternal

bool SiPixelPI::topolInfo::m_isInternal
private

◆ m_layer

int SiPixelPI::topolInfo::m_layer
private

◆ m_rawid

uint32_t SiPixelPI::topolInfo::m_rawid
private

Definition at line 584 of file SiPixelPayloadInspectorHelper.h.

Referenced by fillGeometryInfo(), init(), and printAll().

◆ m_ring

int SiPixelPI::topolInfo::m_ring
private

Definition at line 588 of file SiPixelPayloadInspectorHelper.h.

Referenced by init(), and printAll().

◆ m_side

int SiPixelPI::topolInfo::m_side
private

◆ m_subdetid

int SiPixelPI::topolInfo::m_subdetid
private
runTheMatrix.ret
ret
prodAgent to be discontinued
Definition: runTheMatrix.py:355
SiPixelPI::topolInfo::m_subdetid
int m_subdetid
Definition: SiPixelPayloadInspectorHelper.h:585
PixelSubdetector::PixelEndcap
Definition: PixelSubdetector.h:11
PixelSubdetector::PixelBarrel
Definition: PixelSubdetector.h:11
SiPixelPI::BPixL4i
Definition: SiPixelPayloadInspectorHelper.h:509
TrackerTopology::pxfSide
unsigned int pxfSide(const DetId &id) const
Definition: TrackerTopology.h:192
SiPixelPI::topolInfo::m_layer
int m_layer
Definition: SiPixelPayloadInspectorHelper.h:586
SiPixelPI::topolInfo::m_isInternal
bool m_isInternal
Definition: SiPixelPayloadInspectorHelper.h:589
gather_cfg.cout
cout
Definition: gather_cfg.py:144
SiPixelPI::FPixpL3
Definition: SiPixelPayloadInspectorHelper.h:515
SiPixelPI::BPixL1i
Definition: SiPixelPayloadInspectorHelper.h:503
TrackerTopology::pxbLayer
unsigned int pxbLayer(const DetId &id) const
Definition: TrackerTopology.h:144
SiPixelPI::BPixL3i
Definition: SiPixelPayloadInspectorHelper.h:507
SiPixelPI::BPixL3o
Definition: SiPixelPayloadInspectorHelper.h:506
SiPixelPI::isBPixOuterLadder
bool isBPixOuterLadder(const DetId &detid, const TrackerTopology &tTopo, bool isPhase0)
Definition: SiPixelPayloadInspectorHelper.h:559
SiPixelPI::topolInfo::m_rawid
uint32_t m_rawid
Definition: SiPixelPayloadInspectorHelper.h:584
SiPixelPI::BPixL1o
Definition: SiPixelPayloadInspectorHelper.h:502
SiPixelPI::FPixmL1
Definition: SiPixelPayloadInspectorHelper.h:510
DetId::subdetId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
Definition: DetId.h:48
SiPixelPI::FPixpL1
Definition: SiPixelPayloadInspectorHelper.h:513
edm::LogWarning
Definition: MessageLogger.h:141
SiPixelPI::FPixpL2
Definition: SiPixelPayloadInspectorHelper.h:514
SiPixelPI::FPixmL2
Definition: SiPixelPayloadInspectorHelper.h:511
SiPixelPI::BPixL4o
Definition: SiPixelPayloadInspectorHelper.h:508
TrackerTopology::pxfDisk
unsigned int pxfDisk(const DetId &id) const
Definition: TrackerTopology.h:446
SiPixelPI::regions
regions
Definition: SiPixelPayloadInspectorHelper.h:501
SiPixelPI::NUM_OF_REGIONS
Definition: SiPixelPayloadInspectorHelper.h:516
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
SiPixelPI::FPixmL3
Definition: SiPixelPayloadInspectorHelper.h:512
SiPixelPI::topolInfo::m_side
int m_side
Definition: SiPixelPayloadInspectorHelper.h:587
SiPixelPI::BPixL2i
Definition: SiPixelPayloadInspectorHelper.h:505
SiPixelPI::topolInfo::m_ring
int m_ring
Definition: SiPixelPayloadInspectorHelper.h:588
SiPixelPI::BPixL2o
Definition: SiPixelPayloadInspectorHelper.h:504