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, const SiPixelPI::phase &ph)
 
SiPixelPI::regions filterThePartition ()
 
void init ()
 
bool isInternal ()
 
int layer ()
 
void printAll (std::stringstream &ss) const
 
int ring ()
 
bool sanityCheck ()
 
int side ()
 
int subDetId ()
 
virtual ~topolInfo ()
 

Private Attributes

bool m_isInternal
 
int m_layer
 
SiPixelPI::phase m_Phase
 
uint32_t m_rawid
 
int m_ring
 
int m_side
 
int m_subdetid
 

Detailed Description

Definition at line 682 of file SiPixelPayloadInspectorHelper.h.

Constructor & Destructor Documentation

◆ ~topolInfo()

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

Definition at line 704 of file SiPixelPayloadInspectorHelper.h.

704 {}

Member Function Documentation

◆ fillGeometryInfo()

void SiPixelPI::topolInfo::fillGeometryInfo ( const DetId detId,
const TrackerTopology tTopo,
const SiPixelPI::phase ph 
)
inline

Definition at line 739 of file SiPixelPayloadInspectorHelper.h.

References hcalRecHitTable_cff::detId, SiPixelPI::isBPixOuterLadder(), m_isInternal, m_layer, m_Phase, m_rawid, m_side, m_subdetid, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, TrackerTopology::pxbLayer(), TrackerTopology::pxfDisk(), TrackerTopology::pxfSide(), and SiPixelPI::zero.

Referenced by gainCalibHelper::SiPixelGainCalibrationByRegionComparisonBase< myType, PayloadType, nIOVs, ntags >::fill().

741  {
742  // set the phase
743  m_Phase = ph;
744  unsigned int subdetId = static_cast<unsigned int>(detId.subdetId());
745 
746  m_rawid = detId.rawId();
747  m_subdetid = subdetId;
748  if (subdetId == PixelSubdetector::PixelBarrel) {
749  m_layer = tTopo.pxbLayer(detId.rawId());
751  } else if (subdetId == PixelSubdetector::PixelEndcap) {
752  m_layer = tTopo.pxfDisk(detId.rawId());
753  m_side = tTopo.pxfSide(detId.rawId());
754  } else
755  edm::LogWarning("LogicError") << "Unknown subdetid: " << subdetId;
756  }
unsigned int pxbLayer(const DetId &id) const
unsigned int pxfDisk(const DetId &id) const
unsigned int pxfSide(const DetId &id) const
bool isBPixOuterLadder(const DetId &detid, const TrackerTopology &tTopo, bool isPhase0)
Log< level::Warning, false > LogWarning

◆ filterThePartition()

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

Definition at line 761 of file SiPixelPayloadInspectorHelper.h.

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

Referenced by gainCalibHelper::SiPixelGainCalibrationByRegionComparisonBase< myType, PayloadType, nIOVs, ntags >::fill().

763  {
765 
766  if (m_Phase == SiPixelPI::undefined) {
767  throw cms::Exception("LogicError") << "Cannot call filterThePartition BEFORE filling the geometry info!";
768  }
769 
770  // BPix
771  if (m_subdetid == 1) {
772  switch (m_layer) {
773  case 1:
775  break;
776  case 2:
778  break;
779  case 3:
781  break;
782  case 4:
784  break;
785  default:
786  edm::LogWarning("LogicError") << "Unknow BPix layer: " << m_layer;
787  break;
788  }
789  // FPix
790  } else if (m_subdetid == 2) {
791  switch (m_layer) {
792  case 1:
794  break;
795  case 2:
797  break;
798  case 3:
800  break;
801  default:
803  // warning message only if the phase2 is < 2
804  edm::LogWarning("LogicError") << "Unknow FPix disk: " << m_layer;
805  }
806  break;
807  }
808  }
809  return ret;
810  }
ret
prodAgent to be discontinued
Log< level::Warning, false > LogWarning

◆ init()

void SiPixelPI::topolInfo::init ( void  )
inline

◆ isInternal()

bool SiPixelPI::topolInfo::isInternal ( )
inline

Definition at line 701 of file SiPixelPayloadInspectorHelper.h.

References m_isInternal.

◆ layer()

int SiPixelPI::topolInfo::layer ( )
inline

◆ printAll()

void SiPixelPI::topolInfo::printAll ( std::stringstream &  ss) const
inline

◆ ring()

int SiPixelPI::topolInfo::ring ( )
inline

Definition at line 700 of file SiPixelPayloadInspectorHelper.h.

References m_ring.

Referenced by geometryXMLparser.CSCAlignable::index().

◆ sanityCheck()

bool SiPixelPI::topolInfo::sanityCheck ( )
inline

Definition at line 729 of file SiPixelPayloadInspectorHelper.h.

References m_layer, and m_subdetid.

731  {
732  if (m_layer == 0 || (m_subdetid == 1 && m_layer > 4) || (m_subdetid == 2 && m_layer > 3)) {
733  return false;
734  } else {
735  return true;
736  }
737  }

◆ side()

int SiPixelPI::topolInfo::side ( )
inline

Definition at line 699 of file SiPixelPayloadInspectorHelper.h.

References m_side.

◆ subDetId()

int SiPixelPI::topolInfo::subDetId ( )
inline

Definition at line 697 of file SiPixelPayloadInspectorHelper.h.

References m_subdetid.

Member Data Documentation

◆ m_isInternal

bool SiPixelPI::topolInfo::m_isInternal
private

◆ m_layer

int SiPixelPI::topolInfo::m_layer
private

◆ m_Phase

SiPixelPI::phase SiPixelPI::topolInfo::m_Phase
private

Definition at line 690 of file SiPixelPayloadInspectorHelper.h.

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

◆ m_rawid

uint32_t SiPixelPI::topolInfo::m_rawid
private

Definition at line 684 of file SiPixelPayloadInspectorHelper.h.

Referenced by fillGeometryInfo(), and init().

◆ m_ring

int SiPixelPI::topolInfo::m_ring
private

Definition at line 688 of file SiPixelPayloadInspectorHelper.h.

Referenced by init(), and ring().

◆ m_side

int SiPixelPI::topolInfo::m_side
private

Definition at line 687 of file SiPixelPayloadInspectorHelper.h.

Referenced by fillGeometryInfo(), filterThePartition(), init(), and side().

◆ m_subdetid

int SiPixelPI::topolInfo::m_subdetid
private