Ejemplo n.º 1
0
void KVIdentificationResult::Print(Option_t* ) const
{
	printf("Identification #%d  -  Type:%s ", GetNumber(), GetIDType());
	if(!IDattempted) {
		printf("   => not attempted\n\n");
		return;
	}
	if(IDOK) printf("   => SUCCESS\n");
	else printf("   => FAILURE\n");
	printf("  Quality code = %d (%s)\n", IDquality, GetLabel());
	if(Zident) printf("  Z identified = %d", Z);
    else printf("  Z returned = %d", Z);
	if(Aident) printf("    A identified = %d", A);
    else printf("  A returned = %d", A);
    if(Zident||Aident) printf("    PID = %f\n", PID);
    printf("  delta-E pedestal : ");
    switch(deltaEpedestal){

        case deltaEpedestal_NO:
        printf("NO\n");
        break;

        case deltaEpedestal_YES:
        printf("YES\n");
        break;

        default:
        case deltaEpedestal_UNKNOWN:
        printf("UNKNOWN\n");
        break;
    }
}
Ejemplo n.º 2
0
SQInteger SQLexer::ReadID()
{
	SQInteger res;
	INIT_TEMP_STRING();
	do {
		APPEND_CHAR(CUR_CHAR);
		NEXT();
	} while(scisalnum(CUR_CHAR) || CUR_CHAR == _SC('_'));
	TERMINATE_BUFFER();
	res = GetIDType(&_longstr[0],_longstr.size() - 1);
	if(res == TK_IDENTIFIER || res == TK_CONSTRUCTOR) {
		_svalue = &_longstr[0];
	}
	return res;
}