BmnRoot
Loading...
Searching...
No Matches
BmnLambdaEmbeddingMonitor.h
Go to the documentation of this file.
1#ifndef BMNEMBMONITOR_H
2#define BMNEMBMONITOR_H 1
3
4#include <TNamed.h>
5#include <TVector3.h>
6
7class BmnLambdaEmbeddingMonitor : public TNamed {
8public:
11
12 void SetId(UInt_t evId) {
13 id = evId;
14 }
15
16 void IsEmbedded(Bool_t flag) {
17 isEmbedded = flag;
18 }
19
20 Bool_t IsEmbedded() {
21 return isEmbedded;
22 }
23
24 void SetStoreVertexEvent(TVector3 info) {
25 store = info.X();
26 vertex = info.Y();
27 event = info.Z();
28 }
29
30 void SetNHitsProton(Int_t nhits) {
31 nHitsProton = nhits;
32 }
33
34 void SetNHitsPion(Int_t nhits) {
35 nHitsPion = nhits;
36 }
37
38 void SetTxProton(Double_t val) {
39 txProton = val;
40 }
41
42 void SetTyProton(Double_t val) {
43 tyProton = val;
44 }
45
46 void SetTxPion(Double_t val) {
47 txPion = val;
48 }
49
50 void SetTyPion(Double_t val) {
51 tyPion = val;
52 }
53
54 void SetProtonP(Double_t val) {
55 pProton = val;
56 }
57
58 void SetPionP(Double_t val) {
59 pPion = val;
60 }
61
62 UInt_t GetEventId() {
63 return id;
64 }
65
67 return nHitsProton;
68 }
69
70 Int_t GetNHitsPion() {
71 return nHitsPion;
72 }
73
74 Double_t GetProtonP() {
75 return pProton;
76 }
77
78 Double_t GetPionP() {
79 return pPion;
80 }
81
83 return TVector3(store, vertex, event);
84 }
85
86private:
87 UInt_t id;
88 Bool_t isEmbedded;
89
90 Int_t store;
91 Int_t vertex;
92 Int_t event;
93
94 Int_t nHitsProton;
95 Int_t nHitsPion;
96
97 Double_t pProton;
98 Double_t pPion;
99
100 Double_t txProton;
101 Double_t txPion;
102
103 Double_t tyProton;
104 Double_t tyPion;
105
106 ClassDef(BmnLambdaEmbeddingMonitor, 1)
107};
108
109#endif