REST-for-Physics
v2.3
Rare Event Searches ToolKit for Physics
|
An event data class to define the parameters related to an axion particle.
TRestAxionEvent is an event class used to define the properties of an axion particle.
TODO. Create an appropriate documentation here (if needed).
RESTsoft - Software for Rare Event Searches with TPCs
History of developments:
2019-March: First concept and implementation of TRestAxionEvent class. Javier Galan
Definition at line 35 of file TRestAxionEvent.h.
#include <TRestAxionEvent.h>
Public Member Functions | |
TPad * | DrawEvent (TString option="") |
TVector3 | GetDirection () |
Double_t | GetDirectionX () |
Double_t | GetDirectionY () |
Double_t | GetDirectionZ () |
Double_t | GetEnergy () |
Double_t | GetMass () |
Double_t | GetMassIneV () |
TVector3 | GetPosition () |
It keeps track of efficiency introduced at different helioscope components. More... | |
Double_t | GetPositionX () |
Double_t | GetPositionY () |
Double_t | GetPositionZ () |
virtual void | Initialize () |
virtual void | PrintEvent () |
void | RotateXY (const TVector3 ¢er, Double_t pitch, Double_t yaw) |
This method will produce a rotation respect to a center given by argument. First we rotate the particle and direction along the X-axis by an angle pitch , then we rotate the particle and direction along the Y-axis by an angle yaw . More... | |
void | RotateXZ (const TVector3 ¢er, Double_t theta, Double_t phi) |
This method will produce a rotation respect to a center given by argument. First we rotate the particle and direction along the X-axis by an angle theta , then we rotate the particle and direction along the Z-axis by an angle phi . More... | |
void | RotateYX (const TVector3 ¢er, Double_t yaw, Double_t pitch) |
This method will produce a rotation respect to a center given by argument. First we rotate the particle and direction along the Y-axis by an angle yaw , then we rotate the particle and direction along the X-axis by an angle pitch . More... | |
void | RotateZX (const TVector3 ¢er, Double_t phi, Double_t theta) |
This method will produce a rotation respect to a center given by argument. First we rotate the particle and direction along the Z-axis by an angle phi , then we rotate the particle and direction along the X-axis by an angle theta . More... | |
void | SetDirection (Double_t px, Double_t py, Double_t pz) |
void | SetDirection (TVector3 dir) |
void | SetEnergy (Double_t en) |
void | SetMass (Double_t m) |
void | SetPosition (Double_t x, Double_t y, Double_t z) |
void | SetPosition (TVector3 pos) |
void | Translate (const TVector3 &delta) |
This method will produce a tranlation of the axion position by an amount delta . More... | |
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 () |
Private Attributes | |
TVector3 | fDirection |
Particle momentum. Unitary direction. More... | |
Double_t | fEnergy = 0 |
Initial energy of the axion. More... | |
Double_t | fMass = 0. |
Axion mass in keV. More... | |
TVector3 | fPosition |
Particle position. More... | |
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. 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 |
TRestRun * | fRun = 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... | |
TRestAxionEvent::TRestAxionEvent | ( | ) |
Definition at line 52 of file TRestAxionEvent.cxx.
TRestAxionEvent::~TRestAxionEvent | ( | ) |
Definition at line 57 of file TRestAxionEvent.cxx.
TPad * TRestAxionEvent::DrawEvent | ( | TString | option = "" | ) |
Definition at line 61 of file TRestAxionEvent.cxx.
|
inline |
Definition at line 60 of file TRestAxionEvent.h.
|
inline |
Definition at line 62 of file TRestAxionEvent.h.
|
inline |
Definition at line 63 of file TRestAxionEvent.h.
|
inline |
Definition at line 64 of file TRestAxionEvent.h.
|
inline |
Definition at line 66 of file TRestAxionEvent.h.
|
inline |
Definition at line 67 of file TRestAxionEvent.h.
|
inline |
Definition at line 68 of file TRestAxionEvent.h.
|
inline |
It keeps track of efficiency introduced at different helioscope components.
Definition at line 54 of file TRestAxionEvent.h.
|
inline |
Definition at line 56 of file TRestAxionEvent.h.
|
inline |
Definition at line 57 of file TRestAxionEvent.h.
|
inline |
Definition at line 58 of file TRestAxionEvent.h.
|
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 59 of file TRestAxionEvent.cxx.
|
virtual |
Definition at line 159 of file TRestAxionEvent.cxx.
void TRestAxionEvent::RotateXY | ( | const TVector3 & | center, |
Double_t | pitch, | ||
Double_t | yaw | ||
) |
This method will produce a rotation respect to a center
given by argument. First we rotate the particle and direction along the X-axis by an angle pitch
, then we rotate the particle and direction along the Y-axis by an angle yaw
.
Definition at line 125 of file TRestAxionEvent.cxx.
void TRestAxionEvent::RotateXZ | ( | const TVector3 & | center, |
Double_t | theta, | ||
Double_t | phi | ||
) |
This method will produce a rotation respect to a center
given by argument. First we rotate the particle and direction along the X-axis by an angle theta
, then we rotate the particle and direction along the Z-axis by an angle phi
.
Definition at line 91 of file TRestAxionEvent.cxx.
void TRestAxionEvent::RotateYX | ( | const TVector3 & | center, |
Double_t | yaw, | ||
Double_t | pitch | ||
) |
This method will produce a rotation respect to a center
given by argument. First we rotate the particle and direction along the Y-axis by an angle yaw
, then we rotate the particle and direction along the X-axis by an angle pitch
.
Definition at line 142 of file TRestAxionEvent.cxx.
void TRestAxionEvent::RotateZX | ( | const TVector3 & | center, |
Double_t | phi, | ||
Double_t | theta | ||
) |
This method will produce a rotation respect to a center
given by argument. First we rotate the particle and direction along the Z-axis by an angle phi
, then we rotate the particle and direction along the X-axis by an angle theta
.
Definition at line 108 of file TRestAxionEvent.cxx.
|
inline |
Definition at line 78 of file TRestAxionEvent.h.
|
inline |
Definition at line 77 of file TRestAxionEvent.h.
|
inline |
Definition at line 86 of file TRestAxionEvent.h.
|
inline |
Definition at line 87 of file TRestAxionEvent.h.
|
inline |
Definition at line 73 of file TRestAxionEvent.h.
|
inline |
Definition at line 72 of file TRestAxionEvent.h.
void TRestAxionEvent::Translate | ( | const TVector3 & | delta | ) |
This method will produce a tranlation of the axion position by an amount delta
.
Definition at line 157 of file TRestAxionEvent.cxx.
|
private |
Particle momentum. Unitary direction.
Definition at line 41 of file TRestAxionEvent.h.
|
private |
Initial energy of the axion.
Definition at line 44 of file TRestAxionEvent.h.
|
private |
Axion mass in keV.
Definition at line 47 of file TRestAxionEvent.h.
|
private |
Particle position.
Definition at line 38 of file TRestAxionEvent.h.