5#ifndef EVENT_DATA_STRUCT
6#define EVENT_DATA_STRUCT
61 printf(
"[EdepFPGA %.0f; EdepWfm %.0f; Ampl %.0f; Minumum %.0f; ZL %.2f; Time %.2f; TimeMax %i; TimeHalf %.2f; "
62 "TimeInEvent %.2f; FitEdep %.2f; FitAmpl %.2f; FitZL %.2f; FitR2 %.2f; FitTimeMax %.2f; EventTime %llu]",
63 EdepFPGA,
EdepWfm,
Ampl,
Minimum,
ZL,
Time,
TimeMax,
TimeHalf,
TimeInEvent,
FitEdep,
FitAmpl,
FitZL,
FitR2,
67 static TString
GetChName(
Int_t channel_num) {
return TString::Format(
"channel_%i", channel_num); }
71 return tree->Branch(
GetChName(channel_num).Data(),
this,
72 "EdepFPGA/F:EdepWfm/F:Ampl/F:Minimum/F:ZL/F:Time/F:TimeMax/I:TimeHalf/F:TimeInEvent/F:FitEdep/"
73 "F:FitAmpl/F:FitZL/F:FitR2/F:FitTimeMax/F:EventTime/l");
79 return tree->SetBranchAddress(
GetChName(channel_num).Data(),
this);
static TString GetChName(Int_t channel_num)
Int_t SetBranch(TTree *tree, Int_t channel_num)
TBranch * CreateBranch(TTree *tree, Int_t channel_num)