Stringmap VecTrans::getInfo() const {
    Stringmap m;
    m.insert("class","VecTrans");
    m.insert(string("t1"),vtos(vec2doublevec<3,double>(trans1)));
    m.insert(string("t2"),vtos(vec2doublevec<3,double>(trans2)));
    return m;
}
Stringmap ShiftPositioner::getInfo() const {
    Stringmap m;
    m.insert("class","ShiftPositioner");
    if(shift.size())
        m.insert("shift",vtos(varvec2doublevec<double>(shift)));
    return m;
}
void CosThetaBuilder::writeInfo(QFile& qOut) const {
    if(AP) qOut.insert("coilPositioner",AP->getInfo());
    if(ET) qOut.insert("coilTrans",ET->getInfo());
    Stringmap m;
    m.insert("length",length);
    m.insert("radius",radius);
    m.insert("ncoils",itos(ncoils));
    m.insert("current",j_total);
    qOut.insert("cosThetaCoil",m);
}
Beispiel #4
0
Stringmap WirechamberCalibrator::wirecalSummary() const {
	Stringmap m;
	for(Side s = EAST; s <= WEST; ++s) {
		m.insert(sideSubst("mwpc_gain_%c",s),mwpcGainCorr[s]);
		m.insert(sideSubst("mwpc_calmethod_%c",s),chargeProxyName(myChargeProxy[s]));
		for(AxisDirection d = X_DIRECTION; d <= Y_DIRECTION; ++d) {
			std::string pname = sideSubst("%c",s)+(d==X_DIRECTION?"x":"y");
			std::vector<double> cnorm;
			for(unsigned int c = 0; c < nCaths[s][d]; c++) cnorm.push_back(cathsegs[s][d][c]->norm);
			m.insert("cnorm_"+pname,vtos(cnorm));
		}
	}
	return m;
}
Stringmap AlarconKPositioner::getInfo() const {
    Stringmap m;
    m.insert("class","AlarconKPositioner");
    m.insert("k",k);
    return m;
}