4 #include "TDirectory.h"
22 sprintf(tname,
"V1720_%i",0);
33 for(
int i = 0; i < 8; i++){
37 sprintf(name,
"V1720_%i",i);
39 sprintf(title,
"V1720 Waveform for channel=%i",i);
41 TH1D *tmp =
new TH1D(name, title, numSamples, 0, fWFLength);
43 tmp->SetYTitle(
"ADC value");
64 for(
int i = 0; i < 8; i++){
69 std::cout <<
"No data ... " << std::endl;
75 for(
int ib = 0; ib < 250; ib++)
94 for(
int i = 0; i < 8; i++){
100 for(
int ib = 0; ib < 250; ib++)
105 for(
int j = 0; j < channelData.
GetNSamples(); j++){
120 for(
int i = 0; i < 8; i++){
124 for(
int ib = 0; ib <
GetHistogram(index)->GetNbinsX(); 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)
int GetNSamples() const
Get the ADC sample for a particular bin (for uncompressed data).
int GetNZlePulses() const
Get the number of ZLE pulses (for compressed data)
int GetADCSample(int i) const
Get the ADC sample for a particular bin (for uncompressed data).
TV1720RawZlePulse GetZlePulse(int i) const
Get the ZLE pulse (for compressed data.
TV1720RawChannel GetChannelData(int i)
Get Channel Data.
uint32_t GetChannelMask() const
bool IsZLECompressed() const
Is the V1720 data ZLE compressed?
Class to store information from a single V1720 ZLE pulse.
int GetSample(int i) const
Get the first bin for this pulse.
int GetNSamples() const
Get the number of samples.
int GetFirstBin() const
Get the first bin for this pulse.