ADC 400F Manual Página 67

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 74
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 66
Chapter 5. Complete program listings.
UShort_t* pSize = (UShort_t*)pEvent;
CTclAnalyzer& rAna((CTclAnalyzer&)rAnalyzer);
rAna.SetEventSize( (*pSize)* sizeof(UShort_t));
}
return result;
}
CFortranUnpacker legacyunpacker;
#endif
// Function:
// void CreateAnalysisPipeline(CAnalyzer& rAnalyzer)
// Operation Type:
// Override
/*
Purpose:
Sets up an analysis pipeline. This function is required and must
be filled in by the SpecTcl user. Pipeline elements are objects
which are members of classes derived from the CEventProcessor
class. They should be added to the Analyzer’s event processing pipeline
by calling RegisterEventProcessor (non virtual base class member).
The sample implementation in this
file produces a two step pipeline. The first step decodes a fixed length
event into the CEvent array. The first parameter is put into index 1 and so on.
The second step produces a compiled pseudo parameter by adding event array
elements 1 and 2 and putting the result into element 0.
*/
void
CMySpecTclApp::CreateAnalysisPipeline(CAnalyzer& rAnalyzer)
{
RegisterEventProcessor(*(new MyEventProcessor(0xff00, 10,
"mydetectors.caenv785")));
}
// Constructors, destructors and other replacements for compiler cannonicals:
CMySpecTclApp::CMySpecTclApp ()
{
}
// Destructor:
CMySpecTclApp::~CMySpecTclApp ( )
{
}
// Functions for class CMySpecTclApp
62
Vista de página 66
1 2 ... 62 63 64 65 66 67 68 69 70 71 72 73 74

Comentários a estes Manuais

Sem comentários