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

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  }

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

Member Function Documentation

◆ isBarrel()

bool DetCoordinates::isBarrel ( )
inline

Definition at line 73 of file Phase1PixelROCMaps.h.

73 { return (m_layer > 0); }

References m_layer.

Referenced by printCoordinates().

◆ isEndcap()

bool DetCoordinates::isEndcap ( )
inline

Definition at line 74 of file Phase1PixelROCMaps.h.

74 { return (m_ring > 0); }

References m_ring.

◆ printCoordinates()

void DetCoordinates::printCoordinates ( )
inline

Definition at line 63 of file Phase1PixelROCMaps.h.

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  }

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

Referenced by Phase1PixelROCMaps::findDetCoordinates().

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
DetCoordinates::m_s_disk
int m_s_disk
Definition: Phase1PixelROCMaps.h:47
DetCoordinates::isBarrel
bool isBarrel()
Definition: Phase1PixelROCMaps.h:73
edm::LogPrint
Log< level::Warning, true > LogPrint
Definition: MessageLogger.h:130
DetCoordinates::m_panel
int m_panel
Definition: Phase1PixelROCMaps.h:48
DetCoordinates::m_isFlipped
bool m_isFlipped
Definition: Phase1PixelROCMaps.h:49
DetCoordinates::m_s_blade
int m_s_blade
Definition: Phase1PixelROCMaps.h:46
DetCoordinates::m_s_ladder
int m_s_ladder
Definition: Phase1PixelROCMaps.h:43
DetCoordinates::m_s_module
int m_s_module
Definition: Phase1PixelROCMaps.h:44
DetCoordinates::m_ring
int m_ring
Definition: Phase1PixelROCMaps.h:45
DetCoordinates::m_layer
int m_layer
Definition: Phase1PixelROCMaps.h:42