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;
64 m_nObj = std::count(std::istreambuf_iterator<char>(iacscFile),
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;
111 iacscFile.open(filename.c_str());
112 for (
int j=0;j<(int)
m_nObj;j++) {
119 <<
m_d[j].wireLayer <<
" "
Definition of the abstract IRDBAccessSvc interface.
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
Definition of the abstract IRDBRecord interface.
Definition of the abstract IRDBRecordset interface.
IRDBAccessSvc is an abstract interface to the athena service that provides the following functionalit...
virtual IRDBRecordset_ptr getRecordsetPtr(const std::string &node, const std::string &tag, const std::string &tag2node="", const std::string &connName="ATLASDD")=0
Provides access to the Recordset object containing HVS-tagged data.
virtual unsigned int size() const =0
std::string getName() const
void WriteIAcscToAsciiFile(const std::string &filename)
Ensure that the Athena extensions are properly loaded.