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

Constructor & Destructor Documentation

◆ ~topolInfo()

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

Definition at line 686 of file SiPixelPayloadInspectorHelper.h.

686 {}

Member Function Documentation

◆ fillGeometryInfo()

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

Definition at line 721 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().

723  {
724  // set the phase
725  m_Phase = ph;
726  unsigned int subdetId = static_cast<unsigned int>(detId.subdetId());
727 
728  m_rawid = detId.rawId();
729  m_subdetid = subdetId;
730  if (subdetId == PixelSubdetector::PixelBarrel) {
731  m_layer = tTopo.pxbLayer(detId.rawId());
733  } else if (subdetId == PixelSubdetector::PixelEndcap) {
734  m_layer = tTopo.pxfDisk(detId.rawId());
735  m_side = tTopo.pxfSide(detId.rawId());
736  } else
737  edm::LogWarning("LogicError") << "Unknown subdetid: " << subdetId;
738  }
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 743 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().

745  {
747 
748  if (m_Phase == SiPixelPI::undefined) {
749  throw cms::Exception("LogicError") << "Cannot call filterThePartition BEFORE filling the geometry info!";
750  }
751 
752  // BPix
753  if (m_subdetid == 1) {
754  switch (m_layer) {
755  case 1:
757  break;
758  case 2:
760  break;
761  case 3:
763  break;
764  case 4:
766  break;
767  default:
768  edm::LogWarning("LogicError") << "Unknow BPix layer: " << m_layer;
769  break;
770  }
771  // FPix
772  } else if (m_subdetid == 2) {
773  switch (m_layer) {
774  case 1:
776  break;
777  case 2:
779  break;
780  case 3:
782  break;
783  default:
785  // warning message only if the phase2 is < 2
786  edm::LogWarning("LogicError") << "Unknow FPix disk: " << m_layer;
787  }
788  break;
789  }
790  }
791  return ret;
792  }
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 683 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 682 of file SiPixelPayloadInspectorHelper.h.

References m_ring.

Referenced by geometryXMLparser.CSCAlignable::index().

◆ sanityCheck()

bool SiPixelPI::topolInfo::sanityCheck ( )
inline

Definition at line 711 of file SiPixelPayloadInspectorHelper.h.

References m_layer, and m_subdetid.

713  {
714  if (m_layer == 0 || (m_subdetid == 1 && m_layer > 4) || (m_subdetid == 2 && m_layer > 3)) {
715  return false;
716  } else {
717  return true;
718  }
719  }

◆ side()

int SiPixelPI::topolInfo::side ( )
inline

Definition at line 681 of file SiPixelPayloadInspectorHelper.h.

References m_side.

◆ subDetId()

int SiPixelPI::topolInfo::subDetId ( )
inline

Definition at line 679 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 672 of file SiPixelPayloadInspectorHelper.h.

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

◆ m_rawid

uint32_t SiPixelPI::topolInfo::m_rawid
private

Definition at line 666 of file SiPixelPayloadInspectorHelper.h.

Referenced by fillGeometryInfo(), and init().

◆ m_ring

int SiPixelPI::topolInfo::m_ring
private

Definition at line 670 of file SiPixelPayloadInspectorHelper.h.

Referenced by init(), and ring().

◆ m_side

int SiPixelPI::topolInfo::m_side
private

Definition at line 669 of file SiPixelPayloadInspectorHelper.h.

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

◆ m_subdetid

int SiPixelPI::topolInfo::m_subdetid
private