Hall A ROOT/C++ Analyzer (podd)
Loading...
Searching...
No Matches
THaBeamDet.h
Go to the documentation of this file.
1#ifndef Podd_THaBeamDet_h_
2#define Podd_THaBeamDet_h_
3
5//
6// THaBeam
7//
9
10#include "THaDetector.h"
11#include "TVector3.h"
12
13class THaBeamDet : public THaDetector {
14
15public:
16 THaBeamDet() = default;
17 virtual ~THaBeamDet() = default;
18
19 virtual TVector3 GetPosition() const = 0;
20 virtual TVector3 GetDirection() const = 0;
21 virtual Int_t Process() = 0;
22
23 protected:
24
25 // Only derived classes can construct me
26 explicit THaBeamDet( const char* name, const char* description = "",
27 THaApparatus* a = nullptr )
28 : THaDetector(name, description, a) {}
29
30 public:
31 ClassDef(THaBeamDet,0) // ABC for an detector providing beam information
32};
33
34#endif
35
int Int_t
#define ClassDef(name, id)
char name[80]
virtual TVector3 GetPosition() const =0
THaBeamDet()=default
virtual ~THaBeamDet()=default
virtual TVector3 GetDirection() const =0
THaBeamDet(const char *name, const char *description="", THaApparatus *a=nullptr)
Definition THaBeamDet.h:26
virtual Int_t Process()=0
TArc a