4 #include "TGNumberEntry.h"
11 for(
int i = 0; i < 32; i++){
14 sprintf(name,
"adcValue%i",i+10);
15 sprintf(title,
"ADC values for channel %i",i);
16 adcValue[i] =
new TH1F(name,title,2000,0,4000);
25 TGHorizontalFrame *labelframe =
new TGHorizontalFrame(compFrame,200,40);
27 fBankCounterButton =
new TGNumberEntry(labelframe, 0, 9,999, TGNumberFormat::kNESInteger,
28 TGNumberFormat::kNEANonNegative,
29 TGNumberFormat::kNELLimitMinMax,
32 fBankCounterButton->Connect(
"ValueSet(Long_t)",
"TRootanaDisplay", display,
"UpdatePlotsAction()");
33 fBankCounterButton->GetNumberEntry()->Connect(
"ReturnPressed()",
"TRootanaDisplay", display,
"UpdatePlotsAction()");
34 labelframe->AddFrame(
fBankCounterButton,
new TGLayoutHints(kLHintsTop | kLHintsLeft, 5, 5, 5, 5));
35 TGLabel *labelMinicrate =
new TGLabel(labelframe,
"ADC Channel (0-31)");
36 labelframe->AddFrame(labelMinicrate,
new TGLayoutHints(kLHintsTop | kLHintsLeft, 5, 5, 5, 5));
38 compFrame->AddFrame(labelframe,
new TGLayoutHints(kLHintsCenterX,2,2,2,2));
48 for(
int i = 0; i < 32; i++)
61 for(
unsigned int i = 0; i < measurements.size(); i++){
66 if(chan >= 0 && chan < 32){
76 TCanvas* c1 = embedCanvas->GetCanvas();
79 if(whichbank >=0 && whichbank <32)
void PlotCanvas(TDataContainer &dataContainer, TRootEmbeddedCanvas *embedCanvas)
Plot the histograms for this canvas.
TComplicatedExampleCanvas()
TGNumberEntry * fBankCounterButton
void UpdateCanvasHistograms(TDataContainer &dataContainer)
Update the histograms for this canvas.
void ResetCanvasHistograms()
Reset the histograms for this canvas.
void SetUpCompositeFrame(TGCompositeFrame *compFrame, TRootanaDisplay *display)
T * GetEventData(const char *name)
Add a templated function that returns event data in the format that we want.
Class for storing data from CAEN V792 module.
std::vector< VADCMeasurement > & GetMeasurements()
Get the Vector of TDC Measurements.
uint32_t GetMeasurement() const
Get the ADC measurement.
uint32_t GetChannel() const
Get the channel number.