REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
Public Member Functions | Protected Attributes | Private Member Functions
TRestDetectorSignalEvent Class Reference

Detailed Description




         RESTSoft : Software for Rare Event Searches with TPCs

         TRestDetectorSignalEvent.h

         Event class to store DAQ events either from simulation and
         acquisition

         sept 2015:   First concept
             Created as part of the conceptualization of existing REST
             software.
             JuanAn Garcia

Definition at line 32 of file TRestDetectorSignalEvent.h.

#include <TRestDetectorSignalEvent.h>

Inheritance diagram for TRestDetectorSignalEvent:
TRestEvent

Public Member Functions

void AddChargeToSignal (Int_t signalID, Double_t time, Double_t charge)
 
void AddSignal (const TRestDetectorSignal &signal)
 
TPad * DrawEvent (const TString &option="")
 Draw the event. More...
 
Double_t GetIntegral (Int_t startBin=0, Int_t endBin=0)
 
Double_t GetIntegralWithTime (Double_t startTime, Double_t endTime)
 
Double_t GetMaxTime ()
 
Double_t GetMaxValue ()
 
Double_t GetMinTime ()
 
Double_t GetMinValue ()
 
Int_t GetNumberOfSignals () const
 
TRestDetectorSignalGetSignal (Int_t n)
 
TRestDetectorSignalGetSignalById (Int_t sid)
 
Int_t GetSignalIndex (Int_t signalID)
 
void Initialize ()
 
void PrintEvent ()
 
void RemoveSignalWithId (Int_t sId)
 
Bool_t signalIDExists (Int_t sID)
 
void SortSignals ()
 
- Public Member Functions inherited from TRestEvent
virtual void CloneTo (TRestEvent *target)
 Clone the content of this TRestEvent object to another. More...
 
Int_t GetID () const
 
Int_t GetRunOrigin () const
 
TString GetSubEventTag () const
 
Int_t GetSubID () const
 
Int_t GetSubRunOrigin () const
 
Double_t GetTime () const
 
TTimeStamp GetTimeStamp () const
 
virtual void InitializeReferences (TRestRun *run)
 Initialize dynamical references when loading the event from a root file. More...
 
virtual void InitializeWithMetadata (TRestRun *run)
 
Bool_t isOk () const
 
virtual void PrintEvent () const
 
void SetEventInfo (TRestEvent *eve)
 
void SetID (Int_t id)
 
void SetOK (Bool_t state)
 
void SetRunOrigin (Int_t run_origin)
 
void SetState (Bool_t state)
 
void SetSubEventTag (const TString &tag)
 
void SetSubID (Int_t id)
 
void SetSubRunOrigin (Int_t sub_run_origin)
 
void SetTime (Double_t seconds, Double_t nanoseconds)
 
void SetTime (Double_t time)
 
void SetTimeStamp (const TTimeStamp &time)
 
 TRestEvent ()
 
virtual ~TRestEvent ()
 

Protected Attributes

Double_t fMaxTime
 
Double_t fMaxValue
 
Double_t fMinTime
 
Double_t fMinValue
 
std::vector< TRestDetectorSignalfSignal
 
- Protected Attributes inherited from TRestEvent
Int_t fEventID
 Event identification number.
 
TTimeStamp fEventTime
 Absolute event time.
 
Bool_t fOk
 Flag to be used by processes to define an event status. fOk=true is the default.
 
TPad * fPad
 
TRestRunfRun = nullptr
 
Int_t fRunOrigin
 Run ID number of the event.
 
Int_t fSubEventID
 Sub-Event identification number.
 
TString fSubEventTag
 A short length label to identify the sub-Event.
 
Int_t fSubRunOrigin
 Sub-run ID number of the event.
 

Private Member Functions

void SetMaxAndMin ()
 

Additional Inherited Members

- Protected Member Functions inherited from TRestEvent
void RestartPad (Int_t nElements)
 

Member Function Documentation

◆ DrawEvent()

TPad * TRestDetectorSignalEvent::DrawEvent ( const TString &  option = "")
virtual

Draw the event.

To be implemented in the derived class

Reimplemented from TRestEvent.

Definition at line 159 of file TRestDetectorSignalEvent.cxx.

◆ Initialize()

void TRestDetectorSignalEvent::Initialize ( )
virtual

Run to initialize event data. To be re-implemented in derived class, you may want to call the base class at the end of the re-implemented, by calling TRestEvent::Initialize();

Implements TRestEvent.

Definition at line 39 of file TRestDetectorSignalEvent.cxx.


The documentation for this class was generated from the following files: