4 #include "TDirectory.h"
23 sprintf(tname,
"DT724_%i",0);
34 for(
int i = 0; i < 2; i++){
38 sprintf(name,
"DT724_%i",i);
40 sprintf(title,
"DT724 Waveform for channel=%i",i);
42 TH1D *tmp =
new TH1D(name, title, numSamples, 0, fWFLength);
44 tmp->SetYTitle(
"ADC value");
48 std::cout <<
"TDT724Waveform done init...... " << std::endl;
63 std::vector<RawChannelMeasurement> measurements = dt724->
GetMeasurements();
65 for(
int i = 0; i < measurements.size(); i++){
67 int chan = measurements[i].GetChannel();
71 for(
int ib = 0; ib <
GetHistogram(chan)->GetNbinsX(); ib++)
75 for(
int ib = 0; ib < measurements[i].GetNSamples(); ib++){
76 GetHistogram(chan)->SetBinContent(ib+1, measurements[i].GetSample(ib));
89 for(
int i = 0; i < 8; i++){
93 for(
int ib = 0; ib <
GetHistogram(index)->GetNbinsX(); ib++) {
R__EXTERN TDirectory * gDirectory
Class to store raw data from CAEN 100MHz DT724 (for raw readout, no-DPP).
std::vector< RawChannelMeasurement > & 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.
TMidasEvent & GetMidasData() const
Get the MIDAS data for this event, in TMidasEvent format.
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.
virtual void SetUpdateOnlyWhenPlotted(bool whenupdate)
TH1 * GetHistogram(unsigned i)
A helper method for accessing each histogram. Does bounds checking.
uint16_t GetEventId() const
return the event id
uint32_t GetTimeStamp() const
return the time stamp (unix time in seconds)