97{
98 MsgStream log(
msgSvc(), name());
99 log << MSG::INFO << endreq << "In finalize()" << endreq << endreq;
100
101 ofstream fout(m_sFileName[1].
c_str(), ios::out);
102 if( fout.bad() )
103 {
104 log << MSG::INFO << "Output file created error!" << endreq;
105 exit(-1);
106 }
107
109 {
110 if( m_sOutputOption[i] == '1' )
112 }
113 fout << endl;
114
116 {
117 log << MSG::INFO << "----------------------Module [ " << i << " ]----------------------" << endreq;
119 {
121 m_mucChain[id] =
new MucChain(
id, m_sChainMap[i][j], i, j, m_fFecOrder );
122
123 for(
int k=0; k<m_mucChain[id]->
GetFecTotal(); k++ )
124 {
126 if( m_sOutputOption[0] == '1' )
128 if( m_sOutputOption[1] == '1' )
130 if( m_sOutputOption[2] == '1' )
132 if( m_sOutputOption[3] == '1' )
134 if( m_sOutputOption[4] == '1' )
136 if( m_sOutputOption[5] == '1' )
138 if( m_sOutputOption[6] == '1' )
139 fout << aFec->
GetPart() <<
"\t";
140 if( m_sOutputOption[7] == '1' )
142 if( m_sOutputOption[8] == '1' )
144 if( m_sOutputOption[9] == '1' )
146 if( m_sOutputOption[10] == '1' )
148 if( m_sOutputOption[11] == '1' )
150 if( m_sOutputOption[12] == '1' )
152 if( m_sOutputOption[13] == '1' )
154 fout << endl;
155 }
156
157 log << MSG::INFO << "Chain ID: " << id << "\tName: " << m_sChainMap[i][j];
158 log << MSG::INFO <<
"\tSocket: " << j <<
"\tFecTotal: " << m_mucChain[id]->
GetFecTotal()
159 << "\tFecOrder: " << m_fFecOrder << "\tdone!" << endreq;
160 }
161 }
162
163 fout.close();
164
165 return StatusCode::SUCCESS;
166}
const std::string DATA_NAME[DATA_NUM]
MucFec * GetFec(int fecId)
unsigned short GetGeoAddress()
unsigned short GetVmeAddress()