43#include "TRestAxionEvent.h"
45#include "TRestTools.h"
52TRestAxionEvent::TRestAxionEvent() {
57TRestAxionEvent::~TRestAxionEvent() {}
61TPad* TRestAxionEvent::DrawEvent(TString option) {
64 for (
unsigned int n = 0; n < optList.size(); n++) {
65 if (optList[n] ==
"print") this->PrintEvent();
68 optList.erase(std::remove(optList.begin(), optList.end(),
"print"), optList.end());
70 if (optList.size() == 0) optList.push_back(
"TODO");
77 fPad =
new TPad(this->GetName(),
" ", 0, 0, 1, 1);
159void TRestAxionEvent::PrintEvent() {
162 cout <<
"Mass : " << GetMass() *
units(
"eV") <<
" eV" << endl;
163 cout <<
"Energy : " << GetEnergy() <<
" keV" << endl;
An event data class to define the parameters related to an axion particle.
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 partic...
TVector3 fPosition
Particle position.
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 partic...
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 partic...
virtual void Initialize()
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 partic...
TVector3 fDirection
Particle momentum. Unitary direction.
void Translate(const TVector3 &delta)
This method will produce a tranlation of the axion position by an amount delta.
virtual void PrintEvent() const
virtual void Initialize()=0