forked from JeffersonLab/SBS-offline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SBSScintPartialHit.h
67 lines (56 loc) · 2.21 KB
/
SBSScintPartialHit.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#ifndef ROOT_SBSScintPartialHit
#define ROOT_SBSScintPartialHit
/////////////////////////////////////////////////////////////////////////////
// //
// SBSScintPartialHit //
// //
/////////////////////////////////////////////////////////////////////////////
#include "TObject.h"
#include "TRef.h"
#include "SBSScintBar.h"
#include <cstdio>
class SBSScintPartialHit : public TObject {
public:
SBSScintPartialHit( SBSScintBar* bar = NULL, Int_t barnum=-7, Int_t CaseNum=0, Double_t lt=0.0, Double_t lt_raw=0.0,
Double_t rt=0.0, Double_t rt_raw=0.0, Double_t la=0.0,Double_t la_raw=0.0,
Double_t ra=0.0 , Double_t ra_raw=0.0 );
virtual ~SBSScintPartialHit() {;}
SBSScintBar* GetScintBar() const { return (SBSScintBar*)fScBar.GetObject(); }
Int_t GetBarNum() {return fBarNum;}
Int_t GetCaseNum() {return fCaseNum;}
Double_t GetLt() {return fLt;}
Double_t GetRt() {return fRt;}
Double_t GetLa() {return fLa;}
Double_t GetRa() {return fRa;}
Double_t GetLt_raw() {return fLt_raw;}
Double_t GetRt_raw() {return fRt_raw;}
Double_t GetLa_raw() {return fLa_raw;}
Double_t GetRa_raw() {return fRa_raw;}
void SetScintBar(SBSScintBar* bar) {fScBar=bar;}
void SetBarNum(Int_t barnum) {fBarNum=barnum;}
void SetCaseNum(Int_t Val) { fCaseNum = Val;}
void SetLt(Double_t Val) { fLt = Val;}
void SetRt(Double_t Val) { fRt = Val;}
void SetLa(Double_t Val) { fLa = Val;}
void SetRa(Double_t Val) { fRa = Val;}
void SetLt_raw(Double_t Val) { fLt_raw = Val;}
void SetRt_raw(Double_t Val) { fRt_raw = Val;}
void SetLa_raw(Double_t Val) { fLa_raw = Val;}
void SetRa_raw(Double_t Val) { fRa_raw = Val;}
protected:
TRef fScBar; // reference to the bar
Int_t fBarNum;
Int_t fCaseNum;
Double_t fLt;
Double_t fLt_raw;
Double_t fRt;
Double_t fRt_raw;
Double_t fLa;
Double_t fLa_raw;
Double_t fRa;
Double_t fRa_raw;
public:
ClassDef(SBSScintPartialHit,1) // Partial(not complete L/R A/T) scintillator hit
};
/////////////////////////////////////////////////////////////////
#endif