ICP  1
Classes | Macros | Functions | Variables
events_tool.cpp File Reference

Utility program for talking to the ISIS ICP. More...

#include "stdafx.h"
#include "../newicp/icputils.h"
#include "../newicp/event_store.h"
#include "../newicp/TCPEventStreamDefs.h"
#include "../newicp/isisraw.h"
#include "../nexus/NeXusFile.hpp"

Go to the source code of this file.

Classes

class  EventsToolApp
 

Macros

#define PPP_TO_UAMPH   1.738E-6
 

Functions

int _tmain (int argc, _TCHAR *argv[])
 
static void all_event_callback (const DAEEventHeader *head, const DetectorEvent32 *det_ev, int n, int event_source_id, const int *mapping)
 
static void good_event_callback (const DAEEventHeader *head, const DetectorEvent32 *det_ev, int n, int event_source_id, const int *mapping)
 
static void convert_good_event_callback (const DAEEventHeader *head, const DetectorEvent32 *det_ev, int n, int event_source_id, const int *mapping)
 
static void all_frame_callback (const DAEEventHeader *head, int event_source_id)
 
static void good_frame_callback (const DAEEventHeader *head, int event_source_id)
 

Variables

static uint64_t all_events_c = 0
 
static uint64_t good_events_c = 0
 
static std::map< int, uint64_t > raw_protons
 
static std::map< int, uint64_t > good_protons
 
static std::map< int, uint64_t > raw_events
 
static std::map< int, uint64_t > good_events
 
static std::map< int, int > first_data_frame
 
static Poco::Mutex the_mutex
 

Detailed Description

Utility program for talking to the ISIS ICP.

Definition in file events_tool.cpp.

Macro Definition Documentation

#define PPP_TO_UAMPH   1.738E-6

Definition at line 187 of file events_tool.cpp.

Referenced by EventsToolApp::main().

Function Documentation

int _tmain ( int  argc,
_TCHAR *  argv[] 
)

Definition at line 40 of file events_tool.cpp.

static void all_event_callback ( const DAEEventHeader head,
const DetectorEvent32 det_ev,
int  n,
int  event_source_id,
const int *  mapping 
)
static

Definition at line 135 of file events_tool.cpp.

References all_events_c, and the_mutex.

Referenced by EventsToolApp::main().

static void all_frame_callback ( const DAEEventHeader head,
int  event_source_id 
)
static
static void convert_good_event_callback ( const DAEEventHeader head,
const DetectorEvent32 det_ev,
int  n,
int  event_source_id,
const int *  mapping 
)
static

Definition at line 159 of file events_tool.cpp.

References good_events_c, and the_mutex.

Referenced by EventsToolApp::convertRawToEvents().

static void good_event_callback ( const DAEEventHeader head,
const DetectorEvent32 det_ev,
int  n,
int  event_source_id,
const int *  mapping 
)
static
static void good_frame_callback ( const DAEEventHeader head,
int  event_source_id 
)
static

Variable Documentation

uint64_t all_events_c = 0
static

Definition at line 124 of file events_tool.cpp.

Referenced by all_event_callback(), and EventsToolApp::main().

std::map<int,int> first_data_frame
static

Definition at line 131 of file events_tool.cpp.

std::map<int,uint64_t> good_events
static

Definition at line 130 of file events_tool.cpp.

uint64_t good_events_c = 0
static
std::map<int,uint64_t> good_protons
static

Definition at line 128 of file events_tool.cpp.

std::map<int,uint64_t> raw_events
static

Definition at line 129 of file events_tool.cpp.

std::map<int,uint64_t> raw_protons
static

Definition at line 127 of file events_tool.cpp.

Poco::Mutex the_mutex
static