Пример #1
0
void ZFitterWrapper::printIntermediateResults() const
{
    std::cout << "----- Intermediate Results -----" << std::endl;

    calcCommonBlocks();    
    
    std::cout << "Mw = " << Mw() << "  sin^2(theta_W) = "
              << getCommonSIN2TW() << std::endl << std::endl;

    std::cout << "Z decays:" << std::endl;
    std::cout << "  Channel Gamma (rho_Z^f)' Re[rho_Z^f] Im[rho_Z^f] "
              << "Re[g_Z^f] Im[g_Z^f] Re[k_Z^f] Im[k_Z^f] "
              << "sin^2(th_eff^f)[ARSEFZ] sin^2(th_eff^f)[S2TEFF]"
              << std::endl;
    int indexFermion;
    for (indexFermion=0; indexFermion<10; indexFermion++) {
        std::cout << std::setw(9) << convertINDF(indexFermion)
                  //<< std::setw(11) << getCommonPARTZ(indexFermion) // TEST
                  << std::setw(11) << getCommonWIDTHS(indexFermion)
                  << std::setw(9)  << getCommonARROFZ(indexFermion)
                  << std::setw(9)  << getCommonAROTFZ(indexFermion)
                  << std::setw(13) << getCommonAIROFZ(indexFermion)
                  << std::setw(11) << getCommonARVEFZ(indexFermion)
                  << std::setw(12) << getCommonAIVEFZ(indexFermion)
                  << std::setw(9)  << getCommonARKAFZ(indexFermion)
                  << std::setw(11) << getCommonAIKAFZ(indexFermion)
                  << std::setw(10) << getCommonARSEFZ(indexFermion)
                  //<< std::setw(10) << getCommonS2TEFF(indexFermion) // TEST
                  << std::endl;
    }
    for (indexFermion=10; indexFermion<12; indexFermion++) {
        std::cout << std::setw(9) << convertINDF(indexFermion)
                  << std::setw(10) << getCommonWIDTHS(indexFermion)
                  << std::endl;
    }
    std::cout << std::endl;

    std::cout << "W decays:" << std::endl;
    std::cout << "  Gamma(W->leptons) = " << getCommonPARTW(0) << std::endl;
    std::cout << "  Gamma(W->quarks)  = " << getCommonPARTW(1) << std::endl;
    std::cout << "  Gamma(W->total)   = " << getCommonPARTW(2) << std::endl;
    std::cout << std::endl;

    /* test for sin^2(theta_eff^f) */
    std::cout << "  Channel sin^2(th_eff^f)[ARSEFZ] sin^2(th_eff^f)[S2TEFF] "
              << "Re[k_Z^f]*sin^2(theta_W) " << std::endl;
    for (indexFermion = 0; indexFermion < 10; indexFermion++) {
        std::cout << std::setw(9) << convertINDF(indexFermion)
                  << std::setw(10) << getCommonARSEFZ(indexFermion)
                  << std::setw(10) << getCommonS2TEFF(indexFermion) 
                  << std::setw(10)
                  << getCommonARKAFZ(indexFermion)*getCommonSIN2TW()
                  << std::endl;
    }
    std::cout << std::endl;

}
Пример #2
0
// 핫 스팟을 클릭할 때 불리는 함수
// LPVOID 값이 0 이면 종료 (X자를 클릭) 요청
void DStartUp::OnClick( LPVOID pVoid )
{
	if ( m_nMode == 0 ) {	// 초기 메뉴

		// 이 다이얼로그가 pVoid==0 으로 닫히면
		// 초기메뉴일 경우 게임 종료임
		if ( !pVoid )
			Mw()->PostMessage( WM_CLOSE );

		switch ( (int)pVoid ) {

		case 0: DSB::OnClick(0); break;

		case 0xffffffff:
		case 1: {
			VERIFY( CreateOnePlayerGame() );
			break;
		}
		case 2:
			(new DStartUp(m_pBoard))->Create( 1 );
			DSB::OnClick(0); break;
			break;
		case 3:
			(new DAbout(m_pBoard))->Create();
			break;
		}
	}
	else {	// 멀티플레이어 메뉴

		// 이 다이얼로그가 pVoid==0 으로 닫히면
		// 초기 메뉴를 호출
		if ( !pVoid )
			(new DStartUp(m_pBoard))->Create( 0 );

		switch ( (int)pVoid ) {

		case 0: DSB::OnClick(0); break;

		case 0xffffffff:
		case 1:		// 서버가 됨
			Ib()->ShowChat();	// 채팅창 표시
			(new DConnect(m_pBoard))->Create( 0, Mo()->rule.nPlayerNum, false );
			DSB::OnClick(0);
			break;
		case 2:		// 다른 곳으로 접속
			Ib()->ShowChat();	// 채팅창 표시
			(new DConnecting(m_pBoard))->Create();
			DSB::OnClick(0);
			break;
		case 3:		// Mighty.Net
			break;
		}
	}
}
Пример #3
0
// 주어진 스트링으로 팁을 출력한다
// 윈도우가 생성되지 않았으면 새로 생성한다
void CMightyToolTip::Tip( int x, int y, LPCTSTR s, int cx )
{
	m_sText = s;

	if ( !GetSafeHwnd() ) {	// 윈도우가 생성되지 않은 상태

		// 윈도우 클래스를 등록한다
		if ( s_sWndClass.IsEmpty() )
			s_sWndClass = AfxRegisterWndClass(
				0, AfxGetApp()->LoadStandardCursor(IDC_ARROW),
				GetSysColorBrush( COLOR_INFOBK ), 0 );

		// 폰트를 읽어 들인다
		if ( !s_font.GetSafeHandle() ) {
			LOGFONT lf;
			::GetObject( (HGDIOBJ)::GetStockObject(DEFAULT_GUI_FONT), sizeof(LOGFONT), &lf );
			s_font.CreateFontIndirect( &lf );
		}

		BOOL bRet = CreateEx(
			0, s_sWndClass, 0, WS_POPUP | WS_BORDER,
			x, y, cx, 0, Mw()->GetSafeHwnd(), 0, 0 );
		if ( !bRet ) return;
	}
	else ShowWindow( SW_HIDE );

	// 크기를 다시 세트한다

	CRect rc( x, y, x+cx, y );

	CalcFittingRect( &rc );
	rc.InflateRect( TOOLTIP_BORDER_MARGIN, TOOLTIP_BORDER_MARGIN );

	CSize sz = rc.Size();

	CSize szScreen( GetSystemMetrics( SM_CXSCREEN ), GetSystemMetrics( SM_CYSCREEN ) );
	rc.left = max( 0, min( szScreen.cx - sz.cx, rc.left ) );
	rc.top = max( 0, min( szScreen.cy - sz.cy, rc.top ) );
	rc.right = rc.left + sz.cx;
	rc.bottom = rc.top + sz.cy;

	MoveWindow( &rc );
	ShowWindow( SW_SHOW );
}
Пример #4
0
double EW_CHMN::GammaW() const
{
    double Rw = 2.1940 + DeltaRw();
    return ( 0.33904 * pow(Mw(), 3.0)
            * SM.getGF()*(1.0 + 0.008478 * Rw + 0.00065 * x_s()));
}
Пример #5
0
 measure_M(configuration const *config_, block_gf<imfreq> &Mw_, double beta_)
    : config(config_), Mw(Mw_), beta(beta_) {
  Mw() = 0;
 }