27 sprintf(name,
"V792_%i_%i",0,i);
38 sprintf(title,
"V792 Waveform for channel=%i",i);
40 TH1D *tmp =
new TH1D(name,title,4200,0,4200);
41 tmp->SetYTitle(
"ADC value");
42 tmp->SetXTitle(
"Bin");
54 struct timeval start,stop;
55 gettimeofday(&start,NULL);
64 for(
unsigned int i = 0; i < measurements.size(); i++){
66 int chan = measurements[i].GetChannel();
67 uint32_t adc = measurements[i].GetMeasurement();
R__EXTERN TDirectory * gDirectory
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.
Class for storing data from CAEN V792 module.
std::vector< VADCMeasurement > & GetMeasurements()
Get the Vector of TDC Measurements.
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.
void UpdateHistograms(TDataContainer &dataContainer)
Update the histograms for this canvas.
void EndRun(int transition, int run, int time)
Take actions at end run
TV792Histograms()
Reset the histograms for this canvas.