23#ifndef RestCore_TRestDetectorHitsRotationProcess
24#define RestCore_TRestDetectorHitsRotationProcess
26#include <TRestDetectorHitsEvent.h>
27#include <TRestEventProcess.h>
59 const char* GetProcessName()
const override {
return "hitsRotation"; }
61 inline Double_t GetAngle()
const {
return fAngle; }
62 inline TVector3 GetAxis()
const {
return fAxis; }
63 inline TVector3 GetCenter()
const {
return fCenter; }
A process to rotate hits from a given center and axis.
TVector3 fAxis
Axis of rotation.
void InitFromConfigFile() override
To make settings from rml file. This method must be implemented in the derived class.
TRestDetectorHitsEvent * fInputEvent
A pointer to the process input event.
void Initialize() override
Making default settings.
void PrintMetadata() override
Implemented it in the derived metadata class to print out specific metadata information.
RESTValue GetOutputEvent() const override
Get pointer to output event. Must be implemented in the derived class.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
Process one event.
TVector3 fCenter
Center of rotation.
Double_t fAngle
Angle of rotation respect to the given axis.
RESTValue GetInputEvent() const override
Get pointer to input event. Must be implemented in the derived class.
TRestDetectorHitsEvent * fOutputEvent
A pointer to the process output event.
A base class for any REST event process.
A base class for any REST event.