25 std::cout <<
"Create Histos" << std::endl;
26 for(
int j = 0; j <
Nfpga; j++){
31 sprintf(name,
"TRB3_%i_%i",j,i);
42 sprintf(title,
"TRB3 histogram for fpga=%i channel=%i",j, i);
44 TH1D *tmp =
new TH1D(name,title,500000,0,10000000);
45 tmp->SetXTitle(
"Hit time (ps)");
46 tmp->SetYTitle(
"Number of Entries");
67 double time = meas[i].GetFinalTime();
68 uint32_t
id = meas[i].GetBoardId();
69 uint32_t ch = meas[i].GetChannel();
106 for(
int j = 0; j <
Nfpga; j++){
111 sprintf(name,
"TRB3_Fine_%i_%i",j,i);
122 sprintf(title,
"TRB3 Fine Times for fpga=%i channel=%i",j, i);
124 TH1D *tmp =
new TH1D(name,title,512,-0.5,511.5);
125 tmp->SetXTitle(
"Fine Time (DC)");
126 tmp->SetYTitle(
"Number of Entries");
145 uint32_t
id = meas[i].GetBoardId();
146 uint32_t ch = meas[i].GetChannel();
182 std::cout <<
"Create Histos" << std::endl;
183 for(
int j = 0; j <
Nfpga; j++){
188 sprintf(name,
"TRB3_diff_%i_%i",j,i);
199 sprintf(title,
"TRB3 difference histogram for fpga=%i channel=%i",j, i);
201 TH1D *tmp =
new TH1D(name,title,20000,-109400,109400);
202 tmp->SetXTitle(
"Hit time (ps)");
203 tmp->SetYTitle(
"Number of Entries");
223 bool foundRef =
false;
227 double time = meas[i].GetFinalTime();
228 uint32_t
id = meas[i].GetBoardId();
229 uint32_t ch = meas[i].GetChannel();
241 double time = meas[i].GetFinalTime();
242 uint32_t
id = meas[i].GetBoardId();
243 uint32_t ch = meas[i].GetChannel();
R__EXTERN TDirectory * gDirectory
const int NchannelPerFpga
const int Nfpga
what is right value?
T * GetEventData(const char *name)
Add a templated function that returns event data in the format that we want.
virtual TObject * Get(const char *namecycle)
void SetNumberChannelsInGroup(int numberChannelsInGroups)
virtual void SetSubTabName(std::string name)
Set the name of the sub-tab for these plots, if running DaqDisplay.
void SetGroupName(std::string name)
Set name for the 'group'.
TH1 * GetHistogram(unsigned i)
A helper method for accessing each histogram. Does bounds checking.
const int GetNumberMeasurements()
std::vector< TrbTdcMeas > & GetMeasurements()
Get the Vector of TDC Measurements.
TTRB3DiffHistograms()
Reset the histograms for this canvas.
void BeginRun(int transition, int run, int time)
Take actions at begin run.
void UpdateHistograms(TDataContainer &dataContainer)
Update the histograms for this canvas.
void CreateHistograms()
Function to create histograms; users will want to implement this function.
TTRB3FineHistograms()
Reset the histograms for this canvas.
void BeginRun(int transition, int run, int time)
Take actions at begin run.
void CreateHistograms()
Function to create histograms; users will want to implement this function.
void UpdateHistograms(TDataContainer &dataContainer)
Update the histograms for this canvas.
TTRB3Histograms()
Reset the histograms for this canvas.
void UpdateHistograms(TDataContainer &dataContainer)
Update the histograms for this canvas.
void CreateHistograms()
Function to create histograms; users will want to implement this function.
void BeginRun(int transition, int run, int time)
Take actions at begin run.