Hall A ROOT/C++ Analyzer (podd)
Loading...
Searching...
No Matches
THaVDCWire.h
Go to the documentation of this file.
1#ifndef Podd_THaVDCWire_h_
2#define Podd_THaVDCWire_h_
3
5// //
6// THaVDCWire //
7// //
9#include "TObject.h"
10
11namespace VDC {
12 class TimeToDistConv;
13}
14
15class THaVDCWire : public TObject {
16
17public:
18
19 explicit THaVDCWire( Int_t num=0, Double_t pos=0.0, Double_t offset=0.0,
20 VDC::TimeToDistConv* ttd=nullptr ) :
21 fNum(num), fFlag(0), fPos(pos), fTOffset(offset), fTTDConv(ttd) {}
22 virtual ~THaVDCWire() = default;
23
24 // Get and Set Functions
25 Int_t GetNum() const { return fNum; }
26 Int_t GetFlag() const { return fFlag; }
27 Double_t GetPos() const { return fPos; }
28 Double_t GetTOffset() const { return fTOffset; }
30
31 void SetNum (Int_t num) {fNum = num;}
32 void SetFlag (Int_t flag) {fFlag = flag;}
33 void SetPos (Double_t pos) { fPos = pos; }
34 void SetTOffset (Double_t tOffset){ fTOffset = tOffset; }
35 void SetTTDConv (VDC::TimeToDistConv * ttdConv){ fTTDConv = ttdConv;}
36
37protected:
38 Int_t fNum; //Wire Number
39 Int_t fFlag; //Flag for errors (e.g. Bad wire)
40 Double_t fPos; //Position within the plane
41 Double_t fTOffset; //Timing Offset
43
44private:
47
48 ClassDef(THaVDCWire,1) // VDCWire class
49};
50
52
53#endif
int Int_t
double Double_t
#define ClassDef(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h offset
THaVDCWire & operator=(const THaVDCWire &)
THaVDCWire(Int_t num=0, Double_t pos=0.0, Double_t offset=0.0, VDC::TimeToDistConv *ttd=nullptr)
Definition THaVDCWire.h:19
Int_t fNum
Definition THaVDCWire.h:38
Double_t GetPos() const
Definition THaVDCWire.h:27
Double_t fPos
Definition THaVDCWire.h:40
void SetTTDConv(VDC::TimeToDistConv *ttdConv)
Definition THaVDCWire.h:35
Int_t fFlag
Definition THaVDCWire.h:39
void SetTOffset(Double_t tOffset)
Definition THaVDCWire.h:34
VDC::TimeToDistConv * GetTTDConv()
Definition THaVDCWire.h:29
void SetNum(Int_t num)
Definition THaVDCWire.h:31
Int_t GetNum() const
Definition THaVDCWire.h:25
virtual ~THaVDCWire()=default
void SetFlag(Int_t flag)
Definition THaVDCWire.h:32
void SetPos(Double_t pos)
Definition THaVDCWire.h:33
THaVDCWire(const THaVDCWire &)
Time to Distance Converter.
Double_t fTOffset
Definition THaVDCWire.h:41
Int_t GetFlag() const
Definition THaVDCWire.h:26
Double_t GetTOffset() const
Definition THaVDCWire.h:28
VDC::TimeToDistConv * fTTDConv
Definition THaVDCWire.h:42