58 (
const char **)pileup_ana_param_str,
74 char title[256], name[256];
79 sprintf(name,
"hPileUp%02d", i);
84 hPUHist[i] = H1_BOOK(name, title, nbin, xlow, xhigh);
127 n = bk_locate(pevent,
"TDC0", &ptdc);
131 memset(&counter, 0x00,
sizeof(counter));
132 memset(&tdc_data, 0x00,
sizeof(tdc_data));
134 for (
int i=1; i<n; i++){
140 tdc_data[ind][counter[ind]] = (float) lem_data->
data;
141 if ( counter[ind] > 0 && counter[ind] < 3 ){
142 pu_time = tdc_data[ind][counter[ind]] - tdc_data[ind][0];
144 hPUHist[counter[ind]-1]->Fill(pu_time,1.);
151 tdc_data[ind][counter[ind]] = (float) lem_data->
data;
152 if ( counter[ind] > 0 && counter[ind] < 3 ){
153 pu_time = tdc_data[ind][counter[ind]] - tdc_data[ind][0];
155 hPUHist[counter[ind]+1]->Fill(pu_time,1.);
ANA_MODULE pileup_ana_module
struct PILEUPANAMODULE_PARAM::@12 histotitles
#define TDC_BIT_RANGE
2^19 is the bit range of the TDC in 100ps and 200ps mode
struct PILEUPANAMODULE_PARAM::@13 histobinning
TObjArray * gHistoFolderStack
INT pileup_ana(EVENT_HEADER *, void *)
#define DATA_N_HITS
max. of DATA_N_HITS in data file
PILEUPANAMODULE_PARAM_STR(pileup_ana_param_str)
INT pileup_eor(INT run_number)
PILEUPANAMODULE_PARAM pileup_ana_param
TFolder * gManaHistosFolder
static TH1F * hPUHist[N_PUHIST]
#define N_TDC_CHANNELS
number of TDC channels
INT pileup_bor(INT run_number)