37 #ifndef STAR_StPmdMapUtil
38 #define STAR_StPmdMapUtil
44 #include "StPmdGeom.h"
45 #include "StPmdDBUtil.h"
54 Int_t m_TempChannelInBoard[PMD_CRAMS_MAX*2][PMD_ROW_MAX][PMD_COL_MAX];
55 Int_t m_ChannelInBoard [PMD_CRAMS_MAX*2][PMD_ROW_MAX][PMD_COL_MAX];
56 Int_t m_Chain [PMD_CRAMS_MAX*2][PMD_ROW_MAX][PMD_COL_MAX];
57 Int_t SMChainExists[24][48];
58 Int_t nBoardSMChain[24][48];
60 Int_t Chain_Combo[60];
71 void ReverseChannelOriginal( Int_t, Int_t, Int_t, Int_t& );
72 void ReverseChannelConverted( Int_t, Int_t, Int_t, Int_t& );
73 void ChainNumber( Int_t, Int_t, Int_t, Int_t& );
75 void SetSMChainCombos(Int_t);
76 void ComboSMChain(Int_t,Int_t&,Int_t&);
77 Int_t GetComboFirstBoard(Int_t);
78 Int_t GetSMChainCombo(Int_t,Int_t);
80 Int_t GetnBoardSMChain(Int_t);
81 Int_t GetnBoardSMChain(Int_t,Int_t);
86 inline void StPmdMapUtil::ReverseChannelConverted(Int_t sm, Int_t row, Int_t col, Int_t& channel)
88 channel=m_TempChannelInBoard[sm-1][row-1][col-1];
92 inline void StPmdMapUtil::ReverseChannelOriginal(Int_t sm, Int_t row, Int_t col, Int_t& channel)
94 channel=m_ChannelInBoard[sm-1][row-1][col-1];
98 inline void StPmdMapUtil::ChainNumber(Int_t sm, Int_t row, Int_t col, Int_t& chain)
100 chain=m_Chain[sm-1][row-1][col-1];
104 inline void StPmdMapUtil::ComboSMChain(Int_t icombo,Int_t& ism, Int_t& ichain){
105 ism = SM_Combo[icombo];
106 ichain = Chain_Combo[icombo];
108 inline Int_t StPmdMapUtil::GetnBoardSMChain(Int_t ism,Int_t ichain){
109 return nBoardSMChain[ism-1][ichain-1];
111 inline Int_t StPmdMapUtil::GetnBoardSMChain(Int_t icombo){
112 Int_t ism=0,ichain=0;
113 ComboSMChain(icombo,ism,ichain);
115 return nBoardSMChain[ism-1][ichain-1];
118 inline Int_t StPmdMapUtil::GetnSMChain(){
122 inline Int_t StPmdMapUtil::GetComboFirstBoard(Int_t icombo){
123 return FirstBoard[icombo];
virtual ~StPmdMapUtil()
A constructor.
void StoreMapInfo()
A destructor.
StPmdMapUtil()
A constructor.