4 #include "TDirectory.h"
25 sprintf(name,
"CamacADC_%i_%i",0,i);
35 sprintf(title,
"CAMAC ADC for channel=%i",i);
37 TH1D *tmp =
new TH1D(name,title,2100,0,2100);
38 tmp->SetYTitle(
"ADC value");
39 tmp->SetXTitle(
"Bin");
56 for(
unsigned int i = 0; i < measurements.size(); i++){
59 for(
unsigned int ch = 0; ch < 12; ch++){
R__EXTERN TDirectory * gDirectory
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.
TCamacADCHistograms()
Reset the histograms for this canvas.
void EndRun(int transition, int run, int time)
Take actions at end run
std::vector< CamacADCEvent > & GetMeasurements()
Get the Vector of TDC Measurements.
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)
virtual void SetSubTabName(std::string name)
Set the name of the sub-tab for these plots, if running DaqDisplay.
TH1 * GetHistogram(unsigned i)
A helper method for accessing each histogram. Does bounds checking.