94{
95 MsgStream log(
msgSvc(), name());
96 log << MSG::INFO << endreq << "In finalize()" << endreq << endreq;
97
99 if( fout.bad() ) {
100 log << MSG::INFO << "Output file created error!" << endreq;
101 exit(-1);
102 }
103
105 if( m_sOutputOption[i] == '1' )
107 }
108 fout << endl;
109
111 {
112 log << MSG::INFO << "----------------------Module [ " << i << " ]----------------------" << endreq;
114 {
116 m_mucChain[id] =
new MucChain(
id, m_sChainMap[i][j], i, j, m_fFecOrder );
117
118 for(
int k=0; k<m_mucChain[id]->
GetFecTotal(); k++ )
119 {
121 if( m_sOutputOption[0] == '1' )
123 if( m_sOutputOption[1] == '1' )
125 if( m_sOutputOption[2] == '1' )
127 if( m_sOutputOption[3] == '1' )
129 if( m_sOutputOption[4] == '1' )
131 if( m_sOutputOption[5] == '1' )
133 if( m_sOutputOption[6] == '1' )
134 fout << aFec->
GetPart() <<
"\t";
135 if( m_sOutputOption[7] == '1' )
137 if( m_sOutputOption[8] == '1' )
139 if( m_sOutputOption[9] == '1' )
141 if( m_sOutputOption[10] == '1' )
143 if( m_sOutputOption[11] == '1' )
145 if( m_sOutputOption[12] == '1' )
147 if( m_sOutputOption[13] == '1' )
149 fout << endl;
150 }
151
152 log << MSG::INFO << "Chain ID: " << id << "\tName: " << m_sChainMap[i][j];
153 log << MSG::INFO <<
"\tSocket: " << j <<
"\tFecTotal: " << m_mucChain[id]->
GetFecTotal()
154 << "\tFecOrder: " << m_fFecOrder << "\tdone!" << endreq;
155 }
156 }
157
158 fout.close();
159
160 return StatusCode::SUCCESS;
161}
const std::string DATA_NAME[DATA_NUM]
MucFec * GetFec(int fecId)
unsigned short GetGeoAddress()
unsigned short GetVmeAddress()