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...
 
virtual TPad * DrawEvent (const TString &option="")
 Draw the event. 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 Initialize ()=0
 
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. More...
 
TTimeStamp fEventTime
 Absolute event time. More...
 
Bool_t fOk
 Flag to be used by processes to define an event status. fOk=true is the default. More...
 
TPad * fPad
 
TRestRunfRun = nullptr
 
Int_t fRunOrigin
 Run ID number of the event. More...
 
Int_t fSubEventID
 Sub-Event identification number. More...
 
TString fSubEventTag
 A short length label to identify the sub-Event. More...
 
Int_t fSubRunOrigin
 Sub-run ID number of the event. More...
 

Private Member Functions

void SetMaxAndMin ()
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ TRestDetectorSignalEvent()

TRestDetectorSignalEvent::TRestDetectorSignalEvent ( )

Definition at line 30 of file TRestDetectorSignalEvent.cxx.

◆ ~TRestDetectorSignalEvent()

TRestDetectorSignalEvent::~TRestDetectorSignalEvent ( )
virtual

Definition at line 35 of file TRestDetectorSignalEvent.cxx.

Member Function Documentation

◆ AddChargeToSignal()

void TRestDetectorSignalEvent::AddChargeToSignal ( Int_t  signalID,
Double_t  time,
Double_t  charge 
)

Definition at line 92 of file TRestDetectorSignalEvent.cxx.

◆ AddSignal()

void TRestDetectorSignalEvent::AddSignal ( const TRestDetectorSignal signal)

Definition at line 49 of file TRestDetectorSignalEvent.cxx.

◆ DrawEvent()

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

Draw the event.

To be implemented in the derived class

Reimplemented from TRestEvent.

Definition at line 160 of file TRestDetectorSignalEvent.cxx.

◆ GetIntegral()

Double_t TRestDetectorSignalEvent::GetIntegral ( Int_t  startBin = 0,
Int_t  endBin = 0 
)

Definition at line 77 of file TRestDetectorSignalEvent.cxx.

◆ GetIntegralWithTime()

Double_t TRestDetectorSignalEvent::GetIntegralWithTime ( Double_t  startTime,
Double_t  endTime 
)

Definition at line 85 of file TRestDetectorSignalEvent.cxx.

◆ GetMaxTime()

Double_t TRestDetectorSignalEvent::GetMaxTime ( )

Definition at line 149 of file TRestDetectorSignalEvent.cxx.

◆ GetMaxValue()

Double_t TRestDetectorSignalEvent::GetMaxValue ( )

Definition at line 129 of file TRestDetectorSignalEvent.cxx.

◆ GetMinTime()

Double_t TRestDetectorSignalEvent::GetMinTime ( )

Definition at line 139 of file TRestDetectorSignalEvent.cxx.

◆ GetMinValue()

Double_t TRestDetectorSignalEvent::GetMinValue ( )

Definition at line 134 of file TRestDetectorSignalEvent.cxx.

◆ GetNumberOfSignals()

Int_t TRestDetectorSignalEvent::GetNumberOfSignals ( ) const
inline

Definition at line 65 of file TRestDetectorSignalEvent.h.

◆ GetSignal()

TRestDetectorSignal * TRestDetectorSignalEvent::GetSignal ( Int_t  n)
inline

Definition at line 66 of file TRestDetectorSignalEvent.h.

◆ GetSignalById()

TRestDetectorSignal * TRestDetectorSignalEvent::GetSignalById ( Int_t  sid)
inline

Definition at line 68 of file TRestDetectorSignalEvent.h.

◆ GetSignalIndex()

Int_t TRestDetectorSignalEvent::GetSignalIndex ( Int_t  signalID)

Definition at line 71 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.

◆ PrintEvent()

void TRestDetectorSignalEvent::PrintEvent ( )

Definition at line 104 of file TRestDetectorSignalEvent.cxx.

◆ RemoveSignalWithId()

void TRestDetectorSignalEvent::RemoveSignalWithId ( Int_t  sId)

Definition at line 59 of file TRestDetectorSignalEvent.cxx.

◆ SetMaxAndMin()

void TRestDetectorSignalEvent::SetMaxAndMin ( )
private

Definition at line 114 of file TRestDetectorSignalEvent.cxx.

◆ signalIDExists()

Bool_t TRestDetectorSignalEvent::signalIDExists ( Int_t  sID)
inline

Definition at line 45 of file TRestDetectorSignalEvent.h.

◆ SortSignals()

void TRestDetectorSignalEvent::SortSignals ( )
inline

Definition at line 52 of file TRestDetectorSignalEvent.h.

Field Documentation

◆ fMaxTime

Double_t TRestDetectorSignalEvent::fMaxTime
protected

Definition at line 35 of file TRestDetectorSignalEvent.h.

◆ fMaxValue

Double_t TRestDetectorSignalEvent::fMaxValue
protected

Definition at line 37 of file TRestDetectorSignalEvent.h.

◆ fMinTime

Double_t TRestDetectorSignalEvent::fMinTime
protected

Definition at line 34 of file TRestDetectorSignalEvent.h.

◆ fMinValue

Double_t TRestDetectorSignalEvent::fMinValue
protected

Definition at line 36 of file TRestDetectorSignalEvent.h.

◆ fSignal

std::vector<TRestDetectorSignal> TRestDetectorSignalEvent::fSignal
protected

Definition at line 39 of file TRestDetectorSignalEvent.h.


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