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 42 of file Phase1PixelROCMaps.h.

Constructor & Destructor Documentation

◆ DetCoordinates()

DetCoordinates::DetCoordinates ( )
inline

Definition at line 53 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.

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

Member Function Documentation

◆ isBarrel()

bool DetCoordinates::isBarrel ( )
inline

Definition at line 74 of file Phase1PixelROCMaps.h.

References m_layer.

Referenced by printCoordinates().

74 { return (m_layer > 0); }

◆ isEndcap()

bool DetCoordinates::isEndcap ( )
inline

Definition at line 75 of file Phase1PixelROCMaps.h.

References m_ring.

75 { return (m_ring > 0); }

◆ isFlipped()

bool DetCoordinates::isFlipped ( )
inline

Definition at line 76 of file Phase1PixelROCMaps.h.

References m_isFlipped.

76 { return m_isFlipped; }

◆ printCoordinates()

void DetCoordinates::printCoordinates ( )
inline

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

64  {
65  if (this->isBarrel()) {
66  edm::LogPrint("DetCoordinates") << "layer: " << m_layer << " ladder: " << m_s_ladder << " module: " << m_s_module
67  << std::endl;
68  } else {
69  edm::LogPrint("DetCoordinates") << "ring: " << m_ring << " blade: " << m_s_blade << " panel: " << m_panel
70  << " disk: " << m_s_disk << std::endl;
71  }
72  }
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