19#ifndef RestDAQ_TRestDetectorSignalEvent
20#define RestDAQ_TRestDetectorSignalEvent
24#include <TMultiGraph.h>
26#include <TRestEvent.h>
30#include "TRestDetectorSignal.h"
39 std::vector<TRestDetectorSignal> fSignal;
45 inline Bool_t signalIDExists(Int_t sID) {
46 if (GetSignalIndex(sID) == -1) {
52 inline void SortSignals() {
53 for (
int n = 0; n < GetNumberOfSignals(); n++) {
60 void AddChargeToSignal(Int_t signalID, Double_t time, Double_t charge);
62 void RemoveSignalWithId(Int_t sId);
65 inline Int_t GetNumberOfSignals()
const {
return fSignal.size(); }
69 Int_t index = GetSignalIndex(sid);
74 return &fSignal[index];
77 Int_t GetSignalIndex(Int_t signalID);
79 Double_t GetIntegral(Int_t startBin = 0, Int_t endBin = 0);
80 Double_t GetMaxValue();
81 Double_t GetMinValue();
82 Double_t GetMinTime();
83 Double_t GetMaxTime();
85 Double_t GetIntegralWithTime(Double_t startTime, Double_t endTime);
91 TPad*
DrawEvent(
const TString& option =
"");
TPad * DrawEvent(const TString &option="")
Draw the event.
A base class for any REST event.