23 sprintf(tname,
"V1730Dpp_%i_%i",0,0);
31 for(
int i = 0; i < 16; i++){
35 sprintf(name,
"V1730Dpp_%i",i);
37 sprintf(title,
"V1730 Waveform for channel=%i",i);
42 tmp->SetYTitle(
"ADC value");
64 std::vector<ChannelMeasurement> 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 DPP data from CAEN V1730.
std::vector< ChannelMeasurement > & GetMeasurements()
Get the Vector of TDC Measurements.