AlcapDAQ  1
Functions
rsp.c File Reference

Go to the source code of this file.

Functions

void rsp (int runnr, int addr, int fadc)
 

Function Documentation

void rsp ( int  runnr,
int  addr,
int  fadc 
)

Definition at line 1 of file rsp.c.

References gROOT, process_file(), and sprintf().

2 {
3  gInterpreter->AddIncludePath("../midas/include");
4  gROOT->LoadMacro("hdb.cxx+");
5  //gROOT->LoadMacro("/home/nam/mucap_daq/midas/linux/lib/libmidas_shared.so");
6  gROOT->LoadMacro("../midas/linux/lib/libmidas.so");
7  gROOT->LoadMacro("../compress/libmucap_compress.so");
8  gROOT->LoadMacro("show_pulses.cxx+");
9  char name[256];
10  sprintf(name, "../dir/run%05d.mid", runnr);
11  process_file(name, addr, fadc);
12 }