BmnRoot
Loading...
Searching...
No Matches
BmnMwpcHit.h
Go to the documentation of this file.
1// BmnMwpcHit class
2
3#ifndef BmnMwpcHit_H
4#define BmnMwpcHit_H 1
5
6#include <math.h>
7#include <iostream>
8#include <vector>
9#include "BmnHit.h"
10#include <TObject.h>
11
12using namespace std;
13
14// class TClonesArray;
15
16class BmnMwpcHit : public BmnHit {
17public:
18
21
23 BmnMwpcHit(Int_t detUID, TVector3 posHit, TVector3 posHitErr, Int_t pointIndx);
24
25 Int_t GetXaddr() const {
26 return fXaddr;
27 }
28
29 Int_t GetYaddr() const {
30 return fYaddr;
31 }
32
33 ULong_t GetAddr() const {
34 return fAddr;
35 }
36
37 Short_t GetMwpcId() const {
38 return fMwpcId;
39 }
40
41 Int_t GetHitId() const {
42 return fID;
43 }
44
45 Bool_t IsUsed() const {
46 return fUsing;
47 }
48
49 void SetUsing(Bool_t use) {
50 fUsing = use;
51 }
52
53 void SetXaddr(Int_t addr) {
54 fXaddr = addr;
55 }
56
57 void SetYaddr(Int_t addr) {
58 fYaddr = addr;
59 }
60
61 void SetAddr(ULong_t addr) {
62 fAddr = addr;
63 }
64
65 void SetMwpcId(Short_t id) {
66 fMwpcId = id;
67 }
68
69 void SetHitId(Int_t idx) {
70 fID = idx;
71 }
72
73 Int_t GetWireNumber() { return fWireNumber; }
74 Int_t GetDetectorID() const { return fDetectorID; } //
75 Int_t GetWireTime() { return fWireTime; } //
76 Int_t GetPlaneId() { return fPlaneId; } //
77 Int_t GetPdgId() { return fPdgId; } //
78 void SetWireNumber(Int_t wire_num) { fWireNumber = wire_num; }
79 void SetWireTime(Int_t time_wire) { fWireTime = time_wire; }
80 void SetPlaneId(Int_t plane_id) { fPlaneId = plane_id; }
81 void SetPdgId(Int_t pdg_id) { fPdgId = pdg_id; }
82
84 virtual ~BmnMwpcHit();
85
86private:
87
88 Int_t fID; // identifier of hit in hits array
89 Bool_t fUsing;
90 Int_t fXaddr;
91 Int_t fYaddr;
92 ULong_t fAddr;
93 Short_t fMwpcId; // 1, 2, 3
94
95protected:
96 Int_t fWireNumber; // Nearest wire to a MC-track
97 Int_t fDetectorID; // Detector ID
98 Int_t fWireTime;
99 Int_t fPlaneId;
100 Int_t fPdgId;
101
103
104};
105
106#endif
virtual ~BmnMwpcHit()
Int_t GetYaddr() const
Definition BmnMwpcHit.h:29
Int_t GetPdgId()
Definition BmnMwpcHit.h:77
Int_t GetXaddr() const
Definition BmnMwpcHit.h:25
Short_t GetMwpcId() const
Definition BmnMwpcHit.h:37
Int_t GetWireNumber()
Definition BmnMwpcHit.h:73
void SetMwpcId(Short_t id)
Definition BmnMwpcHit.h:65
void SetWireTime(Int_t time_wire)
Definition BmnMwpcHit.h:79
ULong_t GetAddr() const
Definition BmnMwpcHit.h:33
void SetPlaneId(Int_t plane_id)
Definition BmnMwpcHit.h:80
void SetWireNumber(Int_t wire_num)
Definition BmnMwpcHit.h:78
ClassDef(BmnMwpcHit, 1)
Int_t fWireNumber
Definition BmnMwpcHit.h:96
void SetAddr(ULong_t addr)
Definition BmnMwpcHit.h:61
Bool_t IsUsed() const
Definition BmnMwpcHit.h:45
Int_t GetPlaneId()
Definition BmnMwpcHit.h:76
Int_t fDetectorID
Definition BmnMwpcHit.h:97
void SetPdgId(Int_t pdg_id)
Definition BmnMwpcHit.h:81
void SetXaddr(Int_t addr)
Definition BmnMwpcHit.h:53
Int_t fPlaneId
Definition BmnMwpcHit.h:99
void SetYaddr(Int_t addr)
Definition BmnMwpcHit.h:57
void SetUsing(Bool_t use)
Definition BmnMwpcHit.h:49
void SetHitId(Int_t idx)
Definition BmnMwpcHit.h:69
Int_t fWireTime
Definition BmnMwpcHit.h:98
Int_t GetHitId() const
Definition BmnMwpcHit.h:41
Int_t GetDetectorID() const
Definition BmnMwpcHit.h:74
Int_t GetWireTime()
Definition BmnMwpcHit.h:75
Int_t fPdgId
Definition BmnMwpcHit.h:100
BmnMwpcHit(Int_t detUID, TVector3 posHit, TVector3 posHitErr, Int_t pointIndx)
STL namespace.