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 544 of file SiPixelPayloadInspectorHelper.h.

Constructor & Destructor Documentation

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

Definition at line 559 of file SiPixelPayloadInspectorHelper.h.

559 {}

Member Function Documentation

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

Definition at line 593 of file SiPixelPayloadInspectorHelper.h.

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().

595  {
596  unsigned int subdetId = static_cast<unsigned int>(detId.subdetId());
597 
598  m_rawid = detId.rawId();
599  m_subdetid = subdetId;
600  if (subdetId == PixelSubdetector::PixelBarrel) {
601  m_layer = tTopo.pxbLayer(detId.rawId());
602  m_isInternal = !SiPixelPI::isBPixOuterLadder(detId, tTopo, isPhase0);
603  } else if (subdetId == PixelSubdetector::PixelEndcap) {
604  m_layer = tTopo.pxfDisk(detId.rawId());
605  m_side = tTopo.pxfSide(detId.rawId());
606  } else
607  edm::LogWarning("LogicError") << "Unknown subdetid: " << subdetId;
608  }
unsigned int pxfDisk(const DetId &id) const
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:48
unsigned int pxbLayer(const DetId &id) const
bool isBPixOuterLadder(const DetId &detid, const TrackerTopology &tTopo, bool isPhase0)
unsigned int pxfSide(const DetId &id) const
SiPixelPI::regions SiPixelPI::topolInfo::filterThePartition ( )

Definition at line 613 of file SiPixelPayloadInspectorHelper.h.

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.

615  {
617 
618  // BPix
619  if (m_subdetid == 1) {
620  switch (m_layer) {
621  case 1:
623  break;
624  case 2:
626  break;
627  case 3:
629  break;
630  case 4:
632  break;
633  default:
634  edm::LogWarning("LogicError") << "Unknow BPix layer: " << m_layer;
635  break;
636  }
637  // FPix
638  } else if (m_subdetid == 2) {
639  switch (m_layer) {
640  case 1:
641  m_side > 1 ? ret = SiPixelPI::FPixpL1 : ret = SiPixelPI::FPixmL1;
642  break;
643  case 2:
644  m_side > 1 ? ret = SiPixelPI::FPixpL2 : ret = SiPixelPI::FPixmL2;
645  break;
646  case 3:
647  m_side > 1 ? ret = SiPixelPI::FPixpL3 : ret = SiPixelPI::FPixmL3;
648  break;
649  default:
650  edm::LogWarning("LogicError") << "Unknow FPix disk: " << m_layer;
651  break;
652  }
653  }
654  return ret;
655  }
ret
prodAgent to be discontinued
void SiPixelPI::topolInfo::init ( void  )
void SiPixelPI::topolInfo::printAll ( )

Definition at line 563 of file SiPixelPayloadInspectorHelper.h.

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

565  {
566  std::cout << " detId:" << m_rawid << " subdetid: " << m_subdetid << " layer: " << m_layer << " side: " << m_side
567  << " ring: " << m_ring << " isInternal:" << m_isInternal << std::endl;
568  }
bool SiPixelPI::topolInfo::sanityCheck ( )

Definition at line 583 of file SiPixelPayloadInspectorHelper.h.

References m_layer, and m_subdetid.

585  {
586  if (m_layer == 0 || (m_subdetid == 1 && m_layer > 4) || (m_subdetid == 2 && m_layer > 3)) {
587  return false;
588  } else {
589  return true;
590  }
591  }

Member Data Documentation

bool SiPixelPI::topolInfo::m_isInternal
private
int SiPixelPI::topolInfo::m_layer
private
uint32_t SiPixelPI::topolInfo::m_rawid
private

Definition at line 546 of file SiPixelPayloadInspectorHelper.h.

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

int SiPixelPI::topolInfo::m_ring
private

Definition at line 550 of file SiPixelPayloadInspectorHelper.h.

Referenced by init(), and printAll().

int SiPixelPI::topolInfo::m_side
private
int SiPixelPI::topolInfo::m_subdetid
private