REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
Loading...
Searching...
No Matches
TRestHaloEvent Class Reference

Detailed Description

Definition at line 11 of file TRestHaloEvent.h.

Inheritance diagram for TRestHaloEvent:
TRestEvent

Public Member Functions

virtual void Browse (TBrowser *b) override
 ClassDefOverride (TRestHaloEvent, 1)
virtual TPad * DrawEvent (const TString &option="") override
 Draw the event.
const std::vector< double > & GetFrequencies () const
TRestHaloMetadata & GetMetadata ()
const TRestHaloMetadata & GetMetadata () const
double GetStdDev () const
TRestHaloMetadata::EValueUnit GetStoredUnit () const
const std::vector< double > & GetUncertainties () const
double GetValueAtFrequency (double f) const
double GetValueAtFrequency (double f, TRestHaloMetadata::EValueUnit outUnit) const
const std::vector< double > & GetValues () const
void Initialize () override
void PrintEvent () const override
void SetSpectrum (const std::vector< double > &freq, const std::vector< double > &values, TRestHaloMetadata::EValueUnit unit, const std::vector< double > &uncertainties=std::vector< double >())
void SetUncertainties (const std::vector< double > &uncertainties)
Public Member Functions inherited from TRestEvent
virtual void CloneTo (TRestEvent *target)
 Clone the content of this TRestEvent object to another.
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.
virtual void InitializeWithMetadata (TRestRun *run)
Bool_t isOk () 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 ()

Static Public Member Functions

static double VoltsToWatts (double v)
static double WattsToVolts (double w)

Private Attributes

std::vector< double > fFrequency
TRestHaloMetadata fMetadata
double fResolution = 0
double fStartFrequency = 0
double fStdDev = 0
double fStopFrequency = 0
std::vector< double > fUncertainties
std::vector< double > fValues

Additional Inherited Members

Protected Member Functions inherited from TRestEvent
void RestartPad (Int_t nElements)
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
TRestRun * fRun = 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.

Constructor & Destructor Documentation

◆ TRestHaloEvent()

TRestHaloEvent::TRestHaloEvent ( )

Definition at line 12 of file TRestHaloEvent.cxx.

◆ ~TRestHaloEvent()

TRestHaloEvent::~TRestHaloEvent ( )

Definition at line 13 of file TRestHaloEvent.cxx.

Member Function Documentation

◆ Browse()

void TRestHaloEvent::Browse ( TBrowser * b)
overridevirtual

Definition at line 133 of file TRestHaloEvent.cxx.

◆ DrawEvent()

TPad * TRestHaloEvent::DrawEvent ( const TString & option = "")
overridevirtual

Draw the event.

To be implemented in the derived class

Reimplemented from TRestEvent.

Definition at line 93 of file TRestHaloEvent.cxx.

◆ GetFrequencies()

const std::vector< double > & TRestHaloEvent::GetFrequencies ( ) const
inline

Definition at line 39 of file TRestHaloEvent.h.

◆ GetMetadata() [1/2]

TRestHaloMetadata & TRestHaloEvent::GetMetadata ( )
inline

Definition at line 44 of file TRestHaloEvent.h.

◆ GetMetadata() [2/2]

const TRestHaloMetadata & TRestHaloEvent::GetMetadata ( ) const
inline

Definition at line 43 of file TRestHaloEvent.h.

◆ GetStdDev()

double TRestHaloEvent::GetStdDev ( ) const
inline

Definition at line 58 of file TRestHaloEvent.h.

◆ GetStoredUnit()

TRestHaloMetadata::EValueUnit TRestHaloEvent::GetStoredUnit ( ) const
inline

Definition at line 47 of file TRestHaloEvent.h.

◆ GetUncertainties()

const std::vector< double > & TRestHaloEvent::GetUncertainties ( ) const
inline

Definition at line 41 of file TRestHaloEvent.h.

◆ GetValueAtFrequency() [1/2]

double TRestHaloEvent::GetValueAtFrequency ( double f) const
inline

Definition at line 55 of file TRestHaloEvent.h.

◆ GetValueAtFrequency() [2/2]

double TRestHaloEvent::GetValueAtFrequency ( double f,
TRestHaloMetadata::EValueUnit outUnit ) const

Definition at line 63 of file TRestHaloEvent.cxx.

◆ GetValues()

const std::vector< double > & TRestHaloEvent::GetValues ( ) const
inline

Definition at line 40 of file TRestHaloEvent.h.

◆ Initialize()

void TRestHaloEvent::Initialize ( )
overridevirtual

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 17 of file TRestHaloEvent.cxx.

◆ PrintEvent()

void TRestHaloEvent::PrintEvent ( ) const
overridevirtual

Run to print event data info on console To be re-implemented in derived class. You may want to call the base class inside the re-implemented one, by calling TRestEvent::PrintEvent();

Reimplemented from TRestEvent.

Definition at line 86 of file TRestHaloEvent.cxx.

◆ SetSpectrum()

void TRestHaloEvent::SetSpectrum ( const std::vector< double > & freq,
const std::vector< double > & values,
TRestHaloMetadata::EValueUnit unit,
const std::vector< double > & uncertainties = std::vector<double>() )

Definition at line 19 of file TRestHaloEvent.cxx.

◆ SetUncertainties()

void TRestHaloEvent::SetUncertainties ( const std::vector< double > & uncertainties)

Definition at line 53 of file TRestHaloEvent.cxx.

◆ VoltsToWatts()

double TRestHaloEvent::VoltsToWatts ( double v)
inlinestatic

Definition at line 71 of file TRestHaloEvent.h.

◆ WattsToVolts()

double TRestHaloEvent::WattsToVolts ( double w)
inlinestatic

Definition at line 72 of file TRestHaloEvent.h.

Field Documentation

◆ fFrequency

std::vector<double> TRestHaloEvent::fFrequency
private

Definition at line 13 of file TRestHaloEvent.h.

◆ fMetadata

TRestHaloMetadata TRestHaloEvent::fMetadata
private

Definition at line 18 of file TRestHaloEvent.h.

◆ fResolution

double TRestHaloEvent::fResolution = 0
private

Definition at line 22 of file TRestHaloEvent.h.

◆ fStartFrequency

double TRestHaloEvent::fStartFrequency = 0
private

Definition at line 20 of file TRestHaloEvent.h.

◆ fStdDev

double TRestHaloEvent::fStdDev = 0
private

Definition at line 23 of file TRestHaloEvent.h.

◆ fStopFrequency

double TRestHaloEvent::fStopFrequency = 0
private

Definition at line 21 of file TRestHaloEvent.h.

◆ fUncertainties

std::vector<double> TRestHaloEvent::fUncertainties
private

Definition at line 15 of file TRestHaloEvent.h.

◆ fValues

std::vector<double> TRestHaloEvent::fValues
private

Definition at line 14 of file TRestHaloEvent.h.


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