6 #if !defined(__CINT__) || defined(__MAKECINT__)
27 const Int_t
dim = 16384;
30 TTree *
oak =
new TTree(
"TreeValues",
"Parameters tree");
35 for (Int_t i = 0; i < size/2; ++i) {
37 UShort_t
id =
event[i*2];
38 value[id] =
event[i*2+1];
41 if (
histo[
id] == 0x0) {
42 histo[id] =
new TH1F(Form(
"h%s",name), name,
dim/4, 0,
dim/4);
46 if (!
oak->GetBranch(name))
47 oak -> Branch(name, &
value[
id], Form(
"%s/i", name));
56 TString rootFileName = file +
".root";
58 TFile* fileRoot =
new TFile(rootFileName,
"recreate");
71 if ( !(in = fopen (fileNameIn.Data(),
"r") ) ) {
72 printf(
"file %s not found\n", fileNameIn.Data());
78 while (fread(buf,
sizeof(
char),
dim,in)) {
86 }
while (event != 0x0);
94 for (Int_t i = 0; i <
MaxValue; ++i) {
printf("******************************************************************** \n")
void ReadDaqAlone(TString file="run_0002.dat")
void MakeHisto(UShort_t *event, UShort_t size)
unsigned short * NextEvent(unsigned short &)
const Int_t MaxValue
Macro that reads block wise (16kB) and decodes it with the help of BufferGanil class.
Simple Class thats decode Ganil DAQ format for simple VME module as QDC, ADC, TDC, etc...
static const Char_t * GetModuleName(UShort_t add)