#include <DblQ00Aszt.h>
Definition at line 24 of file DblQ00Aszt.h.
◆ DblQ00Aszt() [1/4]
MuonGM::DblQ00Aszt::DblQ00Aszt |
( |
| ) |
|
|
default |
◆ ~DblQ00Aszt()
MuonGM::DblQ00Aszt::~DblQ00Aszt |
( |
| ) |
|
|
default |
◆ DblQ00Aszt() [2/4]
MuonGM::DblQ00Aszt::DblQ00Aszt |
( |
IRDBAccessSvc * |
pAccessSvc, |
|
|
const std::string & |
GeoTag = "" , |
|
|
const std::string & |
GeoNode = "" |
|
) |
| |
Definition at line 25 of file DblQ00Aszt.cxx.
29 if (
m_nObj == 0) std::cerr<<
"NO Aszt banks in the MuonDD Database"<<std::endl;
31 for (
size_t i=0;
i<aszt->size();++
i) {
32 m_d[
i].version = (*aszt)[
i]->getInt(
"VERS");
33 m_d[
i].line = (*aszt)[
i]->getInt(
"LINE");
34 m_d[
i].jff = (*aszt)[
i]->getInt(
"JFF");
35 m_d[
i].jzz = (*aszt)[
i]->getInt(
"JZZ");
36 m_d[
i].job = (*aszt)[
i]->getInt(
"JOB");
37 m_d[
i].tras = (*aszt)[
i]->getFloat(
"TRAS");
38 m_d[
i].traz = (*aszt)[
i]->getFloat(
"TRAZ");
39 m_d[
i].trat = (*aszt)[
i]->getFloat(
"TRAT");
40 m_d[
i].rots = (*aszt)[
i]->getFloat(
"ROTS");
41 m_d[
i].rotz = (*aszt)[
i]->getFloat(
"ROTZ");
42 m_d[
i].rott = (*aszt)[
i]->getFloat(
"ROTT");
43 m_d[
i].i = (*aszt)[
i]->getInt(
"I");
44 m_d[
i].type = (*aszt)[
i]->getString(
"TYP");
47 std::cerr<<
"NO Aszt banks in the MuonDD Database"<<std::endl;
◆ DblQ00Aszt() [3/4]
◆ DblQ00Aszt() [4/4]
MuonGM::DblQ00Aszt::DblQ00Aszt |
( |
const std::string & |
asciiFileName | ) |
|
Definition at line 54 of file DblQ00Aszt.cxx.
58 :
"<<asciiFileName<<std::endl;
61 m_nObj = std::count(std::istreambuf_iterator<char>(asztFile),
62 std::istreambuf_iterator<char>(),'\n');
63 std::cout<<"Number of
lines in the
A-
line file <
"<<asciiFileName<<"> is
"<< m_nObj <<std::endl;
67 if (m_nObj == 0) std::cerr<<"NO Aszt banks in
"<<asciiFileName<<std::endl;
71 // close and reopen file for input
73 asztFile.open(asciiFileName.c_str());
91 m_d[j].tras = 0.1*m_d[j].tras; // ProcessAlignments expects cm !
92 m_d[j].traz = 0.1*m_d[j].traz; // ProcessAlignments expects cm !
93 m_d[j].trat = 0.1*m_d[j].trat; // ProcessAlignments expects cm !
99 std::cerr<<"problem with
DblQ00Aszt: j=
"<<j<<" m_nObj=
"<<(int)m_nObj<<std::endl;
103 void DblQ00Aszt::WriteAsztToAsciiFile(const std::string& filename)
◆ data()
const ASZT* MuonGM::DblQ00Aszt::data |
( |
| ) |
const |
|
inline |
◆ getDirName()
std::string MuonGM::DblQ00Aszt::getDirName |
( |
| ) |
const |
|
inline |
◆ getName()
std::string MuonGM::DblQ00Aszt::getName |
( |
| ) |
const |
|
inline |
◆ getObjName()
std::string MuonGM::DblQ00Aszt::getObjName |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ size()
unsigned int MuonGM::DblQ00Aszt::size |
( |
| ) |
const |
|
inline |
◆ WriteAsztToAsciiFile()
void MuonGM::DblQ00Aszt::WriteAsztToAsciiFile |
( |
const std::string & |
filename | ) |
|
Definition at line 106 of file DblQ00Aszt.cxx.
114 <<
m_d[j].tras*10. <<
" "
115 <<
m_d[j].traz*10. <<
" "
116 <<
m_d[j].trat*10. <<
" "
◆ m_d
std::vector<ASZT> MuonGM::DblQ00Aszt::m_d {} |
|
private |
◆ m_nObj
unsigned int MuonGM::DblQ00Aszt::m_nObj {0} |
|
private |
The documentation for this class was generated from the following files: