Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DCCALGeometry Class Reference

#include <DCCALGeometry.h>

+ Inheritance diagram for DCCALGeometry:

Public Member Functions

 JOBJECT_PUBLIC (DCCALGeometry)
 
 DCCALGeometry ()
 
 ~DCCALGeometry ()
 
bool isBlockActive (int row, int column) const
 
int numActiveBlocks () const
 
DVector2 positionOnFace (int row, int column) const
 
DVector2 positionOnFace (int channel) const
 
int channel (int row, int column) const
 
int row (int channel) const
 
int column (int channel) const
 
int row (float y) const
 
int column (float x) const
 
void toStrings (vector< pair< string, string > > &items) const
 

Static Public Member Functions

static double blockSize ()
 
static double blockLength ()
 
static double ccalFaceZ ()
 
static double ccalMidplane ()
 

Static Public Attributes

static const int kCCALBlocksWide = 12
 
static const int kCCALBlocksTall = 12
 
static const int kCCALMaxChannels = kCCALBlocksWide * kCCALBlocksTall
 
static const int kCCALMidBlock = (kCCALBlocksWide)/2
 
static const int kCCALBeamHoleSize = 2
 

Private Attributes

bool m_activeBlock [kCCALBlocksTall][kCCALBlocksWide]
 
DVector2 m_positionOnFace [kCCALBlocksTall][kCCALBlocksWide]
 
int m_channelNumber [kCCALBlocksTall][kCCALBlocksWide]
 
int m_row [kCCALMaxChannels]
 
int m_column [kCCALMaxChannels]
 
int m_numActiveBlocks
 

Detailed Description

Definition at line 17 of file DCCALGeometry.h.

Constructor & Destructor Documentation

DCCALGeometry::DCCALGeometry ( )
DCCALGeometry::~DCCALGeometry ( )
inline

Definition at line 23 of file DCCALGeometry.h.

Member Function Documentation

static double DCCALGeometry::blockLength ( )
inlinestatic

Definition at line 32 of file DCCALGeometry.h.

References k_cm.

Referenced by ccalMidplane().

static double DCCALGeometry::blockSize ( )
inlinestatic

Definition at line 31 of file DCCALGeometry.h.

References k_cm.

Referenced by column(), DCCALGeometry(), and row().

static double DCCALGeometry::ccalFaceZ ( )
inlinestatic

Definition at line 33 of file DCCALGeometry.h.

References k_cm.

Referenced by ccalMidplane().

static double DCCALGeometry::ccalMidplane ( )
inlinestatic

Definition at line 35 of file DCCALGeometry.h.

References blockLength(), and ccalFaceZ().

int DCCALGeometry::channel ( int  row,
int  column 
) const

Definition at line 89 of file DCCALGeometry.cc.

References column(), isBlockActive(), m_channelNumber, and row().

Referenced by column(), JEventProcessor_CCAL_online::evnt(), and row().

int DCCALGeometry::column ( int  channel) const
inline

Definition at line 47 of file DCCALGeometry.h.

References channel(), and m_column.

Referenced by channel(), isBlockActive(), DCCALHit_factory::LoadCCALConst(), and positionOnFace().

int DCCALGeometry::column ( float  x) const

Definition at line 66 of file DCCALGeometry.cc.

References blockSize(), and kCCALMidBlock.

bool DCCALGeometry::isBlockActive ( int  row,
int  column 
) const
DCCALGeometry::JOBJECT_PUBLIC ( DCCALGeometry  )
int DCCALGeometry::numActiveBlocks ( ) const
inline

Definition at line 38 of file DCCALGeometry.h.

References m_numActiveBlocks.

Referenced by DCCALHit_factory::LoadCCALConst().

DVector2 DCCALGeometry::positionOnFace ( int  row,
int  column 
) const
DVector2 DCCALGeometry::positionOnFace ( int  channel) const

Definition at line 81 of file DCCALGeometry.cc.

References m_column, m_numActiveBlocks, m_row, and positionOnFace().

int DCCALGeometry::row ( int  channel) const
inline
int DCCALGeometry::row ( float  y) const

Definition at line 60 of file DCCALGeometry.cc.

References blockSize(), and kCCALMidBlock.

void DCCALGeometry::toStrings ( vector< pair< string, string > > &  items) const
inline

Definition at line 53 of file DCCALGeometry.h.

References kCCALBeamHoleSize, kCCALBlocksTall, kCCALBlocksWide, and kCCALMaxChannels.

Member Data Documentation

const int DCCALGeometry::kCCALBeamHoleSize = 2
static

Definition at line 29 of file DCCALGeometry.h.

Referenced by toStrings().

const int DCCALGeometry::kCCALBlocksTall = 12
static
const int DCCALGeometry::kCCALBlocksWide = 12
static
const int DCCALGeometry::kCCALMaxChannels = kCCALBlocksWide * kCCALBlocksTall
static

Definition at line 27 of file DCCALGeometry.h.

Referenced by toStrings().

const int DCCALGeometry::kCCALMidBlock = (kCCALBlocksWide)/2
static

Definition at line 28 of file DCCALGeometry.h.

Referenced by column(), DCCALGeometry(), and row().

bool DCCALGeometry::m_activeBlock[kCCALBlocksTall][kCCALBlocksWide]
private

Definition at line 62 of file DCCALGeometry.h.

Referenced by DCCALGeometry(), and isBlockActive().

int DCCALGeometry::m_channelNumber[kCCALBlocksTall][kCCALBlocksWide]
private

Definition at line 65 of file DCCALGeometry.h.

Referenced by channel(), and DCCALGeometry().

int DCCALGeometry::m_column[kCCALMaxChannels]
private

Definition at line 67 of file DCCALGeometry.h.

Referenced by column(), DCCALGeometry(), and positionOnFace().

int DCCALGeometry::m_numActiveBlocks
private

Definition at line 69 of file DCCALGeometry.h.

Referenced by DCCALGeometry(), numActiveBlocks(), and positionOnFace().

DVector2 DCCALGeometry::m_positionOnFace[kCCALBlocksTall][kCCALBlocksWide]
private

Definition at line 63 of file DCCALGeometry.h.

Referenced by DCCALGeometry(), and positionOnFace().

int DCCALGeometry::m_row[kCCALMaxChannels]
private

Definition at line 66 of file DCCALGeometry.h.

Referenced by DCCALGeometry(), positionOnFace(), and row().


The documentation for this class was generated from the following files: