AlcapDAQ  1
Functions | Variables
DummyHisto.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <map>
#include <utility>
#include "midas.h"
#include <TH1.h>
#include <TH2.h>
#include "TGlobalData.h"

Go to the source code of this file.

Functions

INT DummyHisto_init (void)
 
INT DummyHisto (EVENT_HEADER *, void *)
 

Variables

HNDLE hDB
 
TGlobalDatagData
 
static TH1 * hDummyHisto
 
ANA_MODULE DummyHisto_module
 

Function Documentation

INT DummyHisto ( EVENT_HEADER *  pheader,
void *  pevent 
)

Definition at line 68 of file DummyHisto.cpp.

References SUCCESS.

69 {
70  // Get the event number
71  //int midas_event_number = pheader->serial_number;
72 
73  // Fill Diagnostic histogram
74  //hNOctalFADCIslandsReadPerBlock->Fill(bank_name.c_str(), midas_event_number,
75  //fadc_islands.size());
76 
77  return SUCCESS;
78 }
INT DummyHisto_init ( )

This method initializes histograms.

Definition at line 59 of file DummyHisto.cpp.

References hDummyHisto, and SUCCESS.

60 {
61  hDummyHisto = new TH1D("hDummy1","A test histogram",1000,0,100);
62  hDummyHisto->Fill(2,24);
63  hDummyHisto->Fill(4,405);
64 
65  return SUCCESS;
66 }

Variable Documentation

ANA_MODULE DummyHisto_module
Initial value:
=
{
"DummyHisto",
"Nam Tran",
NULL,
NULL,
NULL,
NULL,
0,
NULL,
}

Definition at line 43 of file DummyHisto.cpp.

TGlobalData* gData

Definition at line 54 of file analyzer.cpp.

HNDLE hDB

Definition at line 11 of file mucap_compress.cpp.

TH1* hDummyHisto
static

Definition at line 41 of file DummyHisto.cpp.

Referenced by DummyHisto_init().