30 if (
m_nObj == 0) std::cerr<<
"NO IAcsc banks in the MuonDD Database"<<std::endl;
32 for (
size_t i =0;
i<iacsc->size(); ++
i) {
34 m_d[
i].version = (*iacsc)[
i]->getInt(
"VERS");
36 m_d[
i].jff = (*iacsc)[
i]->getInt(
"JFF");
37 m_d[
i].jzz = (*iacsc)[
i]->getInt(
"JZZ");
38 m_d[
i].job = (*iacsc)[
i]->getInt(
"JOB");
39 m_d[
i].wireLayer = (*iacsc)[
i]->getInt(
"JLAY");
40 m_d[
i].tras = 10.*(*iacsc)[
i]->getFloat(
"TRAS");
41 m_d[
i].traz = 10.*(*iacsc)[
i]->getFloat(
"TRAZ");
42 m_d[
i].trat = 10.*(*iacsc)[
i]->getFloat(
"TRAT");
43 m_d[
i].rots = (*iacsc)[
i]->getFloat(
"ROTS");
44 m_d[
i].rotz = (*iacsc)[
i]->getFloat(
"ROTZ");
45 m_d[
i].rott = (*iacsc)[
i]->getFloat(
"ROTT");
46 m_d[
i].type = (*iacsc)[
i]->getString(
"TYP");
50 std::cerr<<
"NO IAcsc banks in the MuonDD Database"<<std::endl;
56 std::cerr<<
"IAcsc with asciiFileName = : <"<<asciiFileName<<
"> "<<std::endl;
59 std::ifstream iacscFile(asciiFileName.c_str());
60 if (!iacscFile.is_open())
61 std::cerr<<
" bad ascii file: "<<asciiFileName<<std::endl;
65 std::istreambuf_iterator<char>(),
'\n');
66 std::cout<<
"Number of lines in the CSc Internal A-line file <"<<asciiFileName<<
"> is "<<
m_nObj <<std::endl;
70 if (
m_nObj == 0) std::cerr<<
"NO IAcsc banks in "<<asciiFileName<<std::endl;
76 iacscFile.open(asciiFileName.c_str());
94 std::cout<<
" IAcsc:: line "<<j+1<<
" --- jtyp, jff, jzz, job, w-layer "<<
m_d[j].type<<
" "
95 <<
m_d[j].jff<<
" "<<
m_d[j].jzz <<
" "
96 <<
m_d[j].job<<
" "<<
m_d[j].wireLayer <<std::endl;
103 std::cerr<<
"problem with DblQ00IAcsc: j="<<j<<
" m_nObj="<<(
int)
m_nObj<<std::endl;
110 std::ofstream iacscFile;
119 <<
m_d[j].wireLayer <<
" "