Hall-D Software
alpha
|
#include <DFCALGeometry.h>
Public Types | |
enum | { kBlocksWide = 59 } |
enum | { kBlocksTall = 59 } |
enum | { kMaxChannels = kBlocksWide * kBlocksTall } |
enum | { kMidBlock = ( kBlocksWide - 1 ) / 2 } |
enum | { kBeamHoleSize = 3 } |
Public Member Functions | |
JOBJECT_PUBLIC (DFCALGeometry) | |
DFCALGeometry () | |
~DFCALGeometry () | |
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 | radius () |
static double | blockLength () |
Private Attributes | |
bool | m_activeBlock [kBlocksTall][kBlocksWide] |
DVector2 | m_positionOnFace [kBlocksTall][kBlocksWide] |
int | m_channelNumber [kBlocksTall][kBlocksWide] |
int | m_row [kMaxChannels] |
int | m_column [kMaxChannels] |
int | m_numActiveBlocks |
Definition at line 18 of file DFCALGeometry.h.
anonymous enum |
Enumerator | |
---|---|
kBlocksWide |
Definition at line 42 of file DFCALGeometry.h.
anonymous enum |
Enumerator | |
---|---|
kBlocksTall |
Definition at line 43 of file DFCALGeometry.h.
anonymous enum |
Enumerator | |
---|---|
kMaxChannels |
Definition at line 44 of file DFCALGeometry.h.
anonymous enum |
Enumerator | |
---|---|
kMidBlock |
Definition at line 45 of file DFCALGeometry.h.
anonymous enum |
Enumerator | |
---|---|
kBeamHoleSize |
Definition at line 46 of file DFCALGeometry.h.
DFCALGeometry::DFCALGeometry | ( | ) |
Definition at line 18 of file DFCALGeometry.cc.
References blockSize(), kBeamHoleSize, kBlocksTall, kBlocksWide, kMidBlock, m_activeBlock, m_channelNumber, m_column, m_numActiveBlocks, m_positionOnFace, m_row, radius(), row(), and sqrt().
|
inline |
Definition at line 35 of file DFCALGeometry.h.
|
inlinestatic |
Definition at line 50 of file DFCALGeometry.h.
References k_cm.
Referenced by DFCALShower_factory::evnt(), JEventProcessor_FCAL_TimingOffsets::evnt(), and DFCALCluster::update().
|
inlinestatic |
Definition at line 48 of file DFCALGeometry.h.
References k_cm.
Referenced by column(), DFCALGeometry(), hdv_mainframe::DrawDetectorsRPhi(), hdv_mainframe::DrawDetectorsXY(), and row().
int DFCALGeometry::channel | ( | int | row, |
int | column | ||
) | const |
Definition at line 103 of file DFCALGeometry.cc.
References column(), isBlockActive(), m_channelNumber, and row().
Referenced by JEventProcessor_FCALpulsepeak::evnt(), DFCALCluster_factory::evnt(), JEventProcessor_FCALLEDTree::evnt(), DEventProcessor_fcal_hists::evnt(), JEventProcessor_FCAL_online::evnt(), JEventProcessor_lowlevel_online::evnt(), hdv_mainframe::GetFCALPolyLine(), and JEventProcessor_FCALgains::XYtoAbsNum().
|
inline |
Definition at line 65 of file DFCALGeometry.h.
Referenced by JEventProcessor_FCALgains::AbsNumtoXY(), DL1MCTrigger_factory::brun(), channel(), hdv_mainframe::DrawDetectorsRPhi(), hdv_mainframe::DrawDetectorsXY(), DEventProcessor_fcal_charged::evnt(), DFCALHit_factory::FillCalibTable(), DCustomAction_p2pi_unusedHists::FillTrack(), hdv_mainframe::GetFCALPolyLine(), isBlockActive(), DL1MCTrigger_factory::LoadFCALConst(), main(), positionOnFace(), and DParticleID::PredictFCALHit().
int DFCALGeometry::column | ( | float | x | ) | const |
Definition at line 80 of file DFCALGeometry.cc.
References blockSize(), and kMidBlock.
bool DFCALGeometry::isBlockActive | ( | int | row, |
int | column | ||
) | const |
Definition at line 56 of file DFCALGeometry.cc.
References column(), kBlocksTall, kBlocksWide, m_activeBlock, and row().
Referenced by DL1MCTrigger_factory::brun(), channel(), hdv_mainframe::DrawDetectorsRPhi(), hdv_mainframe::DrawDetectorsXY(), DFCALHit_factory::evnt(), DEventSourceHDDM::Extract_DFCALHit(), DFCALHit_factory::FillCalibTable(), DL1MCTrigger_factory::LoadFCALConst(), and DParticleID::PredictFCALHit().
DFCALGeometry::JOBJECT_PUBLIC | ( | DFCALGeometry | ) |
|
inline |
Definition at line 56 of file DFCALGeometry.h.
Referenced by DFCALHit_factory::FillCalibTable(), and DL1MCTrigger_factory::LoadFCALConst().
DVector2 DFCALGeometry::positionOnFace | ( | int | row, |
int | column | ||
) | const |
Definition at line 86 of file DFCALGeometry.cc.
References column(), m_positionOnFace, and row().
Referenced by DL1MCTrigger_factory::brun(), hdv_mainframe::DrawDetectorsRPhi(), hdv_mainframe::DrawDetectorsXY(), JEventProcessor_TRIG_online::evnt(), DFCALHit_factory::evnt(), DEventSourceHDDM::Extract_DFCALHit(), MyProcessor::FillGraphics(), main(), and positionOnFace().
DVector2 DFCALGeometry::positionOnFace | ( | int | channel | ) | const |
Definition at line 95 of file DFCALGeometry.cc.
References m_column, m_numActiveBlocks, m_row, and positionOnFace().
|
inlinestatic |
|
inline |
Definition at line 64 of file DFCALGeometry.h.
Referenced by JEventProcessor_FCALgains::AbsNumtoXY(), DL1MCTrigger_factory::brun(), channel(), DFCALGeometry(), hdv_mainframe::DrawDetectorsRPhi(), hdv_mainframe::DrawDetectorsXY(), DEventProcessor_fcal_charged::evnt(), DFCALHit_factory::FillCalibTable(), DCustomAction_p2pi_unusedHists::FillTrack(), hdv_mainframe::GetFCALPolyLine(), isBlockActive(), DL1MCTrigger_factory::LoadFCALConst(), main(), positionOnFace(), and DParticleID::PredictFCALHit().
int DFCALGeometry::row | ( | float | y | ) | const |
Definition at line 74 of file DFCALGeometry.cc.
References blockSize(), and kMidBlock.
Definition at line 71 of file DFCALGeometry.h.
|
private |
Definition at line 80 of file DFCALGeometry.h.
Referenced by DFCALGeometry(), and isBlockActive().
|
private |
Definition at line 83 of file DFCALGeometry.h.
Referenced by channel(), and DFCALGeometry().
|
private |
Definition at line 85 of file DFCALGeometry.h.
Referenced by DFCALGeometry(), and positionOnFace().
|
private |
Definition at line 87 of file DFCALGeometry.h.
Referenced by DFCALGeometry(), and positionOnFace().
|
private |
Definition at line 81 of file DFCALGeometry.h.
Referenced by DFCALGeometry(), and positionOnFace().
|
private |
Definition at line 84 of file DFCALGeometry.h.
Referenced by DFCALGeometry(), and positionOnFace().