CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
DetCoordinates Struct Reference

#include <Phase1PixelROCMaps.h>

Public Member Functions

 DetCoordinates ()
 
bool isBarrel ()
 
bool isEndcap ()
 
bool isFlipped ()
 
void printCoordinates ()
 

Public Attributes

bool m_isFlipped
 
int m_layer
 
int m_panel
 
int m_ring
 
int m_s_blade
 
int m_s_disk
 
int m_s_ladder
 
int m_s_module
 

Detailed Description

Definition at line 41 of file Phase1PixelROCMaps.h.

Constructor & Destructor Documentation

◆ DetCoordinates()

DetCoordinates::DetCoordinates ( )
inline

Definition at line 52 of file Phase1PixelROCMaps.h.

References m_isFlipped, m_layer, m_panel, m_ring, m_s_blade, m_s_disk, m_s_ladder, and m_s_module.

52  {
53  m_layer = -1;
54  m_s_ladder = -1;
55  m_s_module = -1;
56  m_ring = -1;
57  m_s_blade = -1;
58  m_s_disk = -1;
59  m_panel = -1;
60  m_isFlipped = false;
61  }

Member Function Documentation

◆ isBarrel()

bool DetCoordinates::isBarrel ( )
inline

Definition at line 73 of file Phase1PixelROCMaps.h.

References m_layer.

Referenced by printCoordinates().

73 { return (m_layer > 0); }

◆ isEndcap()

bool DetCoordinates::isEndcap ( )
inline

Definition at line 74 of file Phase1PixelROCMaps.h.

References m_ring.

74 { return (m_ring > 0); }

◆ isFlipped()

bool DetCoordinates::isFlipped ( )
inline

Definition at line 75 of file Phase1PixelROCMaps.h.

References m_isFlipped.

75 { return m_isFlipped; }

◆ printCoordinates()

void DetCoordinates::printCoordinates ( )
inline

Definition at line 63 of file Phase1PixelROCMaps.h.

References isBarrel(), m_panel, m_ring, m_s_blade, m_s_disk, m_s_ladder, and m_s_module.

Referenced by Phase1PixelROCMaps::findDetCoordinates().

63  {
64  if (this->isBarrel()) {
65  edm::LogPrint("DetCoordinates") << "layer: " << m_layer << " ladder: " << m_s_ladder << " module: " << m_s_module
66  << std::endl;
67  } else {
68  edm::LogPrint("DetCoordinates") << "ring: " << m_ring << " blade: " << m_s_blade << " panel: " << m_panel
69  << " disk: " << m_s_disk << std::endl;
70  }
71  }
Log< level::Warning, true > LogPrint

Member Data Documentation

◆ m_isFlipped

bool DetCoordinates::m_isFlipped

◆ m_layer

int DetCoordinates::m_layer

◆ m_panel

int DetCoordinates::m_panel

◆ m_ring

int DetCoordinates::m_ring

◆ m_s_blade

int DetCoordinates::m_s_blade

◆ m_s_disk

int DetCoordinates::m_s_disk

◆ m_s_ladder

int DetCoordinates::m_s_ladder

◆ m_s_module

int DetCoordinates::m_s_module