4 #include "TDirectory.h"
20 std::cout <<
"Creating V1730 raw waveforms... " << std::endl;
24 sprintf(tname,
"V1730Raw_%i_%i",0,0);
32 for(
int i = 0; i < 16; i++){
36 sprintf(name,
"V1730Raw_%i",i);
38 sprintf(title,
"V1730 Waveform for channel=%i",i);
43 tmp->SetYTitle(
"ADC value");
48 std::cout <<
"Finish V1730 raw waveforms... " << std::endl;
64 std::vector<RawChannelMeasurement> measurements = v1730->
GetMeasurements();
66 for(
int i = 0; i < measurements.size(); i++){
68 int chan = measurements[i].GetChannel();
79 for(
int ib = 0; ib < measurements[i].GetNSamples(); ib++){
82 GetHistogram(chan)->SetBinContent(ib+1, measurements[i].GetSample(ib)-offset);
97 for(
int iBoard=0; iBoard<32; iBoard++){
98 for(
int i = 0; i < 8; i++){
99 int index = iBoard*8 + i;
102 for(
int ib = 0; ib < 2500; ib++)
R__EXTERN TDirectory * gDirectory
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)
Class to store raw data from CAEN V1730 (for raw readout, no-DPP).
std::vector< RawChannelMeasurement > & GetMeasurements()
Get the Vector of TDC Measurements.