4 #include "TDirectory.h"
14 sprintf(tname,
"V1720_Correlations_%i",0);
22 for(
int i = 0; i < 8; i++){
26 sprintf(name,
"V1720_Correlations_%i",i);
28 sprintf(title,
"V1720 Max ADC vs Max ADC time ch=%i",i);
30 TH2D *tmp =
new TH2D(name, title, 100,0,2000,100,0,1000);
32 tmp->SetXTitle(
"max ADC time (ns)");
33 tmp->SetYTitle(
"max bin value");
53 for(
int i = 0; i < 8; i++){
58 double max_adc_value = -1.0;
59 double max_adc_time = -1;
64 if(adc > max_adc_value){
66 max_adc_time = j * 4.0;
87 for(
int i = 0; i < 8; i++){
R__EXTERN TDirectory * gDirectory
T * GetEventData(const char *name)
Add a templated function that returns event data in the format that we want.
virtual TObject * Get(const char *namecycle)
TH1 * GetHistogram(unsigned i)
A helper method for accessing each histogram. Does bounds checking.
static TInterestingEventManager * instance()
void SetInteresting()
Set this event to be interesting.
void CreateHistograms()
Function to create histograms; users will want to implement this function.
void UpdateHistograms(TDataContainer &dataContainer)
Update the histograms for this canvas.
int GetNSamples() const
Get the ADC sample for a particular bin (for uncompressed data).
int GetADCSample(int i) const
Get the ADC sample for a particular bin (for uncompressed data).
TV1720RawChannel GetChannelData(int i)
Get Channel Data.
bool IsZLECompressed() const
Is the V1720 data ZLE compressed?